wok annotate arpwatch/receipt @ rev 25507
plop: cleanup
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 11 10:36:59 2023 +0000 (21 months ago) |
parents | 74692b14e380 |
children |
rev | line source |
---|---|
slaxemulator@9521 | 1 # SliTaz package receipt. |
slaxemulator@9521 | 2 |
slaxemulator@9521 | 3 PACKAGE="arpwatch" |
Hans-G?nter@25127 | 4 VERSION="3.1" |
slaxemulator@9521 | 5 CATEGORY="network" |
Hans-G?nter@25127 | 6 SHORT_DESC="Arpwatch and arpsnmp network monitoring tools." |
slaxemulator@9521 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15245 | 8 LICENSE="BSD" |
pascal@25438 | 9 WEB_SITE="https://ee.lbl.gov/" |
Hans-G?nter@25127 | 10 |
slaxemulator@9521 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25127 | 12 WGET_URL="https://ee.lbl.gov/downloads/$PACKAGE/$TARBALL" |
slaxemulator@9521 | 13 |
pascal@15245 | 14 DEPENDS="libpcap" |
pascal@15245 | 15 BUILD_DEPENDS="libpcap-dev" |
pascal@15245 | 16 |
pascal@24373 | 17 # What is the latest version available today? |
pascal@24373 | 18 current_version() |
pascal@24373 | 19 { |
pascal@24373 | 20 wget -O - https://ee.lbl.gov/downloads/arpwatch/ 2>/dev/null | \ |
pascal@24373 | 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24373 | 22 } |
pascal@24373 | 23 |
slaxemulator@9521 | 24 # Rules to configure and make the package. |
slaxemulator@9521 | 25 compile_rules() |
slaxemulator@9521 | 26 { |
slaxemulator@9521 | 27 sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in |
slaxemulator@9521 | 28 sed -i 's|-o bin -g bin||' Makefile.in |
Hans-G?nter@25127 | 29 ./configure \ |
Hans-G?nter@25127 | 30 --mandir=/usr/share/man \ |
Hans-G?nter@25127 | 31 --sysconfdir=/etc \ |
Hans-G?nter@25127 | 32 $CONFIGURE_ARGS && |
pascal@15265 | 33 make && |
slaxemulator@9521 | 34 install -d -m 755 $DESTDIR/usr/sbin |
Hans-G?nter@25127 | 35 install -d -m 755 $DESTDIR/usr/share/man/man8 |
Hans-G?nter@25127 | 36 install -d -m 755 $DESTDIR/usr/etc/rc.d |
Hans-G?nter@25127 | 37 make install && |
erjo@9885 | 38 |
erjo@9885 | 39 #~ SENDMAIL=/usr/sbin/sendmail |
al@19267 | 40 |
al@19275 | 41 cook_pick_manpages $src/*.8 |
slaxemulator@9521 | 42 } |
slaxemulator@9521 | 43 |
slaxemulator@9521 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9521 | 45 genpkg_rules() |
slaxemulator@9521 | 46 { |
Hans-G?nter@25127 | 47 cook_copy_folders sbin |
Hans-G?nter@25127 | 48 install -d -m 0755 $fs/var/lib/arpwatch |
Hans-G?nter@25127 | 49 touch $fs/var/lib/arpwatch/arp.dat |
slaxemulator@9521 | 50 } |