Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/pulseaudio: ChangeLog pulseaudio-0.9.9-r54.ebuild pulseaudio-0.9.9-r1.ebuild
Date: Thu, 16 Jul 2009 14:01:24
Message-Id: E1MRRWU-0007DP-1q@stork.gentoo.org
1 flameeyes 09/07/16 14:01:22
2
3 Modified: ChangeLog
4 Added: pulseaudio-0.9.9-r54.ebuild
5 Removed: pulseaudio-0.9.9-r1.ebuild
6 Log:
7 Replace revision for pulseaudio-0.9.9 for old revision numbers overwritten.
8 (Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.136 media-sound/pulseaudio/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.136&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.136&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.135&r2=1.136
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
20 retrieving revision 1.135
21 retrieving revision 1.136
22 diff -u -r1.135 -r1.136
23 --- ChangeLog 16 Jul 2009 14:00:05 -0000 1.135
24 +++ ChangeLog 16 Jul 2009 14:01:21 -0000 1.136
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-sound/pulseaudio
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.135 2009/07/16 14:00:05 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.136 2009/07/16 14:01:21 flameeyes Exp $
30 +
31 +*pulseaudio-0.9.9-r54 (16 Jul 2009)
32 +
33 + 16 Jul 2009; Diego E. Pettenò <flameeyes@g.o>
34 + -pulseaudio-0.9.9-r1.ebuild, +pulseaudio-0.9.9-r54.ebuild:
35 + Replace revision for pulseaudio-0.9.9 for old revision numbers
36 + overwritten.
37
38 *pulseaudio-0.9.16_rc2-r51 (16 Jul 2009)
39 *pulseaudio-0.9.16_rc2-r2 (16 Jul 2009)
40
41
42
43 1.1 media-sound/pulseaudio/pulseaudio-0.9.9-r54.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9-r54.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.9-r54.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pulseaudio-0.9.9-r54.ebuild
49 ===================================================================
50 # Copyright 1999-2009 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.9-r54.ebuild,v 1.1 2009/07/16 14:01:21 flameeyes Exp $
53
54 inherit eutils libtool autotools flag-o-matic
55
56 DESCRIPTION="A networked sound server with an advanced plugin system"
57 HOMEPAGE="http://www.pulseaudio.org"
58 SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
59
60 LICENSE="LGPL-2 GPL-2"
61 SLOT="0"
62 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86"
63 IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns"
64
65 RDEPEND="X? ( x11-libs/libX11 )
66 caps? ( sys-libs/libcap )
67 >=media-libs/audiofile-0.2.6-r1
68 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
69 >=media-libs/libsndfile-1.0.10
70 >=dev-libs/liboil-0.3.6
71 alsa? ( >=media-libs/alsa-lib-1.0.10 )
72 >=dev-libs/glib-2.4.0
73 avahi? ( >=net-dns/avahi-0.6.12 )
74 >=dev-libs/liboil-0.3.0
75 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
76 tcpd? ( sys-apps/tcp-wrappers )
77 lirc? ( app-misc/lirc )
78 dbus? ( >=sys-apps/dbus-1.0.0 )
79 gnome? ( >=gnome-base/gconf-2.4.0 )
80 hal? (
81 >=sys-apps/hal-0.5.7
82 >=sys-apps/dbus-1.0.0
83 )
84 app-admin/eselect-esd
85 bluetooth? (
86 >=net-wireless/bluez-libs-3
87 >=sys-apps/dbus-1.0.0
88 )
89 policykit? ( sys-auth/policykit )
90 asyncns? ( net-libs/libasyncns )
91 >=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used
92 DEPEND="${RDEPEND}
93 dev-libs/libatomic_ops
94 dev-util/pkgconfig"
95
96 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
97 # bluez-utils dep is for the bluetooth init.d script
98 RDEPEND="${RDEPEND}
99 gnome-extra/gnome-audio
100 alsa? ( media-sound/alsa-utils )
101 bluetooth? ( >=net-wireless/bluez-utils-3 )"
102
103 pkg_setup() {
104 if use avahi && ! built_with_use net-dns/avahi dbus ; then
105 echo
106 eerror "In order to compile pulseaudio with avahi support, you need to have"
107 eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that"
108 eerror "flag, re-emerge avahi, and then emerge pulseaudio again."
109 die "net-dns/avahi is missing the D-Bus bindings."
110 fi
111
112 enewgroup audio 18 # Just make sure it exists
113 enewgroup realtime
114 enewgroup pulse-access
115 enewgroup pulse
116 enewuser pulse -1 -1 /var/run/pulse pulse,audio
117 }
118
119 src_unpack() {
120 unpack ${A}
121 cd "${S}"
122
123 epatch "${FILESDIR}/${PN}-0.9.8-svn2074.patch"
124 epatch "${FILESDIR}/${PN}-0.9.8-polkit.patch"
125 epatch "${FILESDIR}/${PN}-0.9.8-bt-nohal.patch"
126 epatch "${FILESDIR}/${PN}-0.9.8-esoundpath.patch"
127 epatch "${FILESDIR}/${PN}-0.9.8-create-directory.patch"
128 epatch "${FILESDIR}/${P}-CVE-2009-1894.patch"
129
130 eautoreconf
131 elibtoolize
132 }
133
134 src_compile() {
135 # To properly fix CVE-2008-0008
136 append-flags -UNDEBUG
137
138 econf \
139 --enable-largefile \
140 --enable-glib2 \
141 --disable-solaris \
142 $(use_enable asyncns) \
143 $(use_enable oss) \
144 $(use_enable alsa) \
145 $(use_enable lirc) \
146 $(use_enable tcpd tcpwrap) \
147 $(use_enable jack) \
148 $(use_enable lirc) \
149 $(use_enable avahi) \
150 $(use_enable hal) \
151 $(use_enable dbus) \
152 $(use_enable gnome gconf) \
153 $(use_enable libsamplerate samplerate) \
154 $(use_enable bluetooth bluez) \
155 $(use_enable policykit polkit) \
156 $(use_with caps) \
157 $(use_with X x) \
158 --disable-ltdl-install \
159 --localstatedir=/var \
160 --with-realtime-group=realtime \
161 || die "econf failed"
162 emake || die "emake failed"
163 }
164
165 src_install() {
166 emake -j1 DESTDIR="${D}" install || die "make install failed"
167
168 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
169
170 local neededservices
171 use alsa && neededservices="$neededservices alsasound"
172 use avahi && neededservices="$neededservices avahi-daemon"
173 use hal && neededservices="$neededservices hald"
174 use bluetooth && neededservices="$neededservices bluetooth"
175 [[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio"
176 doinitd "${T}/pulseaudio"
177
178 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
179
180 dohtml -r doc
181 dodoc README
182
183 # Create the state directory
184 diropts -o pulse -g pulse -m0755
185 keepdir /var/run/pulse
186 }
187
188 pkg_postinst() {
189 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
190 elog "This support is enabled by starting the pulseaudio init.d ."
191 elog "To be able to access that you need to be in the group pulse-access."
192 elog "For more information about system-wide support, please refer to"
193 elog " http://pulseaudio.org/wiki/SystemWideInstance"
194 if use gnome; then
195 elog
196 elog "By enabling gnome USE flag, you enabled gconf support. Please note"
197 elog "that you might need to remove the gnome USE flag or disable the"
198 elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio"
199 elog "with a system-wide instance."
200 fi
201 elog
202 elog "To use the ESounD wrapper while using a system-wide daemon, you also"
203 elog "need to enable auth-anonymous for the esound-unix module, or to copy"
204 elog "/var/run/pulse/.esd_auth into each home directory."
205 elog
206 elog "If you want to make use of realtime capabilities of PulseAudio"
207 elog "you should follow the realtime guide to create and set up a realtime"
208 elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
209 elog "Make sure you also have baselayout installed with pam USE flag"
210 elog "enabled, if you're using the rlimit method."
211 if use bluetooth; then
212 elog
213 elog "The BlueTooth proximity module is not enabled in the default"
214 elog "configuration file. If you do enable it, you'll have to have"
215 elog "your BlueTooth controller enabled and inserted at bootup or"
216 elog "PulseAudio will refuse to start."
217 elog
218 elog "Please note that the BlueTooth proximity module seems itself"
219 elog "still experimental, so please report to upstream if you have"
220 elog "problems with it."
221 fi
222
223 eselect esd update --if-unset
224 }