Hello community,

here is the log from the commit of package pulseaudio for openSUSE:Factory 
checked in at 2013-10-11 09:02:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pulseaudio (Old)
 and      /work/SRC/openSUSE:Factory/.pulseaudio.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pulseaudio"

Changes:
--------
--- /work/SRC/openSUSE:Factory/pulseaudio/pulseaudio.changes    2013-10-08 
12:52:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.pulseaudio.new/pulseaudio.changes       
2013-10-11 09:02:11.000000000 +0200
@@ -20,0 +21,5 @@
+Wed Sep 11 10:34:33 CEST 2013 - [email protected]
+
+- support for system wide mode (separate subpackage with service)
+
+-------------------------------------------------------------------

New:
----
  pulseaudio.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pulseaudio.spec ++++++
--- /var/tmp/diff_new_pack.PgGyDU/_old  2013-10-11 09:02:30.000000000 +0200
+++ /var/tmp/diff_new_pack.PgGyDU/_new  2013-10-11 09:02:30.000000000 +0200
@@ -34,13 +34,11 @@
 Source2:        setup-pulseaudio
 Source3:        sysconfig.sound-pulseaudio
 Source4:        pulseaudio-server.fw
+Source5:        pulseaudio.service
 Source99:       baselibs.conf
 Patch0:         disabled-start.diff
 Patch1:         suppress-socket-error-msg.diff
 Patch2:         pulseaudio-wrong-memset.patch
-%if 0%{?suse_version} >= 1210
-BuildRequires:  pkgconfig(systemd)
-%endif
 BuildRequires:  alsa-devel >= 1.0.24
 BuildRequires:  bluez-devel >= 5
 BuildRequires:  doxygen
@@ -63,6 +61,8 @@
 BuildRequires:  lirc-devel
 BuildRequires:  orc >= 0.4.9
 BuildRequires:  speex-devel
+BuildRequires:  systemd
+BuildRequires:  systemd-devel
 BuildRequires:  tcpd-devel
 BuildRequires:  translation-update-upstream
 BuildRequires:  update-desktop-files
@@ -146,6 +146,26 @@
 
 This package provides zeroconf network support for the PulseAudio sound server
 
+%package system-wide
+Summary:        Support for running PulseAudio daemon system wide
+Group:          System/Sound Daemons
+Requires:       %{name}
+Requires:       systemd
+%systemd_requires
+
+%description system-wide
+PulseAudio daemon can be run as a system-wide instance which than can be shared
+by multiple local users. We recommend running the PulseAudio daemon per-user,
+just like the traditional ESD sound daemon. In some situations however, such as
+embedded systems where no real notion of a user exists, it makes sense to use
+the system-wide mode.
+
+Before you now go ahead and use it please read about what is wrong with system
+mode:
+
+http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide
+
+
 %package module-jack
 Summary:        JACK support for the PulseAudio sound server
 Group:          System/Sound Daemons
@@ -296,6 +316,10 @@
 # configure --disable-static had no effect; delete manually.
 rm -rf "%{buildroot}%{_libdir}"/*.a
 
+install -D -m 0644 %{SOURCE5} 
%{buildroot}/usr/lib/systemd/system/%{name}.service
+mkdir -p %{buildroot}%{_sbindir}
+ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
+
 # openSUSE 11.3 cannot find the .desktop files
 %suse_update_desktop_file pulseaudio
 %suse_update_desktop_file pulseaudio-kde
@@ -342,6 +366,22 @@
 
 %postun -p /sbin/ldconfig
 
+%pre system-wide
+%service_add_pre pulseaudio.service
+exit 0
+
+%post system-wide
+%service_add_post pulseaudio.service
+exit 0
+
+%preun system-wide
+%service_del_preun pulseaudio.service
+exit 0
+
+%postun system-wide
+%service_del_preun pulseaudio.service
+exit 0
+
 %files
 %defattr(-,root,root)
 %doc README LICENSE GPL LGPL
@@ -564,4 +604,10 @@
 
 %files lang -f %{name}.lang
 
+%files system-wide
+%{_sbindir}/rc%{name}
+%dir /usr/lib/systemd
+%dir /usr/lib/systemd/system
+/usr/lib/systemd/system/%{name}.service
+
 %changelog

++++++ disabled-start.diff ++++++
--- /var/tmp/diff_new_pack.PgGyDU/_old  2013-10-11 09:02:30.000000000 +0200
+++ /var/tmp/diff_new_pack.PgGyDU/_new  2013-10-11 09:02:30.000000000 +0200
@@ -8,7 +8,7 @@
  
 +. /etc/sysconfig/sound
 +
-+if [ x"$PULSEAUDIO_ENABLE" = x"no" ] ; then
++if [ x"$PULSEAUDIO_ENABLE" = x"no" ] || [ x"$PULSEAUDIO_SYSTEM" = x"yes" ] ; 
then
 +    exit 1
 +fi
 +
@@ -25,7 +25,7 @@
  
 +. /etc/sysconfig/sound
 +
-+if [ x"$PULSEAUDIO_ENABLE" = x"no" ] ; then
++if [ x"$PULSEAUDIO_ENABLE" = x"no" ] || [ x"$PULSEAUDIO_SYSTEM" = x"yes" ]; 
then
 +    exit 1
 +fi
 +

++++++ pulseaudio.service ++++++
[Unit]
Description=System wide PulseAudio instance
After=syslog.target network.target alsasound.service

[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/pulseaudio --system --log-target=syslog

[Install]
WantedBy=multi-user.target
++++++ sysconfig.sound-pulseaudio ++++++
--- /var/tmp/diff_new_pack.PgGyDU/_old  2013-10-11 09:02:30.000000000 +0200
+++ /var/tmp/diff_new_pack.PgGyDU/_new  2013-10-11 09:02:30.000000000 +0200
@@ -7,3 +7,15 @@
 # scripts automatically change sound-related configuration for PulseAudio.
 #
 PULSEAUDIO_ENABLE="yes"
+
+## Path:       Hardware/Soundcard/PulseAudio/SystemWide
+## Description:        System Wide PulseAudio
+## Type:       list(yes,no)
+#
+# Allows you to configure that you have system wide PulseAudio daemon. Such is
+# setup is not recommended. To make it work, you would need
+# pulseaudio-systemwide package and enable pulseaudio systemd service. If you
+# are not sure whether you want this, you don't. So unless you know what you
+# are doing, keep this set to "no".
+#
+PULSEAUDIO_SYSTEM="no"

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to