minor fixes for setup-pulseaudio script
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=54
This commit is contained in:
parent
99f1b46071
commit
aada13f0fe
@ -1,7 +1,8 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 12 09:55:04 CEST 2010 - tiwai@suse.de
|
Thu Aug 12 09:55:04 CEST 2010 - tiwai@suse.de
|
||||||
|
|
||||||
- add /etc/profile.d/pulseaudio.* to file list as ghost
|
- minor fixes for setup-pulseaudio (bnc#623837)
|
||||||
|
also added /etc/profile.d/pulseaudio.* to file list as ghost
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 20 18:41:58 CEST 2010 - tiwai@suse.de
|
Tue Jul 20 18:41:58 CEST 2010 - tiwai@suse.de
|
||||||
|
@ -394,6 +394,9 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
|
|||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
install %SOURCE2 $RPM_BUILD_ROOT%{_bindir}
|
install %SOURCE2 $RPM_BUILD_ROOT%{_bindir}
|
||||||
chmod 755 $RPM_BUILD_ROOT%{_bindir}/setup-pulseaudio
|
chmod 755 $RPM_BUILD_ROOT%{_bindir}/setup-pulseaudio
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
||||||
|
touch $RPM_BUILD_ROOT/etc/profile.d/pulseaudio.sh
|
||||||
|
touch $RPM_BUILD_ROOT/etc/profile.d/pulseaudio.csh
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/gdm/.pulse
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/gdm/.pulse
|
||||||
cp $RPM_SOURCE_DIR/default.pa-for-gdm $RPM_BUILD_ROOT%{_localstatedir}/lib/gdm/.pulse/default.pa
|
cp $RPM_SOURCE_DIR/default.pa-for-gdm $RPM_BUILD_ROOT%{_localstatedir}/lib/gdm/.pulse/default.pa
|
||||||
ln -s esdcompat $RPM_BUILD_ROOT%{_bindir}/esd
|
ln -s esdcompat $RPM_BUILD_ROOT%{_bindir}/esd
|
||||||
@ -434,8 +437,8 @@ groupadd -r pulse-access &>/dev/null || :
|
|||||||
%{_bindir}/pulseaudio
|
%{_bindir}/pulseaudio
|
||||||
%{_bindir}/setup-pulseaudio
|
%{_bindir}/setup-pulseaudio
|
||||||
# created by setup-pulseaudio script
|
# created by setup-pulseaudio script
|
||||||
%ghost %attr(644,root,root) /etc/profile.d/pulseaudio.sh
|
%ghost /etc/profile.d/pulseaudio.sh
|
||||||
%ghost %attr(644,root,root) /etc/profile.d/pulseaudio.csh
|
%ghost /etc/profile.d/pulseaudio.csh
|
||||||
%dir %{_libdir}/pulse-%{drvver}/
|
%dir %{_libdir}/pulse-%{drvver}/
|
||||||
%dir %{_libdir}/pulse-%{drvver}/modules/
|
%dir %{_libdir}/pulse-%{drvver}/modules/
|
||||||
%{_libdir}/libpulsecore-%{drvver}.so
|
%{_libdir}/libpulsecore-%{drvver}.so
|
||||||
|
@ -31,13 +31,13 @@ CPROFNAME=/etc/profile.d/pulseaudio.csh
|
|||||||
set_variable () {
|
set_variable () {
|
||||||
if test -f $PROFNAME &&
|
if test -f $PROFNAME &&
|
||||||
grep -q "export $1"= $PROFNAME; then
|
grep -q "export $1"= $PROFNAME; then
|
||||||
sed -ie "s|export $1=.*|export $1=$2|g" $PROFNAME
|
sed -i -e "s|export $1=.*|export $1=$2|g" $PROFNAME
|
||||||
else
|
else
|
||||||
echo "export $1=$2" >> $PROFNAME
|
echo "export $1=$2" >> $PROFNAME
|
||||||
fi
|
fi
|
||||||
if test -f $CPROFNAME &&
|
if test -f $CPROFNAME &&
|
||||||
grep -q "setenv $1 " $CPROFNAME; then
|
grep -q "setenv $1 " $CPROFNAME; then
|
||||||
sed -ie "s|setenv $1 .*|setenv $1 $2|g" $CPROFNAME
|
sed -i -e "s|setenv $1 .*|setenv $1 $2|g" $CPROFNAME
|
||||||
else
|
else
|
||||||
echo "setenv $1 $2" >> $CPROFNAME
|
echo "setenv $1 $2" >> $CPROFNAME
|
||||||
fi
|
fi
|
||||||
@ -46,11 +46,11 @@ set_variable () {
|
|||||||
delete_variable () {
|
delete_variable () {
|
||||||
if test -f $PROFNAME &&
|
if test -f $PROFNAME &&
|
||||||
grep -q "export $1"= $PROFNAME; then
|
grep -q "export $1"= $PROFNAME; then
|
||||||
sed -ie "/export $1=.*/d" $PROFNAME
|
sed -i -e "/export $1=.*/d" $PROFNAME
|
||||||
fi
|
fi
|
||||||
if test -f $CPROFNAME &&
|
if test -f $CPROFNAME &&
|
||||||
grep -q "setenv $1 " $CPROFNAME; then
|
grep -q "setenv $1 " $CPROFNAME; then
|
||||||
sed -ie "/setenv $1 .*/d" $CPROFNAME
|
sed -i -e "/setenv $1 .*/d" $CPROFNAME
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,8 +251,10 @@ case $1 in
|
|||||||
disable_speechd
|
disable_speechd
|
||||||
;;
|
;;
|
||||||
--status)
|
--status)
|
||||||
STATUS=`grep PULSEAUDIO_ENABLE /etc/sysconfig/sound | cut -f2 -d= | cut -f2 -d\"`
|
if [ -f /etc/sysconfig/sound ]; then
|
||||||
if [ "x$STATUS" = "xyes" ]; then
|
. /etc/sysconfig/sound
|
||||||
|
fi
|
||||||
|
if [ "x$PULSEAUDIO_ENABLE" = "xyes" ]; then
|
||||||
echo "enabled"
|
echo "enabled"
|
||||||
else
|
else
|
||||||
echo "disabled"
|
echo "disabled"
|
||||||
|
Loading…
Reference in New Issue
Block a user