wok-current diff vnstat/receipt @ rev 22503

updated aspell-pt_PT (20070510-0 -> 20190329.1.0)
author Hans-G?nter Theisgen
date Wed Jan 01 10:04:38 2020 +0100 (2020-01-01)
parents 6135577f4d08
children 1c8bb7fdb913
line diff
     1.1 --- a/vnstat/receipt	Sat Jan 26 12:26:47 2019 +0100
     1.2 +++ b/vnstat/receipt	Wed Jan 01 10:04:38 2020 +0100
     1.3 @@ -1,28 +1,31 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="vnstat"
     1.7 -VERSION="1.15"
     1.8 +VERSION="2.4"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="Console-based network monitoring utility"
    1.11 +SHORT_DESC="Console-based network monitoring utility."
    1.12  MAINTAINER="al.bobylev@gmail.com"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="https://humdi.net/vnstat/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="${WEB_SITE}$TARBALL"
    1.18  
    1.19 -DEPENDS="busybox"
    1.20  SUGGESTED="libgd"
    1.21 -BUILD_DEPENDS="libgd-dev"
    1.22 +BUILD_DEPENDS="libgd-dev sqlite-dev"
    1.23  
    1.24  # Rules to configure and make the package.
    1.25  compile_rules()
    1.26  {
    1.27 -	./configure \
    1.28 -		--prefix=/usr \
    1.29 -		--sysconfdir=/etc \
    1.30 -	$CONFIGURE_ARGS &&
    1.31 -	make && make install
    1.32 +	./configure			\
    1.33 +		--prefix=/usr		\
    1.34 +		--sysconfdir=/etc	\
    1.35 +		$CONFIGURE_ARGS &&
    1.36 +	make &&
    1.37 +	make install
    1.38 +
    1.39  	find $install/usr/share/man -type f -exec gzip \{\} \;
    1.40 +
    1.41  	mkdir -p $install/etc/init.d
    1.42  	ln -s daemon $install/etc/init.d/vnstatd
    1.43  }
    1.44 @@ -36,10 +39,13 @@
    1.45  post_install()
    1.46  {
    1.47  	# Start vnstat daemon and edit daemons.conf
    1.48 -	if [ -z "$1" -a ! -s /aufs-umount.sh ]; then
    1.49 +	if [ -z "$1" -a ! -s /aufs-umount.sh ]
    1.50 +	  then
    1.51  		/etc/init.d/vnstatd start || continue
    1.52  	fi
    1.53 -	if ! grep -q ^VNSTATD_OPTIONS "$1/etc/daemons.conf"; then
    1.54 +
    1.55 +	if ! grep -q ^VNSTATD_OPTIONS "$1/etc/daemons.conf"
    1.56 +	  then
    1.57  		cat >> "$1/etc/daemons.conf" <<EOT
    1.58  # vnstat daemon options.
    1.59  VNSTATD_OPTIONS="-d -p /var/run/vnstatd.pid"
    1.60 @@ -50,7 +56,7 @@
    1.61  
    1.62  pre_remove()
    1.63  {
    1.64 -	# Stop vnstat daemon before rm.
    1.65 +	# Stop vnstat daemon before removing files.
    1.66  	[ -z "$1" -a -x /etc/init.d/vnstatd ] && /etc/init.d/vnstatd stop
    1.67  	:
    1.68  }