Gentoo Archives: gentoo-commits

From: "Maxim Koltsov (maksbotan)" <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/bluez: bluez-4.96-r2.ebuild ChangeLog bluez-4.96-r1.ebuild
Date: Sat, 24 Dec 2011 10:26:17
Message-Id: 20111224102608.2E4732004B@flycatcher.gentoo.org
1 maksbotan 11/12/24 10:26:08
2
3 Modified: ChangeLog
4 Added: bluez-4.96-r2.ebuild
5 Removed: bluez-4.96-r1.ebuild
6 Log:
7 Fix python shebangs to python2, bug 383775. Thanks to Ian Delaney for patch
8
9 (Portage version: 2.1.10.41/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.108 net-wireless/bluez/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.108&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.108&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.107&r2=1.108
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
21 retrieving revision 1.107
22 retrieving revision 1.108
23 diff -u -r1.107 -r1.108
24 --- ChangeLog 17 Dec 2011 15:55:31 -0000 1.107
25 +++ ChangeLog 24 Dec 2011 10:26:08 -0000 1.108
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.107 2011/12/17 15:55:31 mgorny Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.108 2011/12/24 10:26:08 maksbotan Exp $
31 +
32 +*bluez-4.96-r2 (24 Dec 2011)
33 +
34 + 24 Dec 2011; Maxim Koltsov <maksbotan@g.o> -bluez-4.96-r1.ebuild,
35 + +bluez-4.96-r2.ebuild:
36 + Fix python shebangs to python2, bug 383775. Thanks to Ian Delaney for patch
37
38 17 Dec 2011; Michał Górny <mgorny@g.o> bluez-4.96-r1.ebuild:
39 The consolekit flag can be satisfied by new enough systemd as well.
40
41
42
43 1.1 net-wireless/bluez/bluez-4.96-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.96-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.96-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: bluez-4.96-r2.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.96-r2.ebuild,v 1.1 2011/12/24 10:26:08 maksbotan Exp $
53
54 EAPI="4"
55
56 PYTHON_DEPEND="2"
57
58 inherit multilib eutils systemd python
59
60 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
61 HOMEPAGE="http://www.bluez.org/"
62
63 # Because of oui.txt changing from time to time without noticement, we need to supply it
64 # ourselves instead of using http://standards.ieee.org/regauth/oui/oui.txt directly.
65 # See bugs #345263 and #349473 for reference.
66 OUIDATE="20110801"
67 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.gz
68 http://dev.gentoo.org/~pacho/bluez/oui-${OUIDATE}.txt.xz"
69 LICENSE="GPL-2 LGPL-2.1"
70 SLOT="0"
71 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
72
73 IUSE="alsa caps +consolekit cups debug gstreamer maemo6 health old-daemons pcmcia pnat test-programs usb"
74
75 CDEPEND="
76 >=dev-libs/glib-2.14:2
77 sys-apps/dbus
78 >=sys-fs/udev-169
79 alsa? (
80 media-libs/alsa-lib[alsa_pcm_plugins_extplug,alsa_pcm_plugins_ioplug]
81 media-libs/libsndfile
82 )
83 caps? ( >=sys-libs/libcap-ng-0.6.2 )
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? ( dev-libs/libusb:1 )
90 "
91 DEPEND="${CDEPEND}
92 >=dev-util/pkgconfig-0.20
93 sys-devel/flex
94 "
95 RDEPEND="${CDEPEND}
96 !net-wireless/bluez-libs
97 !net-wireless/bluez-utils
98 consolekit? (
99 || ( sys-auth/consolekit
100 >=sys-apps/systemd-37 )
101 )
102 test-programs? (
103 dev-python/dbus-python
104 dev-python/pygobject:2
105 )
106 "
107
108 DOCS=( AUTHORS ChangeLog README )
109
110 pkg_setup() {
111 if ! use consolekit; then
112 enewgroup plugdev
113 fi
114 if use test-programs; then
115 python_pkg_setup
116 fi
117 }
118
119 src_prepare() {
120 if ! use consolekit; then
121 # No consolekit for at_console etc, so we grant plugdev the rights
122 epatch "${FILESDIR}/bluez-plugdev.patch"
123 fi
124
125 if use cups; then
126 sed -i \
127 -e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \
128 Makefile.tools Makefile.in || die
129 fi
130 }
131
132 src_configure() {
133 econf \
134 --enable-audio \
135 --enable-bccmd \
136 --enable-datafiles \
137 --enable-dfutool \
138 --enable-hid2hci \
139 --enable-input \
140 --enable-network \
141 --enable-serial \
142 --enable-service \
143 --enable-tools \
144 --disable-hal \
145 --localstatedir=/var \
146 --with-systemdunitdir="$(systemd_get_unitdir)" \
147 $(use_enable alsa) \
148 $(use_enable caps capng) \
149 $(use_enable cups) \
150 $(use_enable debug) \
151 $(use_enable gstreamer) \
152 $(use_enable health) \
153 $(use_enable maemo6) \
154 $(use_enable old-daemons dund) \
155 $(use_enable old-daemons hidd) \
156 $(use_enable old-daemons pand) \
157 $(use_enable pcmcia) \
158 $(use_enable pnat) \
159 $(use_enable test-programs test) \
160 $(use_enable usb)
161 }
162
163 src_install() {
164 default
165
166 if use test-programs ; then
167 cd "${S}/test"
168 dobin simple-agent simple-service monitor-bluetooth
169 newbin list-devices list-bluetooth-devices
170 rm test-textfile.{c,o} || die # bug #356529
171 for b in apitest hsmicro hsplay test-* ; do
172 newbin "${b}" "bluez-${b}"
173 done
174 insinto /usr/share/doc/${PF}/test-services
175 doins service-*
176
177 python_convert_shebangs -r 2 "${ED}"
178 cd "${S}"
179 fi
180
181 if use old-daemons; then
182 newconfd "${FILESDIR}/conf.d-hidd" hidd
183 newinitd "${FILESDIR}/init.d-hidd" hidd
184 newconfd "${FILESDIR}/conf.d-dund" dund
185 newinitd "${FILESDIR}/init.d-dund" dund
186 fi
187
188 insinto /etc/bluetooth
189 doins \
190 input/input.conf \
191 audio/audio.conf \
192 network/network.conf \
193 serial/serial.conf
194
195 insinto /lib/udev/rules.d/
196 newins "${FILESDIR}/${PN}-4.18-udev.rules" 70-bluetooth.rules
197 exeinto /lib/udev/
198 newexe "${FILESDIR}/${PN}-4.18-udev.script" bluetooth.sh
199
200 newinitd "${FILESDIR}/bluetooth-init.d" bluetooth
201 newconfd "${FILESDIR}/bluetooth-conf.d" bluetooth
202
203 # Install oui.txt as requested in bug #283791 and approved by upstream
204 insinto /var/lib/misc
205 newins "${WORKDIR}/oui-${OUIDATE}.txt" oui.txt
206
207 find "${ED}" -name "*.la" -delete
208 }
209
210 pkg_postinst() {
211 udevadm control --reload-rules && udevadm trigger --subsystem-match=bluetooth
212
213 if ! has_version "net-dialup/ppp"; then
214 elog "To use dial up networking you must install net-dialup/ppp."
215 fi
216
217 if use old-daemons; then
218 elog "dund and hidd init scripts were installed because you have the old-daemons"
219 elog "use flag on. They are not started by default via udev so please add them"
220 elog "to the required runlevels using rc-update <runlevel> add <dund/hidd>. If"
221 elog "you need init scripts for the other daemons, please file requests"
222 elog "to https://bugs.gentoo.org."
223 fi
224
225 if use consolekit; then
226 elog "If you want to use rfcomm as a normal user, you need to add the user"
227 elog "to the uucp group."
228 else
229 elog "Since you have the consolekit use flag disabled, you will only be able to run"
230 elog "bluetooth clients as root. If you want to be able to run bluetooth clientes as "
231 elog "a regular user, you need to enable the consolekit use flag for this package or"
232 elog "to add the user to the plugdev group."
233 fi
234 }