1 |
alonbl 14/06/26 17:18:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bluez-5.20-r1.ebuild |
5 |
Log: |
6 |
Re-add rfcomm init.d, bug#505786 |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51) |
9 |
|
10 |
Revision Changes Path |
11 |
1.208 net-wireless/bluez/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.208&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.208&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.207&r2=1.208 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v |
20 |
retrieving revision 1.207 |
21 |
retrieving revision 1.208 |
22 |
diff -u -r1.207 -r1.208 |
23 |
--- ChangeLog 26 Jun 2014 14:44:33 -0000 1.207 |
24 |
+++ ChangeLog 26 Jun 2014 17:18:43 -0000 1.208 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-wireless/bluez |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.207 2014/06/26 14:44:33 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.208 2014/06/26 17:18:43 alonbl Exp $ |
30 |
+ |
31 |
+*bluez-5.20-r1 (26 Jun 2014) |
32 |
+ |
33 |
+ 26 Jun 2014; Alon Bar-Lev <alonbl@g.o> +bluez-5.20-r1.ebuild, |
34 |
+ +files/rfcomm-init.d-r2, -files/rfcomm-init.d-r1: |
35 |
+ Re-add rfcomm init.d, bug#505786 |
36 |
|
37 |
*bluez-5.20 (26 Jun 2014) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-wireless/bluez/bluez-5.20-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-5.20-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-5.20-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: bluez-5.20-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-5.20-r1.ebuild,v 1.1 2014/06/26 17:18:43 alonbl Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
55 |
|
56 |
inherit eutils multilib python-any-r1 readme.gentoo systemd \ |
57 |
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 |
RDEPEND=" |
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 |
selinux? ( sec-policy/selinux-bluetooth ) |
77 |
systemd? ( sys-apps/systemd ) |
78 |
udev? ( >=virtual/udev-172 ) |
79 |
abi_x86_32? ( |
80 |
!<app-emulation/emul-linux-x86-soundlibs-20140406-r1 |
81 |
!app-emulation/emul-linux-x86-soundlibs[-abi_x86_32] |
82 |
) |
83 |
" |
84 |
DEPEND="${RDEPEND} |
85 |
virtual/pkgconfig |
86 |
test? ( |
87 |
${PYTHON_DEPS} |
88 |
>=dev-python/dbus-python-1 |
89 |
dev-python/pygobject:2 |
90 |
dev-python/pygobject:3 |
91 |
) |
92 |
" |
93 |
|
94 |
DOC_CONTENTS=" |
95 |
If you want to use rfcomm as a normal user, you need to add the user |
96 |
to the uucp group. |
97 |
" |
98 |
|
99 |
pkg_setup() { |
100 |
enewgroup plugdev |
101 |
use test && python-any-r1_pkg_setup |
102 |
|
103 |
if ! use udev; then |
104 |
ewarn |
105 |
ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth" |
106 |
ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work," |
107 |
ewarn "and hid2hci will not be available." |
108 |
ewarn |
109 |
fi |
110 |
} |
111 |
|
112 |
src_prepare() { |
113 |
# Use static group "plugdev" if there is no ConsoleKit (or systemd logind) |
114 |
epatch "${FILESDIR}"/bluez-plugdev.patch |
115 |
|
116 |
# Fedora patches |
117 |
# http://www.spinics.net/lists/linux-bluetooth/msg38490.html |
118 |
epatch "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch |
119 |
|
120 |
# http://www.spinics.net/lists/linux-bluetooth/msg40136.html |
121 |
epatch "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch |
122 |
|
123 |
# http://www.spinics.net/lists/linux-bluetooth/msg41264.html |
124 |
epatch "${FILESDIR}"/0002-autopair-Don-t-handle-the-iCade.patch |
125 |
|
126 |
# ??? |
127 |
epatch "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.patch |
128 |
|
129 |
# Ubuntu workaround for bug #501120 |
130 |
epatch "${FILESDIR}"/0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch |
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 |
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 |
# Missing flags: experimental (sap, nfc, ...) |
156 |
econf \ |
157 |
--localstatedir=/var \ |
158 |
--disable-android \ |
159 |
--enable-experimental \ |
160 |
--enable-optimization \ |
161 |
$(use_enable debug) \ |
162 |
--enable-pie \ |
163 |
--enable-threads \ |
164 |
--enable-library \ |
165 |
$(multilib_native_use_enable test) \ |
166 |
--enable-tools \ |
167 |
--enable-monitor \ |
168 |
$(multilib_native_use_enable cups) \ |
169 |
$(multilib_native_use_enable obex) \ |
170 |
$(multilib_native_use_enable readline client) \ |
171 |
$(multilib_native_use_enable systemd) \ |
172 |
$(systemd_with_unitdir) \ |
173 |
$(multilib_native_use_enable udev) \ |
174 |
$(multilib_native_use_enable udev sixaxis) |
175 |
} |
176 |
|
177 |
multilib_src_compile() { |
178 |
if multilib_is_native_abi; then |
179 |
default |
180 |
else |
181 |
emake -f Makefile -f - libs \ |
182 |
<<<'libs: $(lib_LTLIBRARIES)' |
183 |
fi |
184 |
} |
185 |
|
186 |
multilib_src_test() { |
187 |
multilib_is_native_abi && default |
188 |
} |
189 |
|
190 |
multilib_src_install() { |
191 |
if multilib_is_native_abi; then |
192 |
emake DESTDIR="${D}" install |
193 |
|
194 |
# Unittests are not that useful once installed |
195 |
if use test ; then |
196 |
rm -r "${ED}"/usr/$(get_libdir)/bluez/test || die |
197 |
fi |
198 |
else |
199 |
emake DESTDIR="${D}" \ |
200 |
install-includeHEADERS \ |
201 |
install-libLTLIBRARIES \ |
202 |
install-pkgconfigDATA |
203 |
fi |
204 |
} |
205 |
|
206 |
multilib_src_install_all() { |
207 |
prune_libtool_files --modules |
208 |
|
209 |
keepdir /var/lib/bluetooth |
210 |
|
211 |
insinto /etc/bluetooth |
212 |
local d |
213 |
for d in input network proximity; do |
214 |
doins profiles/${d}/${d}.conf |
215 |
done |
216 |
|
217 |
doins src/main.conf |
218 |
doins src/bluetooth.conf |
219 |
|
220 |
insinto /usr/share/dbus-1/system-services |
221 |
doins src/org.bluez.service |
222 |
|
223 |
newinitd "${FILESDIR}"/bluetooth-init.d-r3 bluetooth |
224 |
newinitd "${FILESDIR}"/rfcomm-init.d-r2 rfcomm |
225 |
|
226 |
readme.gentoo_create_doc |
227 |
} |
228 |
|
229 |
pkg_postinst() { |
230 |
readme.gentoo_print_elog |
231 |
|
232 |
use udev && udev_reload |
233 |
|
234 |
has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp." |
235 |
|
236 |
if ! has_version sys-auth/consolekit && ! has_version sys-apps/systemd; then |
237 |
elog "Since you don't have sys-auth/consolekit neither sys-apps/systemd, you will only" |
238 |
elog "be able to run bluetooth clients as root. If you want to be able to run bluetooth clientes as" |
239 |
elog "a regular user, you need to enable the consolekit use flag for this package or" |
240 |
elog "to add the user to the plugdev group." |
241 |
fi |
242 |
} |