- Update to 4.5

- Fix initscript to actually start bluetoothd by hand
- Add chkconfig information to the initscript
This commit is contained in:
Bastien Nocera 2008-09-12 09:34:05 +00:00
parent 1e336b23d9
commit bf94f3eced
6 changed files with 21 additions and 44 deletions

View File

@ -1 +1 @@
bluez-4.4.tar.gz bluez-4.5.tar.gz

View File

@ -1,5 +1,9 @@
#!/bin/sh #!/bin/sh
#
# chkconfig: 345 50 83
# description: Bluetooth services for service discovery, authentication, \
# Human Interface Devices, etc.
#
### BEGIN INIT INFO ### BEGIN INIT INFO
# Required-Start: $syslog messagebus # Required-Start: $syslog messagebus
# Short-Description: Bluetooth services # Short-Description: Bluetooth services
@ -15,6 +19,9 @@
start() start()
{ {
echo -n $"Starting Bluetooth services:" echo -n $"Starting Bluetooth services:"
daemon /usr/sbin/bluetoothd
RETVAL=$?
[ $RETVAL = 0 ] && touch /var/lock/subsys/bluetoothd
[ "$HID2HCI_ENABLE" = "true" ] && hid2hci --tohci > /dev/null 2>&1 || : [ "$HID2HCI_ENABLE" = "true" ] && hid2hci --tohci > /dev/null 2>&1 || :
touch /var/lock/subsys/bluetooth touch /var/lock/subsys/bluetooth
echo "" echo ""
@ -25,7 +32,10 @@ stop()
{ {
echo -n "Stopping Bluetooth services:" echo -n "Stopping Bluetooth services:"
[ "$HID2HCI_UNDO" = "true" ] && hid2hci --tohid > /dev/null 2>&1 || : [ "$HID2HCI_UNDO" = "true" ] && hid2hci --tohid > /dev/null 2>&1 || :
killproc bluetoothd
RETVAL=$?
rm -f /var/lock/subsys/bluetooth rm -f /var/lock/subsys/bluetooth
rm -f /var/lock/subsys/bluetoothd
echo "" echo ""
return $RETVAL return $RETVAL
} }
@ -45,7 +55,7 @@ case "$1" in
[ -e /var/lock/subsys/bluetooth ] && (stop; start) [ -e /var/lock/subsys/bluetooth ] && (stop; start)
;; ;;
status) status)
status hcid status bluetoothd
RETVAL=$? RETVAL=$?
;; ;;
*) *)

View File

@ -1,35 +0,0 @@
commit af3684270a0fe4a753e5199dfa58acd7f9b2038c
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Wed Sep 10 00:19:00 2008 +0200
The input connect method takes no parameters
diff --git a/input/device.c b/input/device.c
index 0283918..d079831 100644
--- a/input/device.c
+++ b/input/device.c
@@ -912,14 +912,9 @@ static DBusMessage *device_connect(DBusConnection *conn,
struct input_device *idev = data;
struct input_conn *iconn;
struct fake_input *fake;
- const char *svc;
int err;
- if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &svc,
- DBUS_TYPE_INVALID) == FALSE)
- return NULL;
-
- iconn = find_connection(idev->connections, svc);
+ iconn = find_connection(idev->connections, "HID");
if (!iconn)
return not_supported(msg);
@@ -1012,7 +1007,7 @@ static void device_unregister(void *data)
}
static GDBusMethodTable device_methods[] = {
- { "Connect", "s", "", device_connect,
+ { "Connect", "", "", device_connect,
G_DBUS_METHOD_FLAG_ASYNC },
{ "Disconnect", "", "", device_disconnect },
{ "IsConnected", "", "b", device_is_connected },

View File

@ -1,14 +1,13 @@
Summary: Bluetooth libraries and utilities Summary: Bluetooth libraries and utilities
Name: bluez Name: bluez
Version: 4.4 Version: 4.5
Release: 2%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
Source1: bluetooth.init Source1: bluetooth.init
Source2: bluetooth.conf Source2: bluetooth.conf
Patch1: bluez-utils-oui-usage.patch Patch1: bluez-utils-oui-usage.patch
Patch2: bluez-4.4-input.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://www.bluez.org/ URL: http://www.bluez.org/
@ -94,7 +93,6 @@ Bluetooth utilities (bluez-utils):
%setup -q %setup -q
%patch1 -p0 -b .oui %patch1 -p0 -b .oui
%patch2 -p1 -b .input
%build %build
%configure --enable-cups --enable-hid2hci --enable-dfutool --enable-tools --enable-bccmd --enable-gstreamer --enable-hidd --enable-pand --enable-dund %configure --enable-cups --enable-hid2hci --enable-dfutool --enable-tools --enable-bccmd --enable-gstreamer --enable-hidd --enable-pand --enable-dund
@ -189,6 +187,11 @@ fi
%{_libdir}/alsa-lib/*.so %{_libdir}/alsa-lib/*.so
%changelog %changelog
* Fri Sep 12 2008 - Bastien Nocera <bnocera@redhat.com> - 4.5-1
- Update to 4.5
- Fix initscript to actually start bluetoothd by hand
- Add chkconfig information to the initscript
* Tue Sep 09 2008 - David Woodhouse <David.Woodhouse@intel.com> - 4.4-2 * Tue Sep 09 2008 - David Woodhouse <David.Woodhouse@intel.com> - 4.4-2
- Fix rpmlint problems - Fix rpmlint problems
- Fix input device handling - Fix input device handling

View File

@ -1 +0,0 @@
bluez-4_4-2_fc10:HEAD:bluez-4.4-2.fc10.src.rpm:1221099001

View File

@ -1 +1 @@
0fd526ecea7fa7fb53298e8f335526c6 bluez-4.4.tar.gz 97d4dfad90ed924952d013bd0b03bedd bluez-4.5.tar.gz