mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
rsyslog: add logrotate script. Bump revision.
--HG-- extra : convert_revision : bed18dc5f19b4b65dee9f5741da2f00fe30085f9
This commit is contained in:
parent
35b55ca852
commit
23565d7130
2 changed files with 12 additions and 1 deletions
8
templates/rsyslog/files/rsyslog.logrotate
Normal file
8
templates/rsyslog/files/rsyslog.logrotate
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
/var/log/messages /var/log/dmesg /var/log/lastlog /var/log/secure {
|
||||||
|
missingok
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
kill -HUP $(cat /var/run/rsyslogd.pid 2>/dev/null) \
|
||||||
|
2>/dev/null || true
|
||||||
|
endscript
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
# Template file for 'rsyslog'
|
# Template file for 'rsyslog'
|
||||||
pkgname=rsyslog
|
pkgname=rsyslog
|
||||||
version=4.4.1
|
version=4.4.1
|
||||||
|
revision=1
|
||||||
distfiles="http://download.rsyslog.com/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="http://download.rsyslog.com/$pkgname/$pkgname-$version.tar.gz"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_args="--enable-gnutls"
|
configure_args="--enable-gnutls"
|
||||||
|
@ -23,7 +24,9 @@ Add_dependency full zlib
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
install -d ${DESTDIR}/etc/init.d
|
install -d ${DESTDIR}/etc/init.d ${DESTDIR}/etc/logrotate.d
|
||||||
install -m755 ${FILESDIR}/rsyslogd.rc ${DESTDIR}/etc/init.d/rsyslogd
|
install -m755 ${FILESDIR}/rsyslogd.rc ${DESTDIR}/etc/init.d/rsyslogd
|
||||||
install -m644 ${FILESDIR}/rsyslog.conf ${DESTDIR}/etc/rsyslog.conf
|
install -m644 ${FILESDIR}/rsyslog.conf ${DESTDIR}/etc/rsyslog.conf
|
||||||
|
install -m644 ${FILESDIR}/rsyslog.logrotate \
|
||||||
|
${DESTDIR}/etc/logrotate.d/rsyslog
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue