From 252075c5f7d240b72b461547e0fea8666affd791 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Wed, 30 May 2007 15:06:40 +0000 Subject: New revision bump, completed patch. Package-Manager: portage-2.1.2.7 --- media-sound/pulseaudio/ChangeLog | 9 +- media-sound/pulseaudio/Manifest | 38 +++--- .../pulseaudio/files/digest-pulseaudio-0.9.5-r5 | 3 - .../pulseaudio/files/digest-pulseaudio-0.9.5-r6 | 3 + .../files/pulseaudio-0.9.5-CVE-2007-1804.patch | 9 ++ media-sound/pulseaudio/pulseaudio-0.9.5-r5.ebuild | 128 --------------------- media-sound/pulseaudio/pulseaudio-0.9.5-r6.ebuild | 128 +++++++++++++++++++++ 7 files changed, 167 insertions(+), 151 deletions(-) delete mode 100644 media-sound/pulseaudio/files/digest-pulseaudio-0.9.5-r5 create mode 100644 media-sound/pulseaudio/files/digest-pulseaudio-0.9.5-r6 delete mode 100644 media-sound/pulseaudio/pulseaudio-0.9.5-r5.ebuild create mode 100644 media-sound/pulseaudio/pulseaudio-0.9.5-r6.ebuild (limited to 'media-sound/pulseaudio') diff --git a/media-sound/pulseaudio/ChangeLog b/media-sound/pulseaudio/ChangeLog index 8ba96b662172..2b0793874f43 100644 --- a/media-sound/pulseaudio/ChangeLog +++ b/media-sound/pulseaudio/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/pulseaudio # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.51 2007/05/29 23:12:49 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.52 2007/05/30 15:06:40 flameeyes Exp $ + +*pulseaudio-0.9.5-r6 (30 May 2007) + + 30 May 2007; Diego Pettenò + files/pulseaudio-0.9.5-CVE-2007-1804.patch, -pulseaudio-0.9.5-r5.ebuild, + +pulseaudio-0.9.5-r6.ebuild: + New revision bump, completed patch. 29 May 2007; Andrej Kacian pulseaudio-0.9.6.ebuild: Added ~x86, bug #180117. diff --git a/media-sound/pulseaudio/Manifest b/media-sound/pulseaudio/Manifest index f3f80ee02d63..478fd3cf4ddd 100644 --- a/media-sound/pulseaudio/Manifest +++ b/media-sound/pulseaudio/Manifest @@ -1,10 +1,10 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX pulseaudio-0.9.5-CVE-2007-1804.patch 3191 RMD160 50248f247f96f3382eb26af9fd7037ca797d3609 SHA1 d00d88ea44333de2da496a6847d172ccb918ba53 SHA256 13f0ae5e6d60df67a5ab246c7feb0af777f7725cb5334b51f178e73e43f2f73c -MD5 5642df9293e0d4a5efb28376d2a67577 files/pulseaudio-0.9.5-CVE-2007-1804.patch 3191 -RMD160 50248f247f96f3382eb26af9fd7037ca797d3609 files/pulseaudio-0.9.5-CVE-2007-1804.patch 3191 -SHA256 13f0ae5e6d60df67a5ab246c7feb0af777f7725cb5334b51f178e73e43f2f73c files/pulseaudio-0.9.5-CVE-2007-1804.patch 3191 +AUX pulseaudio-0.9.5-CVE-2007-1804.patch 3563 RMD160 1f8995393dca08cf183b55879ded304c13f94e80 SHA1 e209af3445f9e56b5234d2a65b9d57b3ae1ed867 SHA256 ecf96b8aa4ee3f18dc4bba71c22aafcaa650469089ed6e78704095e500e44872 +MD5 adb958f348db1d8623cb5a9ae157d469 files/pulseaudio-0.9.5-CVE-2007-1804.patch 3563 +RMD160 1f8995393dca08cf183b55879ded304c13f94e80 files/pulseaudio-0.9.5-CVE-2007-1804.patch 3563 +SHA256 ecf96b8aa4ee3f18dc4bba71c22aafcaa650469089ed6e78704095e500e44872 files/pulseaudio-0.9.5-CVE-2007-1804.patch 3563 AUX pulseaudio-0.9.5-esdcompat.patch 452 RMD160 dcd88a9b761819f5d23a342ce7d7b60412e44f2d SHA1 d22b4428392e3e1d0e1450ac5b63311c912ea26c SHA256 3fcd75716a4627a1b9093b782963f5d7df2a27e11998d3eefb1f8c6b43abfb72 MD5 8742630795736e87363db80e0b9437cd files/pulseaudio-0.9.5-esdcompat.patch 452 RMD160 dcd88a9b761819f5d23a342ce7d7b60412e44f2d files/pulseaudio-0.9.5-esdcompat.patch 452 @@ -35,18 +35,18 @@ EBUILD pulseaudio-0.9.5-r4.ebuild 3951 RMD160 42add8eed27a509e0790293f9f32b2cb4b MD5 5ea2e33691ec4b4f8f77f7906d8f3a5d pulseaudio-0.9.5-r4.ebuild 3951 RMD160 42add8eed27a509e0790293f9f32b2cb4beedc3d pulseaudio-0.9.5-r4.ebuild 3951 SHA256 39433455058a5aeb6bf5e66e597b8015997b5e7de934bdea6cfd827d6c9c7db1 pulseaudio-0.9.5-r4.ebuild 3951 -EBUILD pulseaudio-0.9.5-r5.ebuild 4012 RMD160 1f07d9f05fd71483bc18de1c2647b02bf55df438 SHA1 a2ca3288ed94f14f9366917666ca11fda586ac33 SHA256 04dc90a66cb87bf33f446b5139244424b1442c350a8da9e15319c165d2360526 -MD5 01981cec384179add30c0fcaf6855165 pulseaudio-0.9.5-r5.ebuild 4012 -RMD160 1f07d9f05fd71483bc18de1c2647b02bf55df438 pulseaudio-0.9.5-r5.ebuild 4012 -SHA256 04dc90a66cb87bf33f446b5139244424b1442c350a8da9e15319c165d2360526 pulseaudio-0.9.5-r5.ebuild 4012 +EBUILD pulseaudio-0.9.5-r6.ebuild 4012 RMD160 48dfdd6b3b363ba6439a1ef9240078960e1e6a64 SHA1 8233cb3f83b743d5e6ae072a272eff73eeb13376 SHA256 095c3174b073231d8aedefe60fce9b24811343c5a40bcb94da5201ee5644ac26 +MD5 fded348dadaabea8f61ce702df7bf4f7 pulseaudio-0.9.5-r6.ebuild 4012 +RMD160 48dfdd6b3b363ba6439a1ef9240078960e1e6a64 pulseaudio-0.9.5-r6.ebuild 4012 +SHA256 095c3174b073231d8aedefe60fce9b24811343c5a40bcb94da5201ee5644ac26 pulseaudio-0.9.5-r6.ebuild 4012 EBUILD pulseaudio-0.9.6.ebuild 3861 RMD160 683dbbf4da5405128cbba7ad4a3ceb75e0fcf67e SHA1 71c79f1bf44985798a3dc7647bfdc3090d1097fc SHA256 9a242fa09d56e3ecb7db0ed86d707279a7097fd17a8f2b28c33d7c6839de29bf MD5 b1b1dc98f445f0e4ca2dc12efa198382 pulseaudio-0.9.6.ebuild 3861 RMD160 683dbbf4da5405128cbba7ad4a3ceb75e0fcf67e pulseaudio-0.9.6.ebuild 3861 SHA256 9a242fa09d56e3ecb7db0ed86d707279a7097fd17a8f2b28c33d7c6839de29bf pulseaudio-0.9.6.ebuild 3861 -MISC ChangeLog 9429 RMD160 26ea2784494c6b72b21e952432eca175401c15c4 SHA1 eeb31b54e5ffa32f4dca4f7341887dac7dc7f854 SHA256 4360a869776af025529290fa808483e78664dcb6369d058094823b881b99d3b1 -MD5 a342457bf014afd2623e3d553d9097c8 ChangeLog 9429 -RMD160 26ea2784494c6b72b21e952432eca175401c15c4 ChangeLog 9429 -SHA256 4360a869776af025529290fa808483e78664dcb6369d058094823b881b99d3b1 ChangeLog 9429 +MISC ChangeLog 9667 RMD160 e49d6e5754afd19d59f9920b38cc9e4c9b2d19cc SHA1 ce8e682d4f04a48f8509a8f18285e5559d31bfe7 SHA256 cf2ad486e38fc7c12253ef5990a735d1134ac924a8f9289e95ac1630941b41e5 +MD5 aabd7cdf4a8f76d8adda9cb506ce9c9d ChangeLog 9667 +RMD160 e49d6e5754afd19d59f9920b38cc9e4c9b2d19cc ChangeLog 9667 +SHA256 cf2ad486e38fc7c12253ef5990a735d1134ac924a8f9289e95ac1630941b41e5 ChangeLog 9667 MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158 @@ -54,16 +54,16 @@ SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b metadata MD5 721f0000d2b670e8e086600933df9995 files/digest-pulseaudio-0.9.5-r4 253 RMD160 afad8885c68b08dc4e537df2e3731329b0693b5b files/digest-pulseaudio-0.9.5-r4 253 SHA256 ab6179a1918a6773c82406c18c5c491c6c286ffa6b1934f53eadec3f11e1e62d files/digest-pulseaudio-0.9.5-r4 253 -MD5 721f0000d2b670e8e086600933df9995 files/digest-pulseaudio-0.9.5-r5 253 -RMD160 afad8885c68b08dc4e537df2e3731329b0693b5b files/digest-pulseaudio-0.9.5-r5 253 -SHA256 ab6179a1918a6773c82406c18c5c491c6c286ffa6b1934f53eadec3f11e1e62d files/digest-pulseaudio-0.9.5-r5 253 +MD5 721f0000d2b670e8e086600933df9995 files/digest-pulseaudio-0.9.5-r6 253 +RMD160 afad8885c68b08dc4e537df2e3731329b0693b5b files/digest-pulseaudio-0.9.5-r6 253 +SHA256 ab6179a1918a6773c82406c18c5c491c6c286ffa6b1934f53eadec3f11e1e62d files/digest-pulseaudio-0.9.5-r6 253 MD5 03bd693cbd374e1dd1f4fff834053e12 files/digest-pulseaudio-0.9.6 253 RMD160 b3a1281e4a0deef7e89dea86a48384513c9a002d files/digest-pulseaudio-0.9.6 253 SHA256 589a5d35f77e204519dca87c60cd887406b4c55a755afcd7975a5b392c994ab7 files/digest-pulseaudio-0.9.6 253 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.7 (GNU/Linux) +Version: GnuPG v2.0.4 (GNU/Linux) -iD8DBQFGXLN3QlM6RnzZP+IRAtf1AKCoxrQcXe31HSQfg0reaU9TD3+eEACgiCRJ -agR7buufxiB43rCpamI/dNU= -=0wuC +iD8DBQFGXZMGAiZjviIA2XgRAkWgAKD04AbqB39vUPl2bt+5eaUDyzL9FgCgiG+l +JkU6Z4Z0xR6lrRMwIxvpyEE= +=ATPU -----END PGP SIGNATURE----- diff --git a/media-sound/pulseaudio/files/digest-pulseaudio-0.9.5-r5 b/media-sound/pulseaudio/files/digest-pulseaudio-0.9.5-r5 deleted file mode 100644 index 0d68de7bdc88..000000000000 --- a/media-sound/pulseaudio/files/digest-pulseaudio-0.9.5-r5 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 99b5d9efd4fce35cabb4ae5d0ebb230d pulseaudio-0.9.5.tar.gz 1145930 -RMD160 67f0cef89588453e347a2af5f641c9f953d4ef4b pulseaudio-0.9.5.tar.gz 1145930 -SHA256 cd82eabcf9fa310a64b58b621730cebe5d3edae7596a9c121155db455b1e58f6 pulseaudio-0.9.5.tar.gz 1145930 diff --git a/media-sound/pulseaudio/files/digest-pulseaudio-0.9.5-r6 b/media-sound/pulseaudio/files/digest-pulseaudio-0.9.5-r6 new file mode 100644 index 000000000000..0d68de7bdc88 --- /dev/null +++ b/media-sound/pulseaudio/files/digest-pulseaudio-0.9.5-r6 @@ -0,0 +1,3 @@ +MD5 99b5d9efd4fce35cabb4ae5d0ebb230d pulseaudio-0.9.5.tar.gz 1145930 +RMD160 67f0cef89588453e347a2af5f641c9f953d4ef4b pulseaudio-0.9.5.tar.gz 1145930 +SHA256 cd82eabcf9fa310a64b58b621730cebe5d3edae7596a9c121155db455b1e58f6 pulseaudio-0.9.5.tar.gz 1145930 diff --git a/media-sound/pulseaudio/files/pulseaudio-0.9.5-CVE-2007-1804.patch b/media-sound/pulseaudio/files/pulseaudio-0.9.5-CVE-2007-1804.patch index a7b751a97c25..2f9020b53233 100644 --- a/media-sound/pulseaudio/files/pulseaudio-0.9.5-CVE-2007-1804.patch +++ b/media-sound/pulseaudio/files/pulseaudio-0.9.5-CVE-2007-1804.patch @@ -51,6 +51,15 @@ Index: pulseaudio-0.9.5/src/pulsecore/pstream.c pa_log_warn("Recieved SHM frame on a socket where SHM is disabled."); return -1; } +@@ -615,7 +615,7 @@ static int do_read(pa_pstream *p) { + + length = ntohl(p->read.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH]); + +- if (length > FRAME_SIZE_MAX_ALLOW) { ++ if (length > FRAME_SIZE_MAX_ALLOW || length <= 0) { + pa_log_warn("Recieved invalid frame size : %lu", (unsigned long) length); + return -1; + } Index: pulseaudio-0.9.5/src/pulsecore/sample-util.c =================================================================== --- pulseaudio-0.9.5.orig/src/pulsecore/sample-util.c diff --git a/media-sound/pulseaudio/pulseaudio-0.9.5-r5.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.5-r5.ebuild deleted file mode 100644 index f1ad8b5a17e3..000000000000 --- a/media-sound/pulseaudio/pulseaudio-0.9.5-r5.ebuild +++ /dev/null @@ -1,128 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.5-r5.ebuild,v 1.1 2007/05/29 11:17:31 flameeyes Exp $ - -inherit eutils libtool # autotools - -DESCRIPTION="A networked sound server with an advanced plugin system" -HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/" -SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2 GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="alsa avahi caps jack lirc oss tcpd X hal" - -RDEPEND="X? ( || ( x11-libs/libX11 =media-libs/audiofile-0.2.6-r1 - >=media-libs/libsamplerate-0.1.1-r1 - >=media-libs/libsndfile-1.0.10 - >=dev-libs/liboil-0.3.6 - alsa? ( >=media-libs/alsa-lib-1.0.10 ) - >=dev-libs/glib-2.4.0 - avahi? ( >=net-dns/avahi-0.6.12 ) - >=dev-libs/liboil-0.3.0 - jack? ( >=media-sound/jack-audio-connection-kit-0.100 ) - tcpd? ( sys-apps/tcp-wrappers ) - lirc? ( app-misc/lirc ) - hal? ( >=sys-apps/hal-0.5.7 ) - app-admin/eselect-esd - sys-devel/libtool" # it's a valid RDEPEND, libltdl.so is used -DEPEND="${RDEPEND} - dev-util/pkgconfig" - -# This is for the alsasound init.d script (see bug #155707) -RDEPEND="${RDEPEND} - alsa? ( media-sound/alsa-utils )" - -pkg_setup() { - if use avahi && ! built_with_use net-dns/avahi dbus ; then - echo - eerror "In order to compile pulseaudio with avahi support, you need to have" - eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that" - eerror "flag, re-emerge avahi, and then emerge pulseaudio again." - die "net-dns/avahi is missing the D-Bus bindings." - fi - - enewgroup audio 18 # Just make sure it exists - enewgroup pulse-access - enewgroup pulse-rt - enewgroup pulse - enewuser pulse -1 -1 /var/run/pulse pulse,audio -} - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}/${P}-esdcompat.patch" - epatch "${FILESDIR}/${P}-fbsd.patch" - epatch "${FILESDIR}/${P}-noshm.patch" - epatch "${FILESDIR}/${P}-CVE-2007-1804.patch" - - # eautoreconf - elibtoolize -} - -src_compile() { - econf \ - --enable-largefile \ - --enable-glib2 \ - --disable-solaris \ - --disable-asyncns \ - $(use_enable oss) \ - $(use_enable alsa) \ - $(use_enable lirc) \ - $(use_enable tcpd tcpwrap) \ - $(use_enable jack) \ - $(use_enable lirc) \ - $(use_enable avahi) \ - $(use_enable hal) \ - $(use_with caps) \ - $(use_with X x) \ - --disable-ltdl-install \ - --localstatedir=/var \ - --with-realtime-group=pulse-rt \ - || die "econf failed" - emake || die "emake failed" -} - -src_install() { - emake -j1 DESTDIR="${D}" install || die "make install failed" - - newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio - - local neededservices - use alsa && neededservices="$neededservices alsasound" - use avahi && neededservices="$neededservices avahi-daemon" - use hal && neededservices="$neededservices hald" - [[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio" - doinitd "${T}/pulseaudio" - - if ! use hal; then - sed -i -e '/module-hal-detect/s:^:#: ; /module-detect/s:^#::' "${D}/etc/pulse/default.pa" - fi - use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa" - - dohtml -r doc - dodoc README - - # Create the state directory - diropts -o pulse -g pulse -m0755 - keepdir /var/run/pulse -} - -pkg_postinst() { - elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon." - elog "This support is enabled by starting the pulseaudio init.d ." - elog "To be able to access that you need to be in the group pulse-access." - elog "For more information about system-wide support, please refer to" - elog " http://pulseaudio.org/wiki/SystemWideInstance" - - elog "To use the ESounD wrapper while using a system-wide daemon, you also" - elog "need to enable auth-anonymous for the esound-unix module, or to copy" - elog "/var/run/pulse/.esd_auth into each home directory." - - eselect esd update --if-unset -} diff --git a/media-sound/pulseaudio/pulseaudio-0.9.5-r6.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.5-r6.ebuild new file mode 100644 index 000000000000..53a90e2673e7 --- /dev/null +++ b/media-sound/pulseaudio/pulseaudio-0.9.5-r6.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.5-r6.ebuild,v 1.1 2007/05/30 15:06:40 flameeyes Exp $ + +inherit eutils libtool # autotools + +DESCRIPTION="A networked sound server with an advanced plugin system" +HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/" +SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2 GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="alsa avahi caps jack lirc oss tcpd X hal" + +RDEPEND="X? ( || ( x11-libs/libX11 =media-libs/audiofile-0.2.6-r1 + >=media-libs/libsamplerate-0.1.1-r1 + >=media-libs/libsndfile-1.0.10 + >=dev-libs/liboil-0.3.6 + alsa? ( >=media-libs/alsa-lib-1.0.10 ) + >=dev-libs/glib-2.4.0 + avahi? ( >=net-dns/avahi-0.6.12 ) + >=dev-libs/liboil-0.3.0 + jack? ( >=media-sound/jack-audio-connection-kit-0.100 ) + tcpd? ( sys-apps/tcp-wrappers ) + lirc? ( app-misc/lirc ) + hal? ( >=sys-apps/hal-0.5.7 ) + app-admin/eselect-esd + sys-devel/libtool" # it's a valid RDEPEND, libltdl.so is used +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +# This is for the alsasound init.d script (see bug #155707) +RDEPEND="${RDEPEND} + alsa? ( media-sound/alsa-utils )" + +pkg_setup() { + if use avahi && ! built_with_use net-dns/avahi dbus ; then + echo + eerror "In order to compile pulseaudio with avahi support, you need to have" + eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that" + eerror "flag, re-emerge avahi, and then emerge pulseaudio again." + die "net-dns/avahi is missing the D-Bus bindings." + fi + + enewgroup audio 18 # Just make sure it exists + enewgroup pulse-access + enewgroup pulse-rt + enewgroup pulse + enewuser pulse -1 -1 /var/run/pulse pulse,audio +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-esdcompat.patch" + epatch "${FILESDIR}/${P}-fbsd.patch" + epatch "${FILESDIR}/${P}-noshm.patch" + epatch "${FILESDIR}/${P}-CVE-2007-1804.patch" + + # eautoreconf + elibtoolize +} + +src_compile() { + econf \ + --enable-largefile \ + --enable-glib2 \ + --disable-solaris \ + --disable-asyncns \ + $(use_enable oss) \ + $(use_enable alsa) \ + $(use_enable lirc) \ + $(use_enable tcpd tcpwrap) \ + $(use_enable jack) \ + $(use_enable lirc) \ + $(use_enable avahi) \ + $(use_enable hal) \ + $(use_with caps) \ + $(use_with X x) \ + --disable-ltdl-install \ + --localstatedir=/var \ + --with-realtime-group=pulse-rt \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake -j1 DESTDIR="${D}" install || die "make install failed" + + newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio + + local neededservices + use alsa && neededservices="$neededservices alsasound" + use avahi && neededservices="$neededservices avahi-daemon" + use hal && neededservices="$neededservices hald" + [[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio" + doinitd "${T}/pulseaudio" + + if ! use hal; then + sed -i -e '/module-hal-detect/s:^:#: ; /module-detect/s:^#::' "${D}/etc/pulse/default.pa" + fi + use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa" + + dohtml -r doc + dodoc README + + # Create the state directory + diropts -o pulse -g pulse -m0755 + keepdir /var/run/pulse +} + +pkg_postinst() { + elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon." + elog "This support is enabled by starting the pulseaudio init.d ." + elog "To be able to access that you need to be in the group pulse-access." + elog "For more information about system-wide support, please refer to" + elog " http://pulseaudio.org/wiki/SystemWideInstance" + + elog "To use the ESounD wrapper while using a system-wide daemon, you also" + elog "need to enable auth-anonymous for the esound-unix module, or to copy" + elog "/var/run/pulse/.esd_auth into each home directory." + + eselect esd update --if-unset +} -- cgit v1.2.3-65-gdbad