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