1 |
pacho 14/12/28 19:46:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bluez-5.27.ebuild |
5 |
Removed: bluez-5.21-r1.ebuild |
6 |
Log: |
7 |
Version bump (#533120 by mrueg), drop old |
8 |
|
9 |
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.233 net-wireless/bluez/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.233&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.233&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.232&r2=1.233 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v |
21 |
retrieving revision 1.232 |
22 |
retrieving revision 1.233 |
23 |
diff -u -r1.232 -r1.233 |
24 |
--- ChangeLog 5 Dec 2014 10:14:58 -0000 1.232 |
25 |
+++ ChangeLog 28 Dec 2014 19:46:03 -0000 1.233 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-wireless/bluez |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.232 2014/12/05 10:14:58 ago Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.233 2014/12/28 19:46:03 pacho Exp $ |
31 |
+ |
32 |
+*bluez-5.27 (28 Dec 2014) |
33 |
+ |
34 |
+ 28 Dec 2014; Pacho Ramos <pacho@g.o> +bluez-5.27.ebuild, |
35 |
+ -bluez-5.21-r1.ebuild, -files/bluez-5.24-musl-compat.patch: |
36 |
+ Version bump (#533120 by mrueg), drop old |
37 |
|
38 |
05 Dec 2014; Agostino Sarubbo <ago@g.o> bluez-5.25.ebuild: |
39 |
Stable for x86, wrt bug #529946 |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-wireless/bluez/bluez-5.27.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-5.27.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-5.27.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: bluez-5.27.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-5.27.ebuild,v 1.1 2014/12/28 19:46:03 pacho Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} ) |
56 |
|
57 |
inherit autotools eutils multilib python-any-r1 readme.gentoo systemd udev user multilib-minimal |
58 |
|
59 |
DESCRIPTION="Bluetooth Tools and System Daemons for Linux" |
60 |
HOMEPAGE="http://www.bluez.org" |
61 |
SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz" |
62 |
|
63 |
LICENSE="GPL-2+ LGPL-2.1+" |
64 |
SLOT="0/3" |
65 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
66 |
IUSE="cups debug +obex +readline selinux systemd test +udev" |
67 |
REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
68 |
|
69 |
CDEPEND=" |
70 |
>=dev-libs/glib-2.28:2 |
71 |
>=sys-apps/dbus-1.6:= |
72 |
>=sys-apps/hwids-20121202.2 |
73 |
cups? ( net-print/cups:= ) |
74 |
obex? ( dev-libs/libical ) |
75 |
readline? ( sys-libs/readline:= ) |
76 |
systemd? ( sys-apps/systemd ) |
77 |
udev? ( >=virtual/udev-172 ) |
78 |
abi_x86_32? ( |
79 |
!<app-emulation/emul-linux-x86-soundlibs-20140406-r1 |
80 |
!app-emulation/emul-linux-x86-soundlibs[-abi_x86_32] |
81 |
) |
82 |
" |
83 |
DEPEND="${CDEPEND} |
84 |
virtual/pkgconfig |
85 |
test? ( |
86 |
${PYTHON_DEPS} |
87 |
>=dev-python/dbus-python-1 |
88 |
dev-python/pygobject:2 |
89 |
dev-python/pygobject:3 |
90 |
) |
91 |
" |
92 |
RDEPEND="${CDEPEND} |
93 |
selinux? ( sec-policy/selinux-bluetooth ) |
94 |
" |
95 |
DOC_CONTENTS=" |
96 |
If you want to use rfcomm as a normal user, you need to add the user |
97 |
to the uucp group. |
98 |
" |
99 |
|
100 |
pkg_setup() { |
101 |
enewgroup plugdev |
102 |
use test && python-any-r1_pkg_setup |
103 |
|
104 |
if ! use udev; then |
105 |
ewarn |
106 |
ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth" |
107 |
ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work," |
108 |
ewarn "and hid2hci will not be available." |
109 |
ewarn |
110 |
fi |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
# Use static group "plugdev" if there is no ConsoleKit (or systemd logind) |
115 |
epatch "${FILESDIR}"/bluez-plugdev.patch |
116 |
|
117 |
# Fedora patches |
118 |
# http://www.spinics.net/lists/linux-bluetooth/msg38490.html |
119 |
epatch "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch |
120 |
|
121 |
# http://www.spinics.net/lists/linux-bluetooth/msg40136.html |
122 |
epatch "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
123 |
|
124 |
# http://www.spinics.net/lists/linux-bluetooth/msg41264.html |
125 |
epatch "${FILESDIR}"/0002-autopair-Don-t-handle-the-iCade.patch |
126 |
|
127 |
# ??? |
128 |
epatch "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.patch |
129 |
|
130 |
# Ubuntu workaround for bug #501120 |
131 |
epatch "${FILESDIR}"/0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch |
132 |
|
133 |
if use cups; then |
134 |
sed -i \ |
135 |
-e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \ |
136 |
Makefile.{in,tools} || die |
137 |
fi |
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 |
ac_cv_header_readline_readline_h=$(multilib_native_usex readline) |
149 |
) |
150 |
|
151 |
if ! multilib_is_native_abi; then |
152 |
myconf+=( |
153 |
# deps not used for the library |
154 |
{DBUS,GLIB}_{CFLAGS,LIBS}=' ' |
155 |
) |
156 |
fi |
157 |
|
158 |
econf \ |
159 |
--localstatedir=/var \ |
160 |
--disable-android \ |
161 |
--enable-datafiles \ |
162 |
--enable-experimental \ |
163 |
--enable-optimization \ |
164 |
$(use_enable debug) \ |
165 |
--enable-pie \ |
166 |
--enable-threads \ |
167 |
--enable-library \ |
168 |
$(multilib_native_use_enable test) \ |
169 |
--enable-tools \ |
170 |
--enable-manpages \ |
171 |
--enable-monitor \ |
172 |
$(multilib_native_use_enable cups) \ |
173 |
$(multilib_native_use_enable obex) \ |
174 |
$(multilib_native_use_enable readline client) \ |
175 |
$(multilib_native_use_enable systemd) \ |
176 |
$(systemd_with_unitdir) \ |
177 |
$(multilib_native_use_enable udev) \ |
178 |
$(multilib_native_use_enable udev sixaxis) |
179 |
} |
180 |
|
181 |
multilib_src_compile() { |
182 |
if multilib_is_native_abi; then |
183 |
default |
184 |
else |
185 |
emake -f Makefile -f - libs \ |
186 |
<<<'libs: $(lib_LTLIBRARIES)' |
187 |
fi |
188 |
} |
189 |
|
190 |
multilib_src_test() { |
191 |
multilib_is_native_abi && default |
192 |
} |
193 |
|
194 |
multilib_src_install() { |
195 |
if multilib_is_native_abi; then |
196 |
emake DESTDIR="${D}" install |
197 |
|
198 |
# Upstream don't install this, bug #524640 |
199 |
# http://permalink.gmane.org/gmane.linux.bluez.kernel/53115 |
200 |
# http://comments.gmane.org/gmane.linux.bluez.kernel/54564 |
201 |
# gatttool is only built with readline, bug #530776 |
202 |
use readline && dobin attrib/gatttool |
203 |
dobin tools/hex2hcd |
204 |
|
205 |
# Unittests are not that useful once installed |
206 |
if use test ; then |
207 |
rm -r "${ED}"/usr/$(get_libdir)/bluez/test || die |
208 |
fi |
209 |
else |
210 |
emake DESTDIR="${D}" \ |
211 |
install-includeHEADERS \ |
212 |
install-libLTLIBRARIES \ |
213 |
install-pkgconfigDATA |
214 |
fi |
215 |
} |
216 |
|
217 |
multilib_src_install_all() { |
218 |
prune_libtool_files --modules |
219 |
|
220 |
keepdir /var/lib/bluetooth |
221 |
|
222 |
# Upstream don't want people to play with them |
223 |
# But we keep installing them due 'historical' reasons |
224 |
insinto /etc/bluetooth |
225 |
local d |
226 |
for d in input network proximity; do |
227 |
doins profiles/${d}/${d}.conf |
228 |
done |
229 |
doins src/main.conf |
230 |
doins src/bluetooth.conf |
231 |
|
232 |
# FIXME: |
233 |
# Looks like upstream installs it only for systemd, probably not needed |
234 |
# insinto /usr/share/dbus-1/system-services |
235 |
# doins src/org.bluez.service |
236 |
|
237 |
newinitd "${FILESDIR}"/bluetooth-init.d-r3 bluetooth |
238 |
newinitd "${FILESDIR}"/rfcomm-init.d-r2 rfcomm |
239 |
|
240 |
einstalldocs |
241 |
|
242 |
readme.gentoo_create_doc |
243 |
} |
244 |
|
245 |
pkg_postinst() { |
246 |
readme.gentoo_print_elog |
247 |
|
248 |
use udev && udev_reload |
249 |
|
250 |
has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp." |
251 |
|
252 |
if ! has_version sys-auth/consolekit && ! has_version sys-apps/systemd; then |
253 |
elog "Since you don't have sys-auth/consolekit neither sys-apps/systemd, you will only" |
254 |
elog "be able to run bluetooth clients as root. If you want to be able to run bluetooth clients as" |
255 |
elog "a regular user, you need to add the user to the plugdev group." |
256 |
fi |
257 |
} |