diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2011-07-05 19:40:43 +0200 |
---|---|---|
committer | Fabian Affolter <fabian@bernewireless.net> | 2011-07-05 19:40:43 +0200 |
commit | 7f9851115264bca9bce3926ddb29e533a23929dd (patch) | |
tree | b0426fc489e4dad582f34b25d6f93354a65f5c0f /testing/bcfg2/APKBUILD | |
parent | 5dac3f219058736f6e19b7bec2b1cc2b1b300981 (diff) | |
parent | 269fc1049583d36e07153215fe535f88947ea98b (diff) | |
download | aports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.bz2 aports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.xz |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing/bcfg2/APKBUILD')
-rw-r--r-- | testing/bcfg2/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/bcfg2/APKBUILD b/testing/bcfg2/APKBUILD new file mode 100644 index 0000000000..503d3308d9 --- /dev/null +++ b/testing/bcfg2/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Cameron Banta <cbanta@gmail.com> +# Maintainer: Cameron Banta <cbanta@gmail.com> +pkgname=bcfg2 +pkgver=1.1.1 +pkgrel=1 +pkgdesc="configuration management tool" +url="http://trac.mcs.anl.gov/projects/bcfg2" +arch="all" +license="Custom" +depends="python" +makedepends="python-dev" +install= +subpackages="$pkgname-doc $pkgname-server" +source="ftp://ftp.mcs.anl.gov/pub/bcfg/$pkgname-$pkgver.tar.gz + bcfg2-server.initd + APK.py" + +#no build needed - pure python + +package() { + cd "$srcdir"/$pkgname-$pkgver + cp "$srcdir"/APK.py src/lib/Client/Tools/ + python setup.py bdist_dumb --keep-temp --bdist-dir "$pkgdir" + + install -m644 -D COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT +} + +server() { + depends="python bcfg2 py-lxml openssl" + + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/bcfg2-* "$subpkgdir"/usr/bin/ + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/bcfg2 "$subpkgdir"/usr/share/ + install -m755 -D bcfg2-server.initd "$subpkgdir"/etc/init.d/$subpkgname +} + + +md5sums="f8889d629245ecf67994469ed78fbfeb bcfg2-1.1.1.tar.gz +9a13baa6f40267ff9dbec574967c5068 bcfg2-server.initd +2acc7c5a8a031a3cb25ab3955d8d1fde APK.py" |