From 7cb1f208092542b48a22398ef04b84ea02fd0ac0 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sat, 12 Apr 2014 16:55:32 +0000
Subject: samba: run systemconfig.py on update

---
 abs/extra/samba/PKGBUILD        | 2 +-
 abs/extra/samba/samba.install   | 1 +
 abs/extra/samba/samba.logrotate | 9 +++++++++
 3 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 abs/extra/samba/samba.logrotate

diff --git a/abs/extra/samba/PKGBUILD b/abs/extra/samba/PKGBUILD
index 4209761..18aebfc 100644
--- a/abs/extra/samba/PKGBUILD
+++ b/abs/extra/samba/PKGBUILD
@@ -15,7 +15,7 @@ pkgver=4.1.6
 # to append 'a','b',etc to their subsequent releases, which pamcan
 # misconstrues as alpha, beta, etc.  Bad samba!
 _realver=4.1.6
-pkgrel=1
+pkgrel=2
 arch=(i686 x86_64)
 url="http://www.samba.org"
 license=('GPL3')
diff --git a/abs/extra/samba/samba.install b/abs/extra/samba/samba.install
index 420643f..26dbfa4 100644
--- a/abs/extra/samba/samba.install
+++ b/abs/extra/samba/samba.install
@@ -10,5 +10,6 @@ post_upgrade() {
     echo "please read the Samba4 migration guide:"
     echo "http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO"
   fi
+  systemconfig.py -m fileshare
 }
 # vim:set ts=2 sw=2 et:
diff --git a/abs/extra/samba/samba.logrotate b/abs/extra/samba/samba.logrotate
new file mode 100644
index 0000000..581f4c3
--- /dev/null
+++ b/abs/extra/samba/samba.logrotate
@@ -0,0 +1,9 @@
+/var/log/samba/log.smbd /var/log/samba/log.nmbd /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 v0.12

