rsyslog: add logrotate script. Bump revision.

--HG--
extra : convert_revision : bed18dc5f19b4b65dee9f5741da2f00fe30085f9
This commit is contained in:
Juan RP 2009-10-04 16:33:08 +02:00
parent 35b55ca852
commit 23565d7130
2 changed files with 12 additions and 1 deletions

View 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
}

View File

@ -1,6 +1,7 @@
# Template file for 'rsyslog'
pkgname=rsyslog
version=4.4.1
revision=1
distfiles="http://download.rsyslog.com/$pkgname/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--enable-gnutls"
@ -23,7 +24,9 @@ Add_dependency full zlib
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 -m644 ${FILESDIR}/rsyslog.conf ${DESTDIR}/etc/rsyslog.conf
install -m644 ${FILESDIR}/rsyslog.logrotate \
${DESTDIR}/etc/logrotate.d/rsyslog
}