diff --git a/srcpkgs/logrotate/files/logrotate.conf b/srcpkgs/logrotate/files/logrotate.conf index 9b302081e5..01c101ef61 100644 --- a/srcpkgs/logrotate/files/logrotate.conf +++ b/srcpkgs/logrotate/files/logrotate.conf @@ -7,7 +7,7 @@ weekly rotate 4 # restrict maximum size of log files -#size 20M +size 512k # create new (empty) log files after rotating old ones create @@ -15,6 +15,15 @@ create # uncomment this if you want your log files compressed compress +# Do not rotate logs if they are empty +notifempty + +# Do not send emails +nomail + +# Do not panic if log missing +missingok + # Logs are moved into directory for rotation # olddir /var/log/archive diff --git a/srcpkgs/logrotate/template b/srcpkgs/logrotate/template index d44c6b550e..86de417ca9 100644 --- a/srcpkgs/logrotate/template +++ b/srcpkgs/logrotate/template @@ -1,6 +1,7 @@ # Template file for 'logrotate' pkgname=logrotate version=3.7.8 +revision=1 distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz" build_style=gnu_makefile make_install_args="PREFIX=$XBPS_DESTDIR/$pkgname-$version" @@ -17,14 +18,16 @@ long_desc=" conf_files="/etc/logrotate.conf" -Add_dependency full glibc -Add_dependency full popt +Add_dependency run glibc +Add_dependency run popt Add_dependency full gzip +Add_dependency build popt-devel pre_build() { sed -i "s|CFLAGS = -Wall|CFLAGS += -Wall|" $wrksrc/Makefile sed -i 's|$(BASEDIR)/man|$(BASEDIR)/share/man|' $wrksrc/Makefile + sed -i "s|/bin/\(g.*zip\)|/usr/bin/\1|g" $wrksrc/config.h } post_install()