updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / beltane / PKGBUILD
blob4d5aacbf6512ca13c3c14811e9b796673ae5aaa1
1 # Contributor: Brad Arrington bradla8 at yahoo.com
3 pkgname=beltane
4 pkgver=1.0.17
5 pkgrel=2
6 pkgdesc="A web-based central management console for the Samhain file integrity / intrusion detection system"
7 arch=(i686 x86_64)
8 url="http://www.la-samhna.de/beltane/index.html"
9 license=('GPL')
10 depends=('gcc' 'samhain' 'php')
11 source=(http://www.la-samhna.de/beltane/beltane-1.0.17.tar.gz)
13 md5sums=('ae739f42fa94aeb3fa7ffed0e261a5c6')
15 build() {
16         mkdir -p ${pkgdir}/srv/http/beltane/beltane_help
17         chmod -R 0755 $pkgdir/srv/http/beltane/beltane_help
18         mkdir -p $pkgdir/var/lib/yule
19         mkdir $pkgdir/var/lib/yule/profiles
20         mkdir -p $pkgdir/usr/bin
21         mkdir $pkgdir/srv/http/beltane/js
22         mkdir $pkgdir/srv/http/beltane/pix
23   
24         chgrp root /var/lib/yule
25         chmod g+rx /var/lib/yule
26         chgrp root /var/lib/yule/profiles
27         chmod g+rwx /var/lib/yule/profiles
29         cd "${srcdir}/${pkgname}-${pkgver}"
30         ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-php-dir=/srv/http/beltane
31         make 
33         install -c -s -m 755 beltane_update $pkgdir/usr/bin/beltane_update
34         install -c -s -m 755 beltane_cp $pkgdir/usr/bin/beltane_cp
35         install -c -m 755 php/auth.cgi $pkgdir/srv/http/beltane/auth.cgi
36         install -c -m 755 php/clients.cgi $pkgdir/srv/http/beltane/clients.cgi
37         install -c -m 755 php/index.cgi $pkgdir/srv/http/beltane/index.cgi
38         install -c -m 755 php/menu.cgi $pkgdir/srv/http/beltane/menu.cgi
39         install -c -m 755 php/configure.cgi $pkgdir/srv/http/beltane/configure.cgi
40         install -c -m 755 php/messages.cgi $pkgdir/srv/http/beltane/messages.cgi
41         install -c -m 755 php/sigupdate.cgi $pkgdir/srv/http/beltane/sigupdate.cgi
42         install -c -m 755 php/serverStatus.cgi $pkgdir/srv/http/beltane/serverStatus.cgi
43         install -c -m 644 php/auth_check.inc $pkgdir/srv/http/beltane/auth_check.cgi
44         install -c -m 644 php/config.inc $pkgdir/srv/http/beltane/config.cgi
45         install -c -m 644 php/db.inc $pkgdir/srv/http/beltane/db.cgi
46         install -c -m 644 php/sql.inc $pkgdir/srv/http/beltane/sql.cgi
47         install -c -m 644 php/js/changeimg.js $pkgdir/srv/http/beltane/js/changeimg.js
48         install -c -m 644 php/js/md5.js $pkgdir/srv/http/beltane/js/md5.js
49         install -c -m 644 php/js/sel.js $pkgdir/srv/http/beltane/js/sel.js
50         install -c -m 644 php/js/overlib.js $pkgdir/srv/http/beltane/js/overlib.js
51         install -c -m 644 php/js/overlib_custom.js $pkgdir/srv/http/beltane/js/overlib_custom.js
52         install -c -m 644 php/js/cr.js $pkgdir/srv/http/beltane/js/cr.js
53         install -c -m 644 php/pix/dl.png $pkgdir/srv/http/beltane/pix/dl.png
54         install -c -m 644 php/pix/dl_hi.png $pkgdir/srv/http/beltane/pix/dl_hi.png
55         install -c -m 644 php/pix/dl_ok.png $pkgdir/srv/http/beltane/pix/dl_ok.png
56         install -c -m 644 php/pix/dl_ok_hi.png $pkgdir/srv/http/beltane/pix/dl_ok_hi.png
57         install -c -m 644 php/pix/dr.png $pkgdir/srv/http/beltane/pix/dr.png
58         install -c -m 644 php/pix/d_sstatus.png $pkgdir/srv/http/beltane/pix/d_sstatus.png
59         install -c -m 644 php/pix/d_sstatus_hi.png $pkgdir/srv/http/beltane/pix/d_sstatus_hi.png
60         install -c -m 644 php/pix/dr_cancel.png $pkgdir/srv/http/beltane/pix/dr_cancel.png
61         install -c -m 644 php/pix/dr_cancel_hi.png $pkgdir/srv/http/beltane/pix/dr_cancel_hi.png
62         install -c -m 644 php/pix/dr_hi.png $pkgdir/srv/http/beltane/pix/dr_hi.png
63         install -c -m 644 php/pix/d_undo.png $pkgdir/srv/http/beltane/pix/d_undo.png
64         install -c -m 644 php/pix/d_undo_hi.png $pkgdir/srv/http/beltane/pix/d_undo_hi.png
65         install -c -m 644 php/pix/d_update.png $pkgdir/srv/http/beltane/pix/d_update.png
66         install -c -m 644 php/pix/d_update_hi.png $pkgdir/srv/http/beltane/pix/d_update_hi.png
67         install -c -m 644 php/pix/d_selectall.png $pkgdir/srv/http/beltane/pix/d_selectall.png
68         install -c -m 644 php/pix/d_confirm.png $pkgdir/srv/http/beltane/pix/d_confirm.png
69         install -c -m 644 php/pix/d_reset.png $pkgdir/srv/http/beltane/pix/d_reset.png
70         install -c -m 644 php/pix/d_selectall_hi.png $pkgdir/srv/http/beltane/pix/d_selectall_hi.png
71         install -c -m 644 php/pix/d_confirm_hi.png $pkgdir/srv/http/beltane/pix/d_confirm_hi.png
72         install -c -m 644 php/pix/d_reset_hi.png $pkgdir/srv/http/beltane/pix/d_reset_hi.png
73         install -c -m 644 php/pix/logo.png $pkgdir/srv/http/beltane/pix/logo.png
74         install -c -m 644 php/pix/logo_f3f3f3.png $pkgdir/srv/http/beltane/pix/logo_f3f3f3.png
75         install -c -m 644 php/pix/ul.png $pkgdir/srv/http/beltane/pix/ul.png
76         install -c -m 644 php/pix/ul_hi.png $pkgdir/srv/http/beltane/pix/ul_hi.png
77         install -c -m 644 php/pix/ur.png $pkgdir/srv/http/beltane/pix/ur.png
78         install -c -m 644 php/pix/ur_hi.png $pkgdir/srv/http/beltane/pix/ur_hi.png
79         install -c -m 644 php/pix/valid-xhtml10.png $pkgdir/srv/http/beltane/pix/valid-xhtml10.png
80         install -c -m 644 php/pix/i_alrt.png $pkgdir/srv/http/beltane/pix/i_alrt.png
81         install -c -m 644 php/pix/i_crit.png $pkgdir/srv/http/beltane/pix/i_crit.png
82         install -c -m 644 php/pix/i_erro.png $pkgdir/srv/http/beltane/pix/i_erro.png
83         install -c -m 644 php/pix/i_info.png $pkgdir/srv/http/beltane/pix/i_info.png
84         install -c -m 644 php/pix/i_none.png $pkgdir/srv/http/beltane/pix/i_none.png
85         install -c -m 644 php/pix/i_warn.png $pkgdir/srv/http/beltane/pix/i_warn.png
86         install -c -m 644 php/pix/onepix.gif $pkgdir/srv/http/beltane/pix/onepix.gif
87         install -c -m 644 php/beltane_formate.css $pkgdir/srv/http/beltane/beltane_formate.css
88         install -c -m 644 php/index.html $pkgdir/srv/http/beltane/index.html
89         install -c -m 644 php/valid.html $pkgdir/srv/http/beltane/valid.html
90         install -c -m 644 php/cruft.html $pkgdir/srv/http/beltane/cruft.html
91         install -c -m 644 php/control.html $pkgdir/srv/http/beltane/control.html
92         install -c -m 644 php/logo.html $pkgdir/srv/http/beltane/logo.html
93         mkdir -p $pkgdir/etc/php
94         install -c -m 600 php/beltanerc $pkgdir/etc/php/beltanerc
95         # chown root:root $pkgdir/etc/php/beltanerc
96         chown -R root:root $pkgdir/srv/http/beltane