diff options
-rw-r--r-- | main/samba/APKBUILD | 5 | ||||
-rw-r--r-- | main/samba/samba.logrotate | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/main/samba/APKBUILD b/main/samba/APKBUILD index c28a6e2de3..3f63f8c0f5 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 0000000000..bf957bd747 --- /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 +} |