[pulseaudio] 02/04: Use systemd socket activation by default on linux systems
Felipe Sateler
fsateler at moszumanska.debian.org
Sat Nov 18 15:29:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
fsateler pushed a commit to annotated tag debian/11.1-2
in repository pulseaudio.
commit 5c1ef223ab11096aa7dfcbb9addf5513aaedefa9
Author: Felipe Sateler <fsateler at debian.org>
Date: Fri Nov 17 20:22:02 2017 -0300
Use systemd socket activation by default on linux systems
At the same time, disable autospawn to prevent conflicts
Non-linux archs are left untouched
---
debian/00-disable-autospawn.conf | 3 +++
debian/libpulse0.dirs | 1 +
debian/libpulse0.install | 2 ++
debian/rules | 6 ++++++
4 files changed, 12 insertions(+)
diff --git a/debian/00-disable-autospawn.conf b/debian/00-disable-autospawn.conf
new file mode 100644
index 0000000..7dfaf58
--- /dev/null
+++ b/debian/00-disable-autospawn.conf
@@ -0,0 +1,3 @@
+# On linux systems, disable autospawn by default
+# If you are not using systemd, comment out this line
+autospawn=no
diff --git a/debian/libpulse0.dirs b/debian/libpulse0.dirs
new file mode 100644
index 0000000..0e40994
--- /dev/null
+++ b/debian/libpulse0.dirs
@@ -0,0 +1 @@
+etc/pulse/client.conf.d
diff --git a/debian/libpulse0.install b/debian/libpulse0.install
old mode 100644
new mode 100755
index cf55606..4dfbe0f
--- a/debian/libpulse0.install
+++ b/debian/libpulse0.install
@@ -1,4 +1,6 @@
+#!/usr/bin/dh-exec
etc/pulse/client.conf
+[linux-any] debian/00-disable-autospawn.conf etc/pulse/client.conf.d/
usr/lib/*/libpulse.so.*
usr/lib/*/libpulse-simple.so.*
usr/lib/*/pulseaudio/libpulsecommon-*.so
diff --git a/debian/rules b/debian/rules
index f75d9e1..f3dba3f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,6 +61,12 @@ override_dh_shlibdeps:
override_dh_install:
dh_install --fail-missing
+override_dh_link:
+ dh_link
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+ dh_link usr/lib/systemd/user/pulseaudio.socket usr/lib/systemd/user/sockets.target.wants/pulseaudio.socket
+endif
+
override_dh_installdocs:
dh_installdocs -A NEWS README
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-pulseaudio/pulseaudio.git
More information about the pkg-pulseaudio-devel
mailing list