Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/bluez: ChangeLog bluez-4.101-r4.ebuild
Date: Sun, 02 Dec 2012 09:42:28
Message-Id: 20121202094212.770D22171D@flycatcher.gentoo.org
1 ssuominen 12/12/02 09:42:12
2
3 Modified: ChangeLog
4 Added: bluez-4.101-r4.ebuild
5 Log:
6 Use oui.txt from sys-apps/hwids instead of local copy. Relax USE="consolekit" dependencies for logind in sys-apps/systemd.
7
8 (Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.148 net-wireless/bluez/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.148&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.148&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.147&r2=1.148
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
20 retrieving revision 1.147
21 retrieving revision 1.148
22 diff -u -r1.147 -r1.148
23 --- ChangeLog 18 Nov 2012 12:08:13 -0000 1.147
24 +++ ChangeLog 2 Dec 2012 09:42:12 -0000 1.148
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-wireless/bluez
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.147 2012/11/18 12:08:13 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.148 2012/12/02 09:42:12 ssuominen Exp $
30 +
31 +*bluez-4.101-r4 (02 Dec 2012)
32 +
33 + 02 Dec 2012; Samuli Suominen <ssuominen@g.o> +bluez-4.101-r4.ebuild:
34 + Use oui.txt from sys-apps/hwids instead of local copy. Relax USE="consolekit"
35 + dependencies for logind in sys-apps/systemd.
36
37 18 Nov 2012; Samuli Suominen <ssuominen@g.o> metadata.xml:
38 Remove pda@ because this isn't exactly related to PDAs.
39
40
41
42 1.1 net-wireless/bluez/bluez-4.101-r4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.101-r4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.101-r4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bluez-4.101-r4.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.101-r4.ebuild,v 1.1 2012/12/02 09:42:12 ssuominen Exp $
52
53 EAPI=5
54 PYTHON_DEPEND="test-programs? 2:2.6"
55 inherit eutils multilib python systemd user
56
57 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
58 HOMEPAGE="http://www.bluez.org/"
59 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz"
60
61 LICENSE="GPL-2 LGPL-2.1"
62 SLOT="0"
63 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
64 IUSE="alsa +consolekit cups debug gstreamer pcmcia readline selinux test-programs usb"
65
66 CDEPEND="
67 >=dev-libs/glib-2.28
68 >=sys-apps/dbus-1.6
69 >=sys-apps/hwids-20121202.2
70 >=virtual/udev-171
71 alsa? (
72 media-libs/alsa-lib[alsa_pcm_plugins_extplug(+),alsa_pcm_plugins_ioplug(+)]
73 media-libs/libsndfile
74 )
75 cups? ( net-print/cups )
76 gstreamer? (
77 >=media-libs/gstreamer-0.10:0.10
78 >=media-libs/gst-plugins-base-0.10:0.10
79 )
80 readline? ( sys-libs/readline )
81 selinux? ( sec-policy/selinux-bluetooth )
82 usb? ( virtual/libusb:0 )
83 "
84 DEPEND="${CDEPEND}
85 sys-devel/flex
86 virtual/pkgconfig
87 test-programs? ( >=dev-libs/check-0.9.6 )
88 "
89 RDEPEND="${CDEPEND}
90 consolekit? ( || ( sys-auth/consolekit sys-apps/systemd ) )
91 test-programs? (
92 >=dev-python/dbus-python-1
93 dev-python/pygobject:2
94 )
95 "
96
97 DOCS=( AUTHORS ChangeLog README )
98
99 pkg_setup() {
100 use consolekit || enewgroup plugdev
101 use test-programs && python_pkg_setup
102 }
103
104 src_prepare() {
105 epatch "${FILESDIR}"/${P}-network{1,2,3,4}.patch
106
107 # Use static group "plugdev" if there is no ConsoleKit (or systemd logind)
108 use consolekit || epatch "${FILESDIR}"/bluez-plugdev.patch
109
110 if use cups; then
111 sed -i \
112 -e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \
113 Makefile.{in,tools} || die
114 fi
115 }
116
117 src_configure() {
118 export ac_cv_header_readline_readline_h=$(usex readline)
119
120 # Missing flags: --enable-{sap,hidd,pand,dund,dbusoob,gatt}
121 # Keep this in ./configure --help order!
122 econf \
123 --localstatedir=/var \
124 --enable-network \
125 --enable-serial \
126 --enable-input \
127 --enable-audio \
128 --enable-service \
129 --enable-health \
130 --enable-pnat \
131 $(use_enable gstreamer) \
132 $(use_enable alsa) \
133 $(use_enable usb) \
134 --enable-tools \
135 --enable-bccmd \
136 $(use_enable pcmcia) \
137 --enable-hid2hci \
138 --enable-dfutool \
139 $(use_enable cups) \
140 $(use_enable test-programs test) \
141 --enable-datafiles \
142 $(use_enable debug) \
143 --enable-maemo6 \
144 --enable-wiimote \
145 --disable-hal \
146 --with-ouifile=/usr/share/misc/oui.txt \
147 --with-systemdunitdir="$(systemd_get_unitdir)"
148 }
149
150 src_install() {
151 default
152
153 if use test-programs; then
154 pushd test >/dev/null
155 dobin simple-agent simple-service monitor-bluetooth
156 newbin list-devices list-bluetooth-devices
157 rm test-textfile.{c,o} || die #356529
158 local b
159 for b in hsmicro hsplay test-*; do
160 newbin "${b}" bluez-"${b}"
161 done
162 insinto /usr/share/doc/${PF}/test-services
163 doins service-*
164 python_convert_shebangs -r 2 "${ED}"
165 popd >/dev/null
166 fi
167
168 insinto /etc/bluetooth
169 local d
170 for d in input audio network serial; do
171 doins ${d}/${d}.conf
172 done
173
174 newinitd "${FILESDIR}"/bluetooth-init.d-r2 bluetooth
175 newinitd "${FILESDIR}"/rfcomm-init.d rfcomm
176 newconfd "${FILESDIR}"/rfcomm-conf.d rfcomm
177
178 prune_libtool_files --all
179 }
180
181 pkg_postinst() {
182 udevadm control --reload-rules
183
184 has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp."
185
186 if use consolekit; then
187 elog "If you want to use rfcomm as a normal user, you need to add the user"
188 elog "to the uucp group."
189 else
190 elog "Since you have the consolekit use flag disabled, you will only be able to run"
191 elog "bluetooth clients as root. If you want to be able to run bluetooth clientes as "
192 elog "a regular user, you need to enable the consolekit use flag for this package or"
193 elog "to add the user to the plugdev group."
194 fi
195
196 if [ "$(rc-config list default | grep bluetooth)" = "" ]; then
197 elog "You will need to add bluetooth service to default runlevel"
198 elog "for getting your devices detected. For that please run:"
199 elog "'rc-update add bluetooth default'"
200 fi
201 }