# Contributor: Cameron Banta # Maintainer: Cameron Banta pkgname=bcfg2 pkgver=1.1.1 pkgrel=0 pkgdesc="configuration management tool" url="http://trac.mcs.anl.gov/projects/bcfg2" arch="x86 x86_64" 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"