2009-10-04 16:17:19 +02:00
|
|
|
# Template file for 'logrotate'
|
|
|
|
pkgname=logrotate
|
2011-09-28 09:36:22 +02:00
|
|
|
version=3.8.1
|
2014-02-21 12:46:07 +01:00
|
|
|
revision=2
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="popt-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/logrotate.conf"
|
2009-10-04 16:17:19 +02:00
|
|
|
short_desc="Log file rotation and periodic maintenance"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-07 10:26:07 +02:00
|
|
|
homepage="https://fedorahosted.org/logrotate/"
|
|
|
|
license="GPL-2"
|
2013-04-13 10:15:49 +02:00
|
|
|
distfiles="https://fedorahosted.org/releases/l/o/$pkgname/${pkgname}-${version}.tar.gz"
|
2011-09-28 09:36:22 +02:00
|
|
|
checksum=c12471e70ae8bc923bd5c4f25e8fd6483b68c6301f3cd79f7cfe37bc5b370169
|
2009-10-04 16:17:19 +02:00
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
do_build() {
|
2011-07-07 10:26:07 +02: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
|
2014-02-21 12:46:07 +01:00
|
|
|
make CPP=$CC ${makejobs}
|
2009-10-04 16:17:19 +02:00
|
|
|
}
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
do_install() {
|
2011-07-07 10:26:07 +02:00
|
|
|
make PREFIX=${DESTDIR} install
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/logrotate.conf 644 etc
|
|
|
|
vinstall ${FILESDIR}/logrotate.cron-daily 744 etc/cron.daily logrotate
|
2009-10-04 16:17:19 +02:00
|
|
|
}
|