summaryrefslogtreecommitdiff
path: root/media-sound
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2010-07-06 00:25:26 +0200
committerBertrand Jacquin <beber@meleeweb.net>2010-07-06 00:25:26 +0200
commit3b1e3b04f9116c41e22683918011246257b45f62 (patch)
tree38bc9a437f8a1143fbb8931ddf7332d873e38cd8 /media-sound
parentalix-sources-2.6.27-r11 (diff)
downloadportage-3b1e3b04f9116c41e22683918011246257b45f62.tar.xz
pulseaudio tree for cross compile
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/pulseaudio/ChangeLog616
-rw-r--r--media-sound/pulseaudio/files/0pointer.diff169
-rw-r--r--media-sound/pulseaudio/files/module-alsa-card.file-not-found.diff22
-rw-r--r--media-sound/pulseaudio/files/pulseaudio-0.9.10-caps.patch15
-rw-r--r--media-sound/pulseaudio/files/pulseaudio-0.9.7-module-loading.patch21
-rw-r--r--media-sound/pulseaudio/files/pulseaudio-0.9.8-bt-nohal.patch28
-rw-r--r--media-sound/pulseaudio/files/pulseaudio-0.9.8-create-directory.patch21
-rw-r--r--media-sound/pulseaudio/files/pulseaudio-0.9.8-esoundpath.patch49
-rw-r--r--media-sound/pulseaudio/files/pulseaudio-0.9.8-polkit.patch18
-rw-r--r--media-sound/pulseaudio/files/pulseaudio-0.9.8-svn2074.patch13
-rw-r--r--media-sound/pulseaudio/files/pulseaudio.conf.d7
-rw-r--r--media-sound/pulseaudio/files/pulseaudio.init.d-223
-rw-r--r--media-sound/pulseaudio/files/pulseaudio.init.d-368
-rw-r--r--media-sound/pulseaudio/files/pulseaudio.init.d-472
-rw-r--r--media-sound/pulseaudio/metadata.xml34
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.10-r1.ebuild180
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.10.ebuild173
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild199
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild201
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.11.ebuild189
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.12-r1.ebuild193
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.12.ebuild202
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.13.ebuild201
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.14.ebuild194
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.15.ebuild196
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.7.ebuild144
-rw-r--r--media-sound/pulseaudio/pulseaudio-0.9.9.ebuild174
27 files changed, 3422 insertions, 0 deletions
diff --git a/media-sound/pulseaudio/ChangeLog b/media-sound/pulseaudio/ChangeLog
new file mode 100644
index 00000000..76acdf57
--- /dev/null
+++ b/media-sound/pulseaudio/ChangeLog
@@ -0,0 +1,616 @@
+# ChangeLog for media-sound/pulseaudio
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.123 2009/04/28 14:30:42 armin76 Exp $
+
+ 28 Apr 2009; Raúl Porcel <armin76@gentoo.org> pulseaudio-0.9.9.ebuild:
+ arm/sh stable
+
+ 17 Apr 2009; Diego E. Pettenò <flameeyes@gentoo.org> pulseaudio-0.9.15:
+ Fix glib/glib2 parameter error (bug #266348), update alsa-lib dep (bug
+ #266257).
+
+*pulseaudio-0.9.15 (14 Apr 2009)
+
+ 14 Apr 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.15.ebuild:
+ Version bump.
+
+ 23 Feb 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.7.ebuild, pulseaudio-0.9.9.ebuild,
+ pulseaudio-0.9.10.ebuild, pulseaudio-0.9.10-r1.ebuild,
+ pulseaudio-0.9.11.ebuild, pulseaudio-0.9.11-r1.ebuild,
+ pulseaudio-0.9.11-r2.ebuild, pulseaudio-0.9.12.ebuild,
+ pulseaudio-0.9.12-r1.ebuild, pulseaudio-0.9.13.ebuild,
+ pulseaudio-0.9.14.ebuild:
+ Update HOMEPAGE, closes bug #260056, thanks to Sebastian Günther.
+
+ 23 Feb 2009; Joseph Jezak <josejx@gentoo.org> pulseaudio-0.9.10-r1.ebuild,
+ pulseaudio-0.9.14.ebuild:
+ Marked ~ppc for bug #200076.
+
+ 25 Jan 2009; Raúl Porcel <armin76@gentoo.org>
+ pulseaudio-0.9.10-r1.ebuild, pulseaudio-0.9.14.ebuild:
+ Add ~arm/~sh
+
+ 14 Jan 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.14.ebuild:
+ Remove 0.9.13-exclusive workarounds. Thanks to Rafał Mużyło in bug
+ #254803.
+
+*pulseaudio-0.9.14 (14 Jan 2009)
+
+ 14 Jan 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.14.ebuild:
+ Version bump.
+
+ 02 Jan 2009; Peter Alfredsen <loki_val@gentoo.org>
+ pulseaudio-0.9.7.ebuild, pulseaudio-0.9.9.ebuild,
+ pulseaudio-0.9.10.ebuild, pulseaudio-0.9.10-r1.ebuild,
+ pulseaudio-0.9.11.ebuild, pulseaudio-0.9.11-r1.ebuild,
+ pulseaudio-0.9.11-r2.ebuild, pulseaudio-0.9.12.ebuild,
+ pulseaudio-0.9.12-r1.ebuild, pulseaudio-0.9.13.ebuild:
+ Fix bug 253298, typo in ebuild. Thanks to goffrie@gmail.com.
+
+ 21 Oct 2008; Petteri Räty <betelgeuse@gentoo.org>
+ pulseaudio-0.9.12.ebuild, pulseaudio-0.9.12-r1.ebuild,
+ pulseaudio-0.9.13.ebuild:
+ Add DEPEND on >=sys-devel/autoconf-2.62 to fix bug #237569.
+
+*pulseaudio-0.9.13 (09 Oct 2008)
+
+ 09 Oct 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.13.ebuild:
+ Version bump, add an init.d fix for 0.9.13 (fixed in .14).
+
+*pulseaudio-0.9.12-r1 (09 Oct 2008)
+
+ 09 Oct 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.12-r1.ebuild:
+ Update to EAPI=2 and USE deps.
+
+ 28 Sep 2008; Alexis Ballier <aballier@gentoo.org>
+ pulseaudio-0.9.12.ebuild:
+ Fix unifdef call to be [options] file rather than file [options] as
+ documented in the man page and allow freebsd unifdef too.
+
+*pulseaudio-0.9.12 (12 Sep 2008)
+
+ 12 Sep 2008; Petteri Räty <betelgeuse@gentoo.org>
+ -pulseaudio-0.9.10-r51.ebuild, +pulseaudio-0.9.12.ebuild:
+ Version bump.
+
+*pulseaudio-0.9.11-r2 (03 Aug 2008)
+
+ 03 Aug 2008; Patrick McLean <chutzpah@gentoo.org>
+ +files/pulseaudio.init.d-4, +pulseaudio-0.9.11-r2.ebuild:
+ Make sure that the ebuild creates system.pa, modify the init script to use
+ system.pa rather than default.pa and add a "needs" on consolekit if
+ module-console-kit is requested in system.pa (bug #233789).
+
+ 03 Aug 2008; Petteri Räty <betelgeuse@gentoo.org>
+ pulseaudio-0.9.11-r1.ebuild:
+ Add a message telling people to install alsa-plugins with pulseaudio
+ support if not installed already. Fixes bug #233193.
+
+*pulseaudio-0.9.11-r1 (03 Aug 2008)
+
+ 03 Aug 2008; Petteri Räty <betelgeuse@gentoo.org>
+ +pulseaudio-0.9.11-r1.ebuild:
+ speex support is not optional so remove the speex use flag. Fixes bug
+ #233774.
+
+*pulseaudio-0.9.11 (03 Aug 2008)
+
+ 03 Aug 2008; Patrick McLean <chutzpah@gentoo.org>
+ -pulseaudio-0.9.10-r50.ebuild, +pulseaudio-0.9.11.ebuild:
+ Version bump (bug #232991), add "speex" USE flag. This versiom has
+ flameeyes' dymanic initscript dependencies, so it deps on openrc. Clean up
+ a bit.
+
+*pulseaudio-0.9.10-r51 (18 Apr 2008)
+*pulseaudio-0.9.10-r1 (18 Apr 2008)
+
+ 18 Apr 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.10-r1.ebuild, +pulseaudio-0.9.10-r51.ebuild:
+ Revision bump to remove .la files, also avoid building tests during make
+ all.
+
+ 03 Apr 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.10-caps.patch, pulseaudio-0.9.10.ebuild,
+ pulseaudio-0.9.10-r50.ebuild:
+ Fix building with libtool 2.2 (bug #215843) and with caps (bug #215656).
+
+*pulseaudio-0.9.10-r50 (31 Mar 2008)
+*pulseaudio-0.9.10 (31 Mar 2008)
+
+ 31 Mar 2008; Diego Pettenò <flameeyes@gentoo.org>
+ -files/pulseaudio-0.9.9+ltdl-2.2.patch, -pulseaudio-0.9.9-r1.ebuild,
+ -pulseaudio-0.9.9-r2.ebuild, -pulseaudio-0.9.9-r3.ebuild,
+ -pulseaudio-0.9.9-r53.ebuild, +pulseaudio-0.9.10.ebuild,
+ +pulseaudio-0.9.10-r50.ebuild:
+ Bump to latest version, remove old versions and unneeded patches.
+
+ 09 Mar 2008; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio-0.9.9+ltdl-2.2.patch:
+ Fix path so that it build with both 2.2 and 1.5. Closes bug #212800.
+
+*pulseaudio-0.9.9-r53 (08 Mar 2008)
+*pulseaudio-0.9.9-r3 (08 Mar 2008)
+
+ 08 Mar 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.9+ltdl-2.2.patch, +pulseaudio-0.9.9-r3.ebuild,
+ +pulseaudio-0.9.9-r53.ebuild:
+ Add new revisions that work with libtool 2.2. Note that from now on I'll
+ keep the experimental revisions with a value 50+x in line with the old-style
+ ones.
+
+ 11 Feb 2008; Olivier Crête <tester@gentoo.org> pulseaudio-0.9.9.ebuild:
+ Stable on amd64 per security bug #207214
+
+ 26 Jan 2008; Diego Pettenò <flameeyes@gentoo.org>
+ -pulseaudio-0.9.8-r6.ebuild, -pulseaudio-0.9.8-r7.ebuild:
+ Remove old versions.
+
+ 26 Jan 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ pulseaudio-0.9.9.ebuild:
+ ppc stable, bug #207214
+
+ 26 Jan 2008; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.9.ebuild:
+ Stable for HPPA (bug #207214).
+
+ 25 Jan 2008; Raúl Porcel <armin76@gentoo.org> pulseaudio-0.9.9.ebuild:
+ alpha/ia64/sparc stable wrt security #207214
+
+ 25 Jan 2008; Markus Rothe <corsair@gentoo.org> pulseaudio-0.9.9.ebuild:
+ Stable on ppc64; bug #207214
+
+ 25 Jan 2008; Christian Faulhammer <opfer@gentoo.org>
+ pulseaudio-0.9.9.ebuild:
+ stable x86, security bug 207214
+
+*pulseaudio-0.9.9-r2 (24 Jan 2008)
+*pulseaudio-0.9.9-r1 (24 Jan 2008)
+*pulseaudio-0.9.9 (24 Jan 2008)
+
+ 24 Jan 2008; Diego Pettenò <flameeyes@gentoo.org>
+ -files/pulseaudio-0.9.5-CVE-2007-1804.patch,
+ -files/pulseaudio-0.9.5-esdcompat.patch,
+ -files/pulseaudio-0.9.5-fbsd.patch, -files/pulseaudio-0.9.5-noshm.patch,
+ metadata.xml, -pulseaudio-0.9.5-r6.ebuild, -pulseaudio-0.9.8-r4.ebuild,
+ -pulseaudio-0.9.8-r5.ebuild, +pulseaudio-0.9.9.ebuild,
+ +pulseaudio-0.9.9-r1.ebuild, +pulseaudio-0.9.9-r2.ebuild:
+ Version bump. This fixes the CVE-2008-0008 security issue reported as bug
+ #207214. Version -r1 also implements the request in bug #204754 (glib USE
+ flag, thanks to Matthijs Kooijman). All three revision also fixes bug
+ #204748 (broken default.pa with hal USE flag unset).
+
+ 08 Jan 2008; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.8-r6.ebuild,
+ pulseaudio-0.9.8-r7.ebuild:
+ Marked ~hppa (bug #200076).
+
+ 06 Jan 2008; Markus Rothe <corsair@gentoo.org> pulseaudio-0.9.8-r6.ebuild,
+ pulseaudio-0.9.8-r7.ebuild:
+ Added ~ppc64; bug #200076
+
+ 31 Dec 2007; Brent Baude <ranger@gentoo.org> pulseaudio-0.9.7.ebuild:
+ Marking pulseaudio-0.9.7 ppc64 for bug 197126
+
+ 31 Dec 2007; Raúl Porcel <armin76@gentoo.org> pulseaudio-0.9.8-r6.ebuild,
+ pulseaudio-0.9.8-r7.ebuild:
+ Add ~alpha/~ia64/~sparc/~x86 wrt #200076
+
+ 29 Dec 2007; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.8-r4.ebuild:
+ Marked ~hppa (bug #200076, comment #6).
+
+*pulseaudio-0.9.8-r7 (29 Dec 2007)
+*pulseaudio-0.9.8-r6 (29 Dec 2007)
+
+ 29 Dec 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.8-r6.ebuild, +pulseaudio-0.9.8-r7.ebuild:
+ Add new revisions with an asyncns USE flag to use libasyncns.
+
+ 29 Dec 2007; Diego Pettenò <flameeyes@gentoo.org>
+ -files/pulseaudio-0.9.6-build.patch, -pulseaudio-0.9.6-r1.ebuild,
+ -pulseaudio-0.9.8-r2.ebuild, -pulseaudio-0.9.8-r3.ebuild:
+ Cleanup old versions.
+
+*pulseaudio-0.9.8-r5 (29 Dec 2007)
+*pulseaudio-0.9.8-r4 (29 Dec 2007)
+
+ 29 Dec 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.8-create-directory.patch,
+ +pulseaudio-0.9.8-r4.ebuild, +pulseaudio-0.9.8-r5.ebuild:
+ Apply patch from upstream SVN revision 2078. Thanks to Petteri Räty for
+ reporting.
+
+ 22 Dec 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ pulseaudio-0.9.7.ebuild:
+ ppc stable, bug #197126
+
+ 22 Dec 2007; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.8-r3.ebuild:
+ Marked ~hppa (bug #200076).
+
+ 21 Dec 2007; Raúl Porcel <armin76@gentoo.org> pulseaudio-0.9.7.ebuild:
+ alpha/ia64/sparc stable wrt #197126
+
+ 17 Dec 2007; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.7.ebuild:
+ Stable for HPPA (bug #197126).
+
+*pulseaudio-0.9.8-r3 (06 Dec 2007)
+*pulseaudio-0.9.8-r2 (06 Dec 2007)
+
+ 06 Dec 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.8-esoundpath.patch, -pulseaudio-0.9.8.ebuild,
+ -pulseaudio-0.9.8-r1.ebuild, +pulseaudio-0.9.8-r2.ebuild,
+ +pulseaudio-0.9.8-r3.ebuild:
+ Allow selection for global or per-user ESD socket directory. Fixes bug #199507.
+
+ 27 Nov 2007; Markus Meier <maekke@gentoo.org> pulseaudio-0.9.7.ebuild:
+ x86 stable, bug #197126
+
+ 23 Nov 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.8-bt-nohal.patch, pulseaudio-0.9.8.ebuild,
+ pulseaudio-0.9.8-r1.ebuild:
+ Fix build when HAL is disabled but Bluetooth support is enabled.
+
+ 23 Nov 2007; Samuli Suominen <drac@gentoo.org> pulseaudio-0.9.7.ebuild:
+ amd64 stable wrt #197126, thanks to Angelo Arrifano for testing
+
+*pulseaudio-0.9.8 (23 Nov 2007)
+
+ 23 Nov 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog,
+ +pulseaudio-0.9.8.ebuild:
+ Version bump, remove old experimental init.d version (now 0.9.8-r1). Add
+ better documentation of the USE flags. The new version supports bluetooth
+ and policykit USE flags now.
+
+ 17 Nov 2007; nixnut <nixnut@gentoo.org> pulseaudio-0.9.6-r1.ebuild:
+ Stable on ppc wrt bug 197126
+
+ 14 Nov 2007; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.6-r1.ebuild, -pulseaudio-0.9.6-r2.ebuild,
+ pulseaudio-0.9.7.ebuild, pulseaudio-0.9.7-r1.ebuild:
+ Remove the experimental 0.9.6 ebuild (use 0.9.7-r1 instead). As per upstream
+ reports, require libtool 1.5.24 or later.
+
+ 10 Nov 2007; Raúl Porcel <armin76@gentoo.org> pulseaudio-0.9.6-r1.ebuild:
+ alpha/ia64/sparc stable thanks to Tobias Klausmann and Alex Maclean for
+ testing, bug #197126
+
+ 07 Nov 2007; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio.init.d-2, files/pulseaudio.init.d-3:
+ Init scripts nitpicking: need localmount to properly resume from single user
+ runlevel.
+
+ 01 Nov 2007; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.7.ebuild, pulseaudio-0.9.7-r1.ebuild:
+ Fix order in use_enable, thanks to 'galtgendo'.
+
+*pulseaudio-0.9.7-r1 (31 Oct 2007)
+*pulseaudio-0.9.7 (31 Oct 2007)
+
+ 31 Oct 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.7-module-loading.patch, +pulseaudio-0.9.7.ebuild,
+ +pulseaudio-0.9.7-r1.ebuild:
+ Version bump, both for baselayout 1 and baselayout 2 init script variants.
+
+ 30 Oct 2007; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.6-r1.ebuild:
+ Stable for HPPA (bug #197126).
+
+ 27 Oct 2007; Jurek Bartuszek <jurek@gentoo.org>
+ pulseaudio-0.9.6-r1.ebuild:
+ x86 stable (bug #197126)
+
+ 26 Oct 2007; Diego Pettenò <flameeyes@gentoo.org>
+ -pulseaudio-0.9.5-r4.ebuild, -pulseaudio-0.9.6.ebuild:
+ Remove old versions.
+
+*pulseaudio-0.9.6-r2 (26 Oct 2007)
+
+ 26 Oct 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio.init.d-3, +pulseaudio-0.9.6-r2.ebuild:
+ Add a new revision with an experimental init script with dynamic
+ dependencies. With this script, disabling HAL or Avahi support on the
+ configuration file will not require them to be started even if PulseAudio
+ was built with their support enabled. Similarly ALSA is no more a
+ requirement if no ALSA sink or source is defined and no autodetect modules
+ are loaded.
+
+ 10 Sep 2007; Joseph Jezak <josejx@gentoo.org> pulseaudio-0.9.6-r1.ebuild:
+ Marked ~ppc/~ppc64 for bug #181234.
+
+ 22 Jul 2007; Samuli Suominen <drac@gentoo.org> pulseaudio-0.9.5-r4.ebuild,
+ pulseaudio-0.9.5-r6.ebuild, pulseaudio-0.9.6.ebuild:
+ Remove virtual/x11 references.
+
+*pulseaudio-0.9.6-r1 (02 Jul 2007)
+
+ 02 Jul 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.6-r1.ebuild:
+ Revision bump: now use realtime group rather than pulse-rt, and link the
+ realtime guide, so that users can set it up.
+
+ 02 Jun 2007; Raúl Porcel <armin76@gentoo.org> pulseaudio-0.9.5-r6.ebuild,
+ pulseaudio-0.9.6.ebuild:
+ Add ~alpha/~ia64 wrt #180117 and alpha/ia64 stable wrt security #180203
+
+ 02 Jun 2007; Markus Rothe <corsair@gentoo.org> pulseaudio-0.9.5-r6.ebuild:
+ Stable on ppc64; bug #180203
+
+ 01 Jun 2007; Peter Weller <welp@gentoo.org> pulseaudio-0.9.5-r6.ebuild:
+ Stable on amd64 wrt security bug 180203
+
+ 31 May 2007; René Nussbaumer <killerfox@gentoo.org>
+ pulseaudio-0.9.5-r6.ebuild:
+ Stable on ppc. See bug #180203.
+
+ 31 May 2007; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.6.ebuild:
+ Marked ~hppa (bug #180117).
+
+ 30 May 2007; Andrej Kacian <ticho@gentoo.org> pulseaudio-0.9.5-r6.ebuild:
+ Stable on x86, security bug #180203.
+
+ 30 May 2007; René Nussbaumer <killerfox@gentoo.org>
+ pulseaudio-0.9.5-r6.ebuild:
+ Stable on hppa. See Bug #180203.
+
+ 30 May 2007; Gustavo Zacarias <gustavoz@gentoo.org>
+ pulseaudio-0.9.5-r6.ebuild:
+ Stable on sparc wrt security #180203
+
+*pulseaudio-0.9.5-r6 (30 May 2007)
+
+ 30 May 2007; Diego Pettenò <flameeyes@gentoo.org>
+ 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 <ticho@gentoo.org> pulseaudio-0.9.6.ebuild:
+ Added ~x86, bug #180117.
+
+ 29 May 2007; Gustavo Zacarias <gustavoz@gentoo.org>
+ pulseaudio-0.9.6.ebuild:
+ Keyworded ~sparc wrt #180117
+
+*pulseaudio-0.9.5-r5 (29 May 2007)
+
+ 29 May 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.5-CVE-2007-1804.patch, +pulseaudio-0.9.5-r5.ebuild:
+ Revision bump to add a patch for bug #180203 (CVE-2007-1804).
+
+*pulseaudio-0.9.6 (28 May 2007)
+
+ 28 May 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.6-build.patch, +pulseaudio-0.9.6.ebuild:
+ Version bump, the new version requires libatomic_ops so all the keywords but
+ ~amd64 and ~x86-fbsd are dropped.
+
+ 26 Feb 2007; Matthias Schwarzott <zzam@gentoo.org>
+ pulseaudio-0.9.5-r4.ebuild:
+ Corrected name of init-script in elog-message.
+
+ 21 Dec 2006; Bryan Østergaard <kloeri@gentoo.org>
+ pulseaudio-0.9.5-r4.ebuild:
+ Stable on Alpha + IA64.
+
+ 25 Nov 2006; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.5-r4.ebuild:
+ Add runtime dependency over alsa-utils for the init.d script, thanks to
+ Andrzej in bug #155707.
+
+ 15 Nov 2006; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.5-r4.ebuild:
+ Stable for HPPA (bug #154742).
+
+ 13 Nov 2006; Joseph Jezak <josejx@gentoo.org> pulseaudio-0.9.5-r4.ebuild:
+ Marked ppc stable.
+
+ 11 Nov 2006; Michael Cummings <mcummings@gentoo.org>
+ pulseaudio-0.9.5-r4.ebuild:
+ Marking amd64 stable, dep for mpd
+
+ 25 Oct 2006; Joshua Jackson <tsunam@gentoo.org>
+ pulseaudio-0.9.5-r4.ebuild:
+ Stable x86; bug #150540
+
+ 22 Oct 2006; Markus Rothe <corsair@gentoo.org> pulseaudio-0.9.5-r4.ebuild:
+ Stable on ppc64; bug #150540
+
+ 21 Oct 2006; Diego Pettenò <flameeyes@gentoo.org>
+ -pulseaudio-0.9.5-r3.ebuild:
+ Remove old revision.
+
+ 20 Oct 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ pulseaudio-0.9.5-r4.ebuild:
+ Stable on sparc wrt #150540
+
+ 14 Oct 2006; Aron Griffis <agriffis@gentoo.org>
+ pulseaudio-0.9.5-r3.ebuild, pulseaudio-0.9.5-r4.ebuild:
+ Mark 0.9.5-r4 0.9.5-r3 ~ia64
+
+ 14 Oct 2006; Bryan Østergaard <kloeri@gentoo.org>
+ pulseaudio-0.9.5-r4.ebuild:
+ Add ~alpha keyword.
+
+*pulseaudio-0.9.5-r4 (02 Oct 2006)
+
+ 02 Oct 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.5-r4.ebuild:
+ Use pulse-rt as default realtime group, as the current SVN version does, and
+ create it. Thanks to Mark Lee for reporting in bug #146625.
+
+ 23 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.5-r3.ebuild:
+ Add runtime dependency over sys-devel/libtool for libltdl.so.
+
+ 21 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.5-r3.ebuild:
+ Force -j1 in install, the package don't play safe with it.
+
+ 17 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio.init.d-2:
+ Pass the pidfile to start-stop-daemon when stopping pulseaudio.
+
+ 17 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.5-r3.ebuild:
+ Let avahi useflag enable zeroconf support in the default configuration file,
+ too.
+
+ 07 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.5-noshm.patch, pulseaudio-0.9.5-r3.ebuild:
+ Add patch from upstream to not fail if SHM is not available.
+
+*pulseaudio-0.9.5-r3 (06 Sep 2006)
+
+ 06 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ -pulseaudio-0.9.5-r2.ebuild, +pulseaudio-0.9.5-r3.ebuild:
+ Depend on avahi-daemon service, not avahi. Thanks to Tony Vroon for reporting.
+
+*pulseaudio-0.9.5-r2 (05 Sep 2006)
+
+ 05 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio.init.d-2, -pulseaudio-0.9.5-r1.ebuild,
+ +pulseaudio-0.9.5-r2.ebuild:
+ The services previously in 'use' section are actually needed, make sure that
+ restarting alsasound make pulseaudio restart.
+
+*pulseaudio-0.9.5-r1 (02 Sep 2006)
+
+ 02 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ -files/pulseaudio-0.9.2-esdcompat.patch,
+ -files/pulseaudio-0.9.4-r1170.patch,
+ +files/pulseaudio-0.9.5-esdcompat.patch, -pulseaudio-0.9.4.ebuild,
+ -pulseaudio-0.9.4-r1.ebuild, -pulseaudio-0.9.5.ebuild,
+ +pulseaudio-0.9.5-r1.ebuild:
+ Remove old version, replace the esdcompat patch with the right one, thanks
+ to Florian Scandella for noticing in bug #145843.
+
+ 02 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.5-fbsd.patch, pulseaudio-0.9.5.ebuild:
+ Add patch to build on FreeBSD, and re add ~x86-fbsd keyword.
+
+ 02 Sep 2006; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.5.ebuild:
+ Remove ~x86-fbsd keyword until it builds.
+
+*pulseaudio-0.9.5 (31 Aug 2006)
+
+ 31 Aug 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.5.ebuild:
+ Version bump, and workaround detection modules for hal/non-hal
+ configurations in default configuration.
+
+ 17 Aug 2006; Jeroen Roovers <jer@gentoo.org> pulseaudio-0.9.4-r1.ebuild:
+ Marked ~hppa (bug #143510).
+
+ 11 Aug 2006; Markus Rothe <corsair@gentoo.org> pulseaudio-0.9.4-r1.ebuild:
+ Added ~ppc64; bug #141727
+
+ 11 Aug 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ pulseaudio-0.9.4-r1.ebuild:
+ To ~sparc wrt #143510
+
+*pulseaudio-0.9.4-r1 (30 Jul 2006)
+
+ 30 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.4-r1170.patch, +pulseaudio-0.9.4-r1.ebuild:
+ Add patch from upstream to fix using capabilities.
+
+ 29 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio.init.d-2, files/pulseaudio.conf.d,
+ pulseaudio-0.9.4.ebuild:
+ Create /var/run/pulse directory during install, thanks to Florian Steinel
+ for reporting.
+
+ 27 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ -pulseaudio-0.9.3.ebuild, pulseaudio-0.9.4.ebuild:
+ Require avahi 0.6.12 to complete the fix of 0.9.4 version. Remove old version.
+
+*pulseaudio-0.9.4 (27 Jul 2006)
+
+ 27 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +pulseaudio-0.9.4.ebuild:
+ Version bump.
+
+ 22 Jul 2006; Zaheer Abbas Merali <zaheem@gentoo.org>
+ pulseaudio-0.9.3.ebuild:
+ keyword ~x86
+
+ 22 Jul 2006; Luca Barbato <lu_zero@gentoo.org> pulseaudio-0.9.3.ebuild:
+ Marked ~ppc + typo fix
+
+ 21 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ -files/pulseaudio-0.9.2-fbsd.patch,
+ -files/pulseaudio-0.9.2-moduledetect.patch, -files/pulseaudio.init.d,
+ -pulseaudio-0.9.2.ebuild:
+ Remove old version and related files.
+
+*pulseaudio-0.9.3 (21 Jul 2006)
+
+ 21 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio.init.d-2, +pulseaudio-0.9.3.ebuild:
+ Version bump and new init script to use the new system-wide mode (compatible
+ with our 0.9.2).
+
+ 19 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio.init.d, pulseaudio-0.9.2.ebuild:
+ Add support for esd wrapper when using system-wide mode, by enabling
+ anonymous authentication for esound protocol and relying once again on
+ filesystem access for being able to use it.
+
+ 19 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio-0.9.2-esdcompat.patch:
+ Fix esdcompat patch that was incomplete.
+
+ 19 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.2-esdcompat.patch, pulseaudio-0.9.2.ebuild:
+ Add patch to fix esdcompat script on BSD userlands.
+
+ 19 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.2.ebuild:
+ Add dependency on eselect-esd and relative call to put the esd symlink in
+ place.
+
+ 18 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio.conf.d, files/pulseaudio.init.d, pulseaudio-0.9.2.ebuild:
+ Split pulseaudio access in pulse-access group, as suggested by upstream, use
+ a different script to initialise system-wide pulseaudio, so that the default
+ is the same as in other distributions and in vanilla, allowing users to set
+ the system-wide mode if they want, disable module loading at runtime for
+ systemwide setup, and explain everythign in a postinst message.
+
+ 18 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.2-moduledetect.patch, pulseaudio-0.9.2.ebuild:
+ Add patch to allow module-detect to work on FreeBSD.
+
+ 17 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio.conf.d, files/pulseaudio.init.d, pulseaudio-0.9.2.ebuild:
+ Improve support for system-wide pulseaudio daemon, let it work with users in
+ audio group.
+
+ 16 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio-0.9.2-fbsd.patch:
+ Improve FreeBSD patch a bit thanks to suggestion of the author Lennart
+ Poettering.
+
+ 16 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ pulseaudio-0.9.2.ebuild:
+ Add ~x86-fbsd keyword.
+
+ 16 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/pulseaudio.conf.d, files/pulseaudio.init.d:
+ Little change to init.d scripts.
+
+ 16 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio-0.9.2-fbsd.patch, files/pulseaudio.conf.d,
+ files/pulseaudio.init.d, pulseaudio-0.9.2.ebuild:
+ Add patch to build on FreeBSD, change init script so that it doesn't
+ daemonise and properly fails when initialisation fails.
+
+*pulseaudio-0.9.2 (11 Jul 2006)
+
+ 11 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/pulseaudio.conf.d, +files/pulseaudio.init.d, +metadata.xml,
+ +pulseaudio-0.9.2.ebuild:
+ Add pulseaudio ebuild, thanks to Tom Schneider, Ed Catmur, Florian Steinel,
+ Disaster and Gonzalo Aguilar Delgado in bug #74039.
+
diff --git a/media-sound/pulseaudio/files/0pointer.diff b/media-sound/pulseaudio/files/0pointer.diff
new file mode 100644
index 00000000..6d1658aa
--- /dev/null
+++ b/media-sound/pulseaudio/files/0pointer.diff
@@ -0,0 +1,169 @@
+From b03a650160def727ff6547cdc35351d76dceecfd Mon Sep 17 00:00:00 2001
+From: Erich Boleyn <erich@uruk.org>
+Date: Wed, 15 Apr 2009 23:02:59 -0700
+Subject: [PATCH 1/1] reserve-device: allow building without D-Bus
+
+Lennart Poettering <lennart@poettering.net> wrote:
+
+> On Wed, 15.04.09 16:26, Erich Boleyn (erich@uruk.org) wrote:
+>
+> > Just noticed the new 0.9.15 release, got it building on Gentoo, and then
+> > found that the non-dbus build's ALSA modules appear to be broken:
+...
+> > Is this something that can stubbed out (relatively) safely?
+>
+> Hmm, yes. As it seems I broke the build for non-dbus builds. Should be
+> easy to fix. Best way is probably to make the reserver wrapper mostly
+> a noop if D-Bus is not available.
+>
+> Please understand that I don't really focus on making every weird
+> combination of build deps work. So I won't fix this for you. But I am
+> happy to merge good patches!
+
+No problem, I was mainly looking for a hint that to your knowledge there
+should be no wierd side-effects from stubbing out the reserve and dbus
+functions inside reserve_wrapper. Thanks for said hint. ;-)
+
+Attached is a patch to include "reserve_wrapper.[ch]" in the non-dbus
+builds, and do said stubbing when HAVE_DBUS is not defined. It has
+passed moderate testing: built both versions, both pass
+"pulseaudio --dump-modules" with no weird messages, and the
+"--disable-dbus" build works and produces audio as expected in some
+simple tests including RTP.
+---
+ src/Makefile.am | 4 ++--
+ src/modules/reserve-wrap.c | 30 +++++++++++++++++++++++-------
+ 2 files changed, 25 insertions(+), 9 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 0d4f53a..716d865 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1315,7 +1315,7 @@ module_oss_la_LIBADD = $(AM_LIBADD) liboss-util.la libpulsecore-@PA_MAJORMINORMI
+
+ # ALSA
+
+-libalsa_util_la_SOURCES = modules/alsa/alsa-util.c modules/alsa/alsa-util.h modules/alsa/alsa-sink.c modules/alsa/alsa-sink.h modules/alsa/alsa-source.c modules/alsa/alsa-source.h
++libalsa_util_la_SOURCES = modules/alsa/alsa-util.c modules/alsa/alsa-util.h modules/alsa/alsa-sink.c modules/alsa/alsa-sink.h modules/alsa/alsa-source.c modules/alsa/alsa-source.h modules/reserve-wrap.c modules/reserve-wrap.h
+ libalsa_util_la_LDFLAGS = -avoid-version
+ libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
+ libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
+@@ -1333,7 +1333,7 @@ libalsa_util_la_CFLAGS += $(UDEV_CFLAGS)
+ endif
+
+ if HAVE_DBUS
+-libalsa_util_la_SOURCES += modules/reserve.h modules/reserve.c modules/reserve-wrap.c modules/reserve-wrap.h
++libalsa_util_la_SOURCES += modules/reserve.h modules/reserve.c
+ libalsa_util_la_LIBADD += $(DBUS_LIBS)
+ libalsa_util_la_CFLAGS += $(DBUS_CFLAGS)
+ endif
+diff --git a/src/modules/reserve-wrap.c b/src/modules/reserve-wrap.c
+index 02ff29b..d0d014d 100644
+--- a/src/modules/reserve-wrap.c
++++ b/src/modules/reserve-wrap.c
+@@ -31,30 +31,37 @@
+ #include <pulsecore/core-error.h>
+ #include <pulsecore/core-util.h>
+ #include <pulsecore/shared.h>
+-#include <pulsecore/dbus-shared.h>
+
++#ifdef HAVE_DBUS
++#include <pulsecore/dbus-shared.h>
+ #include "reserve.h"
++#endif
++
+ #include "reserve-wrap.h"
+
+ struct pa_reserve_wrapper {
+ PA_REFCNT_DECLARE;
+ pa_core *core;
+- pa_dbus_connection *connection;
+ pa_hook hook;
+- struct rd_device *device;
+ char *shared_name;
++#ifdef HAVE_DBUS
++ pa_dbus_connection *connection;
++ struct rd_device *device;
++#endif
+ };
+
+ static void reserve_wrapper_free(pa_reserve_wrapper *r) {
+ pa_assert(r);
+
++#ifdef HAVE_DBUS
+ if (r->device)
+ rd_release(r->device);
+
+- pa_hook_done(&r->hook);
+-
+ if (r->connection)
+ pa_dbus_connection_unref(r->connection);
++#endif
++
++ pa_hook_done(&r->hook);
+
+ if (r->shared_name) {
+ pa_assert_se(pa_shared_remove(r->core, r->shared_name) >= 0);
+@@ -64,6 +71,7 @@ static void reserve_wrapper_free(pa_reserve_wrapper *r) {
+ pa_xfree(r);
+ }
+
++#ifdef HAVE_DBUS
+ static int request_cb(rd_device *d, int forced) {
+ pa_reserve_wrapper *r;
+ int k;
+@@ -81,14 +89,17 @@ static int request_cb(rd_device *d, int forced) {
+
+ return k < 0 ? -1 : 1;
+ }
++#endif
+
+ pa_reserve_wrapper* pa_reserve_wrapper_get(pa_core *c, const char *device_name) {
+ pa_reserve_wrapper *r;
+- DBusError error;
+ int k;
+ char *t;
++#ifdef HAVE_DBUS
++ DBusError error;
+
+ dbus_error_init(&error);
++#endif
+
+ pa_assert(c);
+ pa_assert(device_name);
+@@ -112,6 +123,7 @@ pa_reserve_wrapper* pa_reserve_wrapper_get(pa_core *c, const char *device_name)
+
+ pa_assert_se(pa_shared_set(c, r->shared_name, r) >= 0);
+
++#ifdef HAVE_DBUS
+ if (!(r->connection = pa_dbus_bus_get(c, DBUS_BUS_SESSION, &error)) || dbus_error_is_set(&error)) {
+ pa_log_warn("Unable to contact D-Bus session bus: %s: %s", error.name, error.message);
+
+@@ -143,13 +155,15 @@ pa_reserve_wrapper* pa_reserve_wrapper_get(pa_core *c, const char *device_name)
+ rd_set_userdata(r->device, r);
+
+ return r;
+-
+ fail:
+ dbus_error_free(&error);
+
+ reserve_wrapper_free(r);
+
+ return NULL;
++#else
++ return r;
++#endif
+ }
+
+ void pa_reserve_wrapper_unref(pa_reserve_wrapper *r) {
+@@ -173,5 +187,7 @@ void pa_reserve_wrapper_set_application_device_name(pa_reserve_wrapper *r, const
+ pa_assert(r);
+ pa_assert(PA_REFCNT_VALUE(r) >= 1);
+
++#ifdef HAVE_DBUS
+ rd_set_application_device_name(r->device, name);
++#endif
+ }
+--
+1.6.2.4
+
diff --git a/media-sound/pulseaudio/files/module-alsa-card.file-not-found.diff b/media-sound/pulseaudio/files/module-alsa-card.file-not-found.diff
new file mode 100644
index 00000000..1c5b3cc4
--- /dev/null
+++ b/media-sound/pulseaudio/files/module-alsa-card.file-not-found.diff
@@ -0,0 +1,22 @@
+From dd3c96dede6439ee5dec9e3b22bce9cf7b53d2ff Mon Sep 17 00:00:00 2001
+From: Colin Guthrie <cguthrie@mandriva.org>
+Date: Thu, 26 Feb 2009 00:54:37 +0000
+Subject: Fix a very strange 'file not found' error in module-alsa-card.
+
+This fixes a regression introduced by commit c341010304064c9a6ae13fab15c7fa7883acaeeb
+---
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 1fc8735..9f9cf4c 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1315,7 +1315,7 @@ endif
+
+ if HAVE_DBUS
+ libalsa_util_la_SOURCES += modules/reserve.h modules/reserve.c modules/reserve-wrap.c modules/reserve-wrap.h
+-libalsa_util_la_LIBADD += $(DBUS_LIBS)
++libalsa_util_la_LIBADD += $(DBUS_LIBS) libdbus-util.la
+ libalsa_util_la_CFLAGS += $(DBUS_CFLAGS)
+ endif
+
+--
+cgit v0.8.2-1-g6063
diff --git a/media-sound/pulseaudio/files/pulseaudio-0.9.10-caps.patch b/media-sound/pulseaudio/files/pulseaudio-0.9.10-caps.patch
new file mode 100644
index 00000000..7502ad25
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio-0.9.10-caps.patch
@@ -0,0 +1,15 @@
+Index: pulseaudio-0.9.10/src/daemon/caps.c
+===================================================================
+--- pulseaudio-0.9.10.orig/src/daemon/caps.c
++++ pulseaudio-0.9.10/src/daemon/caps.c
+@@ -131,9 +131,8 @@ int pa_limit_caps(void) {
+ return 0;
+ }
+
+-int pa_drop_caps(void) {
++void pa_drop_caps(void) {
+ pa_drop_root();
+- return 0;
+ }
+
+ #endif
diff --git a/media-sound/pulseaudio/files/pulseaudio-0.9.7-module-loading.patch b/media-sound/pulseaudio/files/pulseaudio-0.9.7-module-loading.patch
new file mode 100644
index 00000000..f9fa1189
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio-0.9.7-module-loading.patch
@@ -0,0 +1,21 @@
+Index: pulseaudio-0.9.7/src/daemon/main.c
+===================================================================
+--- pulseaudio-0.9.7.orig/src/daemon/main.c
++++ pulseaudio-0.9.7/src/daemon/main.c
+@@ -634,7 +634,6 @@ int main(int argc, char *argv[]) {
+ c->default_sample_spec = conf->default_sample_spec;
+ c->default_n_fragments = conf->default_n_fragments;
+ c->default_fragment_size_msec = conf->default_fragment_size_msec;
+- c->disallow_module_loading = conf->disallow_module_loading;
+ c->exit_idle_time = conf->exit_idle_time;
+ c->module_idle_time = conf->module_idle_time;
+ c->scache_idle_time = conf->scache_idle_time;
+@@ -675,6 +674,8 @@ int main(int argc, char *argv[]) {
+ pa_log_error("%s", s = pa_strbuf_tostring_free(buf));
+ pa_xfree(s);
+
++ c->disallow_module_loading = conf->disallow_module_loading;
++
+ if (r < 0 && conf->fail) {
+ pa_log("failed to initialize daemon.");
+ #ifdef HAVE_FORK
diff --git a/media-sound/pulseaudio/files/pulseaudio-0.9.8-bt-nohal.patch b/media-sound/pulseaudio/files/pulseaudio-0.9.8-bt-nohal.patch
new file mode 100644
index 00000000..95ffbb5d
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio-0.9.8-bt-nohal.patch
@@ -0,0 +1,28 @@
+Index: pulseaudio-0.9.8/configure.ac
+===================================================================
+--- pulseaudio-0.9.8.orig/configure.ac
++++ pulseaudio-0.9.8/configure.ac
+@@ -836,7 +836,7 @@ if test "x$HAVE_HAL" = x1 ; then
+ dbus=yes
+ fi
+
+-if test "x${dbus}" != xno ; then
++if test "x${dbus}" != xno || test "x${bluez}" != xno || "x${hal}" != xno ; then
+
+ PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.0.0 ],
+ [
+Index: pulseaudio-0.9.8/src/Makefile.am
+===================================================================
+--- pulseaudio-0.9.8.orig/src/Makefile.am
++++ pulseaudio-0.9.8/src/Makefile.am
+@@ -1424,8 +1424,8 @@ module_jack_source_la_CFLAGS = $(AM_CFLA
+ # HAL
+ libdbus_util_la_SOURCES = modules/dbus-util.c modules/dbus-util.h
+ libdbus_util_la_LDFLAGS = -avoid-version
+-libdbus_util_la_LIBADD = $(AM_LIBADD) $(HAL_LIBS) libpulsecore.la
+-libdbus_util_la_CFLAGS = $(AM_CFLAGS) $(HAL_CFLAGS)
++libdbus_util_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore.la
++libdbus_util_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
+
+ module_hal_detect_la_SOURCES = modules/module-hal-detect.c
+ module_hal_detect_la_LDFLAGS = -module -avoid-version
diff --git a/media-sound/pulseaudio/files/pulseaudio-0.9.8-create-directory.patch b/media-sound/pulseaudio/files/pulseaudio-0.9.8-create-directory.patch
new file mode 100644
index 00000000..92bb2ebf
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio-0.9.8-create-directory.patch
@@ -0,0 +1,21 @@
+Index: src/pulsecore/core-util.c
+===================================================================
+--- src/pulsecore/core-util.c (revision 2077)
++++ src/pulsecore/core-util.c (revision 2078)
+@@ -1129,8 +1129,15 @@
+
+ if ((e = getenv("PULSE_CONFIG_PATH")))
+ fn = lfn = pa_sprintf_malloc("%s/%s", e, local);
+- else if (pa_get_home_dir(h, sizeof(h)))
++ else if (pa_get_home_dir(h, sizeof(h))) {
++ char *d;
++
++ d = pa_sprintf_malloc("%s/.pulse", h);
++ mkdir(d, 0755);
++ pa_xfree(d);
++
+ fn = lfn = pa_sprintf_malloc("%s/.pulse/%s", h, local);
++ }
+
+ if (lfn) {
+ FILE *f;
diff --git a/media-sound/pulseaudio/files/pulseaudio-0.9.8-esoundpath.patch b/media-sound/pulseaudio/files/pulseaudio-0.9.8-esoundpath.patch
new file mode 100644
index 00000000..317d39a5
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio-0.9.8-esoundpath.patch
@@ -0,0 +1,49 @@
+Index: src/modules/module-protocol-stub.c
+===================================================================
+--- src/modules/module-protocol-stub.c (revision 2082)
++++ src/modules/module-protocol-stub.c (working copy)
+@@ -218,9 +218,13 @@
+ char tmp[PATH_MAX];
+
+ #if defined(USE_PROTOCOL_ESOUND)
+- char tmp2[PATH_MAX];
++#if defined(USE_PERUSER_ESOUND_SOCKET)
++ char esdsocketpath[PATH_MAX];
++#else
++ const char esdsocketpath[] = "/tmp/.esd/socket";
+ #endif
+ #endif
++#endif
+
+ pa_assert(m);
+
+@@ -265,8 +269,10 @@
+
+ #if defined(USE_PROTOCOL_ESOUND)
+
+- snprintf(tmp2, sizeof(tmp2), "/tmp/.esd-%lu/socket", (unsigned long) getuid());
+- pa_runtime_path(pa_modargs_get_value(ma, "socket", tmp2), tmp, sizeof(tmp));
++#if defined(USE_PERUSER_ESOUND_SOCKET)
++ snprintf(esdsocketpath, sizeof(esdsocketpath), "/tmp/.esd-%lu/socket", (unsigned long) getuid());
++#endif
++ pa_runtime_path(pa_modargs_get_value(ma, "socket", esdsocketpath), tmp, sizeof(tmp));
+ u->socket_path = pa_xstrdup(tmp);
+
+ /* This socket doesn't reside in our own runtime dir but in
+Index: configure.ac
+===================================================================
+--- configure.ac (revision 2082)
++++ configure.ac (working copy)
+@@ -982,6 +982,12 @@
+ AC_SUBST(PA_ACCESS_GROUP)
+ AC_DEFINE_UNQUOTED(PA_ACCESS_GROUP,"$PA_ACCESS_GROUP", [Access group])
+
++AC_ARG_WITH(peruser_esound, AS_HELP_STRING([--with-peruser-esound-socket], [Use per-user esound socket directory, like /tmp/.esd-UID/socket.]))
++
++if test "x$with_peruser_esound" = "xyes"; then
++ AC_DEFINE([USE_PERUSER_ESOUND_SOCKET], [1], [Define this if you want per-user esound socket directories])
++fi
++
+ #### PulseAudio system runtime dir ####
+ PA_SYSTEM_RUNTIME_PATH="${localstatedir}/run/pulse"
+ AC_SUBST(PA_SYSTEM_RUNTIME_PATH)
diff --git a/media-sound/pulseaudio/files/pulseaudio-0.9.8-polkit.patch b/media-sound/pulseaudio/files/pulseaudio-0.9.8-polkit.patch
new file mode 100644
index 00000000..fcd0183f
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio-0.9.8-polkit.patch
@@ -0,0 +1,18 @@
+Index: pulseaudio-0.9.8/configure.ac
+===================================================================
+--- pulseaudio-0.9.8.orig/configure.ac
++++ pulseaudio-0.9.8/configure.ac
+@@ -881,11 +881,11 @@ if test "x${polkit}" != xno ; then
+ [
+ HAVE_POLKIT=1
+ saved_LIBS="$LIBS"
+- LIBS="$LIBS POLKIT_LIBS"
++ LIBS="$LIBS $POLKIT_LIBS"
+ AC_CHECK_FUNCS(polkit_context_is_caller_authorized)
+ LIBS="$saved_LIBS"
+ AC_DEFINE([HAVE_POLKIT], 1, [Have PolicyKit])
+- policydir=`pkg-config --variable prefix`/usr/share/PolicyKit/policy/
++ policydir=`pkg-config polkit-dbus --variable prefix`/share/PolicyKit/policy/
+ AC_SUBST(policydir)
+ ],
+ [
diff --git a/media-sound/pulseaudio/files/pulseaudio-0.9.8-svn2074.patch b/media-sound/pulseaudio/files/pulseaudio-0.9.8-svn2074.patch
new file mode 100644
index 00000000..707abef7
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio-0.9.8-svn2074.patch
@@ -0,0 +1,13 @@
+Index: src/pulse/stream.c
+===================================================================
+--- src/pulse/stream.c (revision 2073)
++++ src/pulse/stream.c (revision 2074)
+@@ -586,7 +586,7 @@
+ }
+ }
+
+- if (s->context->version >= 12) {
++ if (s->context->version >= 12 && s->direction != PA_STREAM_UPLOAD) {
+ pa_sample_spec ss;
+ pa_channel_map cm;
+ const char *dn = NULL;
diff --git a/media-sound/pulseaudio/files/pulseaudio.conf.d b/media-sound/pulseaudio/files/pulseaudio.conf.d
new file mode 100644
index 00000000..1d31d342
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio.conf.d
@@ -0,0 +1,7 @@
+# Config file for /etc/init.d/pulseaudio
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/files/pulseaudio.conf.d,v 1.6 2006/07/29 15:34:18 flameeyes Exp $
+
+# For more see "pulseaudio -h".
+
+# Startup options
+PA_OPTS="--log-target=syslog --disallow-module-loading=1"
diff --git a/media-sound/pulseaudio/files/pulseaudio.init.d-2 b/media-sound/pulseaudio/files/pulseaudio.init.d-2
new file mode 100644
index 00000000..179d1885
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio.init.d-2
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/files/pulseaudio.init.d-2,v 1.5 2007/11/07 12:07:10 flameeyes Exp $
+
+depend() {
+ need localmount
+ use net
+ @neededservices@
+}
+
+start() {
+ ebegin "Starting pulseaudio"
+ PA_ALL_OPTS="${PA_OPTS} --fail=1 --daemonize=1 --system"
+ start-stop-daemon --start --exec /usr/bin/pulseaudio -- ${PA_ALL_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pulseaudio"
+ start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio --pidfile /var/run/pulse/pid
+ eend $?
+}
diff --git a/media-sound/pulseaudio/files/pulseaudio.init.d-3 b/media-sound/pulseaudio/files/pulseaudio.init.d-3
new file mode 100644
index 00000000..c15c8e16
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio.init.d-3
@@ -0,0 +1,68 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/files/pulseaudio.init.d-3,v 1.3 2007/11/23 13:09:31 flameeyes Exp $
+
+depend() {
+ need localmount
+ use net
+
+ local script="/etc/pulse/default.pa"
+
+ for opt in ${PA_OPTS}; do
+ case "$opt" in
+ --file=*) script="${opt#*=}" ;;
+ -F*) script="${opt#-F}" ;;
+ esac
+ done
+
+ config "$script"
+
+ local needs="$(get_options need)"
+ if [ -n "${needs}" ]; then
+ need ${needs}
+ return
+ fi
+
+#ifdef HAL
+ if egrep -q '^[[:space:]]*load-module[[:space:]]+module-hal-detect' "$script"; then
+ needs="${needs} hald"
+ fi
+#endif
+
+#ifdef AVAHI
+ if egrep -q '[[:space:]]*load-module[[:space:]]+module-zeroconf-publish' "$script"; then
+ needs="${needs} avahi-daemon"
+ fi
+#endif
+
+#ifdef BLUETOOTH
+ if egrep -q '[[:space:]]*load-module[[:space:]]+module-bt-proximity' "$script"; then
+ needs="${needs} bluetooth"
+ fi
+#endif
+
+#ifdef ALSA
+ if egrep -q '[[:space:]]*load-module[[:space:]]+module-alsa-(sink|source)' "$script" ||
+ egrep -q '[[:space:]]*load-module[[:space:]]+module-(hal-)?detect' "$script" ||
+ egrep -q '[[:space:]]*add-autoload-source[[:space:]]+(input|output)[[:space:]]+module-alsa-(sink|source)' "$script"; then
+ needs="${needs} alsasound"
+ fi
+#endif
+
+ need "${needs}"
+ save_options need "${needs}"
+}
+
+start() {
+ ebegin "Starting pulseaudio"
+ PA_ALL_OPTS="${PA_OPTS} --fail=1 --daemonize=1 --system"
+ start-stop-daemon --start --exec /usr/bin/pulseaudio -- ${PA_ALL_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pulseaudio"
+ start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio --pidfile /var/run/pulse/pid
+ eend $?
+}
diff --git a/media-sound/pulseaudio/files/pulseaudio.init.d-4 b/media-sound/pulseaudio/files/pulseaudio.init.d-4
new file mode 100644
index 00000000..b9c883d6
--- /dev/null
+++ b/media-sound/pulseaudio/files/pulseaudio.init.d-4
@@ -0,0 +1,72 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/files/pulseaudio.init.d-4,v 1.1 2008/08/03 18:03:46 chutzpah Exp $
+
+depend() {
+ need localmount
+ use net
+
+ local script="/etc/pulse/system.pa"
+
+ for opt in ${PA_OPTS}; do
+ case "$opt" in
+ --file=*) script="${opt#*=}" ;;
+ -F*) script="${opt#-F}" ;;
+ esac
+ done
+
+ config "$script"
+
+ local needs="$(get_options need)"
+ if [ -n "${needs}" ]; then
+ need ${needs}
+ return
+ fi
+
+ if egrep -q '^[[:space:]]*load-module[[:space:]]+module-console-kit' "$script"; then
+ needs="${needs} consolekit"
+ fi
+
+#ifdef HAL
+ if egrep -q '^[[:space:]]*load-module[[:space:]]+module-hal-detect' "$script"; then
+ needs="${needs} hald"
+ fi
+#endif
+
+#ifdef AVAHI
+ if egrep -q '[[:space:]]*load-module[[:space:]]+module-zeroconf-publish' "$script"; then
+ needs="${needs} avahi-daemon"
+ fi
+#endif
+
+#ifdef BLUETOOTH
+ if egrep -q '[[:space:]]*load-module[[:space:]]+module-bt-proximity' "$script"; then
+ needs="${needs} bluetooth"
+ fi
+#endif
+
+#ifdef ALSA
+ if egrep -q '[[:space:]]*load-module[[:space:]]+module-alsa-(sink|source)' "$script" ||
+ egrep -q '[[:space:]]*load-module[[:space:]]+module-(hal-)?detect' "$script" ||
+ egrep -q '[[:space:]]*add-autoload-source[[:space:]]+(input|output)[[:space:]]+module-alsa-(sink|source)' "$script"; then
+ needs="${needs} alsasound"
+ fi
+#endif
+
+ need "${needs}"
+ save_options need "${needs}"
+}
+
+start() {
+ ebegin "Starting pulseaudio"
+ PA_ALL_OPTS="${PA_OPTS} --fail=1 --daemonize=1 --system"
+ start-stop-daemon --start --exec /usr/bin/pulseaudio -- ${PA_ALL_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pulseaudio"
+ start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio --pidfile /var/run/pulse/pid
+ eend $?
+}
diff --git a/media-sound/pulseaudio/metadata.xml b/media-sound/pulseaudio/metadata.xml
new file mode 100644
index 00000000..23c58bc0
--- /dev/null
+++ b/media-sound/pulseaudio/metadata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sound</herd>
+ <use>
+ <flag name="X">
+ Build the X11 publish module to export PulseAudio information
+ through X11 protocol for clients to make use. Don't enable this
+ flag if you want to use a system wide instance. If unsure, enable
+ this flag.
+ </flag>
+ <flag name="gnome">
+ Use GConf to store user preferences on streams and so on. Don't
+ enable this flag if you want to use a system wide instance. If
+ unsure, enable this flag.
+ </flag>
+ <flag name="oss">
+ Enable OSS sink/source (output/input). Also build the padsp
+ script to make OSS software use PulseAudio.
+ </flag>
+ <flag name="policykit">
+ Use the PolicyKit framework (<pkg>sys-auth/policykit</pkg>) to
+ acquire high-priority and real-time scheduling for the daemon.
+ </flag>
+ <flag name="glib">
+ Add support to <pkg>dev-libs/glib</pkg>-based mainloop for the
+ libpulse client library, to allow using libpulse on glib-based
+ programs.
+ </flag>
+ <flag name="asyncns">Use libasyncns for asynchronous name resolution.</flag>
+ <flag name="glib">Enable glib eventloop support</flag>
+ <flag name="policykit">Enable support for PolicyKit framework.</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.10-r1.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.10-r1.ebuild
new file mode 100644
index 00000000..7a8ea6de
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.10-r1.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.10-r1.ebuild,v 1.5 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=1
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+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"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
+
+RDEPEND="X? ( x11-libs/libX11 )
+ caps? ( sys-libs/libcap )
+ >=media-libs/audiofile-0.2.6-r1
+ libsamplerate? ( >=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 )
+ glib? ( >=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 )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+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 realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-caps.patch"
+
+ # Avoid building - and especially linking - test programs
+ # outside of make check
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ "${S}/src/Makefile.am"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_compile() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || 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"
+ use bluetooth && neededservices="$neededservices bluetooth"
+ [[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ 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
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.10.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.10.ebuild
new file mode 100644
index 00000000..11c0735b
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.10.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.10.ebuild,v 1.4 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=1
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
+
+RDEPEND="X? ( x11-libs/libX11 )
+ caps? ( sys-libs/libcap )
+ >=media-libs/audiofile-0.2.6-r1
+ libsamplerate? ( >=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 )
+ glib? ( >=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 )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+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 realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-caps.patch"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_compile() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || 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"
+ use bluetooth && neededservices="$neededservices bluetooth"
+ [[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ 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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild
new file mode 100644
index 00000000..be5fd6a5
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild
@@ -0,0 +1,199 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11-r1.ebuild,v 1.4 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=1
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libXau x11-libs/libXdmcp )
+ caps? ( sys-libs/libcap )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
+ alsa? ( >=media-libs/alsa-lib-1.0.17 )
+ glib? ( >=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 )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=media-libs/audiofile-0.2.6-r1
+ >=media-libs/speex-1.2_beta
+ >=media-libs/libsndfile-1.0.10
+ >=dev-libs/liboil-0.3.6
+ sys-libs/gdbm
+ sys-apps/openrc
+ >=sys-apps/baselayout-2.0_rc5
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ X? ( x11-proto/xproto )
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig
+ dev-util/unifdef"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+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 realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Avoid building - and especially linking - test programs
+ # outside of make check
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ "${S}/src/Makefile.am"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_compile() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use_define() {
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
+
+ use "$1" && echo "-D$define" || echo "-U$define"
+ }
+
+ unifdef "${FILESDIR}/pulseaudio.init.d-3" \
+ $(use_define hal) \
+ $(use_define avahi) \
+ $(use_define alsa) \
+ $(use_define bluetooth) \
+ > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ 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
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+ if use alsa; then
+ local pkg="media-plugins/alsa-plugins"
+ if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
+ elog
+ elog "You have alsa support enabled so you probably want to install"
+ elog "${pkg} with pulseaudio support to have"
+ elog "alsa using applications route their sound through pulseaudio"
+ fi
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild
new file mode 100644
index 00000000..a7636cda
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild
@@ -0,0 +1,201 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild,v 1.3 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=1
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libXau x11-libs/libXdmcp )
+ caps? ( sys-libs/libcap )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
+ alsa? ( >=media-libs/alsa-lib-1.0.17-r1 )
+ glib? ( >=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 )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=media-libs/audiofile-0.2.6-r1
+ >=media-libs/speex-1.2_beta
+ >=media-libs/libsndfile-1.0.10
+ >=dev-libs/liboil-0.3.6
+ sys-libs/gdbm
+ || ( sys-apps/openrc >=sys-apps/baselayout-2.0_rc5 )
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ X? ( x11-proto/xproto )
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig
+ dev-util/unifdef"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+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 realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Avoid building - and especially linking - test programs
+ # outside of make check
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ "${S}/src/Makefile.am"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_compile() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use_define() {
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
+
+ use "$1" && echo "-D$define" || echo "-U$define"
+ }
+
+ unifdef "${FILESDIR}/pulseaudio.init.d-4" \
+ $(use_define hal) \
+ $(use_define avahi) \
+ $(use_define alsa) \
+ $(use_define bluetooth) \
+ > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
+
+ dohtml -r doc
+ dodoc README
+
+ # this should fix system daemon startup #233789
+ cp "${D}/etc/pulse/default.pa" "${D}/etc/pulse/system.pa"
+
+ # Create the state directory
+ diropts -o pulse -g pulse -m0755
+ keepdir /var/run/pulse
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+ if use alsa; then
+ local pkg="media-plugins/alsa-plugins"
+ if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
+ elog
+ elog "You have alsa support enabled so you probably want to install"
+ elog "${pkg} with pulseaudio support to have"
+ elog "alsa using applications route their sound through pulseaudio"
+ fi
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.11.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.11.ebuild
new file mode 100644
index 00000000..10057a2f
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.11.ebuild
@@ -0,0 +1,189 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11.ebuild,v 1.3 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=1
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns speex +glib"
+
+RDEPEND="X? ( x11-libs/libX11 )
+ caps? ( sys-libs/libcap )
+ >=media-libs/audiofile-0.2.6-r1
+ libsamplerate? ( >=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.17 )
+ glib? ( >=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 )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ speex? ( >=media-libs/speex-1.2_rc1 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ sys-libs/gdbm
+ sys-apps/openrc
+ >=sys-apps/baselayout-2.0_rc5
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig
+ dev-util/unifdef"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+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 realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Avoid building - and especially linking - test programs
+ # outside of make check
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ "${S}/src/Makefile.am"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_compile() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use_define() {
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
+
+ use "$1" && echo "-D$define" || echo "-U$define"
+ }
+
+ unifdef "${FILESDIR}/pulseaudio.init.d-3" \
+ $(use_define hal) \
+ $(use_define avahi) \
+ $(use_define alsa) \
+ $(use_define bluetooth) \
+ > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ 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
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.12-r1.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.12-r1.ebuild
new file mode 100644
index 00000000..b9b39b6c
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.12-r1.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.12-r1.ebuild,v 1.4 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=2
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libXau x11-libs/libXdmcp )
+ caps? ( sys-libs/libcap )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
+ alsa? ( >=media-libs/alsa-lib-1.0.17-r1 )
+ glib? ( >=dev-libs/glib-2.4.0 )
+ avahi? ( >=net-dns/avahi-0.6.12[dbus] )
+ >=dev-libs/liboil-0.3.0
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ lirc? ( app-misc/lirc )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=media-libs/audiofile-0.2.6-r1
+ >=media-libs/speex-1.2_beta
+ >=media-libs/libsndfile-1.0.10
+ >=dev-libs/liboil-0.3.6
+ sys-libs/gdbm
+ || ( sys-apps/openrc >=sys-apps/baselayout-2.0_rc5 )
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ >=sys-devel/autoconf-2.62
+ X? ( x11-proto/xproto )
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig
+ || ( dev-util/unifdef sys-freebsd/freebsd-ubin )"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+pkg_setup() {
+ enewgroup audio 18 # Just make sure it exists
+ enewgroup realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Avoid building - and especially linking - test programs
+ # outside of make check
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ "${S}/src/Makefile.am"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_configure() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || die "econf failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use_define() {
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
+
+ use "$1" && echo "-D$define" || echo "-U$define"
+ }
+
+ unifdef $(use_define hal) \
+ $(use_define avahi) \
+ $(use_define alsa) \
+ $(use_define bluetooth) \
+ "${FILESDIR}/pulseaudio.init.d-4" \
+ > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
+
+ dohtml -r doc
+ dodoc README
+
+ # this should fix system daemon startup #233789
+ cp "${D}/etc/pulse/default.pa" "${D}/etc/pulse/system.pa"
+
+ # Create the state directory
+ diropts -o pulse -g pulse -m0755
+ keepdir /var/run/pulse
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+ if use alsa; then
+ local pkg="media-plugins/alsa-plugins"
+ if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
+ elog
+ elog "You have alsa support enabled so you probably want to install"
+ elog "${pkg} with pulseaudio support to have"
+ elog "alsa using applications route their sound through pulseaudio"
+ fi
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.12.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.12.ebuild
new file mode 100644
index 00000000..71d2703d
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.12.ebuild
@@ -0,0 +1,202 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.12.ebuild,v 1.5 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=1
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libXau x11-libs/libXdmcp )
+ caps? ( sys-libs/libcap )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
+ alsa? ( >=media-libs/alsa-lib-1.0.17-r1 )
+ glib? ( >=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 )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=media-libs/audiofile-0.2.6-r1
+ >=media-libs/speex-1.2_beta
+ >=media-libs/libsndfile-1.0.10
+ >=dev-libs/liboil-0.3.6
+ sys-libs/gdbm
+ || ( sys-apps/openrc >=sys-apps/baselayout-2.0_rc5 )
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ >=sys-devel/autoconf-2.62
+ X? ( x11-proto/xproto )
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig
+ || ( dev-util/unifdef sys-freebsd/freebsd-ubin )"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+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 realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Avoid building - and especially linking - test programs
+ # outside of make check
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ "${S}/src/Makefile.am"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_compile() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use_define() {
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
+
+ use "$1" && echo "-D$define" || echo "-U$define"
+ }
+
+ unifdef $(use_define hal) \
+ $(use_define avahi) \
+ $(use_define alsa) \
+ $(use_define bluetooth) \
+ "${FILESDIR}/pulseaudio.init.d-4" \
+ > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
+
+ dohtml -r doc
+ dodoc README
+
+ # this should fix system daemon startup #233789
+ cp "${D}/etc/pulse/default.pa" "${D}/etc/pulse/system.pa"
+
+ # Create the state directory
+ diropts -o pulse -g pulse -m0755
+ keepdir /var/run/pulse
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+ if use alsa; then
+ local pkg="media-plugins/alsa-plugins"
+ if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
+ elog
+ elog "You have alsa support enabled so you probably want to install"
+ elog "${pkg} with pulseaudio support to have"
+ elog "alsa using applications route their sound through pulseaudio"
+ fi
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.13.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.13.ebuild
new file mode 100644
index 00000000..fbba6440
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.13.ebuild
@@ -0,0 +1,201 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.13.ebuild,v 1.4 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=2
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib nls"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libXau x11-libs/libXdmcp )
+ caps? ( sys-libs/libcap )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
+ alsa? ( >=media-libs/alsa-lib-1.0.17-r1 )
+ glib? ( >=dev-libs/glib-2.4.0 )
+ avahi? ( >=net-dns/avahi-0.6.12[dbus] )
+ >=dev-libs/liboil-0.3.0
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ lirc? ( app-misc/lirc )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=media-libs/audiofile-0.2.6-r1
+ >=media-libs/speex-1.2_beta
+ >=media-libs/libsndfile-1.0.10
+ >=dev-libs/liboil-0.3.6
+ sys-libs/gdbm
+ || ( sys-apps/openrc >=sys-apps/baselayout-2.0_rc5 )
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+
+# Remove autoconf when >=2.62 stable and pulled in by autotools.eclass
+DEPEND="${RDEPEND}
+ >=sys-devel/autoconf-2.62
+ X? ( x11-proto/xproto )
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig
+ || ( dev-util/unifdef sys-freebsd/freebsd-ubin )
+ nls? ( sys-devel/gettext dev-util/intltool )"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+pkg_setup() {
+ enewgroup audio 18 # Just make sure it exists
+ enewgroup realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Avoid building - and especially linking - test programs
+ # outside of make check
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ "${S}/src/Makefile.am"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_configure() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || die "econf failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use_define() {
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
+
+ use "$1" && echo "-D$define" || echo "-U$define"
+ }
+
+ unifdef $(use_define hal) \
+ $(use_define avahi) \
+ $(use_define alsa) \
+ $(use_define bluetooth) \
+ "${FILESDIR}/pulseaudio.init.d-4" \
+ > "${T}/pulseaudio"
+
+ # Specific fix for 0.9.13, drop at .14!
+ sed -i -e '/start-stop-daemon --start/s:$: --exit-idle-time=-1:' \
+ "${T}"/pulseaudio
+
+ doinitd "${T}/pulseaudio"
+
+ use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
+
+ dohtml -r doc
+ dodoc README
+
+ # this should fix system daemon startup #233789
+ cp "${D}/etc/pulse/default.pa" "${D}/etc/pulse/system.pa"
+
+ # Create the state directory
+ diropts -o pulse -g pulse -m0755
+ keepdir /var/run/pulse
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+ if use alsa; then
+ local pkg="media-plugins/alsa-plugins"
+ if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
+ elog
+ elog "You have alsa support enabled so you probably want to install"
+ elog "${pkg} with pulseaudio support to have"
+ elog "alsa using applications route their sound through pulseaudio"
+ fi
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.14.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.14.ebuild
new file mode 100644
index 00000000..21e06942
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.14.ebuild
@@ -0,0 +1,194 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.14.ebuild,v 1.5 2009/02/24 11:16:21 flameeyes Exp $
+
+EAPI=2
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org/"
+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"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libXau x11-libs/libXdmcp )
+ caps? ( sys-libs/libcap )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
+ alsa? ( >=media-libs/alsa-lib-1.0.17-r1 )
+ glib? ( >=dev-libs/glib-2.4.0 )
+ avahi? ( >=net-dns/avahi-0.6.12[dbus] )
+ >=dev-libs/liboil-0.3.0
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ lirc? ( app-misc/lirc )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=media-libs/audiofile-0.2.6-r1
+ >=media-libs/speex-1.2_beta
+ >=media-libs/libsndfile-1.0.10
+ >=dev-libs/liboil-0.3.6
+ sys-libs/gdbm
+ || ( sys-apps/openrc >=sys-apps/baselayout-2.0_rc5 )
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+
+# Remove autoconf when >=2.62 stable and pulled in by autotools.eclass
+DEPEND="${RDEPEND}
+ >=sys-devel/autoconf-2.62
+ X? ( x11-proto/xproto )
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig
+ || ( dev-util/unifdef sys-freebsd/freebsd-ubin )
+ dev-util/intltool"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+pkg_setup() {
+ enewgroup audio 18 # Just make sure it exists
+ enewgroup realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Avoid building - and especially linking - test programs
+ # outside of make check
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ "${S}/src/Makefile.am"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_configure() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || die "econf failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use_define() {
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
+
+ use "$1" && echo "-D$define" || echo "-U$define"
+ }
+
+ unifdef $(use_define hal) \
+ $(use_define avahi) \
+ $(use_define alsa) \
+ $(use_define bluetooth) \
+ "${FILESDIR}/pulseaudio.init.d-4" \
+ > "${T}/pulseaudio"
+
+ doinitd "${T}/pulseaudio"
+
+ 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
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+ if use alsa; then
+ local pkg="media-plugins/alsa-plugins"
+ if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
+ elog
+ elog "You have alsa support enabled so you probably want to install"
+ elog "${pkg} with pulseaudio support to have"
+ elog "alsa using applications route their sound through pulseaudio"
+ fi
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.15.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.15.ebuild
new file mode 100644
index 00000000..26110674
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.15.ebuild
@@ -0,0 +1,196 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.15.ebuild,v 1.2 2009/04/17 11:49:44 flameeyes Exp $
+
+EAPI=2
+
+inherit eutils libtool flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org/"
+if [[ ${PV/_rc/} == ${PV} ]]; then
+ SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
+else
+ SRC_URI="http://0pointer.de/public/${P/_rc/-test}.tar.gz"
+fi
+
+S="${WORKDIR}/${P/_rc/-test}"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib test"
+
+RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE )
+ caps? ( sys-libs/libcap )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
+ alsa? ( >=media-libs/alsa-lib-1.0.19 )
+ glib? ( >=dev-libs/glib-2.4.0 )
+ avahi? ( >=net-dns/avahi-0.6.12[dbus] )
+ >=dev-libs/liboil-0.3.0
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ lirc? ( app-misc/lirc )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=media-libs/audiofile-0.2.6-r1
+ >=media-libs/speex-1.2_beta
+ >=media-libs/libsndfile-1.0.10
+ >=dev-libs/liboil-0.3.6
+ sys-libs/gdbm
+ >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used
+
+DEPEND="${RDEPEND}
+ X? ( x11-proto/xproto )
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig
+ || ( dev-util/unifdef sys-freebsd/freebsd-ubin )
+ dev-util/intltool"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ sys-apps/openrc
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+pkg_setup() {
+ enewgroup audio 18 # Just make sure it exists
+ enewgroup realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/module-alsa-card.file-not-found.diff
+ epatch "${FILESDIR}"/0pointer.diff
+
+ elibtoolize
+}
+
+src_configure() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ append-ldflags -Wl,--no-as-needed
+
+ econf \
+ --enable-largefile \
+ $(use_enable glib glib2) \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_enable X x11) \
+ $(use_enable test default-build-tests) \
+ $(use_with caps) \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ --disable-per-user-esound-socket \
+ || die "econf failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
+
+ use_define() {
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
+
+ use "$1" && echo "-D$define" || echo "-U$define"
+ }
+
+ unifdef $(use_define hal) \
+ $(use_define avahi) \
+ $(use_define alsa) \
+ $(use_define bluetooth) \
+ "${FILESDIR}/pulseaudio.init.d-4" \
+ > "${T}/pulseaudio"
+
+ doinitd "${T}/pulseaudio"
+
+ 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
+
+ find "${D}" -name '*.la' -delete
+}
+
+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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+ if use alsa; then
+ local pkg="media-plugins/alsa-plugins"
+ if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
+ elog
+ elog "You have alsa support enabled so you probably want to install"
+ elog "${pkg} with pulseaudio support to have"
+ elog "alsa using applications route their sound through pulseaudio"
+ fi
+ fi
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.7.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.7.ebuild
new file mode 100644
index 00000000..d52e8e17
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.7.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.7.ebuild,v 1.12 2009/02/24 11:16:21 flameeyes Exp $
+
+inherit eutils libtool # autotools
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+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 dbus libsamplerate gnome"
+
+RDEPEND="X? ( x11-libs/libX11 )
+ caps? ( sys-libs/libcap )
+ >=media-libs/audiofile-0.2.6-r1
+ libsamplerate? ( >=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 )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? ( >=sys-apps/hal-0.5.7 )
+ app-admin/eselect-esd
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ dev-libs/libatomic_ops
+ 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 realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-module-loading.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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ || 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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+
+ eselect esd update --if-unset
+}
diff --git a/media-sound/pulseaudio/pulseaudio-0.9.9.ebuild b/media-sound/pulseaudio/pulseaudio-0.9.9.ebuild
new file mode 100644
index 00000000..dda5aa52
--- /dev/null
+++ b/media-sound/pulseaudio/pulseaudio-0.9.9.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9.ebuild,v 1.10 2009/04/28 14:30:42 armin76 Exp $
+
+inherit eutils libtool autotools flag-o-matic
+
+DESCRIPTION="A networked sound server with an advanced plugin system"
+HOMEPAGE="http://www.pulseaudio.org"
+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"
+IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns"
+
+RDEPEND="X? ( x11-libs/libX11 )
+ caps? ( sys-libs/libcap )
+ >=media-libs/audiofile-0.2.6-r1
+ libsamplerate? ( >=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 )
+ dbus? ( >=sys-apps/dbus-1.0.0 )
+ gnome? ( >=gnome-base/gconf-2.4.0 )
+ hal? (
+ >=sys-apps/hal-0.5.7
+ >=sys-apps/dbus-1.0.0
+ )
+ app-admin/eselect-esd
+ bluetooth? (
+ >=net-wireless/bluez-libs-3
+ >=sys-apps/dbus-1.0.0
+ )
+ policykit? ( sys-auth/policykit )
+ asyncns? ( net-libs/libasyncns )
+ >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
+DEPEND="${RDEPEND}
+ dev-libs/libatomic_ops
+ dev-util/pkgconfig"
+
+# alsa-utils dep is for the alsasound init.d script (see bug #155707)
+# bluez-utils dep is for the bluetooth init.d script
+RDEPEND="${RDEPEND}
+ gnome-extra/gnome-audio
+ alsa? ( media-sound/alsa-utils )
+ bluetooth? ( >=net-wireless/bluez-utils-3 )"
+
+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 realtime
+ enewgroup pulse-access
+ enewgroup pulse
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PN}-0.9.8-svn2074.patch"
+ epatch "${FILESDIR}/${PN}-0.9.8-polkit.patch"
+ epatch "${FILESDIR}/${PN}-0.9.8-bt-nohal.patch"
+ epatch "${FILESDIR}/${PN}-0.9.8-esoundpath.patch"
+ epatch "${FILESDIR}/${PN}-0.9.8-create-directory.patch"
+
+ eautoreconf
+ elibtoolize
+}
+
+src_compile() {
+ # To properly fix CVE-2008-0008
+ append-flags -UNDEBUG
+
+ econf \
+ --enable-largefile \
+ --enable-glib2 \
+ --disable-solaris \
+ $(use_enable 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_enable dbus) \
+ $(use_enable gnome gconf) \
+ $(use_enable libsamplerate samplerate) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable policykit polkit) \
+ $(use_with caps) \
+ $(use_with X x) \
+ --disable-ltdl-install \
+ --localstatedir=/var \
+ --with-realtime-group=realtime \
+ || 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"
+ use bluetooth && neededservices="$neededservices bluetooth"
+ [[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio"
+ doinitd "${T}/pulseaudio"
+
+ 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"
+ if use gnome; then
+ elog
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note"
+ elog "that you might need to remove the gnome USE flag or disable the"
+ elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
+ elog "with a system-wide instance."
+ fi
+ elog
+ 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."
+ elog
+ elog "If you want to make use of realtime capabilities of PulseAudio"
+ elog "you should follow the realtime guide to create and set up a realtime"
+ elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
+ elog "Make sure you also have baselayout installed with pam USE flag"
+ elog "enabled, if you're using the rlimit method."
+ if use bluetooth; then
+ elog
+ elog "The BlueTooth proximity module is not enabled in the default"
+ elog "configuration file. If you do enable it, you'll have to have"
+ elog "your BlueTooth controller enabled and inserted at bootup or"
+ elog "PulseAudio will refuse to start."
+ elog
+ elog "Please note that the BlueTooth proximity module seems itself"
+ elog "still experimental, so please report to upstream if you have"
+ elog "problems with it."
+ fi
+
+ eselect esd update --if-unset
+}