void-packages/srcpkgs/logrotate/template
2014-02-21 12:46:07 +01:00

26 lines
827 B
Text

# Template file for 'logrotate'
pkgname=logrotate
version=3.8.1
revision=2
makedepends="popt-devel"
conf_files="/etc/logrotate.conf"
short_desc="Log file rotation and periodic maintenance"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://fedorahosted.org/logrotate/"
license="GPL-2"
distfiles="https://fedorahosted.org/releases/l/o/$pkgname/${pkgname}-${version}.tar.gz"
checksum=c12471e70ae8bc923bd5c4f25e8fd6483b68c6301f3cd79f7cfe37bc5b370169
do_build() {
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 CPP=$CC ${makejobs}
}
do_install() {
make PREFIX=${DESTDIR} install
vinstall ${FILESDIR}/logrotate.conf 644 etc
vinstall ${FILESDIR}/logrotate.cron-daily 744 etc/cron.daily logrotate
}