logrotate: fix g{,un}zip hardcoded path, better default conf.

This commit is contained in:
Juan RP 2010-05-06 05:14:17 +02:00
parent e28869f810
commit 1721e748c0
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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()