void-packages/srcpkgs/ulogd/template

28 lines
956 B
Bash

# Template file for 'ulogd'
pkgname=ulogd
version=2.0.7
revision=3
build_style=gnu-configure
configure_args="--sbindir=/usr/bin"
hostmakedepends="pkg-config automake"
makedepends="libnfnetlink-devel libmnl-devel libnetfilter_log-devel
libnetfilter_conntrack-devel libnetfilter_acct-devel libpcap-devel"
short_desc="Userspace logging daemon for netfilter/iptables related logging"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="GPL-2.0-only"
homepage="http://www.netfilter.org/projects/ulogd/"
distfiles="${homepage}/files/${pkgname}-${version}.tar.bz2"
checksum=990a05494d9c16029ba0a83f3b7294fc05c756546b8d60d1c1572dc25249a92b
conf_files="/etc/ulogd.conf /etc/logrotate.d/ulogd"
make_dirs="/var/log/ulogd 2750 root adm"
system_accounts="_ulogd"
CFLAGS="-D_GNU_SOURCE"
post_install() {
vsed -i -e "s:/var/log:/var/log/ulogd:g" ulogd.conf
vinstall ulogd.conf 644 etc
vinstall ${FILESDIR}/ulogd.logrotate 644 etc/logrotate.d ulogd
vsv ulogd
}