summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/PKGBUILD
blob: d259255172f1cffdebc83c6b68d429d266875742 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
pkgbase=supplemental-web
pkgname=('supplemental-web' 'supplemental-web-slave')
pkgver=8.0
pkgrel=3
arch=('i686' 'x86_64')

backup=('extra.cfg.txt')
source=(lighttpd-supplement.conf extra.cfg.txt wakeonlan.sh slaveserve.py supplemental_slave.rules supplemental_web.rules )

build(){
    cd $startdir/src
}

#
# build() {
#     cd $startdir/src
#     mkdir -p $MVDIR/etc
#     install -m755 -D lighttpd-supplement.conf $pkgdir/etc/gen_light_conf.d/lighttpd-supplement.conf
#     install -m755 -D wakeonlan.sh $MVDIR/bin/wakeonlan.sh
# #	install -m755 -D backend_control.sh $MVDIR/bin/backend_control.sh
#     mkdir -p $startdir/pkg/data/srv/httpd/htdocs/
#     cp -rp $startdir/contents/* $startdir/pkg/data/srv/httpd/htdocs
#     chmod -R 755 $startdir/pkg/data/srv/httpd/htdocs
#     cd $startdir
#     mkdir -p $startdir/pkg/data/srv/httpd/
#     cp -rp cgi $startdir/pkg/data/srv/httpd/
#     cd $startdir/src
#     install -m755 -D extra.cfg.txt $pkgdir/data/srv/httpd/cgi/extra.cfg.txt
# }

package_supplemental-web() {
    pkgdesc="supplemental-web package for master backend"
    depends=('wol' 'etherwake' 'lighttpd'  'php' 'fcgi' 'python2' 'xymonserver' 'certmaster' 'func' 'python_aosd'  'LinHES-system>=2-50')
    install=supplemental-web.install

    cd $startdir/src
    MVDIR=$pkgdir/usr/MythVantage
    mkdir -p $MVDIR/etc
    install -m755 -D lighttpd-supplement.conf $pkgdir/etc/gen_light_conf.d/lighttpd-supplement.conf
    install -m755 -D wakeonlan.sh $MVDIR/bin/wakeonlan.sh
    #   install -m755 -D backend_control.sh $MVDIR/bin/backend_control.sh
    mkdir -p $pkgdir/data/srv/httpd/htdocs/
    cp -rp $startdir/contents/* $pkgdir/data/srv/httpd/htdocs
    chmod -R 755 $pkgdir/data/srv/httpd/htdocs
    cd $startdir
    mkdir -p $pkgdir/data/srv/httpd/
    cp -rp cgi $pkgdir/data/srv/httpd/
    cd $startdir/src
    install -m755 -D extra.cfg.txt $pkgdir/data/srv/httpd/cgi/extra.cfg.txt
    #sudo rules
    install -D -m400 $startdir/src/supplemental_web.rules $pkgdir/etc/sudoers.d/supplemental_web
    chmod 750 $pkgdir/etc/sudoers.d

    }

package_supplemental-web-slave() {
    pkgdesc="supplemental-web package for slave backend"
    depends=('python2' 'func' 'python_aosd' 'LinHES-system>=2-50')
    conflicts="supplemental-web"
    cd $startdir
    mkdir -p $pkgdir/data/srv/httpd/
    cp -rp cgi $pkgdir/data/srv/httpd/
    chown -R root:root $pkgdir/data/srv/httpd/
    chmod -R 755 $pkgdir/data/srv/httpd/

    install -m755 -D $srcdir/slaveserve.py $pkgdir/data/srv/httpd/cgi/slaveserve.py
    #sudo rules
    install -D -m400 $startdir/src/supplemental_slave.rules $pkgdir/etc/sudoers.d/supplemental_slave
    chmod 750 $pkgdir/etc/sudoers.d


    }




md5sums=('a2497205c92ad5b3aa565574afbf7f80'
         '3d8c7b430c1319d706ca420825918d2a'
         '26598fd1dfaf5d36d7b1f9620da5543c'
         'fabf825ca07502db40d78f0aae15f90b'
         'b41eeb0f0aa67ea06aedff61e53fa774'
         'd7be6bc265b2b9e775b090b6ac2448da')