pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/obexftp Merge in patches to make this build agai...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/70b7fb7d8b87
branches:  trunk
changeset: 516637:70b7fb7d8b87
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Mon Jul 24 17:07:15 2006 +0000

description:
Merge in patches to make this build again on NetBSD without bluetooth,
thanks to dillo for that.

diffstat:

 comms/obexftp/distinfo         |   7 ++-
 comms/obexftp/patches/patch-ai |  67 ++++++++++++++++++++++++++++++++++++++++-
 comms/obexftp/patches/patch-ak |  22 ++++++++++---
 comms/obexftp/patches/patch-al |  20 ++++++++++++
 4 files changed, 104 insertions(+), 12 deletions(-)

diffs (163 lines):

diff -r a34517ac8a81 -r 70b7fb7d8b87 comms/obexftp/distinfo
--- a/comms/obexftp/distinfo    Mon Jul 24 16:51:24 2006 +0000
+++ b/comms/obexftp/distinfo    Mon Jul 24 17:07:15 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2006/07/17 12:29:57 xtraeme Exp $
+$NetBSD: distinfo,v 1.4 2006/07/24 17:07:15 xtraeme Exp $
 
 SHA1 (obexftp-0.20.tar.bz2) = 0b3a7d2aeb0dbd24d75761a7e59f42f46ea5ef82
 RMD160 (obexftp-0.20.tar.bz2) = ded5cf4d95eac77d5f6ee0a39f3789eb962534ed
@@ -11,6 +11,7 @@
 SHA1 (patch-af) = 4de53a6ec0d711f948980cdfdd4adea3928b64bd
 SHA1 (patch-ag) = e61fdbba340af591318b1aa3b70272a969e01e70
 SHA1 (patch-ah) = c0fe5bd78e7614a7eb6adb7154676fd9bde7a31c
-SHA1 (patch-ai) = 9080e819a0855b591f613a0482e7297332922101
+SHA1 (patch-ai) = 2e77a0cd8998f3a558a2587b5cbdc7c0e080bc0f
 SHA1 (patch-aj) = c563733a616ec0ad5b94a3ff8de5e3a2e91ccd5b
-SHA1 (patch-ak) = 276e1f41d784b50b29c0b2c2e08f47c040ab4ad7
+SHA1 (patch-ak) = 3131a38f66bec5d0bba563e72ad2a75f21e65b99
+SHA1 (patch-al) = 1f2dd6ed302711f17e33584cc34f6f674a6973c7
diff -r a34517ac8a81 -r 70b7fb7d8b87 comms/obexftp/patches/patch-ai
--- a/comms/obexftp/patches/patch-ai    Mon Jul 24 16:51:24 2006 +0000
+++ b/comms/obexftp/patches/patch-ai    Mon Jul 24 17:07:15 2006 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ai,v 1.1 2006/07/17 12:29:57 xtraeme Exp $
+$NetBSD: patch-ai,v 1.2 2006/07/24 17:07:15 xtraeme Exp $
 
---- apps/obexftpd.c.orig       2006-07-09 16:43:20.000000000 +0200
-+++ apps/obexftpd.c    2006-07-09 16:45:04.000000000 +0200
+--- apps/obexftpd.c.orig       2006-04-13 07:57:55.000000000 +0200
++++ apps/obexftpd.c
 @@ -23,6 +23,10 @@
   * Created at:    Don, 2 Okt 2003
   */
@@ -28,3 +28,64 @@
  /* just until there is a server layer in obexftp */
  #include <openobex/obex.h>
  
+@@ -934,16 +946,21 @@ static void start_server(int transport)
+               exit(0);
+       }
+ 
+-              if (transport==OBEX_TRANS_BLUETOOTH && 0 > obexftp_sdp_register())
+-              {
+-                      //OBEX_Cleanup(handle);
+-                      fprintf(stderr, "register to SDP Server failed.\n");
+-                      exit(0);
+-              }
+-              else
+-              {
+-                      use_sdp = 1;
+-              }
++#ifdef HAVE_BLUETOOTH
++              if (transport==OBEX_TRANS_BLUETOOTH)
++      {
++              if (0 > obexftp_sdp_register())
++                      {
++                              //OBEX_Cleanup(handle);
++                              fprintf(stderr, "register to SDP Server failed.\n");
++                              exit(0);
++                      }
++                      else
++                      {
++                              use_sdp = 1;
++                      }
++      }
++#endif
+       
+ reset:
+       handle = OBEX_Init(transport, obex_event, 0);
+@@ -963,12 +980,14 @@ reset:
+                       exit(-1);
+               }
+               break;
++#ifdef HAVE_BLUETOOTH
+               case OBEX_TRANS_BLUETOOTH:
+               if (0 > BtOBEX_ServerRegister(handle, bt_src, channel)) {
+                               perror("failed to register bluetooth server");
+                       exit(-1);
+               }
+               break;
++#endif
+               case OBEX_TRANS_IRDA:
+               if (0 > IrOBEX_ServerRegister(handle, "")) {
+                               perror("failed to register IrDA server");
+@@ -1002,11 +1021,13 @@ reset:
+               goto reset;
+       }
+       
++#ifdef HAVE_BLUETOOTH
+       if (use_sdp)
+       {
+               fprintf(stderr, "sdp unregister\n");
+               obexftp_sdp_unregister();
+       }
++#endif
+ 
+ }
+ 
diff -r a34517ac8a81 -r 70b7fb7d8b87 comms/obexftp/patches/patch-ak
--- a/comms/obexftp/patches/patch-ak    Mon Jul 24 16:51:24 2006 +0000
+++ b/comms/obexftp/patches/patch-ak    Mon Jul 24 17:07:15 2006 +0000
@@ -1,8 +1,17 @@
-$NetBSD: patch-ak,v 1.1 2006/07/17 12:29:57 xtraeme Exp $
+$NetBSD: patch-ak,v 1.2 2006/07/24 17:07:15 xtraeme Exp $
 
---- apps/obexftp_sdp.c.orig    2006-07-15 19:50:12.000000000 +0100
+--- apps/obexftp_sdp.c.orig    2006-03-08 00:34:15.000000000 +0100
 +++ apps/obexftp_sdp.c
-@@ -34,6 +34,53 @@
+@@ -25,6 +25,8 @@
+ #include <config.h>
+ #endif
+ 
++#ifdef HAVE_BLUETOOTH
++
+ #include <stdio.h>
+ #include <errno.h>
+ #include <unistd.h>
+@@ -34,6 +36,53 @@
  #include <sys/types.h>
  #include <sys/socket.h>
  
@@ -52,12 +61,13 @@
 +
 +      return 0;
 +}
-+#else
++#else /* __NetBSD__ */
  #include <bluetooth/bluetooth.h>
  #include <bluetooth/sdp.h>
  #include <bluetooth/sdp_lib.h>
-@@ -173,3 +220,4 @@ int obexftp_sdp_search(bdaddr_t *src, bd
+@@ -173,3 +222,5 @@ int obexftp_sdp_search(bdaddr_t *src, bd
        return 0;
  }
  */
-+#endif
++#endif /* !__NetBSD__ */
++#endif /* HAVE_BLUETOOTH */
diff -r a34517ac8a81 -r 70b7fb7d8b87 comms/obexftp/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/obexftp/patches/patch-al    Mon Jul 24 17:07:15 2006 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-al,v 1.1 2006/07/24 17:07:15 xtraeme Exp $
+
+--- apps/obexftp.c.orig        2006-05-16 16:41:49.000000000 +0200
++++ apps/obexftp.c
+@@ -399,6 +399,7 @@ int main(int argc, char *argv[])
+               transport = OBEX_TRANS_CUSTOM;
+               fprintf(stderr, "Using TTY: %s\n", device);
+       }
++#ifdef HAVE_BLUETOOTH
+       if (getenv(OBEXFTP_BLUETOOTH) != NULL) {
+               device = getenv(OBEXFTP_BLUETOOTH);
+               if (channel <= 0 || strlen(device) < (6*2+5) || device[2]!=':')
+@@ -408,6 +409,7 @@ int main(int argc, char *argv[])
+               transport = OBEX_TRANS_BLUETOOTH;
+               fprintf(stderr, "Using BT: %s (%d)\n", device, channel);
+       }
++#endif
+       if (getenv(OBEXFTP_INET) != NULL) {
+               device = strdup(getenv(OBEXFTP_INET));
+               transport = OBEX_TRANS_INET;



Home | Main Index | Thread Index | Old Index