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