wok-next rev 21315

updated iptraf (3.0.0 -> 3.0.1)
author Hans-G?nter Theisgen
date Tue Dec 10 16:53:07 2019 +0100 (2019-12-10)
parents b94b63f0df5a
children ee28ed2bfbee
files iptraf/receipt
line diff
     1.1 --- a/iptraf/receipt	Tue Dec 10 16:18:14 2019 +0100
     1.2 +++ b/iptraf/receipt	Tue Dec 10 16:53:07 2019 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="iptraf"
     1.7 -VERSION="3.0.0"
     1.8 +VERSION="3.0.1"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="IP Network Monitoring Software"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -11,9 +11,10 @@
    1.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14  WGET_URL="ftp://iptraf.seul.org/pub/$PACKAGE/$TARBALL"
    1.15  
    1.16 -BUILD_DEPENDS="ncurses-dev"
    1.17 +BUILD_DEPENDS="glibc-dev ncurses-dev"
    1.18  
    1.19 -compile_rules() {
    1.20 +compile_rules()
    1.21 +{
    1.22  	cd $src/src
    1.23  	mkdir -p $install/usr/bin 2> /dev/null
    1.24  	sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c
    1.25 @@ -24,17 +25,23 @@
    1.26  	cp rvnamed rawtime iptraf $install/usr/bin
    1.27  }
    1.28  
    1.29 -genpkg_rules() {
    1.30 -	mkdir -p $fs/var/iptraf $fs/var/log/iptraf
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/var/iptraf
    1.34 +	mkdir -p $fs/var/log/iptraf
    1.35 +
    1.36  	cp -a $install/* $fs
    1.37 +
    1.38  	DEPENDS="ncurses"
    1.39  	CONFIG_FILES="/var/iptraf/iptraf.cfg"
    1.40  }
    1.41  
    1.42 -post_install() {
    1.43 +post_install()
    1.44 +{
    1.45  	mkdir -p "$1/var/run/iptraf"
    1.46  }
    1.47  
    1.48 -post_remove() {
    1.49 +post_remove()
    1.50 +{
    1.51  	rm -r "$1/var/run/iptraf"
    1.52  }