wok annotate iptraf/receipt @ rev 25361
sshrc: typo in wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 27 16:25:20 2022 +0000 (2022-07-27) |
parents | bc2b9d9bed6f |
children |
rev | line source |
---|---|
pascal@10906 | 1 # SliTaz package receipt. |
pascal@10906 | 2 |
pascal@10906 | 3 PACKAGE="iptraf" |
pascal@24937 | 4 VERSION="3.0.2" |
pascal@10906 | 5 CATEGORY="network" |
pascal@10906 | 6 SHORT_DESC="IP Network Monitoring Software." |
pascal@10906 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15600 | 8 LICENSE="GPL2" |
pascal@10906 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24937 | 10 WEB_SITE="http://www.penguin.cz/~fojtik/iptraf/" |
pascal@24937 | 11 WGET_URL="http://www.penguin.cz/~fojtik/$PACKAGE/$TARBALL" |
al@18937 | 12 CONFIG_FILES="/var/iptraf/iptraf.cfg" |
pascal@15600 | 13 |
pascal@10906 | 14 DEPENDS="ncurses" |
pascal@10906 | 15 BUILD_DEPENDS="ncurses-dev" |
pascal@10906 | 16 |
pascal@24445 | 17 # What is the latest version available today? |
pascal@24445 | 18 current_version() |
pascal@24445 | 19 { |
pascal@24937 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24937 | 21 sed '/tar.gz/!d;s|.*=iptraf-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24445 | 22 } |
pascal@24445 | 23 |
pascal@10906 | 24 # Rules to configure and make the package. |
pascal@10906 | 25 compile_rules() |
pascal@10906 | 26 { |
pascal@10906 | 27 cd $src/src |
pascal@20603 | 28 sed -i 's|linux/if_tr|netinet/if_tr|' tcptable.h *.c |
pascal@20212 | 29 sed -i 's|uname -m|echo i486|' Makefile |
pascal@17673 | 30 sed -i 's/lncurses/& -ltinfo/' Makefile |
pascal@10906 | 31 mkdir -p $DESTDIR/usr/bin 2> /dev/null |
pascal@10906 | 32 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c |
pascal@10906 | 33 sed -i 's|/local/|/|' Makefile |
pascal@10906 | 34 make clean && |
pascal@10906 | 35 make && |
pascal@10906 | 36 cp rvnamed rawtime iptraf $DESTDIR/usr/bin |
pascal@10906 | 37 } |
pascal@10906 | 38 |
pascal@10906 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@10906 | 40 genpkg_rules() |
pascal@10906 | 41 { |
al@18943 | 42 mkdir -p $fs/var/iptraf $fs/var/log/iptraf |
mojo@14993 | 43 cp -a $install/* $fs |
pascal@10906 | 44 } |
al@18943 | 45 |
al@18943 | 46 post_install() |
al@18943 | 47 { |
al@18943 | 48 mkdir -p "$1/var/run/iptraf" |
al@18943 | 49 } |
al@18943 | 50 |
al@18943 | 51 post_remove() |
al@18943 | 52 { |
al@18943 | 53 rm -r "$1/var/run/iptraf" |
al@18943 | 54 } |