wok diff logrotate/receipt @ rev 25564
Up memtest (6.20)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 11 15:58:49 2023 +0000 (18 months ago) |
parents | 5ea0ce1cecc0 |
children | 7364ffdaaa60 |
line diff
1.1 --- a/logrotate/receipt Tue Jun 08 08:46:05 2021 +0000 1.2 +++ b/logrotate/receipt Thu May 11 15:58:49 2023 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="logrotate" 1.7 -VERSION="3.16.0" 1.8 +VERSION="3.19.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 @@ -30,26 +30,25 @@ 1.13 --prefix=/usr \ 1.14 --mandir=/usr/share/man \ 1.15 $CONFIGURE_ARGS && 1.16 - make -j 1 && 1.17 - make PREFIX=$DESTDIR install 1.18 + make && 1.19 + make install PREFIX=$DESTDIR 1.20 } 1.21 1.22 # Rules to gen a SliTaz package suitable for Tazpkg. 1.23 genpkg_rules() 1.24 { 1.25 - mkdir -p $fs/usr 1.26 mkdir -p $fs/etc 1.27 1.28 - echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \ 1.29 - > $fs/etc/logrotate.conf 1.30 - cp -a $install/usr/sbin $fs/usr 1.31 + echo -e "#Logrotate configuration file\n\ninclude /etc/logrotate.d" \ 1.32 + > $fs/etc/logrotate.conf 1.33 + cook_copy_folders sbin 1.34 } 1.35 1.36 post_install() 1.37 { 1.38 if [ -f "$1/var/spool/cron/crontabs/root" ] 1.39 then 1.40 - echo "Runing post install command..." 1.41 + echo "Creating crontab entry..." 1.42 echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \ 1.43 >> "$1/var/spool/cron/crontabs/root" 1.44 fi 1.45 @@ -60,7 +59,7 @@ 1.46 { 1.47 if [ -f "$1/var/spool/cron/crontabs/root" ] 1.48 then 1.49 - echo "Runing post install command..." 1.50 + echo "Removing crontab entry..." 1.51 sed -i s!.*logrotate.*!! "$1/var/spool/cron/crontabs/root" 1.52 fi 1.53 }