Commit 87854c12 authored by Samuel Martin's avatar Samuel Martin Committed by Peter Korsgaard
Browse files

ussp-push: new package



Cc: Eric Jarrige <eric.jarrige@armadeus.org>
Signed-off-by: default avatarSamuel Martin <s.martin49@gmail.com>
Reviewed-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 04092fa3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -729,6 +729,7 @@ source "package/tvheadend/Config.in"
source "package/udpcast/Config.in"
source "package/ulogd/Config.in"
source "package/ushare/Config.in"
source "package/ussp-push/Config.in"
source "package/vde2/Config.in"
source "package/vpnc/Config.in"
source "package/vsftpd/Config.in"
+18 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_USSP_PUSH
	bool "ussp-push"
	depends on BR2_INET_IPV6
	depends on !BR2_avr32
	depends on BR2_USE_WCHAR # libglib2
	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, alsa-lib
	depends on BR2_USE_MMU # dbus
	select BR2_PACKAGE_OPENOBEX
	select BR2_PACKAGE_OPENOBEX_BLUEZ
	select BR2_PACKAGE_BLUEZ_UTILS
	help
	  ussp-push is an OBEX object pusher for Linux, using the BlueZ
	  BlueTooth stack.

	  http://www.xmailserver.org/ussp-push.html

comment "ussp-push require a toolchain with WCHAR, IPV6 and thread support"
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6
+15 −0
Original line number Diff line number Diff line
Fix build against bluez4.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>

--- ussp-push-0.11.orig/src/obex_socket.c	2012-11-01 09:58:51.049538708 +0100
+++ ussp-push-0.11/src/obex_socket.c	2012-11-01 12:10:10.719506951 +0100
@@ -197,7 +197,7 @@ static int bt_sock_name2bth(int devid, c
 	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;
+14 −0
Original line number Diff line number Diff line
#############################################################
#
# ussp-push
#
#############################################################

USSP_PUSH_VERSION = 0.11
USSP_PUSH_SITE = http://www.xmailserver.org
USSP_PUSH_LICENSE = GPLv2+
USSP_PUSH_LICENSE_FILES = COPYING

USSP_PUSH_DEPENDENCIES = bluez_utils openobex

$(eval $(autotools-package))