wok-current annotate iptraf/receipt @ rev 20313
linux, openssh: add tcp_stealth patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 18 13:47:33 2018 +0200 (2018-05-18) |
parents | dab2061f6f23 |
children | 27f3dea23598 |
rev | line source |
---|---|
pascal@10906 | 1 # SliTaz package receipt. |
pascal@10906 | 2 |
pascal@10906 | 3 PACKAGE="iptraf" |
pascal@10906 | 4 VERSION="3.0.0" |
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@10906 | 10 WEB_SITE="http://$PACKAGE.seul.org/" |
pascal@10906 | 11 WGET_URL="ftp://$PACKAGE.seul.org/pub/$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@10906 | 17 # Rules to configure and make the package. |
pascal@10906 | 18 compile_rules() |
pascal@10906 | 19 { |
pascal@10906 | 20 cd $src/src |
pascal@20212 | 21 sed -i 's|uname -m|echo i486|' Makefile |
pascal@17673 | 22 sed -i 's/lncurses/& -ltinfo/' Makefile |
pascal@10906 | 23 mkdir -p $DESTDIR/usr/bin 2> /dev/null |
pascal@10906 | 24 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c |
pascal@10906 | 25 sed -i 's|/local/|/|' Makefile |
pascal@10906 | 26 make clean && |
pascal@10906 | 27 make && |
pascal@10906 | 28 cp rvnamed rawtime iptraf $DESTDIR/usr/bin |
pascal@10906 | 29 } |
pascal@10906 | 30 |
pascal@10906 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@10906 | 32 genpkg_rules() |
pascal@10906 | 33 { |
al@18943 | 34 mkdir -p $fs/var/iptraf $fs/var/log/iptraf |
mojo@14993 | 35 cp -a $install/* $fs |
pascal@10906 | 36 } |
al@18943 | 37 |
al@18943 | 38 post_install() |
al@18943 | 39 { |
al@18943 | 40 mkdir -p "$1/var/run/iptraf" |
al@18943 | 41 } |
al@18943 | 42 |
al@18943 | 43 post_remove() |
al@18943 | 44 { |
al@18943 | 45 rm -r "$1/var/run/iptraf" |
al@18943 | 46 } |