updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / argus / PKGBUILD
blob858cccd8dfaeb54e4c5e44cbe0e10f71dcb1f887
1 # Contributor: Roberto Alsina <ralsina@kde.org>
2 pkgname=argus
3 pkgver=3.5
4 pkgrel=6
5 pkgdesc="A system and network monitoring tool"
6 arch=('i686')
7 url="http://argus.tcp4me.com/"
8 license=('custom:artistic')
9 depends=('fping' 'perl')
10 makedepends=('perl')
11 install=argus.install
12 source=(http://www.tcp4me.com/code/argus-archive/$pkgname-$pkgver.tgz \
13         Makefile argusd.init argus.runit)
15 md5sums=('7a946b17a61edeb1b455f2ab45acf77d'
16          '5dfbe988c6aed6e63e5514c165c8689f'
17          '22a0bf5f02551f538a3c0233d39a845e'
18          '731fdfa40ad098140a81c44fc8865fdf')
19   
20 build() {
21   cd $startdir/src/$pkgname-$pkgver
22   
23   # This Makefile is created by the interactive Configure script and should
24   # be regenerated for each new version of argus
25   cp ../Makefile .
26   make || return 1
27   
28   make DESTDIR=$startdir/pkg install || exit 1
29   
30   # Fix broken permissions, the Makefile is crap at this :-(
31   chmod 744 $startdir/pkg/opt/argus/var/ $startdir/pkg/opt/argus/var/gcache/ $startdir/pkg/opt/argus/var/locale/de_DE \
32                       $startdir/pkg/opt/argus/var/locale/sp_ar $startdir/pkg/opt/argus/var/locale/nl_NL \
33                       $startdir/pkg/opt/argus/var/locale/lt_LT $startdir/pkg/opt/argus/var/perl/ \
34                       $startdir/pkg/opt/argus/var/gdata/
35     
36   # Fix broken paths :-(
37   
38   pushd $startdir/pkg/opt
39   
40   for _f in argus/lib/picasso \
41                 argus/lib/graphd \
42                 argus/lib/conf.pl \
43                 argus/sbin/argusctl \
44                 argus/sbin/argusd \
45                 argus/bin/argus-config \
46                 argus/cgi-bin/argusvxml \
47                 argus/cgi-bin/arguscgi
48   do
49     sed -i -e 's/\.\.\/\.\.\/pkg//' $_f
50   done
52   popd
54     
55   install -d $startdir/pkg/etc/rc.d
56   install -m0755 ../argusd.init $startdir/pkg/etc/rc.d
57   install -m0755 -D ../argus.runit $startdir/pkg/etc/sv/argus/run
58   install -D Artistic $startdir/pkg/usr/share/licenses/$pkgname/COPYING