summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/func/PKGBUILD
blob: 96eafcec5e173ad4a0f48811b5fa8e85d5d13378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pkgname=func
pkgver=0.24
pkgrel=21
pkgdesc="fedora unifed network controller"
url=""
license="gpl"
depends=(pyopenssl certmaster)
makedepends=()
conflicts=()
replaces=()
backup=()
moddir="pkg/usr/lib/python2.6/site-packages/func/minion/modules/"
install=func.install
source=($pkgname-$pkgver.tar.gz  minion.conf power.py pacman.py failed_func.sh fe_restart.py)
md5sums=()
arch=('i686')

build() {
	cd $startdir/src/$pkgname-${pkgver}
	python setup.py build
	python setup.py install --prefix=$startdir/pkg/usr
	cd $startdir/src
	install -m755 -D minion.conf $startdir/pkg/etc/func/minion.conf
	install -m755 -D async_methods.conf $startdir/pkg/etc/func/async_methods.conf
	install -m755 -D $startdir/src/$pkgname-${pkgver}/etc/sample.acl $startdir/pkg/etc/func/minion-acl.d/sample.acl
	install -m755 -D $startdir/src/$pkgname-${pkgver}/etc/Test.conf $startdir/pkg/etc/func/modules/Test.conf
	install -m755 -D $startdir/src/power.py ${startdir}/${moddir}/power.py
	install -m755 -D $startdir/src/pacman.py ${startdir}/${moddir}/pacman.py
	install -m755 -D $startdir/src/fe_restart.py ${startdir}/${moddir}/fe_restart.py
	install -m755 -D $startdir/src/failed_func.sh $startdir/pkg/usr/bin/failed_func.sh
	mkdir -p  $startdir/pkg/var/log/func
    cd $startdir/pkg
    find ./ -name "*.pyc" -print | xargs rm -f
}