2009-10-04 14:17:19 +00:00
|
|
|
# Template file for 'logrotate'
|
|
|
|
pkgname=logrotate
|
2011-07-07 08:26:07 +00:00
|
|
|
version=3.8.0
|
2010-10-22 19:06:41 +00:00
|
|
|
distfiles="https://fedorahosted.org/releases/l/o/$pkgname/${pkgname}-${version}.tar.gz"
|
2011-07-07 08:26:07 +00:00
|
|
|
build_style=custom-install
|
2009-10-04 14:17:19 +00:00
|
|
|
short_desc="Log file rotation and periodic maintenance"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-07 08:26:07 +00:00
|
|
|
homepage="https://fedorahosted.org/logrotate/"
|
|
|
|
license="GPL-2"
|
|
|
|
checksum=5e52edc8c1894ab079ea3666cfd828085e3949388703f7236c39b2d20968536e
|
2009-10-04 14:17:19 +00: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 03:14:17 +00:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run popt
|
2009-10-04 14:17:19 +00:00
|
|
|
Add_dependency full gzip
|
2010-05-06 03:14:17 +00:00
|
|
|
Add_dependency build popt-devel
|
2009-10-04 14:17:19 +00:00
|
|
|
|
2011-07-07 08:26:07 +00:00
|
|
|
do_build()
|
2009-10-04 14:17:19 +00:00
|
|
|
{
|
2011-07-07 08:26:07 +00:00
|
|
|
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}
|
2009-10-04 14:17:19 +00:00
|
|
|
}
|
|
|
|
|
2011-07-07 08:26:07 +00:00
|
|
|
do_install()
|
2009-10-04 14:17:19 +00:00
|
|
|
{
|
2011-07-07 08:26:07 +00:00
|
|
|
make PREFIX=${DESTDIR} install
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/logrotate.conf 644 etc
|
|
|
|
vinstall ${FILESDIR}/logrotate.cron-daily 744 etc/cron.daily logrotate
|
2009-10-04 14:17:19 +00:00
|
|
|
}
|