summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2005-04-26 15:02:48 +0000
committerAlastair Tse <liquidx@gentoo.org>2005-04-26 15:02:48 +0000
commit7a682ad013b7d00f499d294421df36aff5d51fbe (patch)
treec33eca0e5c4da155e80b20d66e21b4b07afdc9a3 /net-wireless/bluez-utils/files
parentmake stable on x86 (diff)
downloadhistorical-7a682ad013b7d00f499d294421df36aff5d51fbe.tar.gz
historical-7a682ad013b7d00f499d294421df36aff5d51fbe.tar.bz2
historical-7a682ad013b7d00f499d294421df36aff5d51fbe.zip
version bump. incorporated fixes for pcmcia (#86492), hid2hci (#75255),
bluepin (#66255) and dbus support. Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-wireless/bluez-utils/files')
-rw-r--r--net-wireless/bluez-utils/files/2.15-bluepin.patch17
-rw-r--r--net-wireless/bluez-utils/files/2.16/bluetooth.rc144
-rw-r--r--net-wireless/bluez-utils/files/digest-bluez-utils-2.161
3 files changed, 162 insertions, 0 deletions
diff --git a/net-wireless/bluez-utils/files/2.15-bluepin.patch b/net-wireless/bluez-utils/files/2.15-bluepin.patch
new file mode 100644
index 000000000000..ae0e0c5c8cf3
--- /dev/null
+++ b/net-wireless/bluez-utils/files/2.15-bluepin.patch
@@ -0,0 +1,17 @@
+--- scripts/bluepin 2004-03-05 23:14:00.000000000 +0000
++++ scripts/bluepin 2005-04-26 14:34:15.143996872 +0100
+@@ -33,11 +33,12 @@
+ # Set X display before initializing GTK
+ set_display()
+
++import gtk
++
++
+ # Some versions of fontconfig will segfault if HOME isn't set.
+ os.environ['HOME'] = ""
+
+-import gtk
+-
+ # Dialog Class
+ DLG_OK = 1
+ DLG_CANCEL = 2
diff --git a/net-wireless/bluez-utils/files/2.16/bluetooth.rc b/net-wireless/bluez-utils/files/2.16/bluetooth.rc
new file mode 100644
index 000000000000..11600fde9db1
--- /dev/null
+++ b/net-wireless/bluez-utils/files/2.16/bluetooth.rc
@@ -0,0 +1,144 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez-utils/files/2.16/bluetooth.rc,v 1.1 2005/04/26 15:02:48 liquidx Exp $
+
+UART_CONF="/etc/bluetooth/uart"
+
+depend() {
+ after coldplug
+}
+
+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 [ "${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 [ "${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 [ "${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
+}
diff --git a/net-wireless/bluez-utils/files/digest-bluez-utils-2.16 b/net-wireless/bluez-utils/files/digest-bluez-utils-2.16
new file mode 100644
index 000000000000..7cbe12d62273
--- /dev/null
+++ b/net-wireless/bluez-utils/files/digest-bluez-utils-2.16
@@ -0,0 +1 @@
+MD5 c1d5364723109a978801d155d1f4da1e bluez-utils-2.16.tar.gz 471966