summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-07-13 11:21:22 +0000
committerPacho Ramos <pacho@gentoo.org>2013-07-13 11:21:22 +0000
commitce395ed5b6b69d743c6c5db1f78d9fbc26a09492 (patch)
tree89f92897970ed152d7844898c7d5cd39b10063f1 /net-fs
parentapp-misc/devtodo: Fix compilation with ncurses[tinfo] (diff)
downloadgentoo-2-ce395ed5b6b69d743c6c5db1f78d9fbc26a09492.tar.gz
gentoo-2-ce395ed5b6b69d743c6c5db1f78d9fbc26a09492.tar.bz2
gentoo-2-ce395ed5b6b69d743c6c5db1f78d9fbc26a09492.zip
Install unit file (#433074)
(Portage version: 2.1.12.11/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/samba/ChangeLog8
-rw-r--r--net-fs/samba/files/nmbd.service12
-rw-r--r--net-fs/samba/files/samba.conf1
-rw-r--r--net-fs/samba/files/smbd.service12
-rw-r--r--net-fs/samba/files/smbd.socket9
-rw-r--r--net-fs/samba/files/smbd_at.service7
-rw-r--r--net-fs/samba/files/winbindd.service12
-rw-r--r--net-fs/samba/samba-3.6.16.ebuild10
-rw-r--r--net-fs/samba/samba-4.0.7.ebuild10
9 files changed, 76 insertions, 5 deletions
diff --git a/net-fs/samba/ChangeLog b/net-fs/samba/ChangeLog
index 3ad4f646b53f..c016ad0d1599 100644
--- a/net-fs/samba/ChangeLog
+++ b/net-fs/samba/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-fs/samba
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.583 2013/07/08 10:54:00 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.584 2013/07/13 11:21:22 pacho Exp $
+
+ 13 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/nmbd.service,
+ +files/samba.conf, +files/smbd.service, +files/smbd.socket,
+ +files/smbd_at.service, +files/winbindd.service, samba-3.6.16.ebuild,
+ samba-4.0.7.ebuild:
+ Install unit file (#433074)
*samba-4.0.7 (08 Jul 2013)
diff --git a/net-fs/samba/files/nmbd.service b/net-fs/samba/files/nmbd.service
new file mode 100644
index 000000000000..44b4ffba1f7f
--- /dev/null
+++ b/net-fs/samba/files/nmbd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba NetBIOS name server
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/samba/nmbd.pid
+ExecStart=/usr/sbin/nmbd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-fs/samba/files/samba.conf b/net-fs/samba/files/samba.conf
new file mode 100644
index 000000000000..9b2806c0e04f
--- /dev/null
+++ b/net-fs/samba/files/samba.conf
@@ -0,0 +1 @@
+D /run/samba 0755 root root
diff --git a/net-fs/samba/files/smbd.service b/net-fs/samba/files/smbd.service
new file mode 100644
index 000000000000..5c006a44edb6
--- /dev/null
+++ b/net-fs/samba/files/smbd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba SMB/CIFS server
+After=network.target nmbd.service winbindd.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/samba/smbd.pid
+ExecStart=/usr/sbin/smbd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-fs/samba/files/smbd.socket b/net-fs/samba/files/smbd.socket
new file mode 100644
index 000000000000..833bf438832f
--- /dev/null
+++ b/net-fs/samba/files/smbd.socket
@@ -0,0 +1,9 @@
+[Unit]
+Description=Samba SMB/CIFS server socket
+
+[Socket]
+ListenStream=445
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
diff --git a/net-fs/samba/files/smbd_at.service b/net-fs/samba/files/smbd_at.service
new file mode 100644
index 000000000000..e1f71be3f7fa
--- /dev/null
+++ b/net-fs/samba/files/smbd_at.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Samba SMB/CIFS server instance
+
+[Service]
+ExecStart=/usr/sbin/smbd -F
+ExecReload=/bin/kill -HUP $MAINPID
+StandardInput=socket
diff --git a/net-fs/samba/files/winbindd.service b/net-fs/samba/files/winbindd.service
new file mode 100644
index 000000000000..67a778fc76c7
--- /dev/null
+++ b/net-fs/samba/files/winbindd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Samba Winbind daemon
+After=network.target nmbd.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/samba/winbindd.pid
+ExecStart=/usr/sbin/winbindd -D
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-fs/samba/samba-3.6.16.ebuild b/net-fs/samba/samba-3.6.16.ebuild
index 861594fbc288..b39cad5bd60f 100644
--- a/net-fs/samba/samba-3.6.16.ebuild
+++ b/net-fs/samba/samba-3.6.16.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.6.16.ebuild,v 1.2 2013/06/20 18:23:54 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-3.6.16.ebuild,v 1.3 2013/07/13 11:21:22 pacho Exp $
EAPI=4
-inherit pam versionator multilib eutils
+inherit pam versionator multilib eutils systemd
MY_PV=${PV/_/}
MY_P="${PN}-${MY_PV}"
@@ -435,6 +435,12 @@ src_install() {
"${ED}/usr/share"/{man,locale,} \
"${ED}/var"/{run,lib/samba/private,lib/samba,lib,cache/samba,cache,} \
# || die "tried to remove non-empty dirs, this seems like a bug in the ebuild"
+
+ systemd_dotmpfilesd "${FILESDIR}"/samba.conf
+ systemd_dounit "${FILESDIR}"/nmbd.service
+ systemd_dounit "${FILESDIR}"/smbd.{service,socket}
+ systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
+ systemd_dounit "${FILESDIR}"/winbindd.service
}
pkg_postinst() {
diff --git a/net-fs/samba/samba-4.0.7.ebuild b/net-fs/samba/samba-4.0.7.ebuild
index 47289f2cbfbc..f4dea22296dc 100644
--- a/net-fs/samba/samba-4.0.7.ebuild
+++ b/net-fs/samba/samba-4.0.7.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.0.7.ebuild,v 1.1 2013/07/08 10:54:00 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-4.0.7.ebuild,v 1.2 2013/07/13 11:21:22 pacho Exp $
EAPI=5
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
-inherit python-r1 waf-utils multilib linux-info
+inherit python-r1 waf-utils multilib linux-info systemd
MY_PV="${PV/_rc/rc}"
MY_P="${PN}-${MY_PV}"
@@ -131,6 +131,12 @@ src_install() {
# Install init script and conf.d file
newinitd "${CONFDIR}/samba4.initd-r1" samba
newconfd "${CONFDIR}/samba4.confd" samba
+
+ systemd_dotmpfilesd "${FILESDIR}"/samba.conf
+ systemd_dounit "${FILESDIR}"/nmbd.service
+ systemd_dounit "${FILESDIR}"/smbd.{service,socket}
+ systemd_newunit "${FILESDIR}"/smbd_at.service 'smbd@.service'
+ systemd_dounit "${FILESDIR}"/winbindd.service
}
src_test() {