wok-next annotate iptraf/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 466bca9334ef |
children | d5aab818505e |
rev | line source |
---|---|
al@21017 | 1 # SliTaz package receipt v2. |
pascal@10906 | 2 |
pascal@10906 | 3 PACKAGE="iptraf" |
pascal@10906 | 4 VERSION="3.0.0" |
pascal@10906 | 5 CATEGORY="network" |
al@21017 | 6 SHORT_DESC="IP Network Monitoring Software" |
pascal@10906 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15600 | 8 LICENSE="GPL2" |
al@21017 | 9 WEB_SITE="http://$PACKAGE.seul.org/" |
al@21017 | 10 |
pascal@10906 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@21017 | 12 WGET_URL="ftp://iptraf.seul.org/pub/$PACKAGE/$TARBALL" |
pascal@15600 | 13 |
pascal@10906 | 14 BUILD_DEPENDS="ncurses-dev" |
pascal@10906 | 15 |
al@21017 | 16 compile_rules() { |
pascal@10906 | 17 cd $src/src |
pascal@10906 | 18 mkdir -p $DESTDIR/usr/bin 2> /dev/null |
pascal@10906 | 19 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c |
pascal@10906 | 20 sed -i 's|/local/|/|' Makefile |
al@21017 | 21 |
pascal@10906 | 22 make clean && |
pascal@10906 | 23 make && |
pascal@10906 | 24 cp rvnamed rawtime iptraf $DESTDIR/usr/bin |
pascal@10906 | 25 } |
pascal@10906 | 26 |
al@21017 | 27 genpkg_rules() { |
al@18943 | 28 mkdir -p $fs/var/iptraf $fs/var/log/iptraf |
mojo@14993 | 29 cp -a $install/* $fs |
al@21017 | 30 DEPENDS="ncurses" |
al@21017 | 31 CONFIG_FILES="/var/iptraf/iptraf.cfg" |
pascal@10906 | 32 } |
al@18943 | 33 |
al@21017 | 34 post_install() { |
al@18943 | 35 mkdir -p "$1/var/run/iptraf" |
al@18943 | 36 } |
al@18943 | 37 |
al@21017 | 38 post_remove() { |
al@18943 | 39 rm -r "$1/var/run/iptraf" |
al@18943 | 40 } |