wok-6.x rev 13188

Up: logrotate to 3.8.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Aug 03 10:02:57 2012 +0000 (2012-08-03)
parents 96e4513829cd
children 1a2778defe0c
files logrotate/receipt
line diff
     1.1 --- a/logrotate/receipt	Fri Aug 03 08:06:59 2012 +0000
     1.2 +++ b/logrotate/receipt	Fri Aug 03 10:02:57 2012 +0000
     1.3 @@ -1,13 +1,13 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="logrotate"
     1.7 -VERSION="3.8.1"
     1.8 +VERSION="3.8.2"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Automatic rotation compression, removal of log files."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13  WEB_SITE="https://fedorahosted.org/logrotate/"
    1.14 -WGET_URL="http://www.sfr-fresh.com/unix/privat/$TARBALL"
    1.15 +WGET_URL="https://fedorahosted.org/releases/l/o/logrotate/$TARBALL"
    1.16  DEPENDS="popt"
    1.17  BUILD_DEPENDS="popt-dev"
    1.18  CONFIG_FILE="/etc/logrotate.conf"
    1.19 @@ -16,7 +16,7 @@
    1.20  compile_rules()
    1.21  {
    1.22  	cd $src
    1.23 -	make && make PREFIX=$src/_pkg install
    1.24 +	make && make PREFIX=$DESTDIR install
    1.25  }
    1.26  
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 @@ -25,7 +25,7 @@
    1.29  	mkdir -p $fs/usr $fs/etc
    1.30  	echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \
    1.31  	  > $fs/etc/logrotate.conf
    1.32 -	cp -a $_pkg/usr/sbin $fs/usr
    1.33 +	cp -a $install/usr/sbin $fs/usr
    1.34  }
    1.35  
    1.36  post_install()
    1.37 @@ -40,9 +40,9 @@
    1.38  
    1.39  post_remove()
    1.40  {
    1.41 -	if [ -f /var/spool/cron/crontabs/root ]; then
    1.42 +	if [ -f $1/var/spool/cron/crontabs/root ]; then
    1.43  		echo "Runing post install command..."
    1.44 -		sed -i s!.*logrotate.*!!  /var/spool/cron/crontabs/root
    1.45 +		sed -i s!.*logrotate.*!!  $1/var/spool/cron/crontabs/root
    1.46  	fi
    1.47  }
    1.48