wok-current rev 24861

updated logrotate (3.16.0 -> 3.19.0)
author Hans-G?nter Theisgen
date Tue Mar 29 17:26:39 2022 +0100 (2022-03-29)
parents 9c057f96ed55
children 8b7f75d0e08e
files logrotate/description.txt logrotate/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/logrotate/description.txt	Tue Mar 29 17:26:39 2022 +0100
     1.3 @@ -0,0 +1,6 @@
     1.4 +The logrotate utility is designed to simplify the administration of log files
     1.5 +on a system which generates a lot of log files.
     1.6 +Logrotate allows for the automatic rotation compression, removal and
     1.7 +mailing of log files.
     1.8 +Logrotate can be set to handle a log file hourly, daily, weekly, monthly or
     1.9 +when the log file gets to a certain size.
     2.1 --- a/logrotate/receipt	Tue Mar 29 10:26:06 2022 +0100
     2.2 +++ b/logrotate/receipt	Tue Mar 29 17:26:39 2022 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="logrotate"
     2.7 -VERSION="3.16.0"
     2.8 +VERSION="3.19.0"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="Automatic rotation, compression, and removal of log files."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12 @@ -30,26 +30,25 @@
    2.13  		--prefix=/usr		\
    2.14  		--mandir=/usr/share/man	\
    2.15  		$CONFIGURE_ARGS &&
    2.16 -	make -j 1 &&
    2.17 -	make PREFIX=$DESTDIR install
    2.18 +	make &&
    2.19 +	make install PREFIX=$DESTDIR
    2.20  }
    2.21  
    2.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.23  genpkg_rules()
    2.24  {
    2.25 -	mkdir -p $fs/usr
    2.26  	mkdir -p $fs/etc
    2.27  
    2.28 -	echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \
    2.29 -	  > $fs/etc/logrotate.conf
    2.30 -	cp -a $install/usr/sbin	$fs/usr
    2.31 +	echo -e "#Logrotate configuration file\n\ninclude /etc/logrotate.d" \
    2.32 +				> $fs/etc/logrotate.conf
    2.33 +	cook_copy_folders	sbin
    2.34  }
    2.35  
    2.36  post_install()
    2.37  {
    2.38  	if [ -f "$1/var/spool/cron/crontabs/root" ]
    2.39  	  then
    2.40 -		echo "Runing post install command..."
    2.41 +		echo "Creating crontab entry..."
    2.42  		echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \
    2.43  	   		>> "$1/var/spool/cron/crontabs/root"
    2.44  	fi
    2.45 @@ -60,7 +59,7 @@
    2.46  {
    2.47  	if [ -f "$1/var/spool/cron/crontabs/root" ]
    2.48  	  then
    2.49 -		echo "Runing post install command..."
    2.50 +		echo "Removing crontab entry..."
    2.51  		sed -i s!.*logrotate.*!!  "$1/var/spool/cron/crontabs/root"
    2.52  	fi
    2.53  }