summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-07-27 22:50:45 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-07-27 22:50:45 +0000
commite2c417af02986ac9732ee8cc47033b3fc5b174ec (patch)
tree53fda3fb73608db234fee0d8b3ba258e89469ea4 /net-wireless/bluez-utils
parentupgrading to bluez-3.2, still not luck with broadcom bluetooth devices geting... (diff)
downloadliquidx-e2c417af02986ac9732ee8cc47033b3fc5b174ec.tar.gz
liquidx-e2c417af02986ac9732ee8cc47033b3fc5b174ec.tar.bz2
liquidx-e2c417af02986ac9732ee8cc47033b3fc5b174ec.zip
removing bluez-pin from bluez-utils dependencies because it now has NOTHING to do with bluez-utils. Since 3.0, bluez-utils has gone passkey, and therefore it is blocking on some user friendly dbus compat passkey pin entry.
svn path=/; revision=36
Diffstat (limited to 'net-wireless/bluez-utils')
-rw-r--r--net-wireless/bluez-utils/Manifest20
-rw-r--r--net-wireless/bluez-utils/bluez-utils-3.2.ebuild17
-rw-r--r--net-wireless/bluez-utils/files/bluez-utils-2.25-init.d141
3 files changed, 168 insertions, 10 deletions
diff --git a/net-wireless/bluez-utils/Manifest b/net-wireless/bluez-utils/Manifest
index 8db3d68..f4e907c 100644
--- a/net-wireless/bluez-utils/Manifest
+++ b/net-wireless/bluez-utils/Manifest
@@ -6,11 +6,23 @@ AUX bluez-utils-2.24-udev.script 572 RMD160 f4ba713c996ba96cc6fed889029cf3b77415
MD5 df945b8dc13a93cbbef19d118ef645d7 files/bluez-utils-2.24-udev.script 572
RMD160 f4ba713c996ba96cc6fed889029cf3b7741533c8 files/bluez-utils-2.24-udev.script 572
SHA256 b5064a5e7f6d5de189316e9402e6dcf074e84b4f46b8b0b50c44790028f307a2 files/bluez-utils-2.24-udev.script 572
+AUX bluez-utils-2.25-init.d 3403 RMD160 9a067d8d0e89daa79a9afd401d2f2562d366485d SHA1 6a64d0cfff048769471fe90faeaca58aaabe66c6 SHA256 2203689b54384cbe7134999fc5ba87120090ff3e2acd15f76f142741b15a10eb
+MD5 105cd874b29ee69bd26a0c01d91cb9a9 files/bluez-utils-2.25-init.d 3403
+RMD160 9a067d8d0e89daa79a9afd401d2f2562d366485d files/bluez-utils-2.25-init.d 3403
+SHA256 2203689b54384cbe7134999fc5ba87120090ff3e2acd15f76f142741b15a10eb files/bluez-utils-2.25-init.d 3403
+AUX bluez-utils-3.2-init.d 3412 RMD160 603b5452c80027e4f85d2edf6da1dd8e94891acb SHA1 5bb9c47406cbec139270d14e359b0721991b7036 SHA256 8d67a0062e466e11c6669cce5c700ad527697d3991ed553aa5956dc76b3469d1
+MD5 e822dd6afb73d5fdbb4ecab874b23333 files/bluez-utils-3.2-init.d 3412
+RMD160 603b5452c80027e4f85d2edf6da1dd8e94891acb files/bluez-utils-3.2-init.d 3412
+SHA256 8d67a0062e466e11c6669cce5c700ad527697d3991ed553aa5956dc76b3469d1 files/bluez-utils-3.2-init.d 3412
+AUX bluez-utils-3.2-init.d~ 3403 RMD160 9a067d8d0e89daa79a9afd401d2f2562d366485d SHA1 6a64d0cfff048769471fe90faeaca58aaabe66c6 SHA256 2203689b54384cbe7134999fc5ba87120090ff3e2acd15f76f142741b15a10eb
+MD5 105cd874b29ee69bd26a0c01d91cb9a9 files/bluez-utils-3.2-init.d~ 3403
+RMD160 9a067d8d0e89daa79a9afd401d2f2562d366485d files/bluez-utils-3.2-init.d~ 3403
+SHA256 2203689b54384cbe7134999fc5ba87120090ff3e2acd15f76f142741b15a10eb files/bluez-utils-3.2-init.d~ 3403
DIST bluez-utils-3.2.tar.gz 608848 RMD160 ac6cd61bf2d0b529338bdd8538ffbbad0cb7cb9a SHA1 a2fb018724d70cd9e1a77e76a38101b80ac2e71a SHA256 f9058f9e8d3910cebbb3524d667ec901809c6716a6fd9baf613576217f0a6b58
-EBUILD bluez-utils-3.2.ebuild 2414 RMD160 39b653abd43fac848bf36a631561fe4eb66eedf1 SHA1 69556b16f1c7ab920aa5bfbcaeba269ea105457b SHA256 e8bcd766cb1417f3a1898f0c326f966d3fc6447e0153f0e6d0830605e656dfd9
-MD5 4bacbaec13a782b92514339c752b7e56 bluez-utils-3.2.ebuild 2414
-RMD160 39b653abd43fac848bf36a631561fe4eb66eedf1 bluez-utils-3.2.ebuild 2414
-SHA256 e8bcd766cb1417f3a1898f0c326f966d3fc6447e0153f0e6d0830605e656dfd9 bluez-utils-3.2.ebuild 2414
+EBUILD bluez-utils-3.2.ebuild 2579 RMD160 d29314699f01773b31d75c8bd6b0dcb4420d469f SHA1 2494a0bd6b4b462c417213cd18c0397f3351d9fc SHA256 f66e2e70dfa0eec29d6ddd029420912332864a98b63ac1532ddeab1d641a5f74
+MD5 7016b0827b14ee017680c22686b412e5 bluez-utils-3.2.ebuild 2579
+RMD160 d29314699f01773b31d75c8bd6b0dcb4420d469f bluez-utils-3.2.ebuild 2579
+SHA256 f66e2e70dfa0eec29d6ddd029420912332864a98b63ac1532ddeab1d641a5f74 bluez-utils-3.2.ebuild 2579
MD5 5a31772064e0e402e9f5c0ea5286796f files/digest-bluez-utils-3.2 247
RMD160 3be3fb6f7a1683a551f39179839cfbc5c0d88f51 files/digest-bluez-utils-3.2 247
SHA256 09c1dab2039e290f9100ef4148cd3db360a81588953a4cf46129f7c3033fad46 files/digest-bluez-utils-3.2 247
diff --git a/net-wireless/bluez-utils/bluez-utils-3.2.ebuild b/net-wireless/bluez-utils/bluez-utils-3.2.ebuild
index d8b5c1c..1fa7219 100644
--- a/net-wireless/bluez-utils/bluez-utils-3.2.ebuild
+++ b/net-wireless/bluez-utils/bluez-utils-3.2.ebuild
@@ -16,7 +16,6 @@ IUSE="alsa cups fuse udev"
RDEPEND="!net-wireless/bluez-pan
>=net-wireless/bluez-libs-3.2
- >=net-wireless/bluez-pin-0.30
>=sys-apps/dbus-0.31
dev-libs/libusb
>=dev-libs/openobex-1.2
@@ -30,6 +29,12 @@ DEPEND="sys-devel/bison
>=sys-apps/sed-4
${RDEPEND}"
+pkg_setup() {
+ ewarn "This verison of Bluez does not include a GTK pin entry, but"
+ ewarn "instead you have to use the temporary passkey-agent, eg:"
+ ewarn "/usr/bin/passkey-agent --default <pin number>"
+}
+
src_unpack() {
unpack ${A}
@@ -55,7 +60,6 @@ src_compile() {
$(use_enable cups) \
$(use_enable fuse) \
--enable-dbus \
- --enable-bccmd \
--enable-avctrl \
--enable-bcm203x \
--enable-dfutool \
@@ -74,11 +78,11 @@ src_install() {
dodoc AUTHORS ChangeLog README
# optional bluetooth utils
- #cd ${S}/tools
- #dosbin bccmd hcisecfilter ppporc pskey
+ dosbin tools/hcisecfilter tools/ppporc
+ dobin hcid/passkey-agent
- #newinitd ${FILESDIR}/${PN}-2.25-init.d bluetooth
- #newconfd ${S}/scripts/bluetooth.default bluetooth
+ newinitd ${FILESDIR}/${PN}-2.25-init.d bluetooth
+ newconfd ${S}/scripts/bluetooth.default bluetooth
# bug #84431
if use udev; then
@@ -88,6 +92,7 @@ src_install() {
exeinto /lib/udev/
newexe ${FILESDIR}/${PN}-2.24-udev.script bluetooth.sh
fi
+
}
pkg_postinst() {
diff --git a/net-wireless/bluez-utils/files/bluez-utils-2.25-init.d b/net-wireless/bluez-utils/files/bluez-utils-2.25-init.d
new file mode 100644
index 0000000..30105f0
--- /dev/null
+++ b/net-wireless/bluez-utils/files/bluez-utils-2.25-init.d
@@ -0,0 +1,141 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-utils/files/bluez-utils-2.25-init.d,v 1.1 2006/02/07 14:04:40 liquidx Exp $
+
+UART_CONF="/etc/bluetooth/uart"
+
+depend() {
+ after coldplug
+ after dbus
+}
+
+start_uarts() {
+ [ -f /usr/sbin/hciattach -a -f ${UART_CONF} ] || return
+ grep -v '^#' ${UART_CONF} | while read i; do
+ /usr/sbin/hciattach $i
+ done
+}
+
+stop_uarts() {
+ killall hciattach > /dev/null 2>&1
+}
+
+start() {
+ ebegin "Starting Bluetooth"
+
+ if [ "${HID2HCI_ENABLE}" = "true" -a -x /usr/sbin/hid2hci ]; then
+ ebegin " Running hid2hci"
+ /usr/sbin/hid2hci -0 -q #be quiet
+ /bin/sleep 1 # delay for hid's to be detected by hotplug
+ eend $?
+ fi
+
+ if [ "${HCID_ENABLE}" = "true" -a -x /usr/sbin/hcid ]; then
+ if [ -f "${HCID_CONFIG}" ]; then
+ ebegin " Starting hcid"
+ start-stop-daemon --start --quiet \
+ --exec /usr/sbin/hcid -- -f $HCID_CONFIG
+ eend $?
+ else
+ ewarn "Not enabling hcid because HCID_CONFIG is missing."
+ fi
+ fi
+
+ if [ "${SDPD_ENABLE}" = "true" -a -x /usr/sbin/sdpd ]; then
+ ebegin " Starting sdpd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/sdpd
+ eend $?
+ fi
+
+ if [ "${HIDD_ENABLE}" = "true" -a -x /usr/bin/hidd ]; then
+ ebegin " Starting hidd"
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/hidd -- ${HIDD_OPTIONS} --server
+ eend $?
+ fi
+
+ if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then
+ if [ -f "${RFCOMM_CONFIG}" ]; then
+ ebegin " Starting rfcomm"
+ /usr/bin/rfcomm -f ${RFCOMM_CONFIG} bind all
+ eend $?
+ else
+ ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists"
+ fi
+ fi
+
+ if [ "${DUND_ENABLE}" = "true" -a -x /usr/bin/dund ]; then
+ if [ -n "${DUND_OPTIONS}" ]; then
+ ebegin " Starting dund"
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/dund -- ${DUND_OPTIONS}
+ eend $?
+ else
+ ewarn "Not starting dund because DUND_OPTIONS not defined."
+ fi
+ fi
+
+ if [ "${PAND_ENABLE}" = "true" -a -x /usr/bin/pand ]; then
+ if [ -n "${PAND_OPTIONS}" ]; then
+ ebegin " Starting pand"
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/pand -- ${PAND_OPTIONS}
+ eend $?
+ else
+ ewarn "Not starting pand because PAND_OPTIONS not defined."
+ fi
+ fi
+
+ start_uarts
+ eend 0
+}
+
+stop() {
+ ebegin "Shutting down Bluetooth"
+
+ if [ "${PAND_ENABLE}" = "true" -a -x /usr/bin/pand ]; then
+ ebegin " Stopping pand"
+ start-stop-daemon --stop --quiet --exec /usr/bin/pand
+ eend $?
+ fi
+
+ if [ "${DUND_ENABLE}" = "true" -a -x /usr/bin/dund ]; then
+ ebegin " Stopping dund"
+ start-stop-daemon --stop --quiet --exec /usr/bin/dund
+ eend $?
+ fi
+
+ if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then
+ ebegin " Stopping rfcomm"
+ /usr/bin/rfcomm release all
+ eend $?
+ fi
+
+ if [ "${HIDD_ENABLE}" = "true" -a -x /usr/bin/hidd ]; then
+ ebegin " Stopping hidd"
+ start-stop-daemon --stop --quiet --exec /usr/bin/hidd
+ eend $?
+ fi
+
+
+ if [ "${SDPD_ENABLE}" = "true" -a -x /usr/sbin/sdpd ]; then
+ ebegin " Stopping sdpd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/sdpd
+ eend $?
+ fi
+
+ if [ "${HCID_ENABLE}" = "true" -a -x /usr/sbin/hcid ]; then
+ ebegin " Stopping hcid"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/hcid
+ eend $?
+ fi
+
+ stop_uarts
+ eend 0
+}
+
+restart() {
+ svc_stop
+ svc_start
+}