[arch-commits] Commit in samba/trunk (5 files)

Tobias Powalowski tpowa at archlinux.org
Wed Apr 25 10:00:31 EDT 2012


    Date: Wednesday, April 25, 2012 @ 10:00:31
  Author: tpowa
Revision: 157196

upgpkg: samba 3.6.4-2

move in systemd support

Added:
  samba/trunk/nmbd.service
  samba/trunk/smbd.conf
  samba/trunk/smbd.service
  samba/trunk/winbindd.service
Modified:
  samba/trunk/PKGBUILD

------------------+
 PKGBUILD         |   19 ++++++++++++++++---
 nmbd.service     |    8 ++++++++
 smbd.conf        |    1 +
 smbd.service     |    9 +++++++++
 winbindd.service |    9 +++++++++
 5 files changed, 43 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-04-25 13:57:50 UTC (rev 157195)
+++ PKGBUILD	2012-04-25 14:00:31 UTC (rev 157196)
@@ -8,7 +8,7 @@
 # to append 'a','b',etc to their subsequent releases, which pamcan
 # misconstrues as alpha, beta, etc.  Bad samba!
 _realver=3.6.4
-pkgrel=1
+pkgrel=2
 arch=(i686 x86_64)
 url="http://www.samba.org"
 license=('GPL3')
@@ -17,7 +17,11 @@
         samba samba.logrotate
         swat.xinetd
         samba.pam
-        samba.conf.d)
+        samba.conf.d
+        smbd.service
+        nmbd.service
+        winbindd.service
+        smbd.conf)
 ### UNINSTALL dmapi package before building!!!
 
 build() {
@@ -144,10 +148,19 @@
   rm -f ${pkgdir}/usr/include/libsmbclient.h
   # copy ldap example
   install -D -m644 ${srcdir}/samba-${_realver}/examples/LDAP/samba.schema ${pkgdir}/usr/share/doc/samba/examples/LDAP/samba.schema
+  # install systemd files
+  for i in smbd nmbd winbindd; do
+  install -D -m644 ${srcdir}/$i.service ${pkgdir}/usr/lib/systemd/system/$i.service
+  done
+  install -D -m644 ${srcdir}/smbd.conf ${pkgdir}/usr/lib/tmpfiles.d/samba.conf 
 }
 md5sums=('d8e070e2a3b12f202f347e4427469bc2'
          'dfc6f9018c556b9783c7140de183727f'
          '5697da77590ec092cc8a883bae06093c'
          'a4bbfa39fee95bba2e7ad6b535fae7e6'
          '96f82c38f3f540b53f3e5144900acf17'
-         'f2f2e348acd1ccb566e95fa8a561b828')
+         'f2f2e348acd1ccb566e95fa8a561b828'
+         '389cc4fa3b459360feaa1b3d93274693'
+         'ea6a1251be979cb30c6098a28b270d2d'
+         '455f106ce7a4f983975b3a686eaa85e5'
+         '6956c4f9989bec8f313de7d9343b6ba1')

Added: nmbd.service
===================================================================
--- nmbd.service	                        (rev 0)
+++ nmbd.service	2012-04-25 14:00:31 UTC (rev 157196)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Samba NetBIOS name server
+
+[Service]
+ExecStart=/usr/sbin/nmbd -F
+
+[Install]
+WantedBy=multi-user.target

Added: smbd.conf
===================================================================
--- smbd.conf	                        (rev 0)
+++ smbd.conf	2012-04-25 14:00:31 UTC (rev 157196)
@@ -0,0 +1 @@
+D /var/run/samba 0755 root root -

Added: smbd.service
===================================================================
--- smbd.service	                        (rev 0)
+++ smbd.service	2012-04-25 14:00:31 UTC (rev 157196)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Samba SMB/CIFS server
+
+[Service]
+ExecStart=/usr/sbin/smbd -F
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Added: winbindd.service
===================================================================
--- winbindd.service	                        (rev 0)
+++ winbindd.service	2012-04-25 14:00:31 UTC (rev 157196)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Samba Winbind daemon
+
+[Service]
+ExecStart=/usr/sbin/winbindd -F
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list