void-packages/srcpkgs/logrotate/template

27 lines
816 B
Text
Raw Normal View History

# Template file for 'logrotate'
pkgname=logrotate
2014-09-08 09:40:11 +00:00
version=3.8.7
revision=1
makedepends="popt-devel"
conf_files="/etc/logrotate.conf"
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"
distfiles="https://fedorahosted.org/releases/l/o/$pkgname/${pkgname}-${version}.tar.gz"
2014-09-08 09:40:11 +00:00
checksum=f6ba691f40e30e640efa2752c1f9499a3f9738257660994de70a45fe00d12b64
do_build() {
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
2014-02-21 11:46:07 +00:00
make CPP=$CC ${makejobs}
}
do_install() {
2011-07-07 08:26:07 +00:00
make PREFIX=${DESTDIR} install
2014-09-08 09:40:11 +00:00
vconf ${FILESDIR}/logrotate.conf
2011-07-07 08:26:07 +00:00
vinstall ${FILESDIR}/logrotate.cron-daily 744 etc/cron.daily logrotate
}