pkgname=certmaster pkgver=0.28 pkgrel=4 pkgdesc="certmaster" url="https://fedorahosted.org/certmaster/ " license="gpl" depends=('pyopenssl') makedepends=() conflicts=() replaces=() moddir="pkg/usr/lib/python2.7/site-packages/func/minion/modules/" backup=('etc/certmaster/certmaster.conf' 'etc/certmaster/minion.conf') install=certmaster.install source=($pkgname-$pkgver.tar.gz certmaster.conf minion.conf logrotate-certmaster.conf) arch=('i686' 'x86_64') build() { cd $srcdir/$pkgname-${pkgver} python setup.py build python setup.py install --prefix=$pkgdir/usr } package() { cd $srcdir install -m755 -D minion.conf $pkgdir/etc/certmaster/minion.conf install -m755 -D certmaster.conf $pkgdir/etc/certmaster/certmaster.conf install -m644 -D logrotate-certmaster.conf $pkgdir/etc/logrotate.d/certmaster mkdir -p $pkgdir/var/log/certmaster cd $pkgdir find $pkgdir/usr/bin/* -exec sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' {} \; find $pkgdir/ -name "*.pyc" -print | xargs rm -f } md5sums=('f5acc9ff1efa34971296e26d794c5b35' '953ff601e5381b457383e7a3c4928192' 'be7bd532ae103ab3c0048980314b4fd9' 'fa8fabe2381c7b891e014bf9e23e653b')