Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/bluez: bluez-4.97-r2.ebuild bluez-4.97-r3.ebuild ChangeLog bluez-4.97-r1.ebuild bluez-4.97.ebuild
Date: Mon, 09 Jan 2012 23:02:07
Message-Id: 20120109230155.48E752004B@flycatcher.gentoo.org
1 pacho 12/01/09 23:01:55
2
3 Modified: ChangeLog
4 Added: bluez-4.97-r2.ebuild bluez-4.97-r3.ebuild
5 Removed: bluez-4.97-r1.ebuild bluez-4.97.ebuild
6 Log:
7 Reintroduce a bluetooth init.d script to trigger bluetooth devices after dbus is started because, as talked with WilliamH, udev-postmount will be removed in the near future due upstream no longer detecting failed triggers at early boot. This should also solve bug 397673 by a.m. Drop old.
8
9 (Portage version: 2.1.10.44/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.112 net-wireless/bluez/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.112&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.112&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.111&r2=1.112
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
21 retrieving revision 1.111
22 retrieving revision 1.112
23 diff -u -r1.111 -r1.112
24 --- ChangeLog 6 Jan 2012 22:34:39 -0000 1.111
25 +++ ChangeLog 9 Jan 2012 23:01:55 -0000 1.112
26 @@ -1,6 +1,17 @@
27 # ChangeLog for net-wireless/bluez
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.111 2012/01/06 22:34:39 vapier Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.112 2012/01/09 23:01:55 pacho Exp $
31 +
32 +*bluez-4.97-r3 (09 Jan 2012)
33 +*bluez-4.97-r2 (09 Jan 2012)
34 +
35 + 09 Jan 2012; Pacho Ramos <pacho@g.o> +bluez-4.97-r2.ebuild,
36 + +bluez-4.97-r3.ebuild, +files/bluetooth-init.d-r1, -bluez-4.97-r1.ebuild,
37 + -bluez-4.97.ebuild:
38 + Reintroduce a bluetooth init.d script to trigger bluetooth devices after dbus
39 + is started because, as talked with WilliamH, udev-postmount will be removed in
40 + the near future due upstream no longer detecting failed triggers at early
41 + boot. This should also solve bug 397673 by a.m. Drop old.
42
43 06 Jan 2012; Mike Frysinger <vapier@g.o> bluez-4.97.ebuild,
44 bluez-4.97-r1.ebuild:
45
46
47
48 1.1 net-wireless/bluez/bluez-4.97-r2.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.97-r2.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.97-r2.ebuild?rev=1.1&content-type=text/plain
52
53 Index: bluez-4.97-r2.ebuild
54 ===================================================================
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.97-r2.ebuild,v 1.1 2012/01/09 23:01:55 pacho Exp $
58
59 EAPI="4"
60 PYTHON_DEPEND="test-programs? 2"
61
62 inherit multilib eutils systemd python
63
64 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
65 HOMEPAGE="http://www.bluez.org/"
66
67 # Because of oui.txt changing from time to time without noticement, we need to supply it
68 # ourselves instead of using http://standards.ieee.org/regauth/oui/oui.txt directly.
69 # See bugs #345263 and #349473 for reference.
70 OUIDATE="20111231"
71 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz
72 http://dev.gentoo.org/~pacho/bluez/oui-${OUIDATE}.txt.xz"
73
74 LICENSE="GPL-2 LGPL-2.1"
75 SLOT="0"
76 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
77 IUSE="alsa caps +consolekit cups debug gstreamer pcmcia test-programs usb"
78
79 CDEPEND="
80 >=dev-libs/glib-2.14:2
81 sys-apps/dbus
82 >=sys-fs/udev-146[extras]
83 alsa? (
84 media-libs/alsa-lib[alsa_pcm_plugins_extplug,alsa_pcm_plugins_ioplug]
85 media-libs/libsndfile
86 )
87 caps? ( >=sys-libs/libcap-ng-0.6.2 )
88 cups? ( net-print/cups )
89 gstreamer? (
90 >=media-libs/gstreamer-0.10:0.10
91 >=media-libs/gst-plugins-base-0.10:0.10
92 )
93 usb? ( dev-libs/libusb:1 )
94 "
95 DEPEND="${CDEPEND}
96 >=dev-util/pkgconfig-0.20
97 >=dev-libs/check-0.9.6
98 sys-devel/flex
99 "
100 RDEPEND="${CDEPEND}
101 !net-wireless/bluez-libs
102 !net-wireless/bluez-utils
103 consolekit? (
104 || ( sys-auth/consolekit
105 >=sys-apps/systemd-37 )
106 )
107 test-programs? (
108 dev-python/dbus-python
109 dev-python/pygobject:2
110 )
111 "
112
113 DOCS=( AUTHORS ChangeLog README )
114
115 pkg_setup() {
116 if ! use consolekit; then
117 enewgroup plugdev
118 fi
119
120 if use test-programs; then
121 python_pkg_setup
122 fi
123 }
124
125 src_prepare() {
126 if ! use consolekit; then
127 # No consolekit for at_console etc, so we grant plugdev the rights
128 epatch "${FILESDIR}/bluez-plugdev.patch"
129 fi
130
131 if use cups; then
132 sed -i \
133 -e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \
134 Makefile.tools Makefile.in || die
135 fi
136 }
137
138 src_configure() {
139 econf \
140 --enable-audio \
141 --enable-bccmd \
142 --enable-datafiles \
143 --enable-dfutool \
144 --enable-input \
145 --enable-network \
146 --enable-serial \
147 --enable-service \
148 --enable-tools \
149 --disable-hal \
150 --localstatedir=/var \
151 --with-systemdunitdir="$(systemd_get_unitdir)" \
152 $(use_enable alsa) \
153 $(use_enable caps capng) \
154 $(use_enable cups) \
155 $(use_enable debug) \
156 $(use_enable gstreamer) \
157 $(use_enable pcmcia) \
158 $(use_enable test-programs test) \
159 $(use_enable usb) \
160 --enable-health \
161 --enable-maemo6 \
162 --enable-pnat \
163 --enable-wiimote
164 }
165
166 src_install() {
167 default
168
169 if use test-programs ; then
170 cd "${S}/test"
171 dobin simple-agent simple-service monitor-bluetooth
172 newbin list-devices list-bluetooth-devices
173 rm test-textfile.{c,o} || die # bug #356529
174 for b in apitest hsmicro hsplay test-* ; do
175 newbin "${b}" "bluez-${b}"
176 done
177 insinto /usr/share/doc/${PF}/test-services
178 doins service-*
179
180 python_convert_shebangs -r 2 "${ED}"
181 cd "${S}"
182 fi
183
184 insinto /etc/bluetooth
185 doins \
186 input/input.conf \
187 audio/audio.conf \
188 network/network.conf \
189 serial/serial.conf
190
191 newinitd "${FILESDIR}/bluetooth-init.d-r1" bluetooth
192 newinitd "${FILESDIR}/rfcomm-init.d" rfcomm
193 newconfd "${FILESDIR}/rfcomm-conf.d" rfcomm
194
195 # Install oui.txt as requested in bug #283791 and approved by upstream
196 insinto /var/lib/misc
197 newins "${WORKDIR}/oui-${OUIDATE}.txt" oui.txt
198
199 find "${D}" -name "*.la" -delete
200 }
201
202 pkg_postinst() {
203 udevadm control --reload-rules && udevadm trigger --subsystem-match=bluetooth
204
205 if ! has_version "net-dialup/ppp"; then
206 elog "To use dial up networking you must install net-dialup/ppp."
207 fi
208
209 if use consolekit; then
210 elog "If you want to use rfcomm as a normal user, you need to add the user"
211 elog "to the uucp group."
212 else
213 elog "Since you have the consolekit use flag disabled, you will only be able to run"
214 elog "bluetooth clients as root. If you want to be able to run bluetooth clientes as "
215 elog "a regular user, you need to enable the consolekit use flag for this package or"
216 elog "to add the user to the plugdev group."
217 fi
218
219 if [ "$(rc-config list default | grep bluetooth)" = "" ] ; then
220 elog "You will need to add bluetooth service to default runlevel"
221 elog "for getting your devices detected from startup without needing"
222 elog "to reconnect them. For that please run:"
223 elog "'rc-update add bluetooth default'"
224 fi
225 }
226
227
228
229 1.1 net-wireless/bluez/bluez-4.97-r3.ebuild
230
231 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.97-r3.ebuild?rev=1.1&view=markup
232 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.97-r3.ebuild?rev=1.1&content-type=text/plain
233
234 Index: bluez-4.97-r3.ebuild
235 ===================================================================
236 # Copyright 1999-2012 Gentoo Foundation
237 # Distributed under the terms of the GNU General Public License v2
238 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.97-r3.ebuild,v 1.1 2012/01/09 23:01:55 pacho Exp $
239
240 EAPI="4"
241 PYTHON_DEPEND="test-programs? 2"
242
243 inherit multilib eutils systemd python
244
245 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
246 HOMEPAGE="http://www.bluez.org/"
247
248 # Because of oui.txt changing from time to time without noticement, we need to supply it
249 # ourselves instead of using http://standards.ieee.org/regauth/oui/oui.txt directly.
250 # See bugs #345263 and #349473 for reference.
251 OUIDATE="20111231"
252 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz
253 http://dev.gentoo.org/~pacho/bluez/oui-${OUIDATE}.txt.xz"
254
255 LICENSE="GPL-2 LGPL-2.1"
256 SLOT="0"
257 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
258 IUSE="alsa caps +consolekit cups debug gstreamer pcmcia test-programs usb"
259
260 CDEPEND="
261 >=dev-libs/glib-2.14:2
262 sys-apps/dbus
263 >=sys-fs/udev-169
264 alsa? (
265 media-libs/alsa-lib[alsa_pcm_plugins_extplug,alsa_pcm_plugins_ioplug]
266 media-libs/libsndfile
267 )
268 caps? ( >=sys-libs/libcap-ng-0.6.2 )
269 cups? ( net-print/cups )
270 gstreamer? (
271 >=media-libs/gstreamer-0.10:0.10
272 >=media-libs/gst-plugins-base-0.10:0.10
273 )
274 usb? ( dev-libs/libusb:1 )
275 "
276 DEPEND="${CDEPEND}
277 >=dev-util/pkgconfig-0.20
278 >=dev-libs/check-0.9.6
279 sys-devel/flex
280 "
281 RDEPEND="${CDEPEND}
282 !net-wireless/bluez-libs
283 !net-wireless/bluez-utils
284 consolekit? (
285 || ( sys-auth/consolekit
286 >=sys-apps/systemd-37 )
287 )
288 test-programs? (
289 dev-python/dbus-python
290 dev-python/pygobject:2
291 )
292 "
293
294 DOCS=( AUTHORS ChangeLog README )
295
296 pkg_setup() {
297 if ! use consolekit; then
298 enewgroup plugdev
299 fi
300
301 if use test-programs; then
302 python_pkg_setup
303 fi
304 }
305
306 src_prepare() {
307 if ! use consolekit; then
308 # No consolekit for at_console etc, so we grant plugdev the rights
309 epatch "${FILESDIR}/bluez-plugdev.patch"
310 fi
311
312 if use cups; then
313 sed -i \
314 -e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \
315 Makefile.tools Makefile.in || die
316 fi
317 }
318
319 src_configure() {
320 econf \
321 --enable-hid2hci \
322 --enable-audio \
323 --enable-bccmd \
324 --enable-datafiles \
325 --enable-dfutool \
326 --enable-input \
327 --enable-network \
328 --enable-serial \
329 --enable-service \
330 --enable-tools \
331 --disable-hal \
332 --localstatedir=/var \
333 --with-systemdunitdir="$(systemd_get_unitdir)" \
334 $(use_enable alsa) \
335 $(use_enable caps capng) \
336 $(use_enable cups) \
337 $(use_enable debug) \
338 $(use_enable gstreamer) \
339 $(use_enable pcmcia) \
340 $(use_enable test-programs test) \
341 $(use_enable usb) \
342 --enable-health \
343 --enable-maemo6 \
344 --enable-pnat \
345 --enable-wiimote
346 }
347
348 src_install() {
349 default
350
351 if use test-programs ; then
352 cd "${S}/test"
353 dobin simple-agent simple-service monitor-bluetooth
354 newbin list-devices list-bluetooth-devices
355 rm test-textfile.{c,o} || die # bug #356529
356 for b in apitest hsmicro hsplay test-* ; do
357 newbin "${b}" "bluez-${b}"
358 done
359 insinto /usr/share/doc/${PF}/test-services
360 doins service-*
361
362 python_convert_shebangs -r 2 "${ED}"
363 cd "${S}"
364 fi
365
366 insinto /etc/bluetooth
367 doins \
368 input/input.conf \
369 audio/audio.conf \
370 network/network.conf \
371 serial/serial.conf
372
373 newinitd "${FILESDIR}/bluetooth-init.d-r1" bluetooth
374 newinitd "${FILESDIR}/rfcomm-init.d" rfcomm
375 newconfd "${FILESDIR}/rfcomm-conf.d" rfcomm
376
377 # Install oui.txt as requested in bug #283791 and approved by upstream
378 insinto /var/lib/misc
379 newins "${WORKDIR}/oui-${OUIDATE}.txt" oui.txt
380
381 find "${D}" -name "*.la" -delete
382 }
383
384 pkg_postinst() {
385 udevadm control --reload-rules && udevadm trigger --subsystem-match=bluetooth
386
387 if ! has_version "net-dialup/ppp"; then
388 elog "To use dial up networking you must install net-dialup/ppp."
389 fi
390
391 if use consolekit; then
392 elog "If you want to use rfcomm as a normal user, you need to add the user"
393 elog "to the uucp group."
394 else
395 elog "Since you have the consolekit use flag disabled, you will only be able to run"
396 elog "bluetooth clients as root. If you want to be able to run bluetooth clientes as "
397 elog "a regular user, you need to enable the consolekit use flag for this package or"
398 elog "to add the user to the plugdev group."
399 fi
400
401 if [ "$(rc-config list default | grep bluetooth)" = "" ] ; then
402 elog "You will need to add bluetooth service to default runlevel"
403 elog "for getting your devices detected from startup without needing"
404 elog "to reconnect them. For that please run:"
405 elog "'rc-update add bluetooth default'"
406 fi
407 }