sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (6031799ec82df072f366a52b296f08a8062df437)
- From: Vlad Glagolev <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (6031799ec82df072f366a52b296f08a8062df437)
- Date: Fri, 26 Feb 2010 07:38:00 -0600
GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:
net/samba/HISTORY | 6 ++++++
net/samba/INSTALL | 5 +++++
net/samba/init.d/samba | 2 ++
net/samba/init.d/samba.conf | 8 ++++++++
4 files changed, 21 insertions(+)
New commits:
commit 6031799ec82df072f366a52b296f08a8062df437
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>
samba: use custom script to execute specified actions before starting smbd
diff --git a/net/samba/HISTORY b/net/samba/HISTORY
index 0f269e0..b334565 100644
--- a/net/samba/HISTORY
+++ b/net/samba/HISTORY
@@ -1,3 +1,9 @@
+2010-02-26 Vlad Glagolev <stealth AT sourcemage.org>
+ * init.d/samba.conf: added
+ * init.d/samba: include samba script from /etc/sysconfig
+ * INSTALL: install samba.conf to sysconfig for custom commands before
+ starting a daemon
+
2010-02-24 Ladislav Hagara <hgr AT vabo.cz>
* DETAILS: 3.4.6
diff --git a/net/samba/INSTALL b/net/samba/INSTALL
index 448c63f..fe217d8 100755
--- a/net/samba/INSTALL
+++ b/net/samba/INSTALL
@@ -15,6 +15,11 @@ if [[ ! -f $INSTALL_ROOT/etc/samba/private/smbpasswd
]]; then
chmod 600 $INSTALL_ROOT/etc/samba/private/smbpasswd
fi &&
+if [[ $INIT_INSTALLED ]]; then
+ install_config_file "$SPELL_DIRECTORY/init.d/samba.conf" \
+ "$INSTALL_ROOT/etc/sysconfig/samba"
+fi &&
+
#
# Install libwinbind if it exists
#
diff --git a/net/samba/init.d/samba b/net/samba/init.d/samba
index ca653d3..1db8804 100644
--- a/net/samba/init.d/samba
+++ b/net/samba/init.d/samba
@@ -9,6 +9,8 @@ ARGS="-D"
start()
{
+ . /etc/sysconfig/samba
+
if [ ! -e /var/run/samba ]; then
mkdir /var/run/samba
fi &&
diff --git a/net/samba/init.d/samba.conf b/net/samba/init.d/samba.conf
new file mode 100644
index 0000000..1391056
--- /dev/null
+++ b/net/samba/init.d/samba.conf
@@ -0,0 +1,8 @@
+# issue some commands before starting samba
+#
+# Example:
+#
+# export LDAPTLS_REQCERT=demand
+# export LDAPTLS_CERT="/etc/openldap/client.crt"
+# export LDAPTLS_KEY="/etc/openldap/client.key"
+# export LDAPTLS_CACERT="/etc/ssl/ca.crt"
- [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (6031799ec82df072f366a52b296f08a8062df437), Vlad Glagolev, 02/26/2010
Archive powered by MHonArc 2.6.24.