void-packages/srcpkgs/logrotate/template

23 lines
686 B
Bash

# Template file for 'logrotate'
pkgname=logrotate
version=3.13.0
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=3222ca032f99be8d7a4a8c6ad69f3dcc49b9511bfe384bd5a271ebcd9bd3e52c
pre_configure() {
./autogen.sh
}
post_install() {
vconf ${FILESDIR}/logrotate.conf
vinstall ${FILESDIR}/logrotate.cron-daily 744 etc/cron.daily logrotate
}