wok-next annotate iptraf/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 32f49bd14509
children
rev   line source
al@21017 1 # SliTaz package receipt v2.
pascal@10906 2
pascal@10906 3 PACKAGE="iptraf"
Hans-G?nter@21315 4 VERSION="3.0.1"
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@21020 9 WEB_SITE="http://iptraf.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"
Hans-G?nter@21362 13 WGET_URL="http://www.penguin.cz/~fojtik/$PACKAGE/$TARBALL"
pascal@15600 14
Hans-G?nter@21315 15 BUILD_DEPENDS="glibc-dev ncurses-dev"
pascal@10906 16
Hans-G?nter@21315 17 compile_rules()
Hans-G?nter@21315 18 {
pascal@10906 19 cd $src/src
al@21020 20 mkdir -p $install/usr/bin 2> /dev/null
pascal@10906 21 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c
pascal@10906 22 sed -i 's|/local/|/|' Makefile
al@21017 23
pascal@10906 24 make clean &&
pascal@10906 25 make &&
Hans-G?nter@21362 26 cp iptraf $install/usr/bin
Hans-G?nter@21362 27 cp rawtime $install/usr/bin
Hans-G?nter@21362 28 cp rvnamed $install/usr/bin
pascal@10906 29 }
pascal@10906 30
Hans-G?nter@21315 31 genpkg_rules()
Hans-G?nter@21315 32 {
Hans-G?nter@21315 33 mkdir -p $fs/var/iptraf
Hans-G?nter@21315 34 mkdir -p $fs/var/log/iptraf
Hans-G?nter@21315 35
mojo@14993 36 cp -a $install/* $fs
Hans-G?nter@21315 37
al@21017 38 DEPENDS="ncurses"
al@21017 39 CONFIG_FILES="/var/iptraf/iptraf.cfg"
pascal@10906 40 }
al@18943 41
Hans-G?nter@21315 42 post_install()
Hans-G?nter@21315 43 {
al@18943 44 mkdir -p "$1/var/run/iptraf"
al@18943 45 }
al@18943 46
Hans-G?nter@21315 47 post_remove()
Hans-G?nter@21315 48 {
al@18943 49 rm -r "$1/var/run/iptraf"
al@18943 50 }