diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-08 15:30:16 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-08 15:30:16 +0000 |
commit | 4c5caa6764150e68775e7d4774e82b5a27e475f8 (patch) | |
tree | 5f14cf02be03663e124f04b9a6c548e42a5f57ec /meta/packages/bluez/bluez-utils-dbus | |
parent | 81547613652cbcc65dfc1e832e6845f3f167c2be (diff) | |
download | poky-4c5caa6764150e68775e7d4774e82b5a27e475f8.tar.gz |
bluez: Move from meta-extras to meta since required by syncml/openobex
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1612 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/bluez/bluez-utils-dbus')
-rw-r--r-- | meta/packages/bluez/bluez-utils-dbus/dbus-2.24.patch | 53 | ||||
-rw-r--r-- | meta/packages/bluez/bluez-utils-dbus/dbus.patch | 58 | ||||
-rw-r--r-- | meta/packages/bluez/bluez-utils-dbus/hcid-alignment-fix.patch | 42 | ||||
-rw-r--r-- | meta/packages/bluez/bluez-utils-dbus/hcid.conf | 72 | ||||
-rw-r--r-- | meta/packages/bluez/bluez-utils-dbus/smash.patch | 11 |
5 files changed, 236 insertions, 0 deletions
diff --git a/meta/packages/bluez/bluez-utils-dbus/dbus-2.24.patch b/meta/packages/bluez/bluez-utils-dbus/dbus-2.24.patch new file mode 100644 index 0000000000..d8ec946a0b --- /dev/null +++ b/meta/packages/bluez/bluez-utils-dbus/dbus-2.24.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | --- bluez-utils-2.24/acinclude.m4.orig 2006-01-12 08:21:38.000000000 +0100 | ||
2 | +++ bluez-utils-2.24/acinclude.m4 2006-01-12 08:23:18.000000000 +0100 | ||
3 | @@ -131,46 +131,15 @@ | ||
4 | ]) | ||
5 | |||
6 | AC_DEFUN([AC_PATH_DBUS], [ | ||
7 | - dbus_prefix=${prefix} | ||
8 | - | ||
9 | - AC_ARG_WITH(dbus, AC_HELP_STRING([--with-dbus=DIR], [D-BUS library is installed in DIR]), [ | ||
10 | - if (test "${withval}" != "yes"); then | ||
11 | - dbus_prefix=${withval} | ||
12 | - fi | ||
13 | - ]) | ||
14 | - | ||
15 | - ac_save_CPPFLAGS=$CPPFLAGS | ||
16 | - ac_save_LDFLAGS=$LDFLAGS | ||
17 | - | ||
18 | - DBUS_CFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE" | ||
19 | - test -d "${dbus_prefix}/include/dbus-1.0" && DBUS_CFLAGS="$DBUS_CFLAGS -I${dbus_prefix}/include/dbus-1.0" | ||
20 | - if (test "${prefix}" = "${bluez_prefix}"); then | ||
21 | - test -d "${libdir}/dbus-1.0/include" && DBUS_CFLAGS="$DBUS_CFLAGS -I${libdir}/dbus-1.0/include" | ||
22 | - else | ||
23 | - test -d "${dbus_prefix}/lib64/dbus-1.0/include" && DBUS_CFLAGS="$DBUS_CFLAGS -I${dbus_prefix}/lib64/dbus-1.0/include" | ||
24 | - test -d "${dbus_prefix}/lib/dbus-1.0/include" && DBUS_CFLAGS="$DBUS_CFLAGS -I${dbus_prefix}/lib/dbus-1.0/include" | ||
25 | - fi | ||
26 | + if pkg-config --exists dbus-1; then | ||
27 | + dbus_found=yes ; DBUS_CFLAGS="`pkg-config --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE" | ||
28 | + DBUS_LIBS="`pkg-config --libs dbus-1`" | ||
29 | |||
30 | CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS" | ||
31 | - AC_CHECK_HEADER(dbus/dbus.h, dbus_found=yes, dbus_found=no) | ||
32 | - | ||
33 | - DBUS_LIBS="" | ||
34 | - if (test "${prefix}" = "${dbus_prefix}"); then | ||
35 | - test -d "${libdir}" && DBUS_LIBS="$DBUS_LIBS -L${libdir}" | ||
36 | - else | ||
37 | - test -d "${dbus_prefix}/lib64" && DBUS_LIBS="$DBUS_LIBS -L${dbus_prefix}/lib64" | ||
38 | - test -d "${dbus_prefix}/lib" && DBUS_LIBS="$DBUS_LIBS -L${dbus_prefix}/lib" | ||
39 | - fi | ||
40 | - | ||
41 | LDFLAGS="$LDFLAGS $DBUS_LIBS" | ||
42 | - AC_CHECK_LIB(dbus-1, dbus_error_init, DBUS_LIBS="$DBUS_LIBS -ldbus-1", dbus_found=no) | ||
43 | - AC_CHECK_LIB(dbus-1, dbus_message_iter_get_basic, dummy=yes, dbus_found=no) | ||
44 | - | ||
45 | - CPPFLAGS=$ac_save_CPPFLAGS | ||
46 | - LDFLAGS=$ac_save_LDFLAGS | ||
47 | - | ||
48 | AC_SUBST(DBUS_CFLAGS) | ||
49 | AC_SUBST(DBUS_LIBS) | ||
50 | + fi | ||
51 | ]) | ||
52 | |||
53 | AC_DEFUN([AC_PATH_FUSE], [ | ||
diff --git a/meta/packages/bluez/bluez-utils-dbus/dbus.patch b/meta/packages/bluez/bluez-utils-dbus/dbus.patch new file mode 100644 index 0000000000..c5ab129469 --- /dev/null +++ b/meta/packages/bluez/bluez-utils-dbus/dbus.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- bluez-utils-2.20/acinclude.m4~dbus.patch | ||
7 | +++ bluez-utils-2.20/acinclude.m4 | ||
8 | @@ -211,46 +211,15 @@ | ||
9 | ]) | ||
10 | |||
11 | AC_DEFUN([AC_PATH_DBUS], [ | ||
12 | - dbus_prefix=${prefix} | ||
13 | - | ||
14 | - AC_ARG_WITH(dbus, AC_HELP_STRING([--with-dbus=DIR], [D-BUS library is installed in DIR]), [ | ||
15 | - if (test "${withval}" != "yes"); then | ||
16 | - dbus_prefix=${withval} | ||
17 | - fi | ||
18 | - ]) | ||
19 | - | ||
20 | - ac_save_CPPFLAGS=$CPPFLAGS | ||
21 | - ac_save_LDFLAGS=$LDFLAGS | ||
22 | - | ||
23 | - DBUS_CFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE" | ||
24 | - test -d "${dbus_prefix}/include/dbus-1.0" && DBUS_CFLAGS="$DBUS_CFLAGS -I${dbus_prefix}/include/dbus-1.0" | ||
25 | - if (test "${prefix}" = "${bluez_prefix}"); then | ||
26 | - test -d "${libdir}/dbus-1.0/include" && DBUS_CFLAGS="$DBUS_CFLAGS -I${libdir}/dbus-1.0/include" | ||
27 | - else | ||
28 | - test -d "${dbus_prefix}/lib64/dbus-1.0/include" && DBUS_CFLAGS="$DBUS_CFLAGS -I${dbus_prefix}/lib64/dbus-1.0/include" | ||
29 | - test -d "${dbus_prefix}/lib/dbus-1.0/include" && DBUS_CFLAGS="$DBUS_CFLAGS -I${dbus_prefix}/lib/dbus-1.0/include" | ||
30 | - fi | ||
31 | + if pkg-config --exists dbus-1; then | ||
32 | + dbus_found=yes ; DBUS_CFLAGS="`pkg-config --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE" | ||
33 | + DBUS_LIBS="`pkg-config --libs dbus-1`" | ||
34 | |||
35 | CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS" | ||
36 | - AC_CHECK_HEADER(dbus/dbus.h, dbus_found=yes, dbus_found=no) | ||
37 | - | ||
38 | - DBUS_LIBS="" | ||
39 | - if (test "${prefix}" = "${dbus_prefix}"); then | ||
40 | - test -d "${libdir}" && DBUS_LIBS="$DBUS_LIBS -L${libdir}" | ||
41 | - else | ||
42 | - test -d "${dbus_prefix}/lib64" && DBUS_LIBS="$DBUS_LIBS -L${dbus_prefix}/lib64" | ||
43 | - test -d "${dbus_prefix}/lib" && DBUS_LIBS="$DBUS_LIBS -L${dbus_prefix}/lib" | ||
44 | - fi | ||
45 | - | ||
46 | LDFLAGS="$LDFLAGS $DBUS_LIBS" | ||
47 | - AC_CHECK_LIB(dbus-1, dbus_error_init, DBUS_LIBS="$DBUS_LIBS -ldbus-1", dbus_found=no) | ||
48 | - AC_CHECK_LIB(dbus-1, dbus_message_iter_get_basic, AC_DEFINE(HAVE_DBUS_MESSAGE_ITER_GET_BASIC, 1, [Define to 1 if you have the dbus_message_iter_get_basic() function.])) | ||
49 | - | ||
50 | - CPPFLAGS=$ac_save_CPPFLAGS | ||
51 | - LDFLAGS=$ac_save_LDFLAGS | ||
52 | - | ||
53 | AC_SUBST(DBUS_CFLAGS) | ||
54 | AC_SUBST(DBUS_LIBS) | ||
55 | + fi | ||
56 | ]) | ||
57 | |||
58 | AC_DEFUN([AC_ARG_BLUEZ], [ | ||
diff --git a/meta/packages/bluez/bluez-utils-dbus/hcid-alignment-fix.patch b/meta/packages/bluez/bluez-utils-dbus/hcid-alignment-fix.patch new file mode 100644 index 0000000000..276281c14e --- /dev/null +++ b/meta/packages/bluez/bluez-utils-dbus/hcid-alignment-fix.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | --- bluez-utils-2.20/hcid/dbus.c.orig 2005-09-21 11:27:26 +0200 | ||
2 | +++ bluez-utils-2.20/hcid/dbus.c 2005-09-21 11:27:35 +0200 | ||
3 | @@ -120,6 +121,7 @@ | ||
4 | DBusMessage *message; | ||
5 | #ifdef HAVE_DBUS_MESSAGE_ITER_GET_BASIC | ||
6 | uint8_t *addr = (uint8_t *) &ci->bdaddr; | ||
7 | + uint32_t ci_out = ci->out; | ||
8 | #else | ||
9 | DBusMessageIter iter; | ||
10 | #endif | ||
11 | @@ -138,7 +140,7 @@ | ||
12 | bacpy(&req->bda, &ci->bdaddr); | ||
13 | |||
14 | #ifdef HAVE_DBUS_MESSAGE_ITER_GET_BASIC | ||
15 | - dbus_message_append_args(message, DBUS_TYPE_BOOLEAN, &ci->out, | ||
16 | + dbus_message_append_args(message, DBUS_TYPE_BOOLEAN, &ci_out, | ||
17 | DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, | ||
18 | &addr, sizeof(bdaddr_t), DBUS_TYPE_INVALID); | ||
19 | #else | ||
20 | @@ -261,6 +263,8 @@ | ||
21 | DBusMessage *message; | ||
22 | #ifndef HAVE_DBUS_MESSAGE_ITER_GET_BASIC | ||
23 | DBusMessageIter iter; | ||
24 | +#else | ||
25 | + int32_t tmp_rssi = rssi; | ||
26 | #endif | ||
27 | char *local_addr, *peer_addr; | ||
28 | bdaddr_t tmp; | ||
29 | @@ -276,11 +280,12 @@ | ||
30 | } | ||
31 | |||
32 | #ifdef HAVE_DBUS_MESSAGE_ITER_GET_BASIC | ||
33 | + | ||
34 | dbus_message_append_args(message, | ||
35 | DBUS_TYPE_STRING, &local_addr, | ||
36 | DBUS_TYPE_STRING, &peer_addr, | ||
37 | DBUS_TYPE_UINT32, &class, | ||
38 | - DBUS_TYPE_INT32, &rssi, | ||
39 | + DBUS_TYPE_INT32, &tmp_rssi, | ||
40 | DBUS_TYPE_INVALID); | ||
41 | #else | ||
42 | dbus_message_append_iter_init(message, &iter); | ||
diff --git a/meta/packages/bluez/bluez-utils-dbus/hcid.conf b/meta/packages/bluez/bluez-utils-dbus/hcid.conf new file mode 100644 index 0000000000..ab3ca2aaee --- /dev/null +++ b/meta/packages/bluez/bluez-utils-dbus/hcid.conf | |||
@@ -0,0 +1,72 @@ | |||
1 | # | ||
2 | # HCI daemon configuration file. | ||
3 | # | ||
4 | # $Id: hcid.conf,v 1.4 2004/04/29 20:14:21 holtmann Exp $ | ||
5 | # | ||
6 | |||
7 | # HCId options | ||
8 | options { | ||
9 | # Automatically initialize new devices | ||
10 | autoinit yes; | ||
11 | |||
12 | # Security Manager mode | ||
13 | # none - Security manager disabled | ||
14 | # auto - Use local PIN for incoming connections | ||
15 | # user - Always ask user for a PIN | ||
16 | # | ||
17 | security auto; | ||
18 | |||
19 | # Pairing mode | ||
20 | # none - Pairing disabled | ||
21 | # multi - Allow pairing with already paired devices | ||
22 | # once - Pair once and deny successive attempts | ||
23 | pairing multi; | ||
24 | |||
25 | # PIN helper | ||
26 | # pin_helper /usr/bin/bluepin; | ||
27 | |||
28 | # D-Bus PIN helper | ||
29 | dbus_pin_helper; | ||
30 | } | ||
31 | |||
32 | # Default settings for HCI devices | ||
33 | device { | ||
34 | # Local device name | ||
35 | # %d - device id | ||
36 | # %h - host name | ||
37 | name "%h"; | ||
38 | |||
39 | # Local device class | ||
40 | class 0x120112; | ||
41 | |||
42 | # Default packet type | ||
43 | #pkt_type DH1,DM1,HV1; | ||
44 | |||
45 | # Inquiry and Page scan | ||
46 | iscan enable; pscan enable; | ||
47 | |||
48 | # Default link mode | ||
49 | # none - no specific policy | ||
50 | # accept - always accept incoming connections | ||
51 | # master - become master on incoming connections, | ||
52 | # deny role switch on outgoing connections | ||
53 | # | ||
54 | #lm accept,master; | ||
55 | # | ||
56 | lm accept; | ||
57 | |||
58 | # Default link policy | ||
59 | # none - no specific policy | ||
60 | # rswitch - allow role switch | ||
61 | # hold - allow hold mode | ||
62 | # sniff - allow sniff mode | ||
63 | # park - allow park mode | ||
64 | # | ||
65 | #lp hold,sniff; | ||
66 | # | ||
67 | lp rswitch,hold,sniff,park; | ||
68 | |||
69 | # Authentication and Encryption | ||
70 | #auth enable; | ||
71 | encrypt enable; | ||
72 | } | ||
diff --git a/meta/packages/bluez/bluez-utils-dbus/smash.patch b/meta/packages/bluez/bluez-utils-dbus/smash.patch new file mode 100644 index 0000000000..55cdbb7284 --- /dev/null +++ b/meta/packages/bluez/bluez-utils-dbus/smash.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- bluez-utils-2.11/hcid/dbus.c.old 2004-12-31 16:35:12.000000000 +0000 | ||
2 | +++ bluez-utils-2.11/hcid/dbus.c 2004-12-31 16:39:58.000000000 +0000 | ||
3 | @@ -89,6 +89,8 @@ | ||
4 | |||
5 | memset(&pr, 0, sizeof(pr)); | ||
6 | bacpy(&pr.bdaddr, &req->bda); | ||
7 | + if (len > sizeof (pr.pin_code)) | ||
8 | + goto error; | ||
9 | memcpy(pr.pin_code, pin, len); | ||
10 | pr.pin_len = len; | ||
11 | hci_send_cmd(req->dev, OGF_LINK_CTL, OCF_PIN_CODE_REPLY, | ||