Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/bluez: bluez-4.39-r1.ebuild ChangeLog
Date: Sat, 05 Sep 2009 11:59:46
Message-Id: E1MjtvV-0007qa-TC@stork.gentoo.org
1 patrick 09/09/05 11:59:29
2
3 Modified: ChangeLog
4 Added: bluez-4.39-r1.ebuild
5 Log:
6 Adding plugdev policy. Fixes #283744. Thanks to Fabio Erculiani.
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.12 net-wireless/bluez/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.12&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.12&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.11&r2=1.12
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
19 retrieving revision 1.11
20 retrieving revision 1.12
21 diff -u -r1.11 -r1.12
22 --- ChangeLog 11 May 2009 04:22:25 -0000 1.11
23 +++ ChangeLog 5 Sep 2009 11:59:29 -0000 1.12
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-wireless/bluez
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.11 2009/05/11 04:22:25 dev-zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.12 2009/09/05 11:59:29 patrick Exp $
29 +
30 +*bluez-4.39-r1 (05 Sep 2009)
31 +
32 + 05 Sep 2009; Patrick Lauer <patrick@g.o> +bluez-4.39-r1.ebuild,
33 + +files/bluez-plugdev.patch:
34 + Adding plugdev policy. Fixes #283744. Thanks to Fabio Erculiani.
35
36 *bluez-4.39 (11 May 2009)
37
38
39
40
41 1.1 net-wireless/bluez/bluez-4.39-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/bluez-4.39-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/bluez-4.39-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: bluez-4.39-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.39-r1.ebuild,v 1.1 2009/09/05 11:59:29 patrick Exp $
51
52 EAPI="2"
53
54 inherit autotools multilib eutils
55
56 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
57 HOMEPAGE="http://bluez.sourceforge.net/"
58 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.gz"
59 LICENSE="GPL-2 LGPL-2.1"
60 SLOT="0"
61 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86"
62
63 IUSE="alsa cups debug doc gstreamer old-daemons test-programs usb"
64
65 CDEPEND="alsa? ( media-libs/alsa-lib )
66 gstreamer? (
67 >=media-libs/gstreamer-0.10
68 >=media-libs/gst-plugins-base-0.10 )
69 usb? ( dev-libs/libusb )
70 cups? ( net-print/cups )
71 sys-fs/udev
72 dev-libs/glib
73 sys-apps/dbus
74 media-libs/libsndfile
75 >=dev-libs/libnl-1.1
76 !net-wireless/bluez-libs
77 !net-wireless/bluez-utils"
78 DEPEND="sys-devel/flex
79 >=dev-util/pkgconfig-0.20
80 doc? ( dev-util/gtk-doc )
81 ${CDEPEND}"
82 RDEPEND="${CDEPEND}
83 sys-auth/pambase[consolekit]"
84
85 src_prepare() {
86 epatch \
87 "${FILESDIR}/4.31-as_needed.patch" \
88 "${FILESDIR}/4.34-conditional_libsbc.patch"
89
90 epatch "${FILESDIR}/bluez-plugdev.patch"
91 if use cups; then
92 epatch "${FILESDIR}/4.18/cups-location.patch"
93 fi
94
95 # needed for both patches
96 eautoreconf
97 }
98
99 src_configure() {
100 # the order is the same as ./configure --help
101
102 # we don't need the other daemons either with the new
103 # service architechture
104
105 econf \
106 $(use_enable doc gtk-doc) \
107 --enable-network \
108 --enable-serial \
109 --enable-input \
110 --enable-audio \
111 --enable-service \
112 $(use_enable gstreamer) \
113 $(use_enable alsa) \
114 $(use_enable usb) \
115 --enable-netlink \
116 --enable-tools \
117 --enable-bccmd \
118 --enable-hid2hci \
119 --enable-dfutool \
120 $(use_enable old-daemons hidd) \
121 $(use_enable old-daemons pand) \
122 $(use_enable old-daemons dund) \
123 $(use_enable cups) \
124 $(use_enable test-programs test) \
125 --enable-manpages \
126 --enable-configfiles \
127 --disable-initscripts \
128 --disable-pcmciarules \
129 $(use_enable debug) \
130 --localstatedir=/var
131 }
132
133 src_install() {
134 emake DESTDIR="${D}" install || die "make install failed"
135
136 dodoc AUTHORS ChangeLog README || die
137
138 if use test-programs ; then
139 cd "${S}/test"
140 dobin simple-agent simple-service monitor-bluetooth
141 newbin list-devices list-bluetooth-devices
142 for b in apitest hsmicro hsplay test-* ; do
143 newbin "${b}" "bluez-${b}"
144 done
145 insinto /usr/share/doc/${PF}/test-services
146 doins service-*
147
148 cd "${S}"
149 fi
150
151 newinitd "${FILESDIR}/4.18/bluetooth-init.d" bluetooth || die
152 newconfd "${FILESDIR}/4.18/bluetooth-conf.d" bluetooth || die
153
154 if use old-daemons; then
155 newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die
156 newinitd "${FILESDIR}/4.18/init.d-hidd" hidd || die
157 fi
158
159 # bug #84431
160 insinto /etc/udev/rules.d/
161 newins "${FILESDIR}/${PN}-4.18-udev.rules" 70-bluetooth.rules || die
162 newins "${S}/scripts/bluetooth.rules" 70-bluetooth-pcmcia.rules || die
163
164 exeinto /$(get_libdir)/udev/
165 newexe "${FILESDIR}/${PN}-4.18-udev.script" bluetooth.sh || die
166 doexe "${S}/scripts/bluetooth_serial" || die
167
168 insinto /etc/bluetooth
169 doins \
170 input/input.conf \
171 audio/audio.conf \
172 network/network.conf
173 }
174
175 pkg_postinst() {
176 udevadm control --reload_rules && udevadm trigger
177
178 elog
179 elog "To use dial up networking you must install net-dialup/ppp."
180 elog ""
181 elog "Since 3.0 bluez has changed the passkey handling to use a dbus based"
182 elog "API so please remember to update your /etc/bluetooth/hcid.conf."
183 elog "For a password agent, there is for example net-wireless/bluez-gnome"
184 elog "for gnome and net-wireless/kdebluetooth for kde."
185 elog ""
186 elog "Since 3.10.1 we don't install the old style daemons any more but rely"
187 elog "on the new service architechture:"
188 elog " http://wiki.bluez.org/wiki/Services"
189 elog ""
190 elog "3.15 adds support for the audio service. See"
191 elog "http://wiki.bluez.org/wiki/HOWTO/AudioDevices for configuration help."
192 elog ""
193 elog "Use the old-daemons use flag to get the old daemons like hidd"
194 elog "installed. Please note that the init script doesn't stop the old"
195 elog "daemons after you update it so it's recommended to run:"
196 elog " /etc/init.d/bluetooth stop"
197 elog "before updating your configuration files or you can manually kill"
198 elog "the extra daemons you previously enabled in /etc/conf.d/bluetooth."
199 elog ""
200 elog "If you want to use rfcomm as a normal user, you need to add the user"
201 elog "to the uucp group."
202 elog ""
203 if use old-daemons; then
204 elog "The hidd init script was installed because you have the old-daemons"
205 elog "use flag on. It is not started by default via udev so please add it"
206 elog "to the required runleves using rc-update <runlevel> add hidd. If"
207 elog "you need init scripts for the other daemons, please file requests"
208 elog "to https://bugs.gentoo.org."
209 else
210 elog "The bluetooth service should be started automatically by udev"
211 elog "when the required hardware is inserted next time."
212 fi
213 elog
214 ewarn "On first install you need to run /etc/init.d/dbus reload or hcid"
215 ewarn "will fail to start."
216 }