1 |
commit: fe7c05479987b40db0cbd567b226e8973b40908f |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 1 23:26:32 2020 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 1 23:26:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe7c0547 |
7 |
|
8 |
net-wireless/bluez: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
net-wireless/bluez/Manifest | 2 - |
14 |
net-wireless/bluez/bluez-5.52-r1.ebuild | 283 ------------------------------ |
15 |
net-wireless/bluez/bluez-5.53.ebuild | 297 -------------------------------- |
16 |
3 files changed, 582 deletions(-) |
17 |
|
18 |
diff --git a/net-wireless/bluez/Manifest b/net-wireless/bluez/Manifest |
19 |
index 85f2daed1d1..1f1ac963fa4 100644 |
20 |
--- a/net-wireless/bluez/Manifest |
21 |
+++ b/net-wireless/bluez/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST bluez-5.52.tar.xz 1957504 BLAKE2B 670cdfb44eca1b184c0bd678bab34116f9172394b86fb69fa454f7bdcc1ae82c466a806879ddef96dddd6ae6cd31466b48f9e87113d43144659ae0c057b9def8 SHA512 9024481910d1dee85578bf3d7a4fc4be2bece516e6216c91aa1a7ac18537f092b47c41c4a5506ddd7e279599d58002e98203c5439745c01df4dbc22a75234c84 |
24 |
-DIST bluez-5.53.tar.xz 1997504 BLAKE2B 921ab4ae18ab1827e870eb6f6f20c247e7855ba090e47659d283abadc280a5f66966a387b85e43487abf14fd4d4382d8337e46fec3400d0be5201b9ff7635dde SHA512 62956e6293ec2517ec453dc7a6c82d34a8c446df8add8fe411b0a45fd5604817f3a19fbc646ad6f68df435f3cd2bd10ae040890e30db83b022f90b54cc6b3c74 |
25 |
DIST bluez-5.54.tar.xz 2003760 BLAKE2B 278a8be86d93654b9ec31ed2591a89a2a0f35fd8378fc3cffd9028b1aab431071b802e77b956503fd16239e5b821ab356733fdc49436ef811b87190e185a91c2 SHA512 e19d15d3a478a7af47c1921c8827843492e38787b1182152155bd3d8ad9e1d8ee25c5fda1f24e38c54ebbf946b09fe75007dca9a24d1c35f73303558e558dcbe |
26 |
|
27 |
diff --git a/net-wireless/bluez/bluez-5.52-r1.ebuild b/net-wireless/bluez/bluez-5.52-r1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 622f217c77a..00000000000 |
30 |
--- a/net-wireless/bluez/bluez-5.52-r1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,283 +0,0 @@ |
33 |
-# Copyright 1999-2020 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
-PYTHON_COMPAT=( python2_7 ) |
38 |
- |
39 |
-inherit autotools python-single-r1 readme.gentoo-r1 systemd udev multilib-minimal |
40 |
- |
41 |
-DESCRIPTION="Bluetooth Tools and System Daemons for Linux" |
42 |
-HOMEPAGE="http://www.bluez.org" |
43 |
-SRC_URI="https://www.kernel.org/pub/linux/bluetooth/${P}.tar.xz" |
44 |
- |
45 |
-LICENSE="GPL-2+ LGPL-2.1+" |
46 |
-SLOT="0/3" |
47 |
-KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 x86" |
48 |
-IUSE="btpclient cups doc debug deprecated extra-tools experimental +mesh midi +obex +readline selinux systemd test test-programs +udev user-session" |
49 |
- |
50 |
-# Since this release all remaining extra-tools need readline support, but this could |
51 |
-# change in the future, hence, this REQUIRED_USE constraint could be dropped |
52 |
-# again in the future. |
53 |
-REQUIRED_USE=" |
54 |
- extra-tools? ( deprecated readline ) |
55 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
56 |
- test-programs? ( ${PYTHON_REQUIRED_USE} ) |
57 |
-" |
58 |
- |
59 |
-TEST_DEPS="${PYTHON_DEPS} |
60 |
- $(python_gen_cond_dep ' |
61 |
- >=dev-python/dbus-python-1[${PYTHON_MULTI_USEDEP}] |
62 |
- dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] |
63 |
- ') |
64 |
-" |
65 |
-BDEPEND=" |
66 |
- virtual/pkgconfig |
67 |
- test? ( ${TEST_DEPS} ) |
68 |
-" |
69 |
-DEPEND=" |
70 |
- >=dev-libs/glib-2.28:2[${MULTILIB_USEDEP}] |
71 |
- >=sys-apps/hwids-20121202.2 |
72 |
- btpclient? ( >=dev-libs/ell-0.26 ) |
73 |
- cups? ( net-print/cups:= ) |
74 |
- mesh? ( |
75 |
- >=dev-libs/ell-0.26 |
76 |
- dev-libs/json-c:= |
77 |
- sys-libs/readline:0= |
78 |
- ) |
79 |
- midi? ( media-libs/alsa-lib ) |
80 |
- obex? ( dev-libs/libical:= ) |
81 |
- readline? ( sys-libs/readline:0= ) |
82 |
- systemd? ( |
83 |
- >=sys-apps/dbus-1.6:=[user-session=] |
84 |
- sys-apps/systemd |
85 |
- ) |
86 |
- !systemd? ( >=sys-apps/dbus-1.6:= ) |
87 |
- udev? ( >=virtual/udev-172 ) |
88 |
-" |
89 |
-RDEPEND="${DEPEND} |
90 |
- selinux? ( sec-policy/selinux-bluetooth ) |
91 |
- test-programs? ( ${TEST_DEPS} ) |
92 |
-" |
93 |
- |
94 |
-RESTRICT="!test? ( test )" |
95 |
- |
96 |
-PATCHES=( |
97 |
- # Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844) |
98 |
- # http://www.spinics.net/lists/linux-bluetooth/msg58739.html |
99 |
- # https://bugs.gentoo.org/539844 |
100 |
- "${FILESDIR}"/${PN}-udevadm-path-r1.patch |
101 |
- |
102 |
- # Fedora patches |
103 |
- # http://www.spinics.net/lists/linux-bluetooth/msg40136.html |
104 |
- "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
105 |
-) |
106 |
- |
107 |
-pkg_setup() { |
108 |
- if use test || use test-programs; then |
109 |
- python-single-r1_pkg_setup |
110 |
- fi |
111 |
- |
112 |
- if ! use udev; then |
113 |
- ewarn |
114 |
- ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth" |
115 |
- ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work," |
116 |
- ewarn "and hid2hci will not be available." |
117 |
- ewarn |
118 |
- fi |
119 |
-} |
120 |
- |
121 |
-src_prepare() { |
122 |
- default |
123 |
- |
124 |
- # http://www.spinics.net/lists/linux-bluetooth/msg38490.html |
125 |
- if ! use user-session || ! use systemd; then |
126 |
- eapply "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-session-r2.patch |
127 |
- fi |
128 |
- |
129 |
- if use cups; then |
130 |
- sed -i \ |
131 |
- -e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \ |
132 |
- Makefile.{in,tools} || die |
133 |
- fi |
134 |
- |
135 |
- # Broken test https://bugzilla.kernel.org/show_bug.cgi?id=196621 |
136 |
- # https://bugs.gentoo.org/618548 |
137 |
- sed -i -e '/unit_tests += unit\/test-gatt\b/d' Makefile.am || die |
138 |
- |
139 |
- eautoreconf |
140 |
- |
141 |
- multilib_copy_sources |
142 |
-} |
143 |
- |
144 |
-multilib_src_configure() { |
145 |
- local myconf=( |
146 |
- # readline is automagic when client is enabled |
147 |
- # --enable-client always needs readline, bug #504038 |
148 |
- # --enable-mesh is handled in the same way |
149 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex readline) |
150 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex mesh) |
151 |
- ) |
152 |
- |
153 |
- if ! multilib_is_native_abi; then |
154 |
- myconf+=( |
155 |
- # deps not used for the library |
156 |
- {DBUS,GLIB}_{CFLAGS,LIBS}=' ' |
157 |
- ) |
158 |
- fi |
159 |
- |
160 |
- econf \ |
161 |
- --localstatedir=/var \ |
162 |
- --disable-android \ |
163 |
- --enable-datafiles \ |
164 |
- --enable-optimization \ |
165 |
- $(use_enable debug) \ |
166 |
- --enable-pie \ |
167 |
- --enable-threads \ |
168 |
- --enable-library \ |
169 |
- --enable-tools \ |
170 |
- --enable-manpages \ |
171 |
- --enable-monitor \ |
172 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
173 |
- --with-systemduserunitdir="$(systemd_get_userunitdir)" \ |
174 |
- $(multilib_native_use_enable btpclient) \ |
175 |
- $(multilib_native_use_enable btpclient external-ell) \ |
176 |
- $(multilib_native_use_enable cups) \ |
177 |
- $(multilib_native_use_enable deprecated) \ |
178 |
- $(multilib_native_use_enable experimental) \ |
179 |
- $(multilib_native_use_enable mesh) \ |
180 |
- $(multilib_native_use_enable mesh external-ell) \ |
181 |
- $(multilib_native_use_enable midi) \ |
182 |
- $(multilib_native_use_enable obex) \ |
183 |
- $(multilib_native_use_enable readline client) \ |
184 |
- $(multilib_native_use_enable systemd) \ |
185 |
- $(multilib_native_use_enable test-programs test) \ |
186 |
- $(multilib_native_use_enable udev) \ |
187 |
- $(multilib_native_use_enable udev sixaxis) |
188 |
-} |
189 |
- |
190 |
-multilib_src_compile() { |
191 |
- if multilib_is_native_abi; then |
192 |
- default |
193 |
- else |
194 |
- emake -f Makefile -f - libs \ |
195 |
- <<<'libs: $(lib_LTLIBRARIES)' |
196 |
- fi |
197 |
-} |
198 |
- |
199 |
-multilib_src_test() { |
200 |
- multilib_is_native_abi && default |
201 |
-} |
202 |
- |
203 |
-multilib_src_install() { |
204 |
- if multilib_is_native_abi; then |
205 |
- emake DESTDIR="${D}" install |
206 |
- |
207 |
- # Only install extra-tools when relevant USE flag is enabled |
208 |
- if use extra-tools; then |
209 |
- ewarn "Upstream doesn't support using this tools and their bugs are" |
210 |
- ewarn "likely to be ignored forever, also that tools can break" |
211 |
- ewarn "without previous announcement." |
212 |
- ewarn "Upstream also states all this tools are not really needed," |
213 |
- ewarn "then, if you still need to rely on them, you must ask them" |
214 |
- ewarn "to either install that tool by default or add the needed" |
215 |
- ewarn "functionality to the existing 'official' tools." |
216 |
- ewarn "Please report this issues to:" |
217 |
- ewarn "http://www.bluez.org/development/lists/" |
218 |
- |
219 |
- # Upstream doesn't install this, bug #524640 |
220 |
- # http://permalink.gmane.org/gmane.linux.bluez.kernel/53115 |
221 |
- # http://comments.gmane.org/gmane.linux.bluez.kernel/54564 |
222 |
- dobin tools/btmgmt |
223 |
- # gatttool is only built with readline, bug #530776 |
224 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1141909 |
225 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720486 |
226 |
- # https://bugs.archlinux.org/task/37686 |
227 |
- dobin attrib/gatttool |
228 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1699680 |
229 |
- dobin tools/avinfo |
230 |
- fi |
231 |
- |
232 |
- # Not installed by default after being built, bug #666756 |
233 |
- use btpclient && dobin tools/btpclient |
234 |
- |
235 |
- # Unittests are not that useful once installed, so make them optional |
236 |
- if use test-programs; then |
237 |
- # Few are needing python3, the others are python2 only. Remove |
238 |
- # until we see how to pull in python2 and python3 for runtime |
239 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/example-gatt-server || die |
240 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/example-gatt-client || die |
241 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/agent.py || die |
242 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/test-mesh || die |
243 |
- |
244 |
- python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test |
245 |
- |
246 |
- for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do |
247 |
- dosym "${i}" /usr/bin/bluez-"${i##*/}" |
248 |
- done |
249 |
- fi |
250 |
- else |
251 |
- emake DESTDIR="${D}" \ |
252 |
- install-pkgincludeHEADERS \ |
253 |
- install-libLTLIBRARIES \ |
254 |
- install-pkgconfigDATA |
255 |
- fi |
256 |
-} |
257 |
- |
258 |
-multilib_src_install_all() { |
259 |
- # We need to ensure obexd can be spawned automatically by systemd |
260 |
- # when user-session is enabled: |
261 |
- # http://marc.info/?l=linux-bluetooth&m=148096094716386&w=2 |
262 |
- # https://bugs.gentoo.org/show_bug.cgi?id=577842 |
263 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804908 |
264 |
- # https://bugs.archlinux.org/task/45816 |
265 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1318441 |
266 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1389347 |
267 |
- if use user-session && use systemd; then |
268 |
- ln -s "${ED}"/usr/lib/systemd/user/obex.service "${ED}"/usr/lib/systemd/user/dbus-org.bluez.obex.service |
269 |
- fi |
270 |
- |
271 |
- find "${D}" -name '*.la' -type f -delete || die |
272 |
- |
273 |
- keepdir /var/lib/bluetooth |
274 |
- |
275 |
- # Upstream don't want people to play with them |
276 |
- # But we keep installing them due to 'historical' reasons |
277 |
- insinto /etc/bluetooth |
278 |
- local d |
279 |
- for d in input network; do |
280 |
- doins profiles/${d}/${d}.conf |
281 |
- done |
282 |
- # Setup auto enable as Fedora does for allowing to use |
283 |
- # keyboards/mouse as soon as possible |
284 |
- sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' src/main.conf || die |
285 |
- doins src/main.conf |
286 |
- |
287 |
- newinitd "${FILESDIR}"/bluetooth-init.d-r4 bluetooth |
288 |
- |
289 |
- einstalldocs |
290 |
- use doc && dodoc doc/*.txt |
291 |
- # Install .json files as examples to be used by meshctl |
292 |
- if use mesh; then |
293 |
- dodoc tools/mesh/*.json |
294 |
- local DOC_CONTENTS="Some example .json files were installed into |
295 |
- /usr/share/doc/${PF} to be used with meshctl. Feel free to |
296 |
- uncompress and copy them to ~/.config/meshctl to use them." |
297 |
- readme.gentoo_create_doc |
298 |
- fi |
299 |
- |
300 |
- # From Fedora: |
301 |
- # Scripts for automatically btattach-ing serial ports connected to Broadcom HCIs |
302 |
- # as found on some Atom based x86 hardware |
303 |
- udev_dorules "${FILESDIR}/69-btattach-bcm.rules" |
304 |
- systemd_newunit "${FILESDIR}/btattach-bcm_at.service" "btattach-bcm@.service" |
305 |
- exeinto /usr/libexec/bluetooth |
306 |
- doexe "${FILESDIR}/btattach-bcm-service.sh" |
307 |
-} |
308 |
- |
309 |
-pkg_postinst() { |
310 |
- use udev && udev_reload |
311 |
- systemd_reenable bluetooth.service |
312 |
- |
313 |
- has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp" |
314 |
- use mesh && readme.gentoo_print_elog |
315 |
-} |
316 |
|
317 |
diff --git a/net-wireless/bluez/bluez-5.53.ebuild b/net-wireless/bluez/bluez-5.53.ebuild |
318 |
deleted file mode 100644 |
319 |
index 08f8ce862ad..00000000000 |
320 |
--- a/net-wireless/bluez/bluez-5.53.ebuild |
321 |
+++ /dev/null |
322 |
@@ -1,297 +0,0 @@ |
323 |
-# Copyright 1999-2020 Gentoo Authors |
324 |
-# Distributed under the terms of the GNU General Public License v2 |
325 |
- |
326 |
-EAPI=7 |
327 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
328 |
- |
329 |
-inherit autotools linux-info python-single-r1 readme.gentoo-r1 systemd udev multilib-minimal |
330 |
- |
331 |
-DESCRIPTION="Bluetooth Tools and System Daemons for Linux" |
332 |
-HOMEPAGE="http://www.bluez.org" |
333 |
-SRC_URI="https://www.kernel.org/pub/linux/bluetooth/${P}.tar.xz" |
334 |
- |
335 |
-LICENSE="GPL-2+ LGPL-2.1+" |
336 |
-SLOT="0/3" |
337 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86" |
338 |
-IUSE="btpclient cups doc debug deprecated extra-tools experimental +mesh midi +obex +readline selinux systemd test test-programs +udev user-session" |
339 |
- |
340 |
-# Since this release all remaining extra-tools need readline support, but this could |
341 |
-# change in the future, hence, this REQUIRED_USE constraint could be dropped |
342 |
-# again in the future. |
343 |
-REQUIRED_USE=" |
344 |
- extra-tools? ( deprecated readline ) |
345 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
346 |
- test-programs? ( ${PYTHON_REQUIRED_USE} ) |
347 |
-" |
348 |
- |
349 |
-TEST_DEPS="${PYTHON_DEPS} |
350 |
- $(python_gen_cond_dep ' |
351 |
- >=dev-python/dbus-python-1[${PYTHON_MULTI_USEDEP}] |
352 |
- dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] |
353 |
- ') |
354 |
-" |
355 |
-BDEPEND=" |
356 |
- virtual/pkgconfig |
357 |
- test? ( ${TEST_DEPS} ) |
358 |
-" |
359 |
-DEPEND=" |
360 |
- >=dev-libs/glib-2.28:2[${MULTILIB_USEDEP}] |
361 |
- >=sys-apps/hwids-20121202.2 |
362 |
- btpclient? ( >=dev-libs/ell-0.28 ) |
363 |
- cups? ( net-print/cups:= ) |
364 |
- mesh? ( |
365 |
- >=dev-libs/ell-0.28 |
366 |
- >=dev-libs/json-c-0.13:= |
367 |
- sys-libs/readline:0= |
368 |
- ) |
369 |
- midi? ( media-libs/alsa-lib ) |
370 |
- obex? ( dev-libs/libical:= ) |
371 |
- readline? ( sys-libs/readline:0= ) |
372 |
- systemd? ( |
373 |
- >=sys-apps/dbus-1.6:=[user-session=] |
374 |
- sys-apps/systemd |
375 |
- ) |
376 |
- !systemd? ( >=sys-apps/dbus-1.6:= ) |
377 |
- udev? ( >=virtual/udev-172 ) |
378 |
-" |
379 |
-RDEPEND="${DEPEND} |
380 |
- selinux? ( sec-policy/selinux-bluetooth ) |
381 |
- test-programs? ( ${TEST_DEPS} ) |
382 |
-" |
383 |
- |
384 |
-RESTRICT="!test? ( test )" |
385 |
- |
386 |
-PATCHES=( |
387 |
- # Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844) |
388 |
- # http://www.spinics.net/lists/linux-bluetooth/msg58739.html |
389 |
- # https://bugs.gentoo.org/539844 |
390 |
- "${FILESDIR}"/${PN}-udevadm-path-r1.patch |
391 |
- |
392 |
- # Fedora patches |
393 |
- # http://www.spinics.net/lists/linux-bluetooth/msg40136.html |
394 |
- "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
395 |
-) |
396 |
- |
397 |
-pkg_setup() { |
398 |
- # From http://www.linuxfromscratch.org/blfs/view/svn/general/bluez.html |
399 |
- # to prevent bugs like: |
400 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=196621 |
401 |
- CONFIG_CHECK="~NET ~BT ~BT_RFCOMM ~BT_RFCOMM_TTY ~BT_BNEP ~BT_BNEP_MC_FILTER |
402 |
- ~BT_BNEP_PROTO_FILTER ~BT_HIDP ~RFKILL" |
403 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=196621 |
404 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=206815 |
405 |
- if use mesh || use test; then |
406 |
- CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_USER |
407 |
- ~CRYPTO_USER_API ~CRYPTO_USER_API_AEAD ~CRYPTO_USER_API_HASH |
408 |
- ~CRYPTO_AES ~CRYPTO_CCM ~CRYPTO_AEAD ~CRYPTO_CMAC" |
409 |
- fi |
410 |
- if use test; then |
411 |
- CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO ~CRYPTO_USER_API_HASH ~CRYPTO_USER_API_SKCIPHER" |
412 |
- fi |
413 |
- linux-info_pkg_setup |
414 |
- |
415 |
- if use test || use test-programs; then |
416 |
- python-single-r1_pkg_setup |
417 |
- fi |
418 |
- |
419 |
- if ! use udev; then |
420 |
- ewarn |
421 |
- ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth" |
422 |
- ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work," |
423 |
- ewarn "and hid2hci will not be available." |
424 |
- ewarn |
425 |
- fi |
426 |
-} |
427 |
- |
428 |
-src_prepare() { |
429 |
- default |
430 |
- |
431 |
- # http://www.spinics.net/lists/linux-bluetooth/msg38490.html |
432 |
- if ! use user-session || ! use systemd; then |
433 |
- eapply "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-session-r2.patch |
434 |
- fi |
435 |
- |
436 |
- if use cups; then |
437 |
- sed -i \ |
438 |
- -e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \ |
439 |
- Makefile.{in,tools} || die |
440 |
- fi |
441 |
- |
442 |
- eautoreconf |
443 |
- |
444 |
- multilib_copy_sources |
445 |
-} |
446 |
- |
447 |
-multilib_src_configure() { |
448 |
- local myconf=( |
449 |
- # readline is automagic when client is enabled |
450 |
- # --enable-client always needs readline, bug #504038 |
451 |
- # --enable-mesh is handled in the same way |
452 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex readline) |
453 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex mesh) |
454 |
- ) |
455 |
- |
456 |
- if ! multilib_is_native_abi; then |
457 |
- myconf+=( |
458 |
- # deps not used for the library |
459 |
- {DBUS,GLIB}_{CFLAGS,LIBS}=' ' |
460 |
- ) |
461 |
- fi |
462 |
- |
463 |
- econf \ |
464 |
- --localstatedir=/var \ |
465 |
- --disable-android \ |
466 |
- --enable-datafiles \ |
467 |
- --enable-optimization \ |
468 |
- $(use_enable debug) \ |
469 |
- --enable-pie \ |
470 |
- --enable-threads \ |
471 |
- --enable-library \ |
472 |
- --enable-tools \ |
473 |
- --enable-manpages \ |
474 |
- --enable-monitor \ |
475 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
476 |
- --with-systemduserunitdir="$(systemd_get_userunitdir)" \ |
477 |
- $(multilib_native_use_enable btpclient) \ |
478 |
- $(multilib_native_use_enable btpclient external-ell) \ |
479 |
- $(multilib_native_use_enable cups) \ |
480 |
- $(multilib_native_use_enable deprecated) \ |
481 |
- $(multilib_native_use_enable experimental) \ |
482 |
- $(multilib_native_use_enable mesh) \ |
483 |
- $(multilib_native_use_enable mesh external-ell) \ |
484 |
- $(multilib_native_use_enable midi) \ |
485 |
- $(multilib_native_use_enable obex) \ |
486 |
- $(multilib_native_use_enable readline client) \ |
487 |
- $(multilib_native_use_enable systemd) \ |
488 |
- $(multilib_native_use_enable test-programs test) \ |
489 |
- $(multilib_native_use_enable udev) \ |
490 |
- $(multilib_native_use_enable udev sixaxis) |
491 |
-} |
492 |
- |
493 |
-multilib_src_compile() { |
494 |
- if multilib_is_native_abi; then |
495 |
- default |
496 |
- else |
497 |
- emake -f Makefile -f - libs \ |
498 |
- <<<'libs: $(lib_LTLIBRARIES)' |
499 |
- fi |
500 |
-} |
501 |
- |
502 |
-multilib_src_test() { |
503 |
- multilib_is_native_abi && default |
504 |
-} |
505 |
- |
506 |
-multilib_src_install() { |
507 |
- if multilib_is_native_abi; then |
508 |
- emake DESTDIR="${D}" install |
509 |
- |
510 |
- # Only install extra-tools when relevant USE flag is enabled |
511 |
- if use extra-tools; then |
512 |
- ewarn "Upstream doesn't support using this tools and their bugs are" |
513 |
- ewarn "likely to be ignored forever, also that tools can break" |
514 |
- ewarn "without previous announcement." |
515 |
- ewarn "Upstream also states all this tools are not really needed," |
516 |
- ewarn "then, if you still need to rely on them, you must ask them" |
517 |
- ewarn "to either install that tool by default or add the needed" |
518 |
- ewarn "functionality to the existing 'official' tools." |
519 |
- ewarn "Please report this issues to:" |
520 |
- ewarn "http://www.bluez.org/development/lists/" |
521 |
- |
522 |
- # Upstream doesn't install this, bug #524640 |
523 |
- # http://permalink.gmane.org/gmane.linux.bluez.kernel/53115 |
524 |
- # http://comments.gmane.org/gmane.linux.bluez.kernel/54564 |
525 |
- dobin tools/btmgmt |
526 |
- # gatttool is only built with readline, bug #530776 |
527 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1141909 |
528 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720486 |
529 |
- # https://bugs.archlinux.org/task/37686 |
530 |
- dobin attrib/gatttool |
531 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1699680 |
532 |
- dobin tools/avinfo |
533 |
- fi |
534 |
- |
535 |
- # Not installed by default after being built, bug #666756 |
536 |
- use btpclient && dobin tools/btpclient |
537 |
- |
538 |
- # Unittests are not that useful once installed, so make them optional |
539 |
- if use test-programs; then |
540 |
- # Drop python2 only test tools |
541 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=206819 |
542 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/simple-player || die |
543 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=206821 |
544 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/test-hfp || die |
545 |
- # https://bugzilla.kernel.org/show_bug.cgi?id=206823 |
546 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/test-sap-server || die |
547 |
- |
548 |
- python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test |
549 |
- |
550 |
- for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do |
551 |
- dosym "${i}" /usr/bin/bluez-"${i##*/}" |
552 |
- done |
553 |
- fi |
554 |
- else |
555 |
- emake DESTDIR="${D}" \ |
556 |
- install-pkgincludeHEADERS \ |
557 |
- install-libLTLIBRARIES \ |
558 |
- install-pkgconfigDATA |
559 |
- fi |
560 |
-} |
561 |
- |
562 |
-multilib_src_install_all() { |
563 |
- # We need to ensure obexd can be spawned automatically by systemd |
564 |
- # when user-session is enabled: |
565 |
- # http://marc.info/?l=linux-bluetooth&m=148096094716386&w=2 |
566 |
- # https://bugs.gentoo.org/show_bug.cgi?id=577842 |
567 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804908 |
568 |
- # https://bugs.archlinux.org/task/45816 |
569 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1318441 |
570 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1389347 |
571 |
- if use user-session && use systemd; then |
572 |
- ln -s "${ED}"/usr/lib/systemd/user/obex.service "${ED}"/usr/lib/systemd/user/dbus-org.bluez.obex.service |
573 |
- fi |
574 |
- |
575 |
- find "${D}" -name '*.la' -type f -delete || die |
576 |
- |
577 |
- keepdir /var/lib/bluetooth |
578 |
- |
579 |
- # Upstream don't want people to play with them |
580 |
- # But we keep installing them due to 'historical' reasons |
581 |
- insinto /etc/bluetooth |
582 |
- local d |
583 |
- for d in input network; do |
584 |
- doins profiles/${d}/${d}.conf |
585 |
- done |
586 |
- # Setup auto enable as Fedora does for allowing to use |
587 |
- # keyboards/mouse as soon as possible |
588 |
- sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' src/main.conf || die |
589 |
- doins src/main.conf |
590 |
- |
591 |
- newinitd "${FILESDIR}"/bluetooth-init.d-r4 bluetooth |
592 |
- |
593 |
- einstalldocs |
594 |
- use doc && dodoc doc/*.txt |
595 |
- # Install .json files as examples to be used by meshctl |
596 |
- if use mesh; then |
597 |
- dodoc tools/mesh-gatt/*.json |
598 |
- local DOC_CONTENTS="Some example .json files were installed into |
599 |
- /usr/share/doc/${PF} to be used with meshctl. Feel free to |
600 |
- uncompress and copy them to ~/.config/meshctl to use them." |
601 |
- readme.gentoo_create_doc |
602 |
- fi |
603 |
- |
604 |
- # From Fedora: |
605 |
- # Scripts for automatically btattach-ing serial ports connected to Broadcom HCIs |
606 |
- # as found on some Atom based x86 hardware |
607 |
- udev_dorules "${FILESDIR}/69-btattach-bcm.rules" |
608 |
- systemd_newunit "${FILESDIR}/btattach-bcm_at.service" "btattach-bcm@.service" |
609 |
- exeinto /usr/libexec/bluetooth |
610 |
- doexe "${FILESDIR}/btattach-bcm-service.sh" |
611 |
-} |
612 |
- |
613 |
-pkg_postinst() { |
614 |
- use udev && udev_reload |
615 |
- systemd_reenable bluetooth.service |
616 |
- |
617 |
- has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp" |
618 |
- use mesh && readme.gentoo_print_elog |
619 |
-} |