diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-08-27 13:43:47 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-08-27 13:47:42 +0000 |
commit | 629d95e6e23f32f373c812782af627a2bcc84315 (patch) | |
tree | 7c0516a4d25b765418c6ec9fe38602205d11438b /testing | |
parent | 52acbbbac2fb6d855b928d5e6cdd1a21e2687276 (diff) | |
download | aports-629d95e6e23f32f373c812782af627a2bcc84315.tar.bz2 aports-629d95e6e23f32f373c812782af627a2bcc84315.tar.xz |
testing/ulogd: logrotate support added
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ulogd/APKBUILD | 9 | ||||
-rw-r--r-- | testing/ulogd/ulogd.logrotate | 12 |
2 files changed, 18 insertions, 3 deletions
diff --git a/testing/ulogd/APKBUILD b/testing/ulogd/APKBUILD index 7142f675b..887b8785e 100644 --- a/testing/ulogd/APKBUILD +++ b/testing/ulogd/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Leonardo Arena <rnalrd@gmail.com> pkgname=ulogd pkgver=1.24 -pkgrel=0 +pkgrel=1 pkgdesc="A userspace logging daemon for netfilter/iptables related logging" url="http://netfilter.org/projects/ulogd/index.html" license="GPL" @@ -11,7 +11,8 @@ libnetfilter_conntrack-dev pkgconfig openssl-dev" subpackages="$pkgname-sqlite $pkgname-pgsql $pkgname-doc" source="http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2 ulogd.initd - ulogd.confd" + ulogd.confd + ulogd.logrotate" _builddir="$srcdir/$pkgname-$pkgver" @@ -32,6 +33,7 @@ package() { cd "$_builddir" make DESTDIR="$pkgdir" install install -Dm644 ulogd.conf "$pkgdir"/etc/ulogd.conf + install -Dm644 ulogd.logrotate "$pkgdir"/etc/logrotate.d/ulogd install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname mkdir -p $pkgdir/usr/share/doc/$pkgname @@ -50,4 +52,5 @@ pgsql() { md5sums="05b4ed2926b9a22aaeaf642917bbf8ff ulogd-1.24.tar.bz2 bd2f808297a9c67e0dc51aa57a1805e0 ulogd.initd -b9b2fa217ee02211debee5a5dffdcda7 ulogd.confd" +b9b2fa217ee02211debee5a5dffdcda7 ulogd.confd +836332074f6cbc19d2d0553e2076dab7 ulogd.logrotate" diff --git a/testing/ulogd/ulogd.logrotate b/testing/ulogd/ulogd.logrotate new file mode 100644 index 000000000..6974d41b1 --- /dev/null +++ b/testing/ulogd/ulogd.logrotate @@ -0,0 +1,12 @@ +/var/log/ulogd.log /var/log/ulog.syslogemu { + rotate 4 + daily + missingok + notifempty + compress + delaycompress + sharedscripts + postrotate + /etc/init.d/ulogd reload &>/dev/null + endscript +} |