wok-4.x rev 9521

Add arpwatch.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Apr 07 08:27:54 2011 +0000 (2011-04-07)
parents 0f7b9582fbaf
children 5af4199c207b
files arpwatch/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/arpwatch/receipt	Thu Apr 07 08:27:54 2011 +0000
     1.3 @@ -0,0 +1,33 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="arpwatch"
     1.7 +VERSION="2.1a15"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="arpwatch and arpsnmp network monitoring tools"
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="libpcap"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="ftp://ftp.ee.lbl.gov"
    1.14 +WGET_URL="$WEB_SITE/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
    1.21 +	sed -i 's|-o bin -g bin||' Makefile.in
    1.22 +	./configure && 
    1.23 +	make SENDMAIL=/usr/sbin/sendmail &&
    1.24 +	install -d -m 755 $DESTDIR/usr/sbin
    1.25 +	make install
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	mkdir -p $fs/usr
    1.32 +	cp -a $_pkg/usr/sbin $fs/usr
    1.33 +	install -d -m 0755 $fs/var/lib/arpwatch
    1.34 +	touch $fs/var/lib/arpwatch/arp.dat
    1.35 +}
    1.36 +