Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/bluez: ChangeLog bluez-4.80.ebuild bluez-4.69.ebuild
Date: Thu, 25 Nov 2010 23:36:41
Message-Id: 20101125233627.68C0B20051@flycatcher.gentoo.org
1 pacho 10/11/25 23:36:27
2
3 Modified: ChangeLog
4 Added: bluez-4.80.ebuild
5 Removed: bluez-4.69.ebuild
6 Log:
7 Version bump with multiple upstream fixes, also handle oui.txt file downloading in a better way as suggested by Zac in bug #345263, update HOMEPAGE, remove .la files, and fix cups location (bug #346033 by Florian Steinel). Remove old.
8
9 (Portage version: 2.1.9.24/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.62 net-wireless/bluez/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.62&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.62&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.61&r2=1.62
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
21 retrieving revision 1.61
22 retrieving revision 1.62
23 diff -u -r1.61 -r1.62
24 --- ChangeLog 9 Nov 2010 22:37:13 -0000 1.61
25 +++ ChangeLog 25 Nov 2010 23:36:27 -0000 1.62
26 @@ -1,6 +1,15 @@
27 # ChangeLog for net-wireless/bluez
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.61 2010/11/09 22:37:13 pacho Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.62 2010/11/25 23:36:27 pacho Exp $
31 +
32 +*bluez-4.80 (25 Nov 2010)
33 +
34 + 25 Nov 2010; Pacho Ramos <pacho@g.o> -bluez-4.69.ebuild,
35 + +bluez-4.80.ebuild:
36 + Version bump with multiple upstream fixes, also handle oui.txt file
37 + downloading in a better way as suggested by Zac in bug #345263, update
38 + HOMEPAGE, remove .la files, and fix cups location (bug #346033 by Florian
39 + Steinel). Remove old.
40
41 09 Nov 2010; Pacho Ramos <pacho@g.o> ChangeLog:
42 Fix digest (bug #344815 by Isidoro Garcia).
43
44
45
46 1.1 net-wireless/bluez/bluez-4.80.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.80.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.80.ebuild?rev=1.1&content-type=text/plain
50
51 Index: bluez-4.80.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.80.ebuild,v 1.1 2010/11/25 23:36:27 pacho Exp $
56
57 EAPI="3"
58
59 inherit multilib eutils
60
61 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
62 HOMEPAGE="http://www.bluez.org/"
63
64 OUIDATE="20101126" # Needed because of bug #345263
65 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.gz
66 http://standards.ieee.org/regauth/oui/oui.txt -> oui-${OUIDATE}.txt"
67 LICENSE="GPL-2 LGPL-2.1"
68 SLOT="0"
69 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
70
71 IUSE="alsa attrib caps +consolekit cups debug gstreamer maemo6 health old-daemons pcmcia pnat test-programs usb"
72
73 CDEPEND="alsa? (
74 media-libs/alsa-lib[alsa_pcm_plugins_extplug,alsa_pcm_plugins_ioplug]
75 )
76 caps? ( >=sys-libs/libcap-ng-0.6.2 )
77 gstreamer? (
78 >=media-libs/gstreamer-0.10
79 >=media-libs/gst-plugins-base-0.10 )
80 usb? ( dev-libs/libusb )
81 cups? ( net-print/cups )
82 >=sys-fs/udev-146[extras]
83 >=dev-libs/glib-2.14
84 sys-apps/dbus
85 media-libs/libsndfile
86 >=dev-libs/libnl-1.1
87 !net-wireless/bluez-libs
88 !net-wireless/bluez-utils"
89 DEPEND="sys-devel/flex
90 >=dev-util/pkgconfig-0.20
91 ${CDEPEND}"
92 RDEPEND="${CDEPEND}
93 consolekit? ( sys-auth/pambase[consolekit] )
94 test-programs? (
95 dev-python/dbus-python
96 dev-python/pygobject )"
97
98 pkg_setup() {
99 if ! use consolekit; then
100 enewgroup plugdev
101 fi
102 }
103
104 src_prepare() {
105 if ! use consolekit; then
106 # No consolekit for at_console etc, so we grant plugdev the rights
107 epatch "${FILESDIR}/bluez-plugdev.patch"
108 fi
109
110 if use cups; then
111 sed -i -e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \
112 Makefile.tools Makefile.in || die
113 fi
114 }
115
116 src_configure() {
117 econf \
118 $(use_enable caps capng) \
119 --enable-network \
120 --enable-serial \
121 --enable-input \
122 --enable-audio \
123 --enable-service \
124 $(use_enable gstreamer) \
125 $(use_enable alsa) \
126 $(use_enable usb) \
127 --enable-tools \
128 --enable-bccmd \
129 --enable-dfutool \
130 $(use_enable old-daemons hidd) \
131 $(use_enable old-daemons pand) \
132 $(use_enable old-daemons dund) \
133 $(use_enable attrib) \
134 $(use_enable health) \
135 $(use_enable pnat) \
136 $(use_enable maemo6) \
137 $(use_enable cups) \
138 $(use_enable test-programs test) \
139 --enable-udevrules \
140 --enable-configfiles \
141 $(use_enable pcmcia) \
142 $(use_enable debug) \
143 --localstatedir=/var \
144 --disable-hal
145 }
146
147 src_install() {
148 emake DESTDIR="${ED}" install || die "make install failed"
149
150 dodoc AUTHORS ChangeLog README || die
151
152 if use test-programs ; then
153 cd "${S}/test"
154 dobin simple-agent simple-service monitor-bluetooth || die
155 newbin list-devices list-bluetooth-devices || die
156 for b in apitest hsmicro hsplay test-* ; do
157 newbin "${b}" "bluez-${b}" || die
158 done
159 insinto /usr/share/doc/${PF}/test-services
160 doins service-* || die
161
162 cd "${S}"
163 fi
164
165 if use old-daemons; then
166 newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die
167 newinitd "${FILESDIR}/init.d-hidd" hidd || die
168 newconfd "${FILESDIR}/conf.d-dund" dund || die
169 newinitd "${FILESDIR}/init.d-dund" dund || die
170 fi
171
172 insinto /etc/bluetooth
173 doins \
174 input/input.conf \
175 audio/audio.conf \
176 network/network.conf \
177 serial/serial.conf \
178 || die
179
180 insinto /etc/udev/rules.d/
181 newins "${FILESDIR}/${PN}-4.18-udev.rules" 70-bluetooth.rules || die
182 exeinto /$(get_libdir)/udev/
183 newexe "${FILESDIR}/${PN}-4.18-udev.script" bluetooth.sh || die
184
185 newinitd "${FILESDIR}/bluetooth-init.d" bluetooth || die
186 newconfd "${FILESDIR}/4.60/bluetooth-conf.d" bluetooth || die
187
188 # Install oui.txt as requested in bug #283791 and approved by upstream
189 insinto /var/lib/misc
190 newins "${DISTDIR}/oui-${OUIDATE}.txt" oui.txt || die
191
192 find "${ED}" -name "*.la" -delete || die "remove of la files failed"
193 }
194
195 pkg_postinst() {
196 udevadm control --reload-rules && udevadm trigger --subsystem-match=bluetooth
197
198 if ! has_version "net-dialup/ppp"; then
199 elog
200 elog "To use dial up networking you must install net-dialup/ppp."
201 fi
202
203 if ! has_version "net-wireless/gnome-bluetooth" && ! has_version "net-wireless/kbluetooth"; then
204 elog
205 elog "For desktop integration you can try net-wireless/gnome-bluetooth"
206 elog "for gnome and net-wireless/kbluetooth for kde."
207 fi
208
209 if ! use old-daemons; then
210 elog
211 elog "Use the old-daemons use flag to get the old daemons like hidd or pand"
212 elog "installed. Please note that 'bluetooth' init script doesn't stop the old"
213 elog "daemons after you update it, so it's recommended to stop all of them using"
214 elog "their own init scripts or manually killing them."
215 fi
216
217 if use consolekit; then
218 elog
219 elog "If you want to use rfcomm as a normal user, you need to add the user"
220 elog "to the uucp group."
221 else
222 elog
223 elog "Since you have the consolekit use flag disabled, you will only be able to run"
224 elog "bluetooth clients as root. If you want to be able to run bluetooth clientes as "
225 elog "a regular user, you need to enable the consolekit use flag for this package or"
226 elog "to add the user to the plugdev group."
227 fi
228
229 if use old-daemons; then
230 elog
231 elog "dund and hidd init scripts were installed because you have the old-daemons"
232 elog "use flag on. They are not started by default via udev so please add them"
233 elog "to the required runlevels using rc-update <runlevel> add <dund/hidd>. If"
234 elog "you need init scripts for the other daemons, please file requests"
235 elog "to https://bugs.gentoo.org."
236 fi
237 }