pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/comms/openobex Update to 1.3:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5f8b825c190
branches:  trunk
changeset: 515814:b5f8b825c190
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Sun Jul 09 09:27:52 2006 +0000

description:
Update to 1.3:

ver 1.3:
        Add support for setting the creation-ID.
        Updated constants to match IrOBEX 1.3.
        Replace netbuf implementation with databuffer.
        Fix segmentation fault when receiving invalid OBEX packets.

ver 1.2:
        Add OBEX_EV_REQCHECK support.
        Add support for suspend after sending a header.
        Add support for empty headers for buggy OBEX servers.
        Fix memory leak in obex_object_send().

ver 1.1:
        Fix list of exported functions.
        Fix duplicate string from basename() result.
        Fix wrong order of sanity checks.
        Fix memory leak in send_stream() function.
        ISO C99 says that inttypes.h includes stdint.h header.
        Add proper client side ABORT support.
        Add support for OBEX_SuspendRequest() and OBEX_ResumeRequest().
        Add USB transport support.
        Increase the allowed maximum MTU to 64kB-1.
        Disconnect when an ABORT fails.
        Make it possible to include headers from C++ source code.
        Advertise OBEX Protocol Version 1.0.

pkgsrc:

        * I've added patches to detect properly NetBSD bluetooth support
          and I have sent it to the openobex folks, they will be integrated
          soon.
        * Take maintainership for now.
        * Bump BUILDLINK_API_DEPENDS because the API has changed.

*** PLEASE DO NOT TOUCH OBEXFTP, I'M UPDATING IT RIGHT NOW. THANKS ***

diffstat:

 comms/openobex/Makefile         |   27 +++-----
 comms/openobex/PLIST            |    4 +-
 comms/openobex/buildlink3.mk    |   12 ++--
 comms/openobex/distinfo         |   19 +++---
 comms/openobex/patches/patch-aa |   45 +++-----------
 comms/openobex/patches/patch-ab |   41 ++++++++++---
 comms/openobex/patches/patch-ac |   35 +++++++----
 comms/openobex/patches/patch-ad |   20 +++---
 comms/openobex/patches/patch-ae |  119 ++++-----------------------------------
 comms/openobex/patches/patch-af |   31 ++++++++++
 10 files changed, 147 insertions(+), 206 deletions(-)

diffs (truncated from 449 to 300 lines):

diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/Makefile
--- a/comms/openobex/Makefile   Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/Makefile   Sun Jul 09 09:27:52 2006 +0000
@@ -1,17 +1,16 @@
-# $NetBSD: Makefile,v 1.10 2006/07/06 16:31:39 rillig Exp $
+# $NetBSD: Makefile,v 1.11 2006/07/09 09:27:52 xtraeme Exp $
 #
 
-DISTNAME=      openobex-1.0.1
-PKGREVISION=   3
+DISTNAME=      openobex-1.3
 CATEGORIES=    comms
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=openobex/}
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+MAINTAINER=    xtraeme%NetBSD.org@localhost
 HOMEPAGE=      http://openobex.sourceforge.net/
 COMMENT=       Implementation of the Object Exchange (OBEX) protocol
 
 GNU_CONFIGURE= yes
-USE_TOOLS+=    gmake pkg-config
+USE_TOOLS+=    autoconf gmake pkg-config
 USE_LIBTOOL=   yes
 
 PKGCONFIG_OVERRIDE=    openobex-config.in
@@ -21,19 +20,13 @@
 .if (${OPSYS} == "NetBSD" && exists(/usr/include/bluetooth.h))
 SUBST_CLASSES+=                bt
 SUBST_STAGE.bt=                post-patch
-SUBST_FILES.bt=                configure
-SUBST_SED.bt=          -e "s|bluetooth/bluetooth.h|bluetooth.h|g"
-SUBST_SED.bt+=         -e "s|bluetooth/rfcomm.h|netbt/rfcomm.h|g"
-SUBST_SED.bt+=         -e "s|sockaddr_rc|sockaddr_bt|g"
+SUBST_FILES.bt=                include/obex.h
+SUBST_SED.bt=          -e "s|ifndef SOL_RFCOMM|ifdef SOL_RFCOMM|"
 SUBST_MESSAGE.bt=      Fixing bluetooth detection.
-
-SUBST_CLASSES+=                bt2
-SUBST_STAGE.bt2=       post-patch
-SUBST_FILES.bt2=       src/obex.h
-SUBST_SED.bt2=         -e "s|ifndef SOL_RFCOMM|ifdef SOL_RFCOMM|"
-
-# bacpy() and friends
-CPPFLAGS+=             -DCOMPAT_BLUEZ
 .endif
 
+post-patch:
+       cd ${WRKSRC} && autoconf
+
+.include "../../devel/libusb/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/PLIST
--- a/comms/openobex/PLIST      Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/PLIST      Sun Jul 09 09:27:52 2006 +0000
@@ -1,7 +1,7 @@
-@comment $NetBSD: PLIST,v 1.2 2004/09/22 08:09:21 jlam Exp $
-bin/openobex-config
+@comment $NetBSD: PLIST,v 1.3 2006/07/09 09:27:52 xtraeme Exp $
 include/openobex/obex.h
 include/openobex/obex_const.h
 lib/libopenobex.la
+lib/pkgconfig/openobex.pc
 share/aclocal/openobex.m4
 @dirrm include/openobex
diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/buildlink3.mk
--- a/comms/openobex/buildlink3.mk      Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/buildlink3.mk      Sun Jul 09 09:27:52 2006 +0000
@@ -1,20 +1,20 @@
-# $NetBSD: buildlink3.mk,v 1.8 2006/07/08 23:10:38 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2006/07/09 09:27:52 xtraeme Exp $
 
 BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
 OPENOBEX_BUILDLINK3_MK:=       ${OPENOBEX_BUILDLINK3_MK}+
 
-.if !empty(BUILDLINK_DEPTH:M+)
+.if ${BUILDLINK_DEPTH} == "+"
 BUILDLINK_DEPENDS+=    openobex
 .endif
 
 BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nopenobex}
 BUILDLINK_PACKAGES+=   openobex
-BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}openobex
 
-.if !empty(OPENOBEX_BUILDLINK3_MK:M+)
-BUILDLINK_API_DEPENDS.openobex+=       openobex>=1.0.1
-BUILDLINK_ABI_DEPENDS.openobex+=       openobex>=1.0.1nb2
+.if ${OPENOBEX_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.openobex+=       openobex>=1.3
 BUILDLINK_PKGSRCDIR.openobex?= ../../comms/openobex
 .endif # OPENOBEX_BUILDLINK3_MK
 
+.include "../../devel/libusb/buildlink3.mk"
+
 BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/distinfo
--- a/comms/openobex/distinfo   Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/distinfo   Sun Jul 09 09:27:52 2006 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.4 2006/07/03 19:18:57 xtraeme Exp $
+$NetBSD: distinfo,v 1.5 2006/07/09 09:27:52 xtraeme Exp $
 
-SHA1 (openobex-1.0.1.tar.gz) = aa73b3f9e345088e8f1c070e0e727f586820d20e
-RMD160 (openobex-1.0.1.tar.gz) = 70dc7d2e38b819af0c35ccb26f806b7aa7682b0e
-Size (openobex-1.0.1.tar.gz) = 211696 bytes
-SHA1 (patch-aa) = a73def8cc93d50a023ce76ec30e05163293aea45
-SHA1 (patch-ab) = 172cf62a95b8e278c2539d4339b6bb17354e8cd7
-SHA1 (patch-ac) = 8b9ca12b6c84ab743590dc16689ba672ffb5b46b
-SHA1 (patch-ad) = 4a9c02f6e899d1740504ec03bda3301915018ae3
-SHA1 (patch-ae) = c25191fcded6e87d2bcca17a2ae77720c79646a4
+SHA1 (openobex-1.3.tar.gz) = a6fbb5991bc14b90ba6c42faf026bf6bfa325d7f
+RMD160 (openobex-1.3.tar.gz) = f38474e17aaff1799ecb5f45de6ab23c3bdc8de0
+Size (openobex-1.3.tar.gz) = 337614 bytes
+SHA1 (patch-aa) = bc1c17a9f040f2e3c1b82b9b0070026d829e4a21
+SHA1 (patch-ab) = 84f76f808634dbeaed74a69469a91be1322b9bf1
+SHA1 (patch-ac) = 4e8075984d5a957bfb2fda3b63872063252b7b75
+SHA1 (patch-ad) = 0aa9962a170716fd93f115ac3bdb7307e31081a1
+SHA1 (patch-ae) = 9292387331847631b74e1331f50bab247bdb19b0
+SHA1 (patch-af) = d9a913a695a27f487ba496629bd37a8904c364b4
diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/patches/patch-aa
--- a/comms/openobex/patches/patch-aa   Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/patches/patch-aa   Sun Jul 09 09:27:52 2006 +0000
@@ -1,38 +1,13 @@
-$NetBSD: patch-aa,v 1.1 2006/07/02 18:16:53 xtraeme Exp $
+$NetBSD: patch-aa,v 1.2 2006/07/09 09:27:52 xtraeme Exp $
 
---- src/obex_transport.h.orig  2003-10-01 13:17:13.000000000 +0200
-+++ src/obex_transport.h       2006-07-02 18:51:48.000000000 +0200
-@@ -39,7 +39,11 @@
- #ifdef HAVE_IRDA
- #include "irda_wrap.h"
- #endif /*HAVE_IRDA*/
--#ifdef HAVE_BLUETOOTH
+--- configure.in.orig  2006-06-14 11:24:13.000000000 +0200
++++ configure.in       2006-07-09 10:01:18.000000000 +0200
+@@ -23,6 +23,8 @@
+ AC_PATH_BLUEZ
+ AC_PATH_USB
+ 
++NETBSD_BLUETOOTH_CHECK
 +
-+#if defined(HAVE_BLUETOOTH) && defined(__NetBSD__)
-+#include <bluetooth.h>
-+#include <netbt/rfcomm.h>
-+#elif defined(HAVE_BLUETOOTH)
- #include <bluetooth/bluetooth.h>
- #include <bluetooth/rfcomm.h>
- #endif /*HAVE_BLUETOOTH*/
-@@ -52,7 +56,11 @@
- #endif /*HAVE_IRDA*/
-       struct sockaddr_in   inet;
- #ifdef HAVE_BLUETOOTH
-+#ifdef __NetBSD__
-+      struct sockaddr_bt rfcomm;
-+#else
-       struct sockaddr_rc   rfcomm;
-+#endif
- #endif /*HAVE_BLUETOOTH*/
- } saddr_t;
+ AC_ARG_OPENOBEX
  
-@@ -76,7 +84,4 @@
- int obex_transport_read(obex_t *self, int count, uint8_t *buf, int buflen);
- 
- 
--#endif OBEX_TRANSPORT_H
--
--
--
-+#endif  /* OBEX_TRANSPORT_H */
+ AC_OUTPUT(Makefile include/Makefile lib/Makefile apps/Makefile ircp/Makefile doc/Makefile openobex.pc)
diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/patches/patch-ab
--- a/comms/openobex/patches/patch-ab   Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/patches/patch-ab   Sun Jul 09 09:27:52 2006 +0000
@@ -1,12 +1,35 @@
-$NetBSD: patch-ab,v 1.1 2006/07/02 18:16:53 xtraeme Exp $
+$NetBSD: patch-ab,v 1.2 2006/07/09 09:27:52 xtraeme Exp $
 
---- src/obex.c.orig    2006-07-02 18:53:03.000000000 +0200
-+++ src/obex.c 2006-07-02 18:53:13.000000000 +0200
-@@ -33,6 +33,7 @@
- #endif
+--- acinclude.m4.orig  2006-06-14 11:11:47.000000000 +0200
++++ acinclude.m4       2006-07-09 10:33:49.000000000 +0200
+@@ -61,6 +61,17 @@
+       AC_SUBST(BLUEZ_LIBS)
+ ])
  
- #include <stdio.h>
-+#include <stdlib.h>
- #include <string.h>
- #include <errno.h>
++AC_DEFUN([NETBSD_BLUETOOTH_CHECK], [
++      AC_CACHE_CHECK([for NetBSD bluetooth support], netbsdbt_found,[
++
++              AC_TRY_COMPILE([
++                              #include <bluetooth.h>
++                              ], [
++                              struct sockaddr_bt *bt;
++                              ], netbsdbt_found=yes, netbsdbt_found=no)
++              ])
++])
++
+ AC_DEFUN([AC_PATH_USB], [
+       PKG_CHECK_MODULES(USB, libusb, usb_found=yes, AC_MSG_RESULT(no))
+       AC_SUBST(USB_CFLAGS)
+@@ -126,6 +137,12 @@
+               REQUIRES="bluez"
+       fi
  
++      if (test "${bluetooth_enable}" = "yes" && test "${netbsdbt_found}" = "yes"); then
++              AC_DEFINE(HAVE_BLUETOOTH, 1, [Define if system supports Bluetooth and it's enabled])
++              AC_DEFINE(HAVE_NETBSD_BLUETOOTH, 1, [Define if it uses NetBSD's bluetooth stack])
++              CPPFLAGS="$CPPFLAGS -DCOMPAT_BLUEZ"
++      fi
++
+       if (test "${usb_enable}" = "yes" && test "${usb_found}" = "yes"); then
+               AC_DEFINE(HAVE_USB, 1, [Define if system supports USB and it's enabled])
+               AC_CHECK_FILE(${prefix}/lib/pkgconfig/libusb.pc, REQUIRES="$REQUIRES libusb")
diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/patches/patch-ac
--- a/comms/openobex/patches/patch-ac   Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/patches/patch-ac   Sun Jul 09 09:27:52 2006 +0000
@@ -1,16 +1,27 @@
-$NetBSD: patch-ac,v 1.1 2006/07/02 18:16:53 xtraeme Exp $
+$NetBSD: patch-ac,v 1.2 2006/07/09 09:27:52 xtraeme Exp $
 
---- src/obex_main.c.orig       2003-10-01 13:17:13.000000000 +0200
-+++ src/obex_main.c    2006-07-02 18:56:16.000000000 +0200
-@@ -46,7 +46,11 @@
- #include <stdio.h>
- 
- #ifdef HAVE_BLUETOOTH
-+#ifdef __NetBSD__
+--- lib/obex_transport.h.orig  2006-07-09 10:19:01.000000000 +0200
++++ lib/obex_transport.h       2006-07-09 10:20:53.000000000 +0200
+@@ -39,7 +39,10 @@
+ #ifdef HAVE_IRDA
+ #include "irda_wrap.h"
+ #endif /*HAVE_IRDA*/
+-#ifdef HAVE_BLUETOOTH
++#ifdef HAVE_NETBSD_BLUETOOTH
 +#include <bluetooth.h>
-+#else
++#include <netbt/rfcomm.h>
++#elif defined(HAVE_BLUETOOTH)
  #include <bluetooth/bluetooth.h>
-+#endif /* __NetBSD__ */
+ #include <bluetooth/rfcomm.h>
  #endif /*HAVE_BLUETOOTH*/
- 
- #endif /* _WIN32 */
+@@ -54,7 +57,9 @@
+       struct sockaddr_irda irda;
+ #endif /*HAVE_IRDA*/
+       struct sockaddr_in   inet;
+-#ifdef HAVE_BLUETOOTH
++#ifdef HAVE_NETBSD_BLUETOOTH
++      struct sockaddr_bt   rfcomm;
++#elif defined(HAVE_BLUETOOTH)
+       struct sockaddr_rc   rfcomm;
+ #endif /*HAVE_BLUETOOTH*/
+ #ifdef HAVE_USB
diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/patches/patch-ad
--- a/comms/openobex/patches/patch-ad   Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/patches/patch-ad   Sun Jul 09 09:27:52 2006 +0000
@@ -1,12 +1,14 @@
-$NetBSD: patch-ad,v 1.1 2006/07/02 18:16:53 xtraeme Exp $
+$NetBSD: patch-ad,v 1.2 2006/07/09 09:27:52 xtraeme Exp $
 
---- src/obex_object.c.orig     2006-07-02 18:56:59.000000000 +0200
-+++ src/obex_object.c  2006-07-02 18:57:10.000000000 +0200
-@@ -33,6 +33,7 @@
- #endif
+--- config.h.in.orig   2006-07-09 10:27:25.000000000 +0200
++++ config.h.in        2006-07-09 10:28:00.000000000 +0200
+@@ -6,6 +6,9 @@
+ /* Define if system supports Bluetooth and it's enabled */
+ #undef HAVE_BLUETOOTH
  
- #include <stdio.h>
-+#include <stdlib.h>
- #include <string.h>
++/* Define if system uses NetBSD's bluetooth stack */
++#undef HAVE_NETBSD_BLUETOOTH
++
+ /* Define to 1 if you have the <dlfcn.h> header file. */
+ #undef HAVE_DLFCN_H
  
- #include "obex_main.h"
diff -r 2a2c582e800d -r b5f8b825c190 comms/openobex/patches/patch-ae
--- a/comms/openobex/patches/patch-ae   Sun Jul 09 06:55:54 2006 +0000
+++ b/comms/openobex/patches/patch-ae   Sun Jul 09 09:27:52 2006 +0000
@@ -1,110 +1,15 @@
-$NetBSD: patch-ae,v 1.1 2006/07/02 18:16:53 xtraeme Exp $
+$NetBSD: patch-ae,v 1.2 2006/07/09 09:27:52 xtraeme Exp $
 
---- src/btobex.c.orig  2003-10-01 13:17:13.000000000 +0200
-+++ src/btobex.c       2006-07-02 19:24:16.000000000 +0200
-@@ -46,12 +46,16 @@
- #include <netinet/in.h>
- #include <sys/socket.h>



Home | Main Index | Thread Index | Old Index