1 |
pacho 12/07/06 18:41:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bluez-4.101-r1.ebuild |
5 |
Removed: bluez-4.101.ebuild |
6 |
Log: |
7 |
Recover bluetoothd init.d script to start it now that upstream has decided to drop udev rule (bug #423513 by Nikolay S. Rybaloff, Marcin Deranek and others). |
8 |
|
9 |
(Portage version: 2.1.11.3/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.139 net-wireless/bluez/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.139&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.139&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.138&r2=1.139 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v |
21 |
retrieving revision 1.138 |
22 |
retrieving revision 1.139 |
23 |
diff -u -r1.138 -r1.139 |
24 |
--- ChangeLog 6 Jul 2012 12:29:54 -0000 1.138 |
25 |
+++ ChangeLog 6 Jul 2012 18:41:14 -0000 1.139 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for net-wireless/bluez |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.138 2012/07/06 12:29:54 ssuominen Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.139 2012/07/06 18:41:14 pacho Exp $ |
31 |
+ |
32 |
+*bluez-4.101-r1 (06 Jul 2012) |
33 |
+ |
34 |
+ 06 Jul 2012; Pacho Ramos <pacho@g.o> +bluez-4.101-r1.ebuild, |
35 |
+ +files/bluetooth-init.d-r2, -bluez-4.101.ebuild: |
36 |
+ Recover bluetoothd init.d script to start it now that upstream has decided to |
37 |
+ drop udev rule (bug #423513 by Nikolay S. Rybaloff, Marcin Deranek and |
38 |
+ others). |
39 |
|
40 |
06 Jul 2012; Samuli Suominen <ssuominen@g.o> bluez-4.98-r2.ebuild, |
41 |
bluez-4.99.ebuild, bluez-4.101.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 net-wireless/bluez/bluez-4.101-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.101-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.101-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: bluez-4.101-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.101-r1.ebuild,v 1.1 2012/07/06 18:41:14 pacho Exp $ |
55 |
|
56 |
EAPI="4" |
57 |
PYTHON_DEPEND="test-programs? 2" |
58 |
|
59 |
inherit multilib eutils systemd python user |
60 |
|
61 |
DESCRIPTION="Bluetooth Tools and System Daemons for Linux" |
62 |
HOMEPAGE="http://www.bluez.org/" |
63 |
|
64 |
# Because of oui.txt changing from time to time without noticement, we need to supply it |
65 |
# ourselves instead of using http://standards.ieee.org/regauth/oui/oui.txt directly. |
66 |
# See bugs #345263 and #349473 for reference. |
67 |
OUIDATE="20120623" |
68 |
SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz |
69 |
http://dev.gentoo.org/~pacho/bluez/oui-${OUIDATE}.txt.xz" |
70 |
|
71 |
LICENSE="GPL-2 LGPL-2.1" |
72 |
SLOT="0" |
73 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
74 |
IUSE="alsa +consolekit cups debug gstreamer pcmcia test-programs usb readline" |
75 |
|
76 |
CDEPEND=" |
77 |
>=dev-libs/glib-2.28:2 |
78 |
>=sys-apps/dbus-1.4 |
79 |
>=sys-fs/udev-169 |
80 |
alsa? ( |
81 |
media-libs/alsa-lib[alsa_pcm_plugins_extplug(+),alsa_pcm_plugins_ioplug(+)] |
82 |
media-libs/libsndfile |
83 |
) |
84 |
cups? ( net-print/cups ) |
85 |
gstreamer? ( |
86 |
>=media-libs/gstreamer-0.10:0.10 |
87 |
>=media-libs/gst-plugins-base-0.10:0.10 |
88 |
) |
89 |
usb? ( virtual/libusb:0 ) |
90 |
readline? ( sys-libs/readline ) |
91 |
" |
92 |
DEPEND="${CDEPEND} |
93 |
virtual/pkgconfig |
94 |
sys-devel/flex |
95 |
test-programs? ( >=dev-libs/check-0.9.6 ) |
96 |
" |
97 |
RDEPEND="${CDEPEND} |
98 |
!net-wireless/bluez-libs |
99 |
!net-wireless/bluez-utils |
100 |
consolekit? ( |
101 |
|| ( sys-auth/consolekit |
102 |
>=sys-apps/systemd-37 ) |
103 |
) |
104 |
test-programs? ( |
105 |
dev-python/dbus-python |
106 |
dev-python/pygobject:2 |
107 |
) |
108 |
" |
109 |
|
110 |
DOCS=( AUTHORS ChangeLog README ) |
111 |
|
112 |
pkg_setup() { |
113 |
if ! use consolekit; then |
114 |
enewgroup plugdev |
115 |
fi |
116 |
|
117 |
if use test-programs; then |
118 |
python_pkg_setup |
119 |
fi |
120 |
} |
121 |
|
122 |
src_prepare() { |
123 |
if ! use consolekit; then |
124 |
# No consolekit for at_console etc, so we grant plugdev the rights |
125 |
epatch "${FILESDIR}/bluez-plugdev.patch" |
126 |
fi |
127 |
|
128 |
if use cups; then |
129 |
sed -i \ |
130 |
-e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \ |
131 |
Makefile.tools Makefile.in || die |
132 |
fi |
133 |
} |
134 |
|
135 |
src_configure() { |
136 |
use readline || export ac_cv_header_readline_readline_h=no |
137 |
|
138 |
econf \ |
139 |
--enable-hid2hci \ |
140 |
--enable-audio \ |
141 |
--enable-bccmd \ |
142 |
--enable-datafiles \ |
143 |
--enable-dfutool \ |
144 |
--enable-input \ |
145 |
--enable-network \ |
146 |
--enable-serial \ |
147 |
--enable-service \ |
148 |
--enable-tools \ |
149 |
--disable-hal \ |
150 |
--localstatedir=/var \ |
151 |
--with-systemdunitdir="$(systemd_get_unitdir)" \ |
152 |
$(use_enable alsa) \ |
153 |
$(use_enable cups) \ |
154 |
$(use_enable debug) \ |
155 |
$(use_enable gstreamer) \ |
156 |
$(use_enable pcmcia) \ |
157 |
$(use_enable test-programs test) \ |
158 |
$(use_enable usb) \ |
159 |
--enable-health \ |
160 |
--enable-maemo6 \ |
161 |
--enable-pnat \ |
162 |
--enable-wiimote |
163 |
} |
164 |
|
165 |
src_install() { |
166 |
default |
167 |
|
168 |
if use test-programs ; then |
169 |
cd "${S}/test" |
170 |
dobin simple-agent simple-service monitor-bluetooth |
171 |
newbin list-devices list-bluetooth-devices |
172 |
rm test-textfile.{c,o} || die # bug #356529 |
173 |
for b in hsmicro hsplay test-* ; do |
174 |
newbin "${b}" "bluez-${b}" |
175 |
done |
176 |
insinto /usr/share/doc/${PF}/test-services |
177 |
doins service-* |
178 |
|
179 |
python_convert_shebangs -r 2 "${ED}" |
180 |
cd "${S}" |
181 |
fi |
182 |
|
183 |
insinto /etc/bluetooth |
184 |
doins \ |
185 |
input/input.conf \ |
186 |
audio/audio.conf \ |
187 |
network/network.conf \ |
188 |
serial/serial.conf |
189 |
|
190 |
newinitd "${FILESDIR}/bluetooth-init.d-r2" bluetooth |
191 |
newinitd "${FILESDIR}/rfcomm-init.d" rfcomm |
192 |
newconfd "${FILESDIR}/rfcomm-conf.d" rfcomm |
193 |
|
194 |
# Install oui.txt as requested in bug #283791 and approved by upstream |
195 |
insinto /var/lib/misc |
196 |
newins "${WORKDIR}/oui-${OUIDATE}.txt" oui.txt |
197 |
|
198 |
prune_libtool_files --all |
199 |
} |
200 |
|
201 |
pkg_postinst() { |
202 |
udevadm control --reload-rules |
203 |
|
204 |
if ! has_version "net-dialup/ppp"; then |
205 |
elog "To use dial up networking you must install net-dialup/ppp." |
206 |
fi |
207 |
|
208 |
if use consolekit; then |
209 |
elog "If you want to use rfcomm as a normal user, you need to add the user" |
210 |
elog "to the uucp group." |
211 |
else |
212 |
elog "Since you have the consolekit use flag disabled, you will only be able to run" |
213 |
elog "bluetooth clients as root. If you want to be able to run bluetooth clientes as " |
214 |
elog "a regular user, you need to enable the consolekit use flag for this package or" |
215 |
elog "to add the user to the plugdev group." |
216 |
fi |
217 |
|
218 |
if [ "$(rc-config list default | grep bluetooth)" = "" ] ; then |
219 |
elog "You will need to add bluetooth service to default runlevel" |
220 |
elog "for getting your devices detected. For that please run:" |
221 |
elog "'rc-update add bluetooth default'" |
222 |
fi |
223 |
} |