summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-04-12 16:55:32 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-04-12 16:55:32 (GMT)
commit7cb1f208092542b48a22398ef04b84ea02fd0ac0 (patch)
tree256f4632c7c4320c4421c1554c2c8f190e898256 /abs/extra
parenta8ffca317c742720af2d83a33e11623a4fd36265 (diff)
downloadlinhes_pkgbuild-7cb1f208092542b48a22398ef04b84ea02fd0ac0.zip
linhes_pkgbuild-7cb1f208092542b48a22398ef04b84ea02fd0ac0.tar.gz
linhes_pkgbuild-7cb1f208092542b48a22398ef04b84ea02fd0ac0.tar.bz2
samba: run systemconfig.py on update
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/samba/PKGBUILD2
-rw-r--r--abs/extra/samba/samba.install1
-rw-r--r--abs/extra/samba/samba.logrotate9
3 files changed, 11 insertions, 1 deletions
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
+}