1 |
commit: d7df33803460a8eaa4ae17f6615b413078ae40c1 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 13:44:35 2016 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 13:45:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7df3380 |
7 |
|
8 |
net-wireless/bluez: Version bump to 5.41 |
9 |
|
10 |
Gentoo-Bug: 587522 |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
net-wireless/bluez/Manifest | 1 + |
15 |
net-wireless/bluez/bluez-5.41.ebuild | 235 +++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 236 insertions(+) |
17 |
|
18 |
diff --git a/net-wireless/bluez/Manifest b/net-wireless/bluez/Manifest |
19 |
index 2a66298..9041f40 100644 |
20 |
--- a/net-wireless/bluez/Manifest |
21 |
+++ b/net-wireless/bluez/Manifest |
22 |
@@ -3,3 +3,4 @@ DIST bluez-4.101.tar.xz 887236 SHA256 41f9578bef39b8c94a2d6ddeaa556afd22d136936d |
23 |
DIST bluez-5.35.tar.xz 1643068 SHA256 1afee054644a8b1753ac98d7ad5cd95681a38f5c4cbb1b4bb3ceaa078bf8f0e2 SHA512 33850a01e135f14015295f0eb9b578c515d180d24441b89dff545ec7c0ce8dad5fa321e20918ed6285edaa386375b4ed5688cb17bbfaf4db0742f6d6a72eec6d WHIRLPOOL e334e0e9b37f823eb348cf1679e010567893a73941533a5dc12b598f3b3c845d82f15b3b79e106a7fc4c4344a204a2205fa96509e61d7e61b6ec9f413d650356 |
24 |
DIST bluez-5.37.tar.xz 1657760 SHA256 c14ba9ddcb0055522073477b8fd8bf1ddf5d219e75fdfd4699b7e0ce5350d6b0 SHA512 e9af3b1dd079185425db10630fefbb66c26f398f21edb0c213baba9599f73715ca36f405a3f9d9572e6c55b7d3d25a4cdc18668c6eb439422f637e64798a28e9 WHIRLPOOL 1697a379d944978193db51a50c19a10fb27aa4e57ee9793563ba59b25de6388dfb4847c1a851fe1467d2521f14b2b9655208b8cef0cd5e44604bc0b26beb0c2b |
25 |
DIST bluez-5.39.tar.xz 1659576 SHA256 21d1bc9150d3576296595217efb98a746b592389d25d5637e8bee5da7272593b SHA512 a0c43d0de4dcbfa20bbfe34e805a60703f4b94d0aa6c1d128a0917dfaa490593b26eb555b0a343ff44d1f94349b61776189438039e489ddcf8fe107354740230 WHIRLPOOL da299f8556418cf38d5a05b91079fdb6ff85761127d4708783bcd97fa4502e208187c013b1d8622688b438308506fbb06732426c35f6fedc2fe25cfd68a93486 |
26 |
+DIST bluez-5.41.tar.xz 1665948 SHA256 df7dc4462494dad4e60a2943240d584f6e760235dca64f5f10eba46dbab7f5f0 SHA512 0cf96514362573a3c2cd500d427ea58373de0d1348ac43d61fff295ca5df8305668ef2f82913681779aa3506917aabf47983e07f47b4586573c8ad567a9863af WHIRLPOOL aa48649a0b0b79aeea1c2703cd98f13f69c8efe8a187f094bae8e059452c2cc1a862a8113cd6f3e141c684ad2158eaba43cdd908bbc1aa7dbee67ca578d80869 |
27 |
|
28 |
diff --git a/net-wireless/bluez/bluez-5.41.ebuild b/net-wireless/bluez/bluez-5.41.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000..c379ceb |
31 |
--- /dev/null |
32 |
+++ b/net-wireless/bluez/bluez-5.41.ebuild |
33 |
@@ -0,0 +1,235 @@ |
34 |
+# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+PYTHON_COMPAT=( python3_{4,5} ) |
40 |
+ |
41 |
+inherit autotools eutils multilib python-single-r1 readme.gentoo-r1 systemd udev user multilib-minimal |
42 |
+ |
43 |
+DESCRIPTION="Bluetooth Tools and System Daemons for Linux" |
44 |
+HOMEPAGE="http://www.bluez.org" |
45 |
+SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz" |
46 |
+ |
47 |
+LICENSE="GPL-2+ LGPL-2.1+" |
48 |
+SLOT="0/3" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86" |
50 |
+ |
51 |
+IUSE="cups doc debug deprecated extra-tools experimental +obex +readline selinux systemd test test-programs +udev" |
52 |
+REQUIRED_USE=" |
53 |
+ test? ( ${PYTHON_REQUIRED_USE} ) |
54 |
+ test-programs? ( ${PYTHON_REQUIRED_USE} ) |
55 |
+" |
56 |
+ |
57 |
+CDEPEND=" |
58 |
+ >=dev-libs/glib-2.28:2 |
59 |
+ >=sys-apps/dbus-1.6:= |
60 |
+ >=sys-apps/hwids-20121202.2 |
61 |
+ cups? ( net-print/cups:= ) |
62 |
+ obex? ( dev-libs/libical:= ) |
63 |
+ readline? ( sys-libs/readline:= ) |
64 |
+ systemd? ( sys-apps/systemd ) |
65 |
+ udev? ( >=virtual/udev-172 ) |
66 |
+" |
67 |
+TEST_DEPS="${PYTHON_DEPS} |
68 |
+ >=dev-python/dbus-python-1[${PYTHON_USEDEP}] |
69 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
70 |
+" |
71 |
+ |
72 |
+DEPEND="${CDEPEND} |
73 |
+ virtual/pkgconfig |
74 |
+ test? ( ${TEST_DEPS} ) |
75 |
+" |
76 |
+RDEPEND="${CDEPEND} |
77 |
+ selinux? ( sec-policy/selinux-bluetooth ) |
78 |
+ test-programs? ( ${TEST_DEPS} ) |
79 |
+" |
80 |
+DOC_CONTENTS=" |
81 |
+ If you want to use rfcomm as a normal user, you need to add the user |
82 |
+ to the uucp group. |
83 |
+" |
84 |
+ |
85 |
+PATCHES=( |
86 |
+ # Use static group "plugdev" if there is no ConsoleKit (or systemd logind) |
87 |
+ "${FILESDIR}"/bluez-plugdev.patch |
88 |
+ |
89 |
+ # Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844) |
90 |
+ # http://www.spinics.net/lists/linux-bluetooth/msg58739.html |
91 |
+ "${FILESDIR}"/bluez-udevadm-path.patch |
92 |
+ |
93 |
+ # build: Quote systemd variable names, bug #527432 |
94 |
+ "${FILESDIR}"/bluez-5.39-systemd-quote.patch |
95 |
+ |
96 |
+ # http://article.gmane.org/gmane.linux.bluez.kernel/67230 |
97 |
+ # Fedora patches |
98 |
+ # http://www.spinics.net/lists/linux-bluetooth/msg38490.html |
99 |
+ "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch |
100 |
+ |
101 |
+ # http://www.spinics.net/lists/linux-bluetooth/msg40136.html |
102 |
+ "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
103 |
+ |
104 |
+ # http://www.spinics.net/lists/linux-bluetooth/msg41264.html |
105 |
+ "${FILESDIR}"/0002-autopair-Don-t-handle-the-iCade.patch |
106 |
+ |
107 |
+ # ??? |
108 |
+ "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.patch |
109 |
+) |
110 |
+ |
111 |
+pkg_setup() { |
112 |
+ enewgroup plugdev |
113 |
+ |
114 |
+ if use test || use test-programs; then |
115 |
+ python-single-r1_pkg_setup |
116 |
+ fi |
117 |
+ |
118 |
+ if ! use udev; then |
119 |
+ ewarn |
120 |
+ ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth" |
121 |
+ ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work," |
122 |
+ ewarn "and hid2hci will not be available." |
123 |
+ ewarn |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+src_prepare() { |
128 |
+ default |
129 |
+ |
130 |
+ if use cups; then |
131 |
+ sed -i \ |
132 |
+ -e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \ |
133 |
+ Makefile.{in,tools} || die |
134 |
+ fi |
135 |
+ |
136 |
+ eautoreconf |
137 |
+ |
138 |
+ multilib_copy_sources |
139 |
+} |
140 |
+ |
141 |
+multilib_src_configure() { |
142 |
+ local myconf=( |
143 |
+ # readline is automagic when client is enabled |
144 |
+ # --enable-client always needs readline, bug #504038 |
145 |
+ ac_cv_header_readline_readline_h=$(multilib_native_usex readline) |
146 |
+ ) |
147 |
+ |
148 |
+ if ! multilib_is_native_abi; then |
149 |
+ myconf+=( |
150 |
+ # deps not used for the library |
151 |
+ {DBUS,GLIB}_{CFLAGS,LIBS}=' ' |
152 |
+ ) |
153 |
+ fi |
154 |
+ |
155 |
+ econf \ |
156 |
+ --localstatedir=/var \ |
157 |
+ --disable-android \ |
158 |
+ --enable-datafiles \ |
159 |
+ --enable-experimental \ |
160 |
+ --enable-optimization \ |
161 |
+ $(use_enable debug) \ |
162 |
+ --enable-pie \ |
163 |
+ --enable-threads \ |
164 |
+ --enable-library \ |
165 |
+ --enable-tools \ |
166 |
+ --enable-manpages \ |
167 |
+ --enable-monitor \ |
168 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
169 |
+ $(multilib_native_use_enable cups) \ |
170 |
+ $(multilib_native_use_enable deprecated) \ |
171 |
+ $(multilib_native_use_enable experimental) \ |
172 |
+ $(multilib_native_use_enable obex) \ |
173 |
+ $(multilib_native_use_enable readline client) \ |
174 |
+ $(multilib_native_use_enable systemd) \ |
175 |
+ $(multilib_native_use_enable test-programs test) \ |
176 |
+ $(multilib_native_use_enable udev) \ |
177 |
+ $(multilib_native_use_enable udev sixaxis) |
178 |
+} |
179 |
+ |
180 |
+multilib_src_compile() { |
181 |
+ if multilib_is_native_abi; then |
182 |
+ default |
183 |
+ else |
184 |
+ emake -f Makefile -f - libs \ |
185 |
+ <<<'libs: $(lib_LTLIBRARIES)' |
186 |
+ fi |
187 |
+} |
188 |
+ |
189 |
+multilib_src_test() { |
190 |
+ multilib_is_native_abi && default |
191 |
+} |
192 |
+ |
193 |
+multilib_src_install() { |
194 |
+ if multilib_is_native_abi; then |
195 |
+ emake DESTDIR="${D}" install |
196 |
+ |
197 |
+ # Only install extra-tools when relevant USE flag is enabled |
198 |
+ if use extra-tools; then |
199 |
+ ewarn "Upstream doesn't support using this tools and their bugs are" |
200 |
+ ewarn "likely to be ignored forever, also that tools can break" |
201 |
+ ewarn "without previous announcement." |
202 |
+ ewarn "Upstream also states all this tools are not really needed," |
203 |
+ ewarn "then, if you still need to rely on them, you must ask them" |
204 |
+ ewarn "to either install that tool by default or add the needed" |
205 |
+ ewarn "functionality to the existing 'official' tools." |
206 |
+ ewarn "Please report this issues to:" |
207 |
+ ewarn "http://www.bluez.org/development/lists/" |
208 |
+ |
209 |
+ # Upstream doesn't install this, bug #524640 |
210 |
+ # http://permalink.gmane.org/gmane.linux.bluez.kernel/53115 |
211 |
+ # http://comments.gmane.org/gmane.linux.bluez.kernel/54564 |
212 |
+ # gatttool is only built with readline, bug #530776 |
213 |
+ if use readline; then |
214 |
+ dobin attrib/gatttool |
215 |
+ dobin tools/btmgmt |
216 |
+ fi |
217 |
+ dobin tools/hex2hcd |
218 |
+ fi |
219 |
+ |
220 |
+ # Unittests are not that useful once installed, so make them optional |
221 |
+ if use test-programs; then |
222 |
+ python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test |
223 |
+ for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do |
224 |
+ dosym "${i}" /usr/bin/bluez-"${i##*/}" |
225 |
+ done |
226 |
+ fi |
227 |
+ else |
228 |
+ emake DESTDIR="${D}" \ |
229 |
+ install-includeHEADERS \ |
230 |
+ install-libLTLIBRARIES \ |
231 |
+ install-pkgconfigDATA |
232 |
+ fi |
233 |
+} |
234 |
+ |
235 |
+multilib_src_install_all() { |
236 |
+ prune_libtool_files --modules |
237 |
+ |
238 |
+ keepdir /var/lib/bluetooth |
239 |
+ |
240 |
+ # Upstream don't want people to play with them |
241 |
+ # But we keep installing them due to 'historical' reasons |
242 |
+ insinto /etc/bluetooth |
243 |
+ local d |
244 |
+ for d in input network proximity; do |
245 |
+ doins profiles/${d}/${d}.conf |
246 |
+ done |
247 |
+ doins src/main.conf |
248 |
+ |
249 |
+ newinitd "${FILESDIR}"/bluetooth-init.d-r3 bluetooth |
250 |
+ newinitd "${FILESDIR}"/rfcomm-init.d-r2 rfcomm |
251 |
+ |
252 |
+ einstalldocs |
253 |
+ use doc && dodoc doc/*.txt |
254 |
+ readme.gentoo_create_doc |
255 |
+} |
256 |
+ |
257 |
+pkg_postinst() { |
258 |
+ readme.gentoo_print_elog |
259 |
+ |
260 |
+ use udev && udev_reload |
261 |
+ |
262 |
+ has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp." |
263 |
+ |
264 |
+ if ! has_version sys-auth/consolekit && ! has_version sys-apps/systemd; then |
265 |
+ elog "Since you don't have sys-auth/consolekit neither sys-apps/systemd, you will" |
266 |
+ elog "need to add the user to the plugdev group." |
267 |
+ fi |
268 |
+} |