wok rev 23141

updated logrotate (3.15.0 -> 3.16.0)
author Hans-G?nter Theisgen
date Sun Mar 15 07:40:05 2020 +0100 (14 months ago)
parents a49eeb7de1ea
children 2fbfc7e155f8
files logrotate/receipt
line diff
     1.1 --- a/logrotate/receipt	Sun Mar 15 07:01:36 2020 +0100
     1.2 +++ b/logrotate/receipt	Sun Mar 15 07:40:05 2020 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="logrotate"
     1.7 -VERSION="3.15.0"
     1.8 +VERSION="3.16.0"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Automatic rotation, compression, and removal of log files."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -13,6 +13,7 @@
    1.13  
    1.14  DEPENDS="popt"
    1.15  BUILD_DEPENDS="automake popt-dev"
    1.16 +
    1.17  CONFIG_FILES="/etc/logrotate.conf"
    1.18  
    1.19  # Rules to configure and make the package.
    1.20 @@ -35,12 +36,13 @@
    1.21  
    1.22  	echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \
    1.23  	  > $fs/etc/logrotate.conf
    1.24 -	cp -a $install/usr/sbin $fs/usr
    1.25 +	cp -a $install/usr/sbin	$fs/usr
    1.26  }
    1.27  
    1.28  post_install()
    1.29  {
    1.30 -	if [ -f "$1/var/spool/cron/crontabs/root" ]; then
    1.31 +	if [ -f "$1/var/spool/cron/crontabs/root" ]
    1.32 +	  then
    1.33  		echo "Runing post install command..."
    1.34  		echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \
    1.35  	   		>> "$1/var/spool/cron/crontabs/root"
    1.36 @@ -50,7 +52,8 @@
    1.37  
    1.38  post_remove()
    1.39  {
    1.40 -	if [ -f "$1/var/spool/cron/crontabs/root" ]; then
    1.41 +	if [ -f "$1/var/spool/cron/crontabs/root" ]
    1.42 +	  then
    1.43  		echo "Runing post install command..."
    1.44  		sed -i s!.*logrotate.*!!  "$1/var/spool/cron/crontabs/root"
    1.45  	fi