Date: Monday, May 27, 2013 @ 13:19:11
  Author: spupykin
Revision: 91774

Modified:
  ussp-push/trunk/PKGBUILD
  ussp-push/trunk/ussp-push-remote-name.patch

-----------------------------+
 PKGBUILD                    |   10 +++++++---
 ussp-push-remote-name.patch |   12 ++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-05-27 11:18:23 UTC (rev 91773)
+++ PKGBUILD    2013-05-27 11:19:11 UTC (rev 91774)
@@ -5,7 +5,7 @@
 
 pkgname=ussp-push
 pkgver=0.11
-pkgrel=4
+pkgrel=5
 pkgdesc="OBEX object pusher for Linux"
 arch=('i686' 'x86_64')
 license=('GPL2')
@@ -14,11 +14,15 @@
 source=(http://xmailserver.org/$pkgname-$pkgver.tar.gz
        ussp-push-remote-name.patch)
 md5sums=('5c44983ee27809867041feff6bb4423a'
-         '3c58795be3a977a5bf7b267f00dde660')
+         'bcd29432ac8fc8b2aa979fb22cabd5a6')
 
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  patch -p1 <$srcdir/ussp-push-remote-name.patch
+}
+
 build() {
   cd $srcdir/$pkgname-$pkgver
-  patch -p1 <$srcdir/ussp-push-remote-name.patch
   ./configure --prefix=/usr
   make
 }

Modified: ussp-push-remote-name.patch
===================================================================
--- ussp-push-remote-name.patch 2013-05-27 11:18:23 UTC (rev 91773)
+++ ussp-push-remote-name.patch 2013-05-27 11:19:11 UTC (rev 91774)
@@ -10,3 +10,15 @@
                                    devname, 100000) >= 0) {
                        if (strcasecmp(devname, btname) == 0) {
                                *btaddr = piinf[i].bdaddr;
+diff -wbBur ussp-push-0.11/src/obex_main.c ussp-push-0.11.q/src/obex_main.c
+--- ussp-push-0.11/src/obex_main.c     2008-08-25 00:48:53.000000000 +0400
++++ ussp-push-0.11.q/src/obex_main.c   2013-05-27 14:13:06.533474671 +0400
+@@ -197,7 +197,7 @@
+               *err = -1;
+               return NULL;
+       }
+-      if (!(handle = OBEX_Init(OBEX_TRANS_CUST, obex_event, 0))) {
++      if (!(handle = OBEX_Init(OBEX_TRANS_CUSTOM, obex_event, 0))) {
+               BTERROR("OBEX_Init failed: %s\n", strerror(errno));
+               obex_free(gt);
+               *err = -1;

Reply via email to