void-packages/srcpkgs/logrotate/template

23 lines
686 B
Bash

# Template file for 'logrotate'
pkgname=logrotate
version=3.12.2
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="acl-devel popt-devel"
conf_files="/etc/logrotate.conf"
short_desc="Log file rotation and periodic maintenance"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://github.com/logrotate/logrotate"
distfiles="${homepage}/releases/download/${version}/logrotate-${version}.tar.xz"
checksum=70c2037f654c5e2c6c3b386212049272a036b7dd37f36a486f01c7df20765551
pre_configure() {
./autogen.sh
}
post_install() {
vconf ${FILESDIR}/logrotate.conf
vinstall ${FILESDIR}/logrotate.cron-daily 744 etc/cron.daily logrotate
}