1 |
commit: bb38aee3fa0f36dc179fa36dd16ed26f3845cdf6 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 29 10:59:17 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 29 10:59:17 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb38aee3 |
7 |
|
8 |
net-wireless/bluez: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
net-wireless/bluez/bluez-5.50-r2.ebuild | 270 -------------------------------- |
14 |
1 file changed, 270 deletions(-) |
15 |
|
16 |
diff --git a/net-wireless/bluez/bluez-5.50-r2.ebuild b/net-wireless/bluez/bluez-5.50-r2.ebuild |
17 |
deleted file mode 100644 |
18 |
index 4c335870096..00000000000 |
19 |
--- a/net-wireless/bluez/bluez-5.50-r2.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,270 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-PYTHON_COMPAT=( python2_7 ) |
28 |
-inherit autotools python-single-r1 readme.gentoo-r1 systemd udev multilib-minimal |
29 |
- |
30 |
-DESCRIPTION="Bluetooth Tools and System Daemons for Linux" |
31 |
-HOMEPAGE="http://www.bluez.org" |
32 |
-SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz" |
33 |
- |
34 |
-LICENSE="GPL-2+ LGPL-2.1+" |
35 |
-SLOT="0/3" |
36 |
-KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 x86" |
37 |
-IUSE="alsa btpclient cups doc debug deprecated extra-tools experimental +mesh +obex +readline selinux systemd test test-programs +udev user-session" |
38 |
- |
39 |
-# Since this release all remaining extra-tools need readline support, but this could |
40 |
-# change in the future, hence, this REQUIRED_USE constraint could be dropped |
41 |
-# again in the future. |
42 |
-REQUIRED_USE=" |
43 |
- extra-tools? ( deprecated readline ) |
44 |
- test? ( ${PYTHON_REQUIRED_USE} ) |
45 |
- test-programs? ( ${PYTHON_REQUIRED_USE} ) |
46 |
-" |
47 |
- |
48 |
-TEST_DEPS="${PYTHON_DEPS} |
49 |
- >=dev-python/dbus-python-1[${PYTHON_USEDEP}] |
50 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
51 |
-" |
52 |
-BDEPEND=" |
53 |
- virtual/pkgconfig |
54 |
- test? ( ${TEST_DEPS} ) |
55 |
-" |
56 |
-DEPEND=" |
57 |
- >=dev-libs/glib-2.28:2[${MULTILIB_USEDEP}] |
58 |
- >=sys-apps/hwids-20121202.2 |
59 |
- alsa? ( media-libs/alsa-lib ) |
60 |
- btpclient? ( >=dev-libs/ell-0.3 ) |
61 |
- cups? ( net-print/cups:= ) |
62 |
- mesh? ( |
63 |
- >=dev-libs/ell-0.3 |
64 |
- dev-libs/json-c:= |
65 |
- sys-libs/readline:0= |
66 |
- ) |
67 |
- obex? ( dev-libs/libical:= ) |
68 |
- readline? ( sys-libs/readline:0= ) |
69 |
- systemd? ( |
70 |
- >=sys-apps/dbus-1.6:=[user-session=] |
71 |
- sys-apps/systemd |
72 |
- ) |
73 |
- !systemd? ( >=sys-apps/dbus-1.6:= ) |
74 |
- udev? ( >=virtual/udev-172 ) |
75 |
-" |
76 |
-RDEPEND="${DEPEND} |
77 |
- acct-group/plugdev |
78 |
- selinux? ( sec-policy/selinux-bluetooth ) |
79 |
- test-programs? ( ${TEST_DEPS} ) |
80 |
-" |
81 |
-DOC_CONTENTS=" |
82 |
- If you want to control your bluetooth devices as a non-root user, |
83 |
- please remember to add you to plugdev group. |
84 |
-" |
85 |
- |
86 |
-PATCHES=( |
87 |
- # Fix missing header (fixed in 'master') |
88 |
- "${FILESDIR}"/${P}-btpclient-header.patch |
89 |
- |
90 |
- # Use static group "plugdev" to not force people to become root for |
91 |
- # controlling the devices. |
92 |
- "${FILESDIR}"/${PN}-plugdev.patch |
93 |
- |
94 |
- # Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844) |
95 |
- # http://www.spinics.net/lists/linux-bluetooth/msg58739.html |
96 |
- "${FILESDIR}"/${PN}-udevadm-path.patch |
97 |
- |
98 |
- # build: Quote systemd variable names, bug #527432 |
99 |
- # http://article.gmane.org/gmane.linux.bluez.kernel/67230 |
100 |
- "${FILESDIR}"/${PN}-5.39-systemd-quote.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 |
- "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.patch |
108 |
-) |
109 |
- |
110 |
-pkg_setup() { |
111 |
- if use test || use test-programs; then |
112 |
- python-single-r1_pkg_setup |
113 |
- fi |
114 |
- |
115 |
- if ! use udev; then |
116 |
- ewarn |
117 |
- ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth" |
118 |
- ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work," |
119 |
- ewarn "and hid2hci will not be available." |
120 |
- ewarn |
121 |
- fi |
122 |
-} |
123 |
- |
124 |
-src_prepare() { |
125 |
- default |
126 |
- |
127 |
- # http://www.spinics.net/lists/linux-bluetooth/msg38490.html |
128 |
- if ! use user-session || ! use systemd; then |
129 |
- eapply "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch |
130 |
- fi |
131 |
- |
132 |
- if use cups; then |
133 |
- sed -i \ |
134 |
- -e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \ |
135 |
- Makefile.{in,tools} || die |
136 |
- fi |
137 |
- |
138 |
- # Broken test https://bugzilla.kernel.org/show_bug.cgi?id=196621 |
139 |
- sed -i -e '/unit_tests += unit\/test-gatt\b/d' Makefile.am || die |
140 |
- |
141 |
- eautoreconf |
142 |
- |
143 |
- multilib_copy_sources |
144 |
-} |
145 |
- |
146 |
-multilib_src_configure() { |
147 |
- local myconf=( |
148 |
- # readline is automagic when client is enabled |
149 |
- # --enable-client always needs readline, bug #504038 |
150 |
- # --enable-mesh is handled in the same way |
151 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex readline) |
152 |
- ac_cv_header_readline_readline_h=$(multilib_native_usex mesh) |
153 |
- ) |
154 |
- |
155 |
- if ! multilib_is_native_abi; then |
156 |
- myconf+=( |
157 |
- # deps not used for the library |
158 |
- {DBUS,GLIB}_{CFLAGS,LIBS}=' ' |
159 |
- ) |
160 |
- fi |
161 |
- |
162 |
- econf \ |
163 |
- --localstatedir=/var \ |
164 |
- --disable-android \ |
165 |
- --enable-datafiles \ |
166 |
- --enable-optimization \ |
167 |
- $(use_enable debug) \ |
168 |
- --enable-pie \ |
169 |
- --enable-threads \ |
170 |
- --enable-library \ |
171 |
- --enable-tools \ |
172 |
- --enable-manpages \ |
173 |
- --enable-monitor \ |
174 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
175 |
- --with-systemduserunitdir="$(systemd_get_userunitdir)" \ |
176 |
- $(multilib_native_use_enable alsa midi) \ |
177 |
- $(multilib_native_use_enable btpclient) \ |
178 |
- $(multilib_native_use_enable cups) \ |
179 |
- $(multilib_native_use_enable deprecated) \ |
180 |
- $(multilib_native_use_enable experimental) \ |
181 |
- $(multilib_native_use_enable mesh) \ |
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 |
- # gatttool is only built with readline, bug #530776 |
223 |
- dobin attrib/gatttool |
224 |
- dobin tools/btmgmt |
225 |
- fi |
226 |
- |
227 |
- # Not installed by default after being built, bug #666756 |
228 |
- use btpclient && dobin tools/btpclient |
229 |
- |
230 |
- # Unittests are not that useful once installed, so make them optional |
231 |
- if use test-programs; then |
232 |
- # example-gatt-client is the only one needing |
233 |
- # python3, the others are python2 only. Remove |
234 |
- # until we see how to pull in python2 and python3 |
235 |
- # for runtime |
236 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/example-gatt-server || die |
237 |
- rm "${ED}"/usr/$(get_libdir)/bluez/test/example-gatt-client || die |
238 |
- python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test |
239 |
- for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do |
240 |
- dosym "${i}" /usr/bin/bluez-"${i##*/}" |
241 |
- done |
242 |
- fi |
243 |
- else |
244 |
- emake DESTDIR="${D}" \ |
245 |
- install-includeHEADERS \ |
246 |
- install-libLTLIBRARIES \ |
247 |
- install-pkgconfigDATA |
248 |
- fi |
249 |
-} |
250 |
- |
251 |
-multilib_src_install_all() { |
252 |
- # We need to ensure obexd can be spawned automatically by systemd |
253 |
- # when user-session is enabled: |
254 |
- # http://marc.info/?l=linux-bluetooth&m=148096094716386&w=2 |
255 |
- # https://bugs.gentoo.org/show_bug.cgi?id=577842 |
256 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804908 |
257 |
- # https://bugs.archlinux.org/task/45816 |
258 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1318441 |
259 |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1389347 |
260 |
- if use user-session && use systemd; then |
261 |
- ln -s "${ED}"/usr/lib/systemd/user/obex.service "${ED}"/usr/lib/systemd/user/dbus-org.bluez.obex.service |
262 |
- fi |
263 |
- |
264 |
- find "${D}" -name '*.la' -delete || die |
265 |
- |
266 |
- keepdir /var/lib/bluetooth |
267 |
- |
268 |
- # Upstream don't want people to play with them |
269 |
- # But we keep installing them due to 'historical' reasons |
270 |
- insinto /etc/bluetooth |
271 |
- local d |
272 |
- for d in input network; do |
273 |
- doins profiles/${d}/${d}.conf |
274 |
- done |
275 |
- doins src/main.conf |
276 |
- |
277 |
- newinitd "${FILESDIR}"/bluetooth-init.d-r4 bluetooth |
278 |
- |
279 |
- einstalldocs |
280 |
- use doc && dodoc doc/*.txt |
281 |
- ! use systemd && readme.gentoo_create_doc |
282 |
-} |
283 |
- |
284 |
-pkg_postinst() { |
285 |
- ! use systemd && readme.gentoo_print_elog |
286 |
- |
287 |
- use udev && udev_reload |
288 |
- systemd_reenable bluetooth.service |
289 |
- |
290 |
- has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp." |
291 |
-} |