wok-4.x rev 11689

ntop: update bdep
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 18 17:18:01 2012 +0100 (2012-02-18)
parents fcb3e7fb7bfa
children ea3814974a25
files ntop/receipt ntop/stuff/etc/init.d/ntop partimage/receipt partimage/stuff/etc/init.d/partimaged
line diff
     1.1 --- a/ntop/receipt	Sat Feb 18 17:02:28 2012 +0100
     1.2 +++ b/ntop/receipt	Sat Feb 18 17:18:01 2012 +0100
     1.3 @@ -13,7 +13,7 @@
     1.4  
     1.5  DEPENDS="zlib openssl libpng libpcap glibc gdbm rrdtool perl pcre geoip"
     1.6  BUILD_DEPENDS="zlib-dev openssl-dev libpng-dev libpcap-dev libtool glibc-dev gdbm-dev rrdtool \
     1.7 - autoconf automake rrdtool-dev wget geoip-dev "
     1.8 + autoconf automake rrdtool-dev wget geoip-dev libwrap"
     1.9  
    1.10  # Rules to configure and make the package.
    1.11  compile_rules()
     2.1 --- a/ntop/stuff/etc/init.d/ntop	Sat Feb 18 17:02:28 2012 +0100
     2.2 +++ b/ntop/stuff/etc/init.d/ntop	Sat Feb 18 17:18:01 2012 +0100
     2.3 @@ -22,7 +22,7 @@
     2.4  
     2.5  case "$1" in
     2.6    start)
     2.7 -    if [ -f $PIDFILE ] ; then
     2.8 +    if active_pidfile $PIDFILE $NAME ; then
     2.9        echo "$NAME already running."
    2.10        exit 1
    2.11      fi
    2.12 @@ -35,7 +35,7 @@
    2.13      status
    2.14      ;;
    2.15    stop)
    2.16 -    if [ ! -f $PIDFILE ] ; then
    2.17 +    if ! active_pidfile $PIDFILE $NAME ; then
    2.18        echo "$NAME is not running."
    2.19        exit 1
    2.20      fi
    2.21 @@ -44,7 +44,7 @@
    2.22      status
    2.23      ;;
    2.24    restart)
    2.25 -    if [ ! -f $PIDFILE ] ; then
    2.26 +    if ! active_pidfile $PIDFILE $NAME ; then
    2.27        echo "$NAME is not running."
    2.28        exit 1
    2.29      fi
     3.1 --- a/partimage/receipt	Sat Feb 18 17:02:28 2012 +0100
     3.2 +++ b/partimage/receipt	Sat Feb 18 17:18:01 2012 +0100
     3.3 @@ -26,7 +26,7 @@
     3.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     3.5  genpkg_rules()
     3.6  {
     3.7 -	mkdir -p $fs/usr $fs/etc/init.d
     3.8 +	mkdir -p $fs/usr $fs/etc/init.d $fs/var/lib/partimaged
     3.9  	cp -a $_pkg/usr/sbin $fs/usr
    3.10  	cp -a $_pkg/etc $fs/
    3.11  	install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
     4.1 --- a/partimage/stuff/etc/init.d/partimaged	Sat Feb 18 17:02:28 2012 +0100
     4.2 +++ b/partimage/stuff/etc/init.d/partimaged	Sat Feb 18 17:18:01 2012 +0100
     4.3 @@ -22,7 +22,7 @@
     4.4  	
     4.5  case "$1" in
     4.6      start)
     4.7 -   	if [ -f $PIDFILE ] ; then
     4.8 +	if active_pidfile $PIDFILE $NAME ; then
     4.9        		echo "$NAME already running."
    4.10        		exit 1
    4.11      	fi
    4.12 @@ -38,7 +38,7 @@
    4.13      	fi
    4.14  	;;
    4.15      stop)
    4.16 -        if [ ! -f $PIDFILE ] ; then
    4.17 +	if ! active_pidfile $PIDFILE $NAME ; then
    4.18             echo "$NAME is not running."
    4.19             exit 1
    4.20          fi