diff options
author | Arjan Bouter | 2006-06-20 16:16:11 +0200 |
---|---|---|
committer | Arjan Bouter | 2006-06-20 16:16:11 +0200 |
commit | 095e935d8d401a70977da8aacba649e1b291eca0 (patch) | |
tree | 8a6b8f9002959749e6220a94513ebb85d1b5a7d9 /audio-drivers/nas | |
parent | 86d2f1d0e48127466623e1856f4f5d264e88f3bb (diff) |
added init script and missing dependency
Diffstat (limited to 'audio-drivers/nas')
-rwxr-xr-x | audio-drivers/nas/DEPENDS | 3 | ||||
-rw-r--r-- | audio-drivers/nas/HISTORY | 5 | ||||
-rwxr-xr-x | audio-drivers/nas/init.d/nasd | 14 | ||||
-rw-r--r-- | audio-drivers/nas/init.d/nasd.conf | 23 | ||||
-rw-r--r-- | audio-drivers/nas/profile.d/nasd.sh | 11 |
5 files changed, 55 insertions, 1 deletions
diff --git a/audio-drivers/nas/DEPENDS b/audio-drivers/nas/DEPENDS index 3a9795107a..e24d20a5dc 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 d7e6a06d75..76935f1f34 100644 --- a/audio-drivers/nas/HISTORY +++ b/audio-drivers/nas/HISTORY @@ -1,3 +1,8 @@ +2006-06-20 Arjan Bouter <abouter@sourcemage.org> + * DEPENDS: added rman + * init.d: added init script and config + * profile.d: added config script + 2006-03-12 Karsten Behrmann <BearPerson@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 0000000000..004431cf94 --- /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 0000000000..5f0276a646 --- /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 0000000000..a2ed4dcb33 --- /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 |