summaryrefslogtreecommitdiff
path: root/extra/samba
diff options
context:
space:
mode:
Diffstat (limited to 'extra/samba')
-rw-r--r--extra/samba/PKGBUILD21
-rw-r--r--extra/samba/nmbd.service8
-rw-r--r--extra/samba/smbd.conf1
-rw-r--r--extra/samba/smbd.service9
-rw-r--r--extra/samba/winbindd.service9
5 files changed, 44 insertions, 4 deletions
diff --git a/extra/samba/PKGBUILD b/extra/samba/PKGBUILD
index 0c3d80b22..cb0123245 100644
--- a/extra/samba/PKGBUILD
+++ b/extra/samba/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 156039 2012-04-11 21:03:20Z tpowa $
+# $Id: PKGBUILD 157239 2012-04-26 13:06:31Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgbase=samba
@@ -8,7 +8,7 @@ pkgver=3.6.4
# 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 @@ source=(http://us1.samba.org/samba/ftp/stable/${pkgbase}-${_realver}.tar.gz
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 @@ depends=('db' 'popt' 'libcups' 'acl' 'libldap' "smbclient>=$pkgver" 'libcap' 'kr
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')
diff --git a/extra/samba/nmbd.service b/extra/samba/nmbd.service
new file mode 100644
index 000000000..6e22ef2fb
--- /dev/null
+++ b/extra/samba/nmbd.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Samba NetBIOS name server
+
+[Service]
+ExecStart=/usr/sbin/nmbd -F
+
+[Install]
+WantedBy=multi-user.target
diff --git a/extra/samba/smbd.conf b/extra/samba/smbd.conf
new file mode 100644
index 000000000..b745bb85b
--- /dev/null
+++ b/extra/samba/smbd.conf
@@ -0,0 +1 @@
+D /var/run/samba 0755 root root -
diff --git a/extra/samba/smbd.service b/extra/samba/smbd.service
new file mode 100644
index 000000000..beb9bfad7
--- /dev/null
+++ b/extra/samba/smbd.service
@@ -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
diff --git a/extra/samba/winbindd.service b/extra/samba/winbindd.service
new file mode 100644
index 000000000..509c89628
--- /dev/null
+++ b/extra/samba/winbindd.service
@@ -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