wok rev 25400

updated vnstat (2.6 -> 2.9)
author Hans-G?nter Theisgen
date Tue Aug 02 14:50:42 2022 +0100 (2022-08-02)
parents 5fb9c98c2c90
children 91e76e479788
files vnstat/receipt
line diff
     1.1 --- a/vnstat/receipt	Tue Aug 02 14:18:25 2022 +0100
     1.2 +++ b/vnstat/receipt	Tue Aug 02 14:50:42 2022 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="vnstat"
     1.7 -VERSION="2.6"
     1.8 +VERSION="2.9"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Console-based network monitoring utility."
    1.11  MAINTAINER="al.bobylev@gmail.com"
    1.12 @@ -40,17 +40,14 @@
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16 -	cp -a $install/*	$fs
    1.17 +	cook_copy_folders	etc
    1.18 +	cook_copy_folders	bin
    1.19 +	cook_copy_folders	sbin
    1.20  }
    1.21  
    1.22  post_install()
    1.23  {
    1.24 -	# Start vnstat daemon and edit daemons.conf
    1.25 -	if [ -z "$1" -a ! -s /aufs-umount.sh ]
    1.26 -	  then
    1.27 -		/etc/init.d/vnstatd start || continue
    1.28 -	fi
    1.29 -
    1.30 +	# Edit daemons.conf
    1.31  	if ! grep -q ^VNSTATD_OPTIONS "$1/etc/daemons.conf"
    1.32  	  then
    1.33  		cat >> "$1/etc/daemons.conf" <<EOT
    1.34 @@ -59,11 +56,18 @@
    1.35  
    1.36  EOT
    1.37  	fi
    1.38 +
    1.39 +	# Start vnstat daemon
    1.40 +	if [ -z "$1" -a ! -s /aufs-umount.sh ]
    1.41 +	  then
    1.42 +		/etc/init.d/vnstatd start || continue
    1.43 +	fi
    1.44  }
    1.45  
    1.46  pre_remove()
    1.47  {
    1.48  	# Stop vnstat daemon before removing files.
    1.49 -	[ -z "$1" -a -x /etc/init.d/vnstatd ] && /etc/init.d/vnstatd stop
    1.50 +	[ -z "$1" -a -x /etc/init.d/vnstatd ] &&
    1.51 +	/etc/init.d/vnstatd stop
    1.52  	:
    1.53  }