wok-6.x annotate arpwatch/receipt @ rev 24867
updated lvm2, lvm2-dev, libdevmapper and libdevmapper-dev (2.03.08 -> 2.03.15)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 30 17:27:13 2022 +0100 (2022-03-30) |
parents | 11b5e93cb5f2 |
children | 74692b14e380 |
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" |
pascal@15245 | 8 LICENSE="BSD" |
al@19275 | 9 WEB_SITE="ftp://ftp.ee.lbl.gov/" |
slaxemulator@9521 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19275 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
slaxemulator@9521 | 12 |
pascal@15245 | 13 DEPENDS="libpcap" |
pascal@15245 | 14 BUILD_DEPENDS="libpcap-dev" |
pascal@15245 | 15 |
pascal@24373 | 16 # What is the latest version available today? |
pascal@24373 | 17 current_version() |
pascal@24373 | 18 { |
pascal@24373 | 19 wget -O - https://ee.lbl.gov/downloads/arpwatch/ 2>/dev/null | \ |
pascal@24373 | 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24373 | 21 } |
pascal@24373 | 22 |
slaxemulator@9521 | 23 # Rules to configure and make the package. |
slaxemulator@9521 | 24 compile_rules() |
slaxemulator@9521 | 25 { |
slaxemulator@9521 | 26 sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in |
slaxemulator@9521 | 27 sed -i 's|-o bin -g bin||' Makefile.in |
al@19267 | 28 ./configure $CONFIGURE_ARGS && |
pascal@15265 | 29 make && |
slaxemulator@9521 | 30 install -d -m 755 $DESTDIR/usr/sbin |
slaxemulator@9521 | 31 make install |
erjo@9885 | 32 |
erjo@9885 | 33 #~ SENDMAIL=/usr/sbin/sendmail |
al@19267 | 34 |
al@19275 | 35 cook_pick_manpages $src/*.8 |
slaxemulator@9521 | 36 } |
slaxemulator@9521 | 37 |
slaxemulator@9521 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9521 | 39 genpkg_rules() |
slaxemulator@9521 | 40 { |
slaxemulator@9521 | 41 mkdir -p $fs/usr |
pascal@15245 | 42 cp -a $install/usr/sbin $fs/usr |
slaxemulator@9521 | 43 install -d -m 0755 $fs/var/lib/arpwatch |
slaxemulator@9521 | 44 touch $fs/var/lib/arpwatch/arp.dat |
slaxemulator@9521 | 45 } |