wok-6.x annotate arpwatch/receipt @ rev 9521

Add arpwatch.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Apr 07 08:27:54 2011 +0000 (2011-04-07)
parents
children 1e19a2f13637
rev   line source
slaxemulator@9521 1 # SliTaz package receipt.
slaxemulator@9521 2
slaxemulator@9521 3 PACKAGE="arpwatch"
slaxemulator@9521 4 VERSION="2.1a15"
slaxemulator@9521 5 CATEGORY="network"
slaxemulator@9521 6 SHORT_DESC="arpwatch and arpsnmp network monitoring tools"
slaxemulator@9521 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@9521 8 DEPENDS="libpcap"
slaxemulator@9521 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@9521 10 WEB_SITE="ftp://ftp.ee.lbl.gov"
slaxemulator@9521 11 WGET_URL="$WEB_SITE/$TARBALL"
slaxemulator@9521 12
slaxemulator@9521 13 # Rules to configure and make the package.
slaxemulator@9521 14 compile_rules()
slaxemulator@9521 15 {
slaxemulator@9521 16 cd $src
slaxemulator@9521 17 sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
slaxemulator@9521 18 sed -i 's|-o bin -g bin||' Makefile.in
slaxemulator@9521 19 ./configure &&
slaxemulator@9521 20 make SENDMAIL=/usr/sbin/sendmail &&
slaxemulator@9521 21 install -d -m 755 $DESTDIR/usr/sbin
slaxemulator@9521 22 make install
slaxemulator@9521 23 }
slaxemulator@9521 24
slaxemulator@9521 25 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9521 26 genpkg_rules()
slaxemulator@9521 27 {
slaxemulator@9521 28 mkdir -p $fs/usr
slaxemulator@9521 29 cp -a $_pkg/usr/sbin $fs/usr
slaxemulator@9521 30 install -d -m 0755 $fs/var/lib/arpwatch
slaxemulator@9521 31 touch $fs/var/lib/arpwatch/arp.dat
slaxemulator@9521 32 }
slaxemulator@9521 33