blob: 11bc623242cc4894e8a58680fd1f2a4ae43a86af (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
pkgname=func
pkgver=0.25
pkgrel=12
pkgdesc="fedora unifed network controller"
url=""
license="gpl"
depends=(pyopenssl certmaster python_aosd)
makedepends=()
conflicts=()
replaces=()
backup=('etc/func/minion.conf')
moddir="pkg/usr/lib/python2.7/site-packages/func/minion/modules/"
install=func.install
source=($pkgname-$pkgver.tar.gz minion.conf power.py pacman.py failed_func fe_restart.py msg.py msg.cfg func_ssl_patch logrotate-func.conf)
arch=('i686' 'x86_64')
build() {
cd $startdir/src/$pkgname-${pkgver}
patch -Np1 < $startdir/src/func_ssl_patch
python2 setup.py build
python2 setup.py install --prefix=$startdir/pkg/usr
cd $startdir/src
install -m755 -D minion.conf $startdir/pkg/etc/func/minion.conf
install -m755 -D $startdir/src/$pkgname-$pkgver/etc/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/msg.py ${startdir}/${moddir}/msg.py
install -m755 -D $startdir/src/msg.cfg ${startdir}/pkg/usr/MythVantage/etc/msg.cfg
install -m755 -D $startdir/src/fe_restart.py ${startdir}/${moddir}/fe_restart.py
install -m755 -D $startdir/src/failed_func $startdir/pkg/usr/MythVantage/bin/failed_func
mkdir -p $startdir/pkg/var/log/func
install -m644 -D ../logrotate-func.conf $startdir/pkg/etc/logrotate.d/func
cd $startdir/pkg
find ./usr/bin/* -exec sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' {} \;
find ./ -name "*.pyc" -print | xargs rm -f
}
md5sums=('892252004f122c61bb58bb4607553ffe'
'1e2905074203d5c0557f143a6c50c497'
'1393088fa64823606e0b1c02296041f4'
'32cc4d15a3083b518d9f645b656cc273'
'c30f420c01628a08061270e8502115c5'
'b02a733b7a74569e57521bc3708724a5'
'7b4266a8031cf7de485bf6b74e57bd74'
'28e141f04ccbdde1199b41888e102dc9'
'b816bdb222e646a7801b218c3a626b0e'
'7d7c8a334f6b46ae1e5e483854b93924')
|