2009-10-04 16:17:19 +02:00
|
|
|
# Template file for 'logrotate'
|
|
|
|
pkgname=logrotate
|
2010-10-22 21:06:41 +02:00
|
|
|
version=3.7.9
|
|
|
|
distfiles="https://fedorahosted.org/releases/l/o/$pkgname/${pkgname}-${version}.tar.gz"
|
2009-10-04 16:17:19 +02:00
|
|
|
build_style=gnu_makefile
|
|
|
|
make_install_args="PREFIX=$XBPS_DESTDIR/$pkgname-$version"
|
|
|
|
short_desc="Log file rotation and periodic maintenance"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-10-22 21:06:41 +02:00
|
|
|
checksum=080caf904e70e04da16b8dfa95a5a787ec7d722ee1af18ccea437d3ffdd6fec0
|
2009-10-04 16:17:19 +02:00
|
|
|
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
|
|
|
|
places, but it can also periodically copy logs to a central repository
|
|
|
|
without truncating them. It can run commands both before and after log
|
|
|
|
rotation to handle stopping, restarting, or sending signals to servers,
|
|
|
|
and it automatically compresses logs when it archives them."
|
|
|
|
|
|
|
|
conf_files="/etc/logrotate.conf"
|
|
|
|
|
2010-05-06 05:14:17 +02:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run popt
|
2009-10-04 16:17:19 +02:00
|
|
|
Add_dependency full gzip
|
2010-05-06 05:14:17 +02:00
|
|
|
Add_dependency build popt-devel
|
2009-10-04 16:17:19 +02:00
|
|
|
|
2009-11-22 08:31:44 +01:00
|
|
|
pre_build()
|
2009-10-04 16:17:19 +02:00
|
|
|
{
|
|
|
|
sed -i "s|CFLAGS = -Wall|CFLAGS += -Wall|" $wrksrc/Makefile
|
|
|
|
sed -i 's|$(BASEDIR)/man|$(BASEDIR)/share/man|' $wrksrc/Makefile
|
2010-05-06 05:14:17 +02:00
|
|
|
sed -i "s|/bin/\(g.*zip\)|/usr/bin/\1|g" $wrksrc/config.h
|
2009-10-04 16:17:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2009-10-04 16:19:13 +02:00
|
|
|
install -d ${DESTDIR}/etc/cron.daily ${DESTDIR}/etc/logrotate.d
|
2009-10-04 16:17:19 +02:00
|
|
|
install -m644 ${FILESDIR}/logrotate.conf ${DESTDIR}/etc
|
|
|
|
install -m744 ${FILESDIR}/logrotate.cron-daily \
|
|
|
|
${DESTDIR}/etc/cron.daily/logrotate
|
|
|
|
}
|