diff options
author | Victor Ostorga <vostorga@gentoo.org> | 2010-12-20 20:35:07 +0000 |
---|---|---|
committer | Victor Ostorga <vostorga@gentoo.org> | 2010-12-20 20:35:07 +0000 |
commit | 59d18ac52be9063316ffa7ddabbd0f2b62d2fd2a (patch) | |
tree | f5ff1d045cbe2b6803739e470b9fb496151d0ce6 /net-fs/samba | |
parent | Version bump. (diff) | |
download | gentoo-2-59d18ac52be9063316ffa7ddabbd0f2b62d2fd2a.tar.gz gentoo-2-59d18ac52be9063316ffa7ddabbd0f2b62d2fd2a.tar.bz2 gentoo-2-59d18ac52be9063316ffa7ddabbd0f2b62d2fd2a.zip |
init script creates /var/run/samba if needed , bug #346087
(Portage version: 2.1.9.24/cvs/Linux i686)
Diffstat (limited to 'net-fs/samba')
-rw-r--r-- | net-fs/samba/ChangeLog | 6 | ||||
-rw-r--r-- | net-fs/samba/files/3.4/samba.initd | 10 | ||||
-rw-r--r-- | net-fs/samba/files/3.5/samba.initd | 10 |
3 files changed, 21 insertions, 5 deletions
diff --git a/net-fs/samba/ChangeLog b/net-fs/samba/ChangeLog index 8dced1684722..6af78801a52c 100644 --- a/net-fs/samba/ChangeLog +++ b/net-fs/samba/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-fs/samba # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.453 2010/11/05 15:28:58 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.454 2010/12/20 20:35:07 vostorga Exp $ + + 20 Dec 2010; Víctor Ostorga <vostorga@gentoo.org> files/3.4/samba.initd, + files/3.5/samba.initd: + init script creates /var/run/samba if needed , bug #346087 05 Nov 2010; Tomáš Chvátal <scarabeus@gentoo.org> -samba-3.4.8.ebuild, -samba-3.5.5.ebuild: diff --git a/net-fs/samba/files/3.4/samba.initd b/net-fs/samba/files/3.4/samba.initd index 9987f1ed6f53..2815e4ecfbe6 100644 --- a/net-fs/samba/files/3.4/samba.initd +++ b/net-fs/samba/files/3.4/samba.initd @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.4/samba.initd,v 1.1 2010/02/26 20:11:18 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.4/samba.initd,v 1.2 2010/12/20 20:35:07 vostorga Exp $ opts="reload" @@ -32,8 +32,14 @@ signal_do() { done return ${result} } + +mkdir_sambadirs() { + [ -d /var/run/samba ] || mkdir -p /var/run/samba +} + start() { ${my_service_PRE} + mkdir_sambadirs signal_do start && return 0 eerror "Error: starting services (see system logs)" diff --git a/net-fs/samba/files/3.5/samba.initd b/net-fs/samba/files/3.5/samba.initd index 584b509aa0bc..a1a2fae1a973 100644 --- a/net-fs/samba/files/3.5/samba.initd +++ b/net-fs/samba/files/3.5/samba.initd @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.5/samba.initd,v 1.1 2010/03/01 16:19:54 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.5/samba.initd,v 1.2 2010/12/20 20:35:07 vostorga Exp $ opts="reload" @@ -32,8 +32,14 @@ signal_do() { done return ${result} } + +mkdir_sambadirs() { + [ -d /var/run/samba ] || mkdir -p /var/run/samba +} + start() { ${my_service_PRE} + mkdir_sambadirs signal_do start && return 0 eerror "Error: starting services (see system logs)" |