#!/bin/sh
+set -o errexit
+
# First argument of this script is the package name
# Reading system configuration informations, functions and package versions.
source ../functions
source ../packages-list
-CUR_DIR=$(pwd)
-
# Applying patches (if any)
-apply_patches ${1} &&
+apply_patches ${1}
-hv_groupadd pulse &&
-hv_groupadd pulse-access &&
-hv_useradd -g pulse -d /var/run/pulse pulse &&
+hv_groupadd pulse
+hv_groupadd pulse-access
+hv_useradd -g pulse -d /var/run/pulse pulse
gpasswd -a hugo pulse-access
# Il faut ajouter l'usager pulse au groupe audio.
gpasswd -a pulse audio
-cd ${LFS_TMP}/${1}-build &&
+cd ${LFS_TMP}/${1}-build
../${1}/configure \
--prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var &&
+ --localstatedir=/var
# Workaround pour éliminer les messages de warning
# reliés à SHM...
-sed -i -e "s!\(#define HAVE_SHM_OPEN 1\)!/* \1 */!g" config.h &&
+sed -i -e "s!\(#define HAVE_SHM_OPEN 1\)!/* \1 */!g" config.h
-make &&
-make install &&
-ldconfig &&
+make
+make install
+ldconfig
-cat > /etc/pulse/daemon.conf << "EOF" &&
+cat > /etc/pulse/daemon.conf << "EOF"
## Extra verbositiy
verbose = debug
disable-shm = 1
EOF
-cat > /etc/pulse/default.pa << "EOF" &&
+cat > /etc/pulse/default.pa << "EOF"
#!/usr/bin/pulseaudio -nF
# ----------------
load-module module-rescue-streams
EOF
-install -v -m740 ${CUR_DIR}/bootscripts/pulseaudio /etc/rc.d/init.d &&
+install -v -m740 ${SCRDIR}/bootscripts/pulseaudio /etc/rc.d/init.d
# script-name start stop
bootscript_add_rc3 pulseaudio 95 16
-# Return last error
exit $?