1 |
flameeyes 08/01/24 02:07:12 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: pulseaudio-0.9.9-r2.ebuild |
5 |
pulseaudio-0.9.9-r1.ebuild pulseaudio-0.9.9.ebuild |
6 |
Removed: pulseaudio-0.9.5-r6.ebuild |
7 |
pulseaudio-0.9.8-r5.ebuild |
8 |
pulseaudio-0.9.8-r4.ebuild |
9 |
Log: |
10 |
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). |
11 |
(Portage version: 2.1.4) |
12 |
|
13 |
Revision Changes Path |
14 |
1.93 media-sound/pulseaudio/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.93&view=markup |
17 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.93&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.92&r2=1.93 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v |
23 |
retrieving revision 1.92 |
24 |
retrieving revision 1.93 |
25 |
diff -u -r1.92 -r1.93 |
26 |
--- ChangeLog 8 Jan 2008 22:17:00 -0000 1.92 |
27 |
+++ ChangeLog 24 Jan 2008 02:07:11 -0000 1.93 |
28 |
@@ -1,6 +1,22 @@ |
29 |
# ChangeLog for media-sound/pulseaudio |
30 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.92 2008/01/08 22:17:00 jer Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.93 2008/01/24 02:07:11 flameeyes Exp $ |
33 |
+ |
34 |
+*pulseaudio-0.9.9-r2 (24 Jan 2008) |
35 |
+*pulseaudio-0.9.9-r1 (24 Jan 2008) |
36 |
+*pulseaudio-0.9.9 (24 Jan 2008) |
37 |
+ |
38 |
+ 24 Jan 2008; Diego Pettenò <flameeyes@g.o> |
39 |
+ -files/pulseaudio-0.9.5-CVE-2007-1804.patch, |
40 |
+ -files/pulseaudio-0.9.5-esdcompat.patch, |
41 |
+ -files/pulseaudio-0.9.5-fbsd.patch, -files/pulseaudio-0.9.5-noshm.patch, |
42 |
+ metadata.xml, -pulseaudio-0.9.5-r6.ebuild, -pulseaudio-0.9.8-r4.ebuild, |
43 |
+ -pulseaudio-0.9.8-r5.ebuild, +pulseaudio-0.9.9.ebuild, |
44 |
+ +pulseaudio-0.9.9-r1.ebuild, +pulseaudio-0.9.9-r2.ebuild: |
45 |
+ Version bump. This fixes the CVE-2008-0008 security issue reported as bug |
46 |
+ #207214. Version -r1 also implements the request in bug #204754 (glib USE |
47 |
+ flag, thanks to Matthijs Kooijman). All three revision also fixes bug |
48 |
+ #204748 (broken default.pa with hal USE flag unset). |
49 |
|
50 |
08 Jan 2008; Jeroen Roovers <jer@g.o> pulseaudio-0.9.8-r6.ebuild, |
51 |
pulseaudio-0.9.8-r7.ebuild: |
52 |
|
53 |
|
54 |
|
55 |
1.3 media-sound/pulseaudio/metadata.xml |
56 |
|
57 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/metadata.xml?rev=1.3&view=markup |
58 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/metadata.xml?rev=1.3&content-type=text/plain |
59 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/metadata.xml?r1=1.2&r2=1.3 |
60 |
|
61 |
Index: metadata.xml |
62 |
=================================================================== |
63 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/metadata.xml,v |
64 |
retrieving revision 1.2 |
65 |
retrieving revision 1.3 |
66 |
diff -u -r1.2 -r1.3 |
67 |
--- metadata.xml 23 Nov 2007 13:09:30 -0000 1.2 |
68 |
+++ metadata.xml 24 Jan 2008 02:07:11 -0000 1.3 |
69 |
@@ -22,5 +22,10 @@ |
70 |
Use the PolicyKit framework (<pkg>sys-auth/policykit</pkg>) to |
71 |
acquire high-priority and real-time scheduling for the daemon. |
72 |
</flag> |
73 |
+ <flag name="glib"> |
74 |
+ Add support to <pkg>dev-libs/glib</pkg>-based mainloop for the |
75 |
+ libpulse client library, to allow using libpulse on glib-based |
76 |
+ programs. |
77 |
+ </flag> |
78 |
</use> |
79 |
</pkgmetadata> |
80 |
|
81 |
|
82 |
|
83 |
1.1 media-sound/pulseaudio/pulseaudio-0.9.9-r2.ebuild |
84 |
|
85 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9-r2.ebuild?rev=1.1&view=markup |
86 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9-r2.ebuild?rev=1.1&content-type=text/plain |
87 |
|
88 |
Index: pulseaudio-0.9.9-r2.ebuild |
89 |
=================================================================== |
90 |
# Copyright 1999-2008 Gentoo Foundation |
91 |
# Distributed under the terms of the GNU General Public License v2 |
92 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9-r2.ebuild,v 1.1 2008/01/24 02:07:11 flameeyes Exp $ |
93 |
|
94 |
EAPI=1 |
95 |
|
96 |
inherit eutils libtool autotools flag-o-matic |
97 |
|
98 |
DESCRIPTION="A networked sound server with an advanced plugin system" |
99 |
HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/" |
100 |
SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" |
101 |
|
102 |
LICENSE="LGPL-2 GPL-2" |
103 |
SLOT="0" |
104 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86" |
105 |
IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib" |
106 |
|
107 |
RDEPEND="X? ( x11-libs/libX11 ) |
108 |
caps? ( sys-libs/libcap ) |
109 |
>=media-libs/audiofile-0.2.6-r1 |
110 |
libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
111 |
>=media-libs/libsndfile-1.0.10 |
112 |
>=dev-libs/liboil-0.3.6 |
113 |
alsa? ( >=media-libs/alsa-lib-1.0.10 ) |
114 |
glib? ( >=dev-libs/glib-2.4.0 ) |
115 |
avahi? ( >=net-dns/avahi-0.6.12 ) |
116 |
>=dev-libs/liboil-0.3.0 |
117 |
jack? ( >=media-sound/jack-audio-connection-kit-0.100 ) |
118 |
tcpd? ( sys-apps/tcp-wrappers ) |
119 |
lirc? ( app-misc/lirc ) |
120 |
dbus? ( >=sys-apps/dbus-1.0.0 ) |
121 |
gnome? ( >=gnome-base/gconf-2.4.0 ) |
122 |
hal? ( |
123 |
>=sys-apps/hal-0.5.7 |
124 |
>=sys-apps/dbus-1.0.0 |
125 |
) |
126 |
app-admin/eselect-esd |
127 |
bluetooth? ( |
128 |
>=net-wireless/bluez-libs-3 |
129 |
>=sys-apps/dbus-1.0.0 |
130 |
) |
131 |
policykit? ( sys-auth/policykit ) |
132 |
asyncns? ( net-libs/libasyncns ) |
133 |
>=sys-apps/baselayout-2.0_rc5 |
134 |
>=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used |
135 |
DEPEND="${RDEPEND} |
136 |
dev-libs/libatomic_ops |
137 |
dev-util/pkgconfig |
138 |
dev-util/unifdef" |
139 |
|
140 |
# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
141 |
# bluez-utils dep is for the bluetooth init.d script |
142 |
RDEPEND="${RDEPEND} |
143 |
gnome-extra/gnome-audio |
144 |
alsa? ( media-sound/alsa-utils ) |
145 |
bluetooth? ( >=net-wireless/bluez-utils-3 )" |
146 |
|
147 |
pkg_setup() { |
148 |
if use avahi && ! built_with_use net-dns/avahi dbus ; then |
149 |
echo |
150 |
eerror "In order to compile pulseaudio with avahi support, you need to have" |
151 |
eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that" |
152 |
eerror "flag, re-emerge avahi, and then emerge pulseaudio again." |
153 |
die "net-dns/avahi is missing the D-Bus bindings." |
154 |
fi |
155 |
|
156 |
enewgroup audio 18 # Just make sure it exists |
157 |
enewgroup realtime |
158 |
enewgroup pulse-access |
159 |
enewgroup pulse |
160 |
enewuser pulse -1 -1 /var/run/pulse pulse,audio |
161 |
} |
162 |
|
163 |
src_unpack() { |
164 |
unpack ${A} |
165 |
cd "${S}" |
166 |
|
167 |
epatch "${FILESDIR}/${PN}-0.9.8-svn2074.patch" |
168 |
epatch "${FILESDIR}/${PN}-0.9.8-polkit.patch" |
169 |
epatch "${FILESDIR}/${PN}-0.9.8-bt-nohal.patch" |
170 |
epatch "${FILESDIR}/${PN}-0.9.8-esoundpath.patch" |
171 |
epatch "${FILESDIR}/${PN}-0.9.8-create-directory.patch" |
172 |
|
173 |
eautoreconf |
174 |
elibtoolize |
175 |
} |
176 |
|
177 |
src_compile() { |
178 |
# To properly fix CVE-2008-0008 |
179 |
append-flags -UNDEBUG |
180 |
|
181 |
econf \ |
182 |
--enable-largefile \ |
183 |
$(use_enable glib) \ |
184 |
--disable-solaris \ |
185 |
$(use_enable asyncns) \ |
186 |
$(use_enable oss) \ |
187 |
$(use_enable alsa) \ |
188 |
$(use_enable lirc) \ |
189 |
$(use_enable tcpd tcpwrap) \ |
190 |
$(use_enable jack) \ |
191 |
$(use_enable lirc) \ |
192 |
$(use_enable avahi) \ |
193 |
$(use_enable hal) \ |
194 |
$(use_enable dbus) \ |
195 |
$(use_enable gnome gconf) \ |
196 |
$(use_enable libsamplerate samplerate) \ |
197 |
$(use_enable bluetooth bluez) \ |
198 |
$(use_enable policykit polkit) \ |
199 |
$(use_with caps) \ |
200 |
$(use_with X x) \ |
201 |
--disable-ltdl-install \ |
202 |
--localstatedir=/var \ |
203 |
--with-realtime-group=realtime \ |
204 |
|| die "econf failed" |
205 |
emake || die "emake failed" |
206 |
} |
207 |
|
208 |
src_install() { |
209 |
emake -j1 DESTDIR="${D}" install || die "make install failed" |
210 |
|
211 |
newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
212 |
|
213 |
use_define() { |
214 |
local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')} |
215 |
|
216 |
use "$1" && echo "-D$define" || echo "-U$define" |
217 |
} |
218 |
|
219 |
unifdef "${FILESDIR}/pulseaudio.init.d-3" \ |
220 |
$(use_define hal) \ |
221 |
$(use_define avahi) \ |
222 |
$(use_define alsa) \ |
223 |
$(use_define bluetooth) \ |
224 |
> "${T}/pulseaudio" |
225 |
doinitd "${T}/pulseaudio" |
226 |
|
227 |
use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa" |
228 |
|
229 |
dohtml -r doc |
230 |
dodoc README |
231 |
|
232 |
# Create the state directory |
233 |
diropts -o pulse -g pulse -m0755 |
234 |
keepdir /var/run/pulse |
235 |
} |
236 |
|
237 |
pkg_postinst() { |
238 |
elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon." |
239 |
elog "This support is enabled by starting the pulseaudio init.d ." |
240 |
elog "To be able to access that you need to be in the group pulse-access." |
241 |
elog "For more information about system-wide support, please refer to" |
242 |
elog " http://pulseaudio.org/wiki/SystemWideInstance" |
243 |
if use gnome; then |
244 |
elog |
245 |
elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note" |
246 |
elog "that you might need to remove the gnome USE flag or disable the" |
247 |
elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio" |
248 |
elog "with a system-wide instance." |
249 |
fi |
250 |
elog |
251 |
elog "To use the ESounD wrapper while using a system-wide daemon, you also" |
252 |
elog "need to enable auth-anonymous for the esound-unix module, or to copy" |
253 |
elog "/var/run/pulse/.esd_auth into each home directory." |
254 |
elog |
255 |
elog "If you want to make use of realtime capabilities of PulseAudio" |
256 |
elog "you should follow the realtime guide to create and set up a realtime" |
257 |
elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml" |
258 |
elog "Make sure you also have baselayout installed with pam USE flag" |
259 |
elog "enabled, if you're using the rlimit method." |
260 |
if use bluetooth; then |
261 |
elog |
262 |
elog "The BlueTooth proximity module is not enabled in the default" |
263 |
elog "configuration file. If you do enable it, you'll have to have" |
264 |
elog "your BlueTooth controller enabled and inserted at bootup or" |
265 |
elog "PulseAudio will refuse to start." |
266 |
elog |
267 |
elog "Please note that the BlueTooth proximity module seems itself" |
268 |
elog "still experimental, so please report to upstream if you have" |
269 |
elog "problems with it." |
270 |
fi |
271 |
|
272 |
eselect esd update --if-unset |
273 |
} |
274 |
|
275 |
|
276 |
|
277 |
1.1 media-sound/pulseaudio/pulseaudio-0.9.9-r1.ebuild |
278 |
|
279 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9-r1.ebuild?rev=1.1&view=markup |
280 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9-r1.ebuild?rev=1.1&content-type=text/plain |
281 |
|
282 |
Index: pulseaudio-0.9.9-r1.ebuild |
283 |
=================================================================== |
284 |
# Copyright 1999-2008 Gentoo Foundation |
285 |
# Distributed under the terms of the GNU General Public License v2 |
286 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9-r1.ebuild,v 1.1 2008/01/24 02:07:11 flameeyes Exp $ |
287 |
|
288 |
EAPI=1 |
289 |
|
290 |
inherit eutils libtool autotools flag-o-matic |
291 |
|
292 |
DESCRIPTION="A networked sound server with an advanced plugin system" |
293 |
HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/" |
294 |
SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" |
295 |
|
296 |
LICENSE="LGPL-2 GPL-2" |
297 |
SLOT="0" |
298 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86" |
299 |
IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib" |
300 |
|
301 |
RDEPEND="X? ( x11-libs/libX11 ) |
302 |
caps? ( sys-libs/libcap ) |
303 |
>=media-libs/audiofile-0.2.6-r1 |
304 |
libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
305 |
>=media-libs/libsndfile-1.0.10 |
306 |
>=dev-libs/liboil-0.3.6 |
307 |
alsa? ( >=media-libs/alsa-lib-1.0.10 ) |
308 |
glib? ( >=dev-libs/glib-2.4.0 ) |
309 |
avahi? ( >=net-dns/avahi-0.6.12 ) |
310 |
>=dev-libs/liboil-0.3.0 |
311 |
jack? ( >=media-sound/jack-audio-connection-kit-0.100 ) |
312 |
tcpd? ( sys-apps/tcp-wrappers ) |
313 |
lirc? ( app-misc/lirc ) |
314 |
dbus? ( >=sys-apps/dbus-1.0.0 ) |
315 |
gnome? ( >=gnome-base/gconf-2.4.0 ) |
316 |
hal? ( |
317 |
>=sys-apps/hal-0.5.7 |
318 |
>=sys-apps/dbus-1.0.0 |
319 |
) |
320 |
app-admin/eselect-esd |
321 |
bluetooth? ( |
322 |
>=net-wireless/bluez-libs-3 |
323 |
>=sys-apps/dbus-1.0.0 |
324 |
) |
325 |
policykit? ( sys-auth/policykit ) |
326 |
asyncns? ( net-libs/libasyncns ) |
327 |
>=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used |
328 |
DEPEND="${RDEPEND} |
329 |
dev-libs/libatomic_ops |
330 |
dev-util/pkgconfig" |
331 |
|
332 |
# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
333 |
# bluez-utils dep is for the bluetooth init.d script |
334 |
RDEPEND="${RDEPEND} |
335 |
gnome-extra/gnome-audio |
336 |
alsa? ( media-sound/alsa-utils ) |
337 |
bluetooth? ( >=net-wireless/bluez-utils-3 )" |
338 |
|
339 |
pkg_setup() { |
340 |
if use avahi && ! built_with_use net-dns/avahi dbus ; then |
341 |
echo |
342 |
eerror "In order to compile pulseaudio with avahi support, you need to have" |
343 |
eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that" |
344 |
eerror "flag, re-emerge avahi, and then emerge pulseaudio again." |
345 |
die "net-dns/avahi is missing the D-Bus bindings." |
346 |
fi |
347 |
|
348 |
enewgroup audio 18 # Just make sure it exists |
349 |
enewgroup realtime |
350 |
enewgroup pulse-access |
351 |
enewgroup pulse |
352 |
enewuser pulse -1 -1 /var/run/pulse pulse,audio |
353 |
} |
354 |
|
355 |
src_unpack() { |
356 |
unpack ${A} |
357 |
cd "${S}" |
358 |
|
359 |
epatch "${FILESDIR}/${PN}-0.9.8-svn2074.patch" |
360 |
epatch "${FILESDIR}/${PN}-0.9.8-polkit.patch" |
361 |
epatch "${FILESDIR}/${PN}-0.9.8-bt-nohal.patch" |
362 |
epatch "${FILESDIR}/${PN}-0.9.8-esoundpath.patch" |
363 |
epatch "${FILESDIR}/${PN}-0.9.8-create-directory.patch" |
364 |
|
365 |
eautoreconf |
366 |
elibtoolize |
367 |
} |
368 |
|
369 |
src_compile() { |
370 |
# To properly fix CVE-2008-0008 |
371 |
append-flags -UNDEBUG |
372 |
|
373 |
econf \ |
374 |
--enable-largefile \ |
375 |
$(use_enable glib) \ |
376 |
--disable-solaris \ |
377 |
$(use_enable asyncns) \ |
378 |
$(use_enable oss) \ |
379 |
$(use_enable alsa) \ |
380 |
$(use_enable lirc) \ |
381 |
$(use_enable tcpd tcpwrap) \ |
382 |
$(use_enable jack) \ |
383 |
$(use_enable lirc) \ |
384 |
$(use_enable avahi) \ |
385 |
$(use_enable hal) \ |
386 |
$(use_enable dbus) \ |
387 |
$(use_enable gnome gconf) \ |
388 |
$(use_enable libsamplerate samplerate) \ |
389 |
$(use_enable bluetooth bluez) \ |
390 |
$(use_enable policykit polkit) \ |
391 |
$(use_with caps) \ |
392 |
$(use_with X x) \ |
393 |
--disable-ltdl-install \ |
394 |
--localstatedir=/var \ |
395 |
--with-realtime-group=realtime \ |
396 |
|| die "econf failed" |
397 |
emake || die "emake failed" |
398 |
} |
399 |
|
400 |
src_install() { |
401 |
emake -j1 DESTDIR="${D}" install || die "make install failed" |
402 |
|
403 |
newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
404 |
|
405 |
local neededservices |
406 |
use alsa && neededservices="$neededservices alsasound" |
407 |
use avahi && neededservices="$neededservices avahi-daemon" |
408 |
use hal && neededservices="$neededservices hald" |
409 |
use bluetooth && neededservices="$neededservices bluetooth" |
410 |
[[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio" |
411 |
doinitd "${T}/pulseaudio" |
412 |
|
413 |
use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa" |
414 |
|
415 |
dohtml -r doc |
416 |
dodoc README |
417 |
|
418 |
# Create the state directory |
419 |
diropts -o pulse -g pulse -m0755 |
420 |
keepdir /var/run/pulse |
421 |
} |
422 |
|
423 |
pkg_postinst() { |
424 |
elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon." |
425 |
elog "This support is enabled by starting the pulseaudio init.d ." |
426 |
elog "To be able to access that you need to be in the group pulse-access." |
427 |
elog "For more information about system-wide support, please refer to" |
428 |
elog " http://pulseaudio.org/wiki/SystemWideInstance" |
429 |
if use gnome; then |
430 |
elog |
431 |
elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note" |
432 |
elog "that you might need to remove the gnome USE flag or disable the" |
433 |
elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio" |
434 |
elog "with a system-wide instance." |
435 |
fi |
436 |
elog |
437 |
elog "To use the ESounD wrapper while using a system-wide daemon, you also" |
438 |
elog "need to enable auth-anonymous for the esound-unix module, or to copy" |
439 |
elog "/var/run/pulse/.esd_auth into each home directory." |
440 |
elog |
441 |
elog "If you want to make use of realtime capabilities of PulseAudio" |
442 |
elog "you should follow the realtime guide to create and set up a realtime" |
443 |
elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml" |
444 |
elog "Make sure you also have baselayout installed with pam USE flag" |
445 |
elog "enabled, if you're using the rlimit method." |
446 |
if use bluetooth; then |
447 |
elog |
448 |
elog "The BlueTooth proximity module is not enabled in the default" |
449 |
elog "configuration file. If you do enable it, you'll have to have" |
450 |
elog "your BlueTooth controller enabled and inserted at bootup or" |
451 |
elog "PulseAudio will refuse to start." |
452 |
elog |
453 |
elog "Please note that the BlueTooth proximity module seems itself" |
454 |
elog "still experimental, so please report to upstream if you have" |
455 |
elog "problems with it." |
456 |
fi |
457 |
|
458 |
eselect esd update --if-unset |
459 |
} |
460 |
|
461 |
|
462 |
|
463 |
1.1 media-sound/pulseaudio/pulseaudio-0.9.9.ebuild |
464 |
|
465 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9.ebuild?rev=1.1&view=markup |
466 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9.ebuild?rev=1.1&content-type=text/plain |
467 |
|
468 |
Index: pulseaudio-0.9.9.ebuild |
469 |
=================================================================== |
470 |
# Copyright 1999-2008 Gentoo Foundation |
471 |
# Distributed under the terms of the GNU General Public License v2 |
472 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9.ebuild,v 1.1 2008/01/24 02:07:11 flameeyes Exp $ |
473 |
|
474 |
inherit eutils libtool autotools flag-o-matic |
475 |
|
476 |
DESCRIPTION="A networked sound server with an advanced plugin system" |
477 |
HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/" |
478 |
SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" |
479 |
|
480 |
LICENSE="LGPL-2 GPL-2" |
481 |
SLOT="0" |
482 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86" |
483 |
IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns" |
484 |
|
485 |
RDEPEND="X? ( x11-libs/libX11 ) |
486 |
caps? ( sys-libs/libcap ) |
487 |
>=media-libs/audiofile-0.2.6-r1 |
488 |
libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
489 |
>=media-libs/libsndfile-1.0.10 |
490 |
>=dev-libs/liboil-0.3.6 |
491 |
alsa? ( >=media-libs/alsa-lib-1.0.10 ) |
492 |
>=dev-libs/glib-2.4.0 |
493 |
avahi? ( >=net-dns/avahi-0.6.12 ) |
494 |
>=dev-libs/liboil-0.3.0 |
495 |
jack? ( >=media-sound/jack-audio-connection-kit-0.100 ) |
496 |
tcpd? ( sys-apps/tcp-wrappers ) |
497 |
lirc? ( app-misc/lirc ) |
498 |
dbus? ( >=sys-apps/dbus-1.0.0 ) |
499 |
gnome? ( >=gnome-base/gconf-2.4.0 ) |
500 |
hal? ( |
501 |
>=sys-apps/hal-0.5.7 |
502 |
>=sys-apps/dbus-1.0.0 |
503 |
) |
504 |
app-admin/eselect-esd |
505 |
bluetooth? ( |
506 |
>=net-wireless/bluez-libs-3 |
507 |
>=sys-apps/dbus-1.0.0 |
508 |
) |
509 |
policykit? ( sys-auth/policykit ) |
510 |
asyncns? ( net-libs/libasyncns ) |
511 |
>=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used |
512 |
DEPEND="${RDEPEND} |
513 |
dev-libs/libatomic_ops |
514 |
dev-util/pkgconfig" |
515 |
|
516 |
# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
517 |
# bluez-utils dep is for the bluetooth init.d script |
518 |
RDEPEND="${RDEPEND} |
519 |
gnome-extra/gnome-audio |
520 |
alsa? ( media-sound/alsa-utils ) |
521 |
bluetooth? ( >=net-wireless/bluez-utils-3 )" |
522 |
|
523 |
pkg_setup() { |
524 |
if use avahi && ! built_with_use net-dns/avahi dbus ; then |
525 |
echo |
526 |
eerror "In order to compile pulseaudio with avahi support, you need to have" |
527 |
eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that" |
528 |
eerror "flag, re-emerge avahi, and then emerge pulseaudio again." |
529 |
die "net-dns/avahi is missing the D-Bus bindings." |
530 |
fi |
531 |
|
532 |
enewgroup audio 18 # Just make sure it exists |
533 |
enewgroup realtime |
534 |
enewgroup pulse-access |
535 |
enewgroup pulse |
536 |
enewuser pulse -1 -1 /var/run/pulse pulse,audio |
537 |
} |
538 |
|
539 |
src_unpack() { |
540 |
unpack ${A} |
541 |
cd "${S}" |
542 |
|
543 |
epatch "${FILESDIR}/${PN}-0.9.8-svn2074.patch" |
544 |
epatch "${FILESDIR}/${PN}-0.9.8-polkit.patch" |
545 |
epatch "${FILESDIR}/${PN}-0.9.8-bt-nohal.patch" |
546 |
epatch "${FILESDIR}/${PN}-0.9.8-esoundpath.patch" |
547 |
epatch "${FILESDIR}/${PN}-0.9.8-create-directory.patch" |
548 |
|
549 |
eautoreconf |
550 |
elibtoolize |
551 |
} |
552 |
|
553 |
src_compile() { |
554 |
# To properly fix CVE-2008-0008 |
555 |
append-flags -UNDEBUG |
556 |
|
557 |
econf \ |
558 |
--enable-largefile \ |
559 |
--enable-glib2 \ |
560 |
--disable-solaris \ |
561 |
$(use_enable asyncns) \ |
562 |
$(use_enable oss) \ |
563 |
$(use_enable alsa) \ |
564 |
$(use_enable lirc) \ |
565 |
$(use_enable tcpd tcpwrap) \ |
566 |
$(use_enable jack) \ |
567 |
$(use_enable lirc) \ |
568 |
$(use_enable avahi) \ |
569 |
$(use_enable hal) \ |
570 |
$(use_enable dbus) \ |
571 |
$(use_enable gnome gconf) \ |
572 |
$(use_enable libsamplerate samplerate) \ |
573 |
$(use_enable bluetooth bluez) \ |
574 |
$(use_enable policykit polkit) \ |
575 |
$(use_with caps) \ |
576 |
$(use_with X x) \ |
577 |
--disable-ltdl-install \ |
578 |
--localstatedir=/var \ |
579 |
--with-realtime-group=realtime \ |
580 |
|| die "econf failed" |
581 |
emake || die "emake failed" |
582 |
} |
583 |
|
584 |
src_install() { |
585 |
emake -j1 DESTDIR="${D}" install || die "make install failed" |
586 |
|
587 |
newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
588 |
|
589 |
local neededservices |
590 |
use alsa && neededservices="$neededservices alsasound" |
591 |
use avahi && neededservices="$neededservices avahi-daemon" |
592 |
use hal && neededservices="$neededservices hald" |
593 |
use bluetooth && neededservices="$neededservices bluetooth" |
594 |
[[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio" |
595 |
doinitd "${T}/pulseaudio" |
596 |
|
597 |
use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa" |
598 |
|
599 |
dohtml -r doc |
600 |
dodoc README |
601 |
|
602 |
# Create the state directory |
603 |
diropts -o pulse -g pulse -m0755 |
604 |
keepdir /var/run/pulse |
605 |
} |
606 |
|
607 |
pkg_postinst() { |
608 |
elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon." |
609 |
elog "This support is enabled by starting the pulseaudio init.d ." |
610 |
elog "To be able to access that you need to be in the group pulse-access." |
611 |
elog "For more information about system-wide support, please refer to" |
612 |
elog " http://pulseaudio.org/wiki/SystemWideInstance" |
613 |
if use gnome; then |
614 |
elog |
615 |
elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note" |
616 |
elog "that you might need to remove the gnome USE flag or disable the" |
617 |
elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio" |
618 |
elog "with a system-wide instance." |
619 |
fi |
620 |
elog |
621 |
elog "To use the ESounD wrapper while using a system-wide daemon, you also" |
622 |
elog "need to enable auth-anonymous for the esound-unix module, or to copy" |
623 |
elog "/var/run/pulse/.esd_auth into each home directory." |
624 |
elog |
625 |
elog "If you want to make use of realtime capabilities of PulseAudio" |
626 |
elog "you should follow the realtime guide to create and set up a realtime" |
627 |
elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml" |
628 |
elog "Make sure you also have baselayout installed with pam USE flag" |
629 |
elog "enabled, if you're using the rlimit method." |
630 |
if use bluetooth; then |
631 |
elog |
632 |
elog "The BlueTooth proximity module is not enabled in the default" |
633 |
elog "configuration file. If you do enable it, you'll have to have" |
634 |
elog "your BlueTooth controller enabled and inserted at bootup or" |
635 |
elog "PulseAudio will refuse to start." |
636 |
elog |
637 |
elog "Please note that the BlueTooth proximity module seems itself" |
638 |
elog "still experimental, so please report to upstream if you have" |
639 |
elog "problems with it." |
640 |
fi |
641 |
|
642 |
eselect esd update --if-unset |
643 |
} |
644 |
|
645 |
|
646 |
|
647 |
-- |
648 |
gentoo-commits@l.g.o mailing list |