Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Arjan Bouter (095e935d8d401a70977da8aacba649e1b291eca0)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Arjan Bouter <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Arjan Bouter (095e935d8d401a70977da8aacba649e1b291eca0)
  • Date: Tue, 20 Jun 2006 09:17:37 -0500

GIT changes to master grimoire by Arjan Bouter <abouter AT sourcemage.org>:

audio-drivers/nas/DEPENDS | 3 ++-
audio-drivers/nas/HISTORY | 5 +++++
audio-drivers/nas/init.d/nasd | 14 ++++++++++++++
audio-drivers/nas/init.d/nasd.conf | 23 +++++++++++++++++++++++
audio-drivers/nas/profile.d/nasd.sh | 11 +++++++++++
5 files changed, 55 insertions(+), 1 deletion(-)

New commits:
commit 095e935d8d401a70977da8aacba649e1b291eca0
Author: Arjan Bouter <abouter AT sourcemage.org>
Commit: Arjan Bouter <abouter AT sourcemage.org>

added init script and missing dependency

diff --git a/audio-drivers/nas/DEPENDS b/audio-drivers/nas/DEPENDS
index 3a97951..e24d20a 100755
--- a/audio-drivers/nas/DEPENDS
+++ b/audio-drivers/nas/DEPENDS
@@ -1 +1,2 @@
-depends X11-SERVER
+depends X11-SERVER &&
+depends rman
diff --git a/audio-drivers/nas/HISTORY b/audio-drivers/nas/HISTORY
index d7e6a06..76935f1 100644
--- a/audio-drivers/nas/HISTORY
+++ b/audio-drivers/nas/HISTORY
@@ -1,3 +1,8 @@
+2006-06-20 Arjan Bouter <abouter AT sourcemage.org>
+ * DEPENDS: added rman
+ * init.d: added init script and config
+ * profile.d: added config script
+
2006-03-12 Karsten Behrmann <BearPerson AT sourcemage.org>
* DETAILS: (automated) Add KEYWORDS

diff --git a/audio-drivers/nas/init.d/nasd b/audio-drivers/nas/init.d/nasd
new file mode 100755
index 0000000..004431c
--- /dev/null
+++ b/audio-drivers/nas/init.d/nasd
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+PROGRAM="/usr/X11R6/bin/nasd"
+RUNLEVEL=3
+NEEDS="+remote_fs alsa"
+
+. /etc/sysconfig/nasd
+
+[ ! -z ${NAS_PORT_OFFSET} ] && ARGS=":${NAS_PORT_OFFSET}"
+[ "${NAS_LOCAL_ONLY}" == "yes" ] && ARGS="${ARGS} -local"
+ARGS="${ARGS} -b"
+
+. /etc/init.d/smgl_init
+
diff --git a/audio-drivers/nas/init.d/nasd.conf
b/audio-drivers/nas/init.d/nasd.conf
new file mode 100644
index 0000000..5f0276a
--- /dev/null
+++ b/audio-drivers/nas/init.d/nasd.conf
@@ -0,0 +1,23 @@
+# this file configures the settings for the nasd init script
+
+## Server options:
+
+#NAS_PORT_OFFSET specifies which port to use. The default port is 8000,
+#so setting this to 1 would mean nasd will use port 8001.
+NAS_PORT_OFFSET=1
+
+#NAS_LOCAL_ONLY makes the nasd server only respond to audio streams from
+#the local machine (localhost) and ignore network connections.
+NAS_LOCAL_ONLY=yes
+
+## Client options
+
+#NAS_AUDIOSERVER defines the hostname or ip-address on which the server
+#is listening. localhost by default.
+NAS_AUDIOSERVER=localhost
+
+#NAS_PORT specifies the port on which the server is listening.
+#it's 8000+n where n is the offset specified on the server.
+#the default is 8000
+NAS_PORT=8001
+
diff --git a/audio-drivers/nas/profile.d/nasd.sh
b/audio-drivers/nas/profile.d/nasd.sh
new file mode 100644
index 0000000..a2ed4dc
--- /dev/null
+++ b/audio-drivers/nas/profile.d/nasd.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# First check if this variable is already set
+# then if not set, check it (maybe), then set it
+
+if [ -e /etc/sysconfig/nasd ] ; then
+ . /etc/sysconfig/nasd
+ if [ -z "$AUDIOSERVER" ] ; then
+ AUDIOSERVER="tcp/$NAS_AUDIOSERVER:$NAS_PORT"
+ fi &&
+ export AUDIOSERVER
+fi



  • [SM-Commit] GIT changes to master grimoire by Arjan Bouter (095e935d8d401a70977da8aacba649e1b291eca0), Arjan Bouter, 06/20/2006

Archive powered by MHonArc 2.6.24.

Top of Page