summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/bluez/ussp-push-0.11/hci_remote_name.patch13
-rw-r--r--recipes/bluez/ussp-push_0.11.bb19
2 files changed, 32 insertions, 0 deletions
diff --git a/recipes/bluez/ussp-push-0.11/hci_remote_name.patch b/recipes/bluez/ussp-push-0.11/hci_remote_name.patch
new file mode 100644
index 0000000000..c760608be5
--- /dev/null
+++ b/recipes/bluez/ussp-push-0.11/hci_remote_name.patch
@@ -0,0 +1,13 @@
+diff -urN ussp-push-0.11/src/obex_socket.c ussp-push-0.11_Demo/src/obex_socket.c
+--- ussp-push-0.11/src/obex_socket.c 2008-08-25 02:18:53.000000000 +0530
++++ ussp-push-0.11_Demo/src/obex_socket.c 2010-04-16 15:11:27.000000000 +0530
+@@ -197,7 +197,8 @@
+ for (i = 0; i < niinf; i++) {
+ char devname[128];
+
+- if (hci_remote_name(dd, &piinf[i].bdaddr, sizeof(devname) - 1,
++ if (hci_read_remote_name(dd, &piinf[i].bdaddr,
++ sizeof(devname) - 1,
+ devname, 100000) >= 0) {
+ if (strcasecmp(devname, btname) == 0) {
+ *btaddr = piinf[i].bdaddr;
diff --git a/recipes/bluez/ussp-push_0.11.bb b/recipes/bluez/ussp-push_0.11.bb
new file mode 100644
index 0000000000..0ad2e1bea9
--- /dev/null
+++ b/recipes/bluez/ussp-push_0.11.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "OBEX object pusher"
+HOMEPAGE = "http://www.xmailserver.org/ussp-push.html"
+SECTION = "console"
+PRIORITY = "optional"
+DEPENDS = "bluez-libs openobex"
+LICENSE = "GPLv2"
+PR = "r1"
+
+SRC_URI = "http://www.xmailserver.org/ussp-push-${PV}.tar.gz \
+ file://hci_remote_name.patch;patch=1"
+
+S = "${WORKDIR}/ussp-push-${PV}"
+
+EXTRA_OECONF = "--with-bluez-libs=${STAGING_LIBDIR} --with-bluez-includes=${STAGING_INCDIR}"
+
+inherit autotools
+
+SRC_URI[md5sum] = "5c44983ee27809867041feff6bb4423a"
+SRC_URI[sha256sum] = "bb2748eaed6164812555b4a1e186c4f2820c5ef9ce30f12d7aac28a452719bbd"