From 41970a7c2c16088568c16a22f0e66f996080cf9a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Jul 2009 18:39:00 +0000 Subject: main/samba: add logrotate script fixes #81 --- main/samba/APKBUILD | 5 ++++- main/samba/samba.logrotate | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 main/samba/samba.logrotate (limited to 'main/samba') diff --git a/main/samba/APKBUILD b/main/samba/APKBUILD index c28a6e2de..3f63f8c0f 100644 --- a/main/samba/APKBUILD +++ b/main/samba/APKBUILD @@ -12,6 +12,7 @@ makedepends="db-dev popt-dev ncurses-dev openldap-dev heimdal-dev" source="http://us1.$pkgname.org/$pkgname/ftp/stable/$pkgname-$pkgver.tar.gz samba.initd samba.confd + samba.logrotate " build() { @@ -40,6 +41,7 @@ build() { cd "$srcdir"/$pkgname-$pkgver cp -r examples "$pkgdir"/usr/share/doc/samba/ install -D packaging/RHEL/setup/smbusers "$pkgdir"/etc/samba/smbusers + install -Dm644 ../samba.logrotate "$pkgdir"/etc/logrotate.d/samba } initscript() { @@ -96,4 +98,5 @@ tdb() { md5sums="858cb6c640358be0e81297c5de615a3c samba-3.3.6.tar.gz 1b701fdb22c52c63b3af0e4a286a9329 samba.initd -c150433426e18261e6e3eed3930e1a76 samba.confd" +c150433426e18261e6e3eed3930e1a76 samba.confd +b7cafabfb4fa5b3ab5f2e857d8d1c733 samba.logrotate" diff --git a/main/samba/samba.logrotate b/main/samba/samba.logrotate new file mode 100644 index 000000000..bf957bd74 --- /dev/null +++ b/main/samba/samba.logrotate @@ -0,0 +1,9 @@ +/var/log/samba/log.* /var/log/samba/*.log { + notifempty + missingok + sharedscripts + copytruncate + postrotate + /bin/kill -HUP `cat /var/run/samba/*.pid 2>/dev/null` 2>/dev/null || true + endscript +} -- cgit v1.2.3