mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
ulogd: move logs to subdir, update logrotate file, add conf_files
This commit is contained in:
parent
9f070b327e
commit
0d0aae5127
2 changed files with 9 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
||||||
/var/log/ulog.log /var/log/ulog.pcap {
|
/var/log/ulogd/*.log /var/log/ulogd/*.pcap {
|
||||||
missingok
|
|
||||||
compress
|
compress
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
sharedscripts
|
sharedscripts
|
||||||
create 640 _ulogd adm
|
|
||||||
postrotate
|
postrotate
|
||||||
sv hup ulogd
|
sv hup ulogd
|
||||||
endscript
|
endscript
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ulogd'
|
# Template file for 'ulogd'
|
||||||
pkgname=ulogd
|
pkgname=ulogd
|
||||||
version=2.0.7
|
version=2.0.7
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sbindir=/usr/bin"
|
configure_args="--sbindir=/usr/bin"
|
||||||
hostmakedepends="pkg-config automake"
|
hostmakedepends="pkg-config automake"
|
||||||
|
@ -13,10 +13,14 @@ license="GPL-2.0-only"
|
||||||
homepage="http://www.netfilter.org/projects/ulogd/"
|
homepage="http://www.netfilter.org/projects/ulogd/"
|
||||||
distfiles="${homepage}/files/${pkgname}-${version}.tar.bz2"
|
distfiles="${homepage}/files/${pkgname}-${version}.tar.bz2"
|
||||||
checksum=990a05494d9c16029ba0a83f3b7294fc05c756546b8d60d1c1572dc25249a92b
|
checksum=990a05494d9c16029ba0a83f3b7294fc05c756546b8d60d1c1572dc25249a92b
|
||||||
CFLAGS="-D_GNU_SOURCE"
|
conf_files="/etc/ulogd.conf /etc/logrotate.d/ulogd"
|
||||||
|
make_dirs="/var/log/ulogd 2750 root adm"
|
||||||
system_accounts="_ulogd"
|
system_accounts="_ulogd"
|
||||||
|
|
||||||
|
CFLAGS="-D_GNU_SOURCE"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
vsed -i -e "s:/var/log:/var/log/ulogd:g" ulogd.conf
|
||||||
vinstall ulogd.conf 644 etc
|
vinstall ulogd.conf 644 etc
|
||||||
vinstall ${FILESDIR}/ulogd.logrotate 644 etc/logrotate.d ulogd
|
vinstall ${FILESDIR}/ulogd.logrotate 644 etc/logrotate.d ulogd
|
||||||
vsv ulogd
|
vsv ulogd
|
||||||
|
|
Loading…
Add table
Reference in a new issue