# HG changeset patch # User Hans-G?nter Theisgen # Date 1648571199 -3600 # Node ID e8372db7c74f44bf9ea6935945ffefad4864c5ba # Parent 9c057f96ed55a550ef835831a9ee5ac1b1e500b6 updated logrotate (3.16.0 -> 3.19.0) diff -r 9c057f96ed55 -r e8372db7c74f logrotate/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/logrotate/description.txt Tue Mar 29 17:26:39 2022 +0100 @@ -0,0 +1,6 @@ +The logrotate utility is designed to simplify the administration of log files +on a system which generates a lot of log files. +Logrotate allows for the automatic rotation compression, removal and +mailing of log files. +Logrotate can be set to handle a log file hourly, daily, weekly, monthly or +when the log file gets to a certain size. diff -r 9c057f96ed55 -r e8372db7c74f logrotate/receipt --- a/logrotate/receipt Tue Mar 29 10:26:06 2022 +0100 +++ b/logrotate/receipt Tue Mar 29 17:26:39 2022 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="logrotate" -VERSION="3.16.0" +VERSION="3.19.0" CATEGORY="system-tools" SHORT_DESC="Automatic rotation, compression, and removal of log files." MAINTAINER="pascal.bellard@slitaz.org" @@ -30,26 +30,25 @@ --prefix=/usr \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && - make -j 1 && - make PREFIX=$DESTDIR install + make && + make install PREFIX=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr mkdir -p $fs/etc - echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \ - > $fs/etc/logrotate.conf - cp -a $install/usr/sbin $fs/usr + echo -e "#Logrotate configuration file\n\ninclude /etc/logrotate.d" \ + > $fs/etc/logrotate.conf + cook_copy_folders sbin } post_install() { if [ -f "$1/var/spool/cron/crontabs/root" ] then - echo "Runing post install command..." + echo "Creating crontab entry..." echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \ >> "$1/var/spool/cron/crontabs/root" fi @@ -60,7 +59,7 @@ { if [ -f "$1/var/spool/cron/crontabs/root" ] then - echo "Runing post install command..." + echo "Removing crontab entry..." sed -i s!.*logrotate.*!! "$1/var/spool/cron/crontabs/root" fi }