mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
audio/pulseaudio: Updated for version 1.1.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
11c0915bd6
commit
4e19a2eb82
5 changed files with 71 additions and 10 deletions
|
@ -10,3 +10,5 @@ on the gid and uid assignments.
|
|||
|
||||
Requires: speex
|
||||
Optional: jack-audio-connection-kit, avahi, lirc, libasyncns, GConf
|
||||
|
||||
Available build option(s) : ORC=yes
|
||||
|
|
|
@ -11,6 +11,19 @@ config() {
|
|||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
preserve_perms() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
if [ -e $OLD ]; then
|
||||
cp -a $OLD ${NEW}.incoming
|
||||
cat $NEW > ${NEW}.incoming
|
||||
mv ${NEW}.incoming $NEW
|
||||
fi
|
||||
config $NEW
|
||||
}
|
||||
|
||||
|
||||
config etc/pulse/client.conf.new
|
||||
config etc/pulse/default.pa.new
|
||||
config etc/pulse/daemon.conf.new
|
||||
preserve_perms etc/rc.d/rc.pulseaudio.new
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# Written by crocket (crockabiscuit@gmail.com)
|
||||
|
||||
PRGNAM=pulseaudio
|
||||
VERSION=0.9.23
|
||||
VERSION=1.1
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -52,7 +52,7 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
|
@ -61,8 +61,6 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/pulseaudio-$VERSION.diff
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
@ -71,10 +69,12 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--enable-tcpwrap \
|
||||
--disable-tcpwrap \
|
||||
--enable-orc=${ORC:-"no"} \
|
||||
--disable-static \
|
||||
--disable-hal \
|
||||
--disable-hal --disable-hal-compat \
|
||||
--disable-solaris \
|
||||
--disable-waveout \
|
||||
--with-system-user=pulse \
|
||||
--with-system-group=pulse \
|
||||
--with-access-group=audio \
|
||||
|
@ -87,11 +87,14 @@ mv $PKG/etc/pulse/client.conf $PKG/etc/pulse/client.conf.new
|
|||
mv $PKG/etc/pulse/default.pa $PKG/etc/pulse/default.pa.new
|
||||
mv $PKG/etc/pulse/daemon.conf $PKG/etc/pulse/daemon.conf.new
|
||||
|
||||
mkdir -p $PKG/etc/rc.d
|
||||
cp $CWD/rc.pulseaudio $PKG/etc/rc.d/rc.pulseaudio.new
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ABOUT-NLS *GPL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ABOUT-NLS *GPL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
PRGNAM="pulseaudio"
|
||||
VERSION="0.9.23"
|
||||
VERSION="1.1"
|
||||
HOMEPAGE="http://www.pulseaudio.org"
|
||||
DOWNLOAD="http://freedesktop.org/software/pulseaudio/releases/pulseaudio-0.9.23.tar.gz"
|
||||
DOWNLOAD="http://freedesktop.org/software/pulseaudio/releases/pulseaudio-1.1.tar.xz"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="7391205a337d1e04a9ff38025f684034"
|
||||
MD5SUM="17d21df798cee407b769c6355fae397a"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="crocket"
|
||||
EMAIL="crockabiscuit@gmail.com"
|
||||
|
|
43
audio/pulseaudio/rc.pulseaudio
Normal file
43
audio/pulseaudio/rc.pulseaudio
Normal file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh
|
||||
|
||||
start()
|
||||
{
|
||||
if /usr/bin/sudo -u pulse /usr/bin/pulseaudio --check; then
|
||||
echo "pulseaudio is running."
|
||||
else
|
||||
echo "Starting pulseaudio..."
|
||||
/usr/bin/sudo -u pulse /usr/bin/pulseaudio --start --use-pid-file=yes
|
||||
fi
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
if /usr/bin/sudo -u pulse /usr/bin/pulseaudio --check; then
|
||||
printf "Stopping pulseaudio..."
|
||||
/usr/bin/sudo -u pulse /usr/bin/pulseaudio --kill
|
||||
while /usr/bin/sudo -u pulse /usr/bin/pulseaudio --check; do
|
||||
printf "."
|
||||
sleep 1
|
||||
done
|
||||
echo "Done"
|
||||
else
|
||||
echo "pulseaudio is not running."
|
||||
fi
|
||||
}
|
||||
|
||||
status()
|
||||
{
|
||||
if /usr/bin/sudo -u pulse /usr/bin/pulseaudio --check; then
|
||||
echo "pulseaudio is running."
|
||||
else
|
||||
echo "pulseaudio is not running."
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
'start')start;;
|
||||
'stop')stop;;
|
||||
'restart')stop;start;;
|
||||
'status')status;;
|
||||
*)echo "$0 start|stop|restart|status"
|
||||
esac
|
Loading…
Reference in a new issue