# HG changeset patch # User Hans-G?nter Theisgen # Date 1584254405 -3600 # Node ID 26e2e48007c1f63f063d929a33e049a9a2a23016 # Parent a49eeb7de1eac9e6265805e81240c828324a93d5 updated logrotate (3.15.0 -> 3.16.0) diff -r a49eeb7de1ea -r 26e2e48007c1 logrotate/receipt --- a/logrotate/receipt Sun Mar 15 07:01:36 2020 +0100 +++ b/logrotate/receipt Sun Mar 15 07:40:05 2020 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="logrotate" -VERSION="3.15.0" +VERSION="3.16.0" CATEGORY="system-tools" SHORT_DESC="Automatic rotation, compression, and removal of log files." MAINTAINER="pascal.bellard@slitaz.org" @@ -13,6 +13,7 @@ DEPENDS="popt" BUILD_DEPENDS="automake popt-dev" + CONFIG_FILES="/etc/logrotate.conf" # Rules to configure and make the package. @@ -35,12 +36,13 @@ echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \ > $fs/etc/logrotate.conf - cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/sbin $fs/usr } post_install() { - if [ -f "$1/var/spool/cron/crontabs/root" ]; then + if [ -f "$1/var/spool/cron/crontabs/root" ] + then echo "Runing post install command..." echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \ >> "$1/var/spool/cron/crontabs/root" @@ -50,7 +52,8 @@ post_remove() { - if [ -f "$1/var/spool/cron/crontabs/root" ]; then + if [ -f "$1/var/spool/cron/crontabs/root" ] + then echo "Runing post install command..." sed -i s!.*logrotate.*!! "$1/var/spool/cron/crontabs/root" fi