summaryrefslogtreecommitdiff
path: root/community/ussp-push
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/ussp-push
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/ussp-push')
-rw-r--r--community/ussp-push/PKGBUILD27
-rw-r--r--community/ussp-push/ussp-push-remote-name.patch12
2 files changed, 39 insertions, 0 deletions
diff --git a/community/ussp-push/PKGBUILD b/community/ussp-push/PKGBUILD
new file mode 100644
index 000000000..673cb4718
--- /dev/null
+++ b/community/ussp-push/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD 21981 2010-07-19 13:46:02Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Giovanni Scafora <linuxmania@gmail.com>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
+
+pkgname=ussp-push
+pkgver=0.11
+pkgrel=3
+pkgdesc="OBEX object pusher for Linux"
+arch=('i686' 'x86_64')
+license=('GPL2')
+url="http://xmailserver.org/ussp-push.html"
+depends=('openobex')
+source=(http://xmailserver.org/$pkgname-$pkgver.tar.gz
+ ussp-push-remote-name.patch)
+md5sums=('5c44983ee27809867041feff6bb4423a'
+ '3c58795be3a977a5bf7b267f00dde660')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ patch -p1 <$srcdir/ussp-push-remote-name.patch
+
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR=$pkgdir install
+}
diff --git a/community/ussp-push/ussp-push-remote-name.patch b/community/ussp-push/ussp-push-remote-name.patch
new file mode 100644
index 000000000..6cc6b7e9b
--- /dev/null
+++ b/community/ussp-push/ussp-push-remote-name.patch
@@ -0,0 +1,12 @@
+diff -dupr ussp-push-0.11.old/src/obex_socket.c ussp-push-0.11/src/obex_socket.c
+--- ussp-push-0.11.old/src/obex_socket.c 2009-05-15 11:03:34.904797689 +0200
++++ ussp-push-0.11/src/obex_socket.c 2009-05-15 11:03:45.599797286 +0200
+@@ -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;