wok-next annotate arpwatch/receipt @ rev 14213

Up: firefox-langpack-* (17.0.4esr)
author Dominique Corbex <domcox@slitaz.org>
date Sat Mar 16 21:33:14 2013 +0100 (2013-03-16)
parents 1e19a2f13637
children d7486a2cc6d9
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"
erjo@9885 9 BUILD_DEPENDS="libpcap-dev"
slaxemulator@9521 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@9521 11 WEB_SITE="ftp://ftp.ee.lbl.gov"
slaxemulator@9521 12 WGET_URL="$WEB_SITE/$TARBALL"
slaxemulator@9521 13
slaxemulator@9521 14 # Rules to configure and make the package.
slaxemulator@9521 15 compile_rules()
slaxemulator@9521 16 {
slaxemulator@9521 17 cd $src
slaxemulator@9521 18 sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
slaxemulator@9521 19 sed -i 's|-o bin -g bin||' Makefile.in
slaxemulator@10050 20 ./configure $CONFIGURE_ARGS &&
erjo@9885 21 make &&
slaxemulator@9521 22 install -d -m 755 $DESTDIR/usr/sbin
slaxemulator@9521 23 make install
erjo@9885 24
erjo@9885 25 #~ SENDMAIL=/usr/sbin/sendmail
slaxemulator@9521 26 }
slaxemulator@9521 27
slaxemulator@9521 28 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9521 29 genpkg_rules()
slaxemulator@9521 30 {
slaxemulator@9521 31 mkdir -p $fs/usr
slaxemulator@9521 32 cp -a $_pkg/usr/sbin $fs/usr
slaxemulator@9521 33 install -d -m 0755 $fs/var/lib/arpwatch
slaxemulator@9521 34 touch $fs/var/lib/arpwatch/arp.dat
slaxemulator@9521 35 }
slaxemulator@9521 36