logrotate: update to 3.8.0.

This commit is contained in:
Juan RP 2011-07-07 10:26:07 +02:00
parent 08e917f32a
commit ce98b12e4f

View File

@ -1,12 +1,13 @@
# Template file for 'logrotate'
pkgname=logrotate
version=3.7.9
version=3.8.0
distfiles="https://fedorahosted.org/releases/l/o/$pkgname/${pkgname}-${version}.tar.gz"
build_style=gnu_makefile
make_install_args="PREFIX=$XBPS_DESTDIR/$pkgname-$version"
build_style=custom-install
short_desc="Log file rotation and periodic maintenance"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=080caf904e70e04da16b8dfa95a5a787ec7d722ee1af18ccea437d3ffdd6fec0
homepage="https://fedorahosted.org/logrotate/"
license="GPL-2"
checksum=5e52edc8c1894ab079ea3666cfd828085e3949388703f7236c39b2d20968536e
long_desc="
$pkgname performs periodic maintenance of log files. The most common
action is rotating log files and archiving the old logs to one or more
@ -22,17 +23,18 @@ Add_dependency run popt
Add_dependency full gzip
Add_dependency build popt-devel
pre_build()
do_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
sed -i "s|CFLAGS = -Wall|CFLAGS += -Wall|" Makefile
sed -i 's|$(BASEDIR)/man|$(BASEDIR)/share/man|' Makefile
sed -i "s|/bin/\(g.*zip\)|/usr/bin/\1|g" config.h
make ${makejobs}
}
post_install()
do_install()
{
install -d ${DESTDIR}/etc/cron.daily ${DESTDIR}/etc/logrotate.d
install -m644 ${FILESDIR}/logrotate.conf ${DESTDIR}/etc
install -m744 ${FILESDIR}/logrotate.cron-daily \
${DESTDIR}/etc/cron.daily/logrotate
make PREFIX=${DESTDIR} install
vinstall ${FILESDIR}/logrotate.conf 644 etc
vinstall ${FILESDIR}/logrotate.cron-daily 744 etc/cron.daily logrotate
}