1 # Contributor: Roberto Alsina <ralsina@kde.org>
5 pkgdesc="A system and network monitoring tool"
7 url="http://argus.tcp4me.com/"
8 license=('custom:artistic')
9 depends=('fping' 'perl')
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')
21 cd $startdir/src/$pkgname-$pkgver
23 # This Makefile is created by the interactive Configure script and should
24 # be regenerated for each new version of argus
28 make DESTDIR=$startdir/pkg install || exit 1
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/
36 # Fix broken paths :-(
38 pushd $startdir/pkg/opt
40 for _f in argus/lib/picasso \
45 argus/bin/argus-config \
46 argus/cgi-bin/argusvxml \
47 argus/cgi-bin/arguscgi
49 sed -i -e 's/\.\.\/\.\.\/pkg//' $_f
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