Gentoo Archives: gentoo-commits

From: "Patrick McLean (chutzpah)" <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/pulseaudio: ChangeLog pulseaudio-0.9.11-r2.ebuild
Date: Sun, 03 Aug 2008 18:03:49
Message-Id: E1KPhvm-0004Ra-GD@stork.gentoo.org
1 chutzpah 08/08/03 18:03:46
2
3 Modified: ChangeLog
4 Added: pulseaudio-0.9.11-r2.ebuild
5 Log:
6 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).
7 (Portage version: 2.2_rc6/cvs/Linux 2.6.26-gentoo x86_64)
8
9 Revision Changes Path
10 1.109 media-sound/pulseaudio/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.109&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.109&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.108&r2=1.109
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
19 retrieving revision 1.108
20 retrieving revision 1.109
21 diff -u -r1.108 -r1.109
22 --- ChangeLog 3 Aug 2008 12:37:01 -0000 1.108
23 +++ ChangeLog 3 Aug 2008 18:03:45 -0000 1.109
24 @@ -1,6 +1,14 @@
25 # ChangeLog for media-sound/pulseaudio
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.108 2008/08/03 12:37:01 betelgeuse Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.109 2008/08/03 18:03:45 chutzpah Exp $
29 +
30 +*pulseaudio-0.9.11-r2 (03 Aug 2008)
31 +
32 + 03 Aug 2008; Patrick McLean <chutzpah@g.o>
33 + +files/pulseaudio.init.d-4, +pulseaudio-0.9.11-r2.ebuild:
34 + Make sure that the ebuild creates system.pa, modify the init script to use
35 + system.pa rather than default.pa and add a "needs" on consolekit if
36 + module-console-kit is requested in system.pa (bug #233789).
37
38 03 Aug 2008; Petteri Räty <betelgeuse@g.o>
39 pulseaudio-0.9.11-r1.ebuild:
40
41
42
43 1.1 media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pulseaudio-0.9.11-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.11-r2.ebuild,v 1.1 2008/08/03 18:03:45 chutzpah Exp $
53
54 EAPI=1
55
56 inherit eutils libtool autotools flag-o-matic
57
58 DESCRIPTION="A networked sound server with an advanced plugin system"
59 HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/"
60 SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
61
62 LICENSE="LGPL-2 GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
65 IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib"
66
67 RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libXau x11-libs/libXdmcp )
68 caps? ( sys-libs/libcap )
69 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
70 alsa? ( >=media-libs/alsa-lib-1.0.17-r1 )
71 glib? ( >=dev-libs/glib-2.4.0 )
72 avahi? ( >=net-dns/avahi-0.6.12 )
73 >=dev-libs/liboil-0.3.0
74 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
75 tcpd? ( sys-apps/tcp-wrappers )
76 lirc? ( app-misc/lirc )
77 dbus? ( >=sys-apps/dbus-1.0.0 )
78 gnome? ( >=gnome-base/gconf-2.4.0 )
79 hal? (
80 >=sys-apps/hal-0.5.7
81 >=sys-apps/dbus-1.0.0
82 )
83 app-admin/eselect-esd
84 bluetooth? (
85 >=net-wireless/bluez-libs-3
86 >=sys-apps/dbus-1.0.0
87 )
88 policykit? ( sys-auth/policykit )
89 asyncns? ( net-libs/libasyncns )
90 >=media-libs/audiofile-0.2.6-r1
91 >=media-libs/speex-1.2_beta
92 >=media-libs/libsndfile-1.0.10
93 >=dev-libs/liboil-0.3.6
94 sys-libs/gdbm
95 || ( sys-apps/openrc >=sys-apps/baselayout-2.0_rc5 )
96 >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
97 DEPEND="${RDEPEND}
98 X? ( x11-proto/xproto )
99 dev-libs/libatomic_ops
100 dev-util/pkgconfig
101 dev-util/unifdef"
102
103 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
104 # bluez-utils dep is for the bluetooth init.d script
105 RDEPEND="${RDEPEND}
106 gnome-extra/gnome-audio
107 alsa? ( media-sound/alsa-utils )
108 bluetooth? ( >=net-wireless/bluez-utils-3 )"
109
110 pkg_setup() {
111 if use avahi && ! built_with_use net-dns/avahi dbus ; then
112 echo
113 eerror "In order to compile pulseaudio with avahi support, you need to have"
114 eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that"
115 eerror "flag, re-emerge avahi, and then emerge pulseaudio again."
116 die "net-dns/avahi is missing the D-Bus bindings."
117 fi
118
119 enewgroup audio 18 # Just make sure it exists
120 enewgroup realtime
121 enewgroup pulse-access
122 enewgroup pulse
123 enewuser pulse -1 -1 /var/run/pulse pulse,audio
124 }
125
126 src_unpack() {
127 unpack ${A}
128 cd "${S}"
129
130 # Avoid building - and especially linking - test programs
131 # outside of make check
132 sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
133 "${S}/src/Makefile.am"
134
135 eautoreconf
136 elibtoolize
137 }
138
139 src_compile() {
140 # To properly fix CVE-2008-0008
141 append-flags -UNDEBUG
142
143 econf \
144 --enable-largefile \
145 $(use_enable glib) \
146 --disable-solaris \
147 $(use_enable asyncns) \
148 $(use_enable oss) \
149 $(use_enable alsa) \
150 $(use_enable lirc) \
151 $(use_enable tcpd tcpwrap) \
152 $(use_enable jack) \
153 $(use_enable lirc) \
154 $(use_enable avahi) \
155 $(use_enable hal) \
156 $(use_enable dbus) \
157 $(use_enable gnome gconf) \
158 $(use_enable libsamplerate samplerate) \
159 $(use_enable bluetooth bluez) \
160 $(use_enable policykit polkit) \
161 $(use_with caps) \
162 $(use_with X x) \
163 --disable-ltdl-install \
164 --localstatedir=/var \
165 --with-realtime-group=realtime \
166 --disable-per-user-esound-socket \
167 || die "econf failed"
168 emake || die "emake failed"
169 }
170
171 src_install() {
172 emake -j1 DESTDIR="${D}" install || die "make install failed"
173
174 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
175
176 use_define() {
177 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
178
179 use "$1" && echo "-D$define" || echo "-U$define"
180 }
181
182 unifdef "${FILESDIR}/pulseaudio.init.d-4" \
183 $(use_define hal) \
184 $(use_define avahi) \
185 $(use_define alsa) \
186 $(use_define bluetooth) \
187 > "${T}/pulseaudio"
188 doinitd "${T}/pulseaudio"
189
190 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
191
192 dohtml -r doc
193 dodoc README
194
195 # this should fix system daemon startup #233789
196 cp "${D}/etc/pulse/default.pa" "${D}/etc/pulse/system.pa"
197
198 # Create the state directory
199 diropts -o pulse -g pulse -m0755
200 keepdir /var/run/pulse
201
202 find "${D}" -name '*.la' -delete
203 }
204
205 pkg_postinst() {
206 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
207 elog "This support is enabled by starting the pulseaudio init.d ."
208 elog "To be able to access that you need to be in the group pulse-access."
209 elog "For more information about system-wide support, please refer to"
210 elog " http://pulseaudio.org/wiki/SystemWideInstance"
211 if use gnome; then
212 elog
213 elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note"
214 elog "that you might need to remove the gnome USE flag or disable the"
215 elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
216 elog "with a system-wide instance."
217 fi
218 elog
219 elog "To use the ESounD wrapper while using a system-wide daemon, you also"
220 elog "need to enable auth-anonymous for the esound-unix module, or to copy"
221 elog "/var/run/pulse/.esd_auth into each home directory."
222 elog
223 elog "If you want to make use of realtime capabilities of PulseAudio"
224 elog "you should follow the realtime guide to create and set up a realtime"
225 elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
226 elog "Make sure you also have baselayout installed with pam USE flag"
227 elog "enabled, if you're using the rlimit method."
228 if use bluetooth; then
229 elog
230 elog "The BlueTooth proximity module is not enabled in the default"
231 elog "configuration file. If you do enable it, you'll have to have"
232 elog "your BlueTooth controller enabled and inserted at bootup or"
233 elog "PulseAudio will refuse to start."
234 elog
235 elog "Please note that the BlueTooth proximity module seems itself"
236 elog "still experimental, so please report to upstream if you have"
237 elog "problems with it."
238 fi
239 if use alsa; then
240 local pkg="media-plugins/alsa-plugins"
241 if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
242 elog
243 elog "You have alsa support enabled so you probably want to install"
244 elog "${pkg} with pulseaudio support to have"
245 elog "alsa using applications route their sound through pulseaudio"
246 fi
247 fi
248
249 eselect esd update --if-unset
250 }