Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/bluez: ChangeLog bluez-4.31.ebuild
Date: Fri, 27 Feb 2009 23:42:14
Message-Id: E1LdCLM-00040T-60@stork.gentoo.org
1 dev-zero 09/02/27 23:42:12
2
3 Modified: ChangeLog
4 Added: bluez-4.31.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.6.7/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 net-wireless/bluez/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.3&r2=1.4
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ChangeLog 6 Feb 2009 15:44:57 -0000 1.3
23 +++ ChangeLog 27 Feb 2009 23:42:12 -0000 1.4
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.3 2009/02/06 15:44:57 dev-zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.4 2009/02/27 23:42:12 dev-zero Exp $
29 +
30 +*bluez-4.31 (27 Feb 2009)
31 +
32 + 27 Feb 2009; Tiziano Müller <dev-zero@g.o>
33 + +files/4.31-as_needed.patch, +bluez-4.31.ebuild:
34 + Version bump.
35
36 *bluez-4.28 (06 Feb 2009)
37
38
39
40
41 1.1 net-wireless/bluez/bluez-4.31.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/bluez-4.31.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/bluez/bluez-4.31.ebuild?rev=1.1&content-type=text/plain
45
46 Index: bluez-4.31.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.31.ebuild,v 1.1 2009/02/27 23:42:12 dev-zero 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 RDEPEND="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
80 doc? ( dev-util/gtk-doc )
81 ${RDEPEND}"
82
83 src_prepare() {
84 epatch "${FILESDIR}/${PV}-as_needed.patch"
85
86 if use cups; then
87 epatch "${FILESDIR}/4.18/cups-location.patch"
88 fi
89
90 # needed for both patches
91 eautoreconf
92 }
93
94 src_configure() {
95 # the order is the same as ./configure --help
96
97 # we don't need the other daemons either with the new
98 # service architechture
99
100 econf \
101 $(use_enable doc gtk-doc) \
102 --enable-network \
103 --enable-serial \
104 --enable-input \
105 --enable-audio \
106 --enable-service \
107 $(use_enable gstreamer) \
108 $(use_enable alsa) \
109 $(use_enable usb) \
110 --enable-netlink \
111 --enable-tools \
112 --enable-bccmd \
113 --enable-hid2hci \
114 --enable-dfutool \
115 $(use_enable old-daemons hidd) \
116 $(use_enable old-daemons pand) \
117 $(use_enable old-daemons dund) \
118 $(use_enable cups) \
119 $(use_enable test-programs test) \
120 --enable-manpages \
121 --enable-configfiles \
122 --disable-initscripts \
123 --disable-pcmciarules \
124 $(use_enable debug) \
125 --localstatedir=/var
126 }
127
128 src_install() {
129 emake DESTDIR="${D}" install || die "make install failed"
130
131 dodoc AUTHORS ChangeLog README || die
132
133 if use test-programs ; then
134 cd "${S}/test"
135 dobin simple-agent simple-service monitor-bluetooth
136 newbin list-devices list-bluetooth-devices
137 for b in apitest hsmicro hsplay test-* ; do
138 newbin "${b}" "bluez-${b}"
139 done
140 insinto /usr/share/doc/${PF}/test-services
141 doins service-*
142
143 cd "${S}"
144 fi
145
146 newinitd "${FILESDIR}/4.18/bluetooth-init.d" bluetooth || die
147 newconfd "${FILESDIR}/4.18/bluetooth-conf.d" bluetooth || die
148
149 if use old-daemons; then
150 newconfd "${FILESDIR}/4.18/conf.d-hidd" hidd || die
151 newinitd "${FILESDIR}/4.18/init.d-hidd" hidd || die
152 fi
153
154 # bug #84431
155 insinto /etc/udev/rules.d/
156 newins "${FILESDIR}/${PN}-4.18-udev.rules" 70-bluetooth.rules || die
157 newins "${S}/scripts/bluetooth.rules" 70-bluetooth-pcmcia.rules || die
158
159 exeinto /$(get_libdir)/udev/
160 newexe "${FILESDIR}/${PN}-4.18-udev.script" bluetooth.sh || die
161 doexe "${S}/scripts/bluetooth_serial" || die
162
163 insinto /etc/bluetooth
164 doins \
165 input/input.conf \
166 audio/audio.conf \
167 network/network.conf
168 }
169
170 pkg_postinst() {
171 udevadm control --reload_rules && udevadm trigger
172
173 elog
174 elog "To use dial up networking you must install net-dialup/ppp."
175 elog ""
176 elog "Since 3.0 bluez has changed the passkey handling to use a dbus based"
177 elog "API so please remember to update your /etc/bluetooth/hcid.conf."
178 elog "For a password agent, there is for example net-wireless/bluez-gnome"
179 elog "for gnome and net-wireless/kdebluetooth for kde."
180 elog ""
181 elog "Since 3.10.1 we don't install the old style daemons any more but rely"
182 elog "on the new service architechture:"
183 elog " http://wiki.bluez.org/wiki/Services"
184 elog ""
185 elog "3.15 adds support for the audio service. See"
186 elog "http://wiki.bluez.org/wiki/HOWTO/AudioDevices for configuration help."
187 elog ""
188 elog "Use the old-daemons use flag to get the old daemons like hidd"
189 elog "installed. Please note that the init script doesn't stop the old"
190 elog "daemons after you update it so it's recommended to run:"
191 elog " /etc/init.d/bluetooth stop"
192 elog "before updating your configuration files or you can manually kill"
193 elog "the extra daemons you previously enabled in /etc/conf.d/bluetooth."
194 elog ""
195 elog "If you want to use rfcomm as a normal user, you need to add the user"
196 elog "to the uucp group."
197 elog ""
198 if use old-daemons; then
199 elog "The hidd init script was installed because you have the old-daemons"
200 elog "use flag on. It is not started by default via udev so please add it"
201 elog "to the required runleves using rc-update <runlevel> add hidd. If"
202 elog "you need init scripts for the other daemons, please file requests"
203 elog "to https://bugs.gentoo.org."
204 else
205 elog "The bluetooth service should be started automatically by udev"
206 elog "when the required hardware is inserted next time."
207 fi
208 elog
209 ewarn "On first install you need to run /etc/init.d/dbus reload or hcid"
210 ewarn "will fail to start."
211 }