From 05861fab7a4cec51e3604a65163feaf53286c30e Mon Sep 17 00:00:00 2001 From: piernov Date: Sat, 3 Sep 2011 04:08:36 +0200 Subject: pulseaudio 0.99.3-1 màj port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pulseaudio/NuTyX_config.patch | 94 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 pulseaudio/NuTyX_config.patch (limited to 'pulseaudio/NuTyX_config.patch') diff --git a/pulseaudio/NuTyX_config.patch b/pulseaudio/NuTyX_config.patch new file mode 100644 index 0000000..585b0e6 --- /dev/null +++ b/pulseaudio/NuTyX_config.patch @@ -0,0 +1,94 @@ +--- a/src/daemon/esdcompat.in ++++ b/src/daemon/esdcompat.in +@@ -24,7 +24,19 @@ fail() { + exit 1 + } + +-ARGS=" --log-target=syslog" ++# Modifications de NuTyX ++CONFIG=/etc/sysconfig/sound ++ ++PULSE_ARGS=" --log-target=syslog" ++[ -r "$CONFIG" ] && . $CONFIG ++ ++if [ "$ENABLE_PULSEAUDIO" != "yes" ]; then ++ echo "PulseAudio étant désactivé dans la configuration, il ne sera pas lancé." >&2 ++ exit ++fi ++ ++ARGS=" $PULSE_ARGS" ++# Fin des modifications + + while [ "$#" -gt "0" ]; do + +@@ -74,10 +86,10 @@ EOF + shift + ARGS="$ARGS '-Lmodule-esound-compat-spawnfd fd=$1'" + ;; +- +- -unix|-b|-public|-terminate|-nobeeps|-trust|-tcp|-promiscuous) ++ ++ -unix|-b|-public|-terminate|-nobeeps|-trust|-tcp|-promiscuous) + # Ignore these commands +- ;; ++ ;; + + -d|-r|-as|-port|-bind) + # Ignore these commands and their arguments +--- a/src/daemon/start-pulseaudio-x11.in ++++ b/src/daemon/start-pulseaudio-x11.in +@@ -19,7 +19,19 @@ + + set -e + +-@PA_BINARY@ --start "$@" ++# Modifications NuTyX ++CONFIG=/etc/sysconfig/sound ++ ++PULSE_ARGS=" --log-target=syslog" ++[ -r "$CONFIG" ] && . $CONFIG ++ ++if [ "$ENABLE_PULSEAUDIO" != "yes" ]; then ++ echo "PulseAudio étant désactivé dans la configuration, il ne sera pas lancé." >&2 ++else ++ ++@PA_BINARY@ --start ${PULSE_ARGS} "$@" ++ ++# Fin des modifications + + if [ x"$DISPLAY" != x ] ; then + +@@ -30,3 +42,5 @@ if [ x"$DISPLAY" != x ] ; then + @PACTL_BINARY@ load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null + fi + fi ++ ++fi +--- a/src/daemon/start-pulseaudio-kde.in ++++ b/src/daemon/start-pulseaudio-kde.in +@@ -21,10 +21,24 @@ set -e + + [ -z "$PULSE_SERVER" ] + +-@PA_BINARY@ --start "$@" ++# Modifications NuTyX ++CONFIG=/etc/sysconfig/sound ++ ++PULSE_ARGS=" --log-target=syslog" ++[ -r "$CONFIG" ] && . $CONFIG ++ ++if [ "$ENABLE_PULSEAUDIO" != "yes" ]; then ++ echo "PulseAudio étant désactivé dans la configuration, il ne sera pas lancé." >&2 ++else ++ ++@PA_BINARY@ --start ${PULSE_ARGS} "$@" ++ ++# Fin des modifications + + if [ x"$DISPLAY" != x ] ; then + + @PACTL_BINARY@ load-module module-device-manager "do_routing=1" > /dev/null + + fi ++ ++fi -- cgit v1.2.3-70-g09d2