mirror of
https://gitlab.com/CinnamonSlackBuilds/csb.git
synced 2024-12-26 21:59:28 +01:00
pulseaudio: Upgraded to 7.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
c43c87dea5
commit
1315a7e646
5 changed files with 10 additions and 80 deletions
BIN
pulseaudio/020_no-parallel-make.diff.gz
Normal file
BIN
pulseaudio/020_no-parallel-make.diff.gz
Normal file
Binary file not shown.
BIN
pulseaudio/030_posix-completion.diff.gz
Normal file
BIN
pulseaudio/030_posix-completion.diff.gz
Normal file
Binary file not shown.
|
@ -10,17 +10,8 @@ config() {
|
|||
fi
|
||||
# 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
|
||||
config etc/pulse/system.pa.new
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
# Modified by Willy Sudiarto Raharjo for CSB Project
|
||||
|
||||
PRGNAM=pulseaudio
|
||||
VERSION=${VERSION:-7.0}
|
||||
BUILD=${BUILD:-2}
|
||||
VERSION=${VERSION:-7.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_csb}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -60,18 +60,8 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
if pkg-config --exists orc-0.4 ; then
|
||||
ORC=yes
|
||||
else
|
||||
ORC=no
|
||||
fi
|
||||
|
||||
if pkg-config --exists bash-completion ; then
|
||||
BASHCOMPLETIONDIR=$(pkg-config --variable=completionsdir bash-completion)
|
||||
else
|
||||
echo "Setting completions directory manually."
|
||||
BASHCOMPLETIONDIR=/usr/share/bash-completion/completions
|
||||
fi
|
||||
zcat $CWD/020_no-parallel-make.diff.gz | patch -p0 --verbose || exit 1
|
||||
zcat $CWD/030_posix-completion.diff.gz | patch -p0 --verbose || exit 1
|
||||
|
||||
sed -i -e '/@PA_BINARY@/ imkdir -p \$HOME/.config/pulse' src/daemon/start-pulseaudio-x11.in
|
||||
echo "X-MATE-Autostart-Phase=Initialization" >>src/daemon/pulseaudio.desktop.in
|
||||
|
@ -84,33 +74,25 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--enable-orc=${ORC} \
|
||||
--enable-hal-compat \
|
||||
--enable-orc \
|
||||
--disable-static \
|
||||
--disable-default-build-tests \
|
||||
--disable-tcpwrap \
|
||||
--disable-hal-compat \
|
||||
--with-system-user=pulse \
|
||||
--with-system-group=pulse \
|
||||
--with-access-group=audio \
|
||||
--with-bash-completion-dir=$BASHCOMPLETIONDIR \
|
||||
--with-bash-completion-dir=/usr/share/bash-completion/completions \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make -j1
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
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
|
||||
for f in $( find $PKG/etc/pulse/ -type f ) ; do mv $f $f.new ; done
|
||||
|
||||
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/var/lib/pulse/.config/pulse
|
||||
chown -R pulse:pulse $PKG/var/lib/pulse
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a *GPL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
#!/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