void-packages/srcpkgs/logrotate/template

22 lines
686 B
Bash

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