Here is a patch to update comms/openobex and comms/obexftp to their
versions which allows them to build with bluetooth support.

I don't know that these are correct, or that they actually work, but I
am trying to talk to my cell phone over bluetooth and this seemed the
way to start.

I have some questions about actually communicating with my phone, but I
wanted to get this patch in to be looked at before I ask them.

Many of the changes are from the FreeBSD port.


l8rZ,
-- 
andrew - ICQ# 253198 - Jabber: and...@rraz.net

BOFH excuse of the day: techtonic stress
Index: obexftp/Makefile
===================================================================
RCS file: /cvs/ports/comms/obexftp/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- obexftp/Makefile    16 Sep 2007 01:37:09 -0000      1.9
+++ obexftp/Makefile    8 Jan 2009 20:46:09 -0000
@@ -1,11 +1,11 @@
 # $OpenBSD: Makefile,v 1.9 2007/09/16 01:37:09 merdely Exp $
 
 COMMENT=               file copying over the OBEX protocol
-DISTNAME=              obexftp-0.10.4
-PKGNAME=               ${DISTNAME}p1
-SHARED_LIBS += bfb                  0.4      # .0.4
-SHARED_LIBS += cobexbfb             0.8      # .0.8
-SHARED_LIBS += obexftp              0.11     # .0.11
+DISTNAME=              obexftp-0.22
+EXTRACT_SUFX=          .tar.bz2
+SHARED_LIBS += bfb                  0.5      # .0.5
+SHARED_LIBS += multicobex           1.1      # .1.1
+SHARED_LIBS += obexftp              2.0      # .2.0
 
 CATEGORIES=            comms
 HOMEPAGE=              http://triq.net/obex/
@@ -19,8 +19,14 @@ WANTLIB=             c
 
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=openobex/}
 
-LIB_DEPENDS=           openobex.>=1::comms/openobex
-CONFIGURE_STYLE=       gnu
+WANTLIB=               c
+MODULES=               converters/libiconv
+LIB_DEPENDS=           openobex.>=1::comms/openobex \
+                       bluetooth.>=2::devel/bluetooth-libs
+CONFIGURE_STYLE=       autoconf
+AUTOCONF_VERSION=      2.58
+CONFIGURE_ENV=         BLUETOOTH_LIBS='-L/usr/local/lib -lbluetooth'
+USE_GMAKE=             Yes
 
 USE_LIBTOOL=           Yes
 
Index: obexftp/distinfo
===================================================================
RCS file: /cvs/ports/comms/obexftp/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- obexftp/distinfo    5 Apr 2007 15:37:47 -0000       1.3
+++ obexftp/distinfo    8 Jan 2009 20:46:09 -0000
@@ -1,5 +1,5 @@
-MD5 (obexftp-0.10.4.tar.gz) = oBuYPmQISBImBdkCK1E9tw==
-RMD160 (obexftp-0.10.4.tar.gz) = 6vXGjvo++0a9TC4AphKMsXXEutU=
-SHA1 (obexftp-0.10.4.tar.gz) = YYVBpjkCXxL99tkuCNPSYnIyKxQ=
-SHA256 (obexftp-0.10.4.tar.gz) = gUAkvGYHGFZF0sA43yVJLTQLIokC9GhFTTtoFd5fdNM=
-SIZE (obexftp-0.10.4.tar.gz) = 374317
+MD5 (obexftp-0.22.tar.bz2) = 0WfP3qJE46X5c6exaGRBnA==
+RMD160 (obexftp-0.22.tar.bz2) = o5YP0VzXXPtwZsVl7p+pDcenwR8=
+SHA1 (obexftp-0.22.tar.bz2) = h1OuEFNlOwHrDe7jt9McAqykl00=
+SHA256 (obexftp-0.22.tar.bz2) = CWhwEtXgFid/pjjyK4x4SupoAwVscNFGFOO3UViq6Hc=
+SIZE (obexftp-0.22.tar.bz2) = 402570
Index: obexftp/patches/patch-acinclude_m4
===================================================================
RCS file: obexftp/patches/patch-acinclude_m4
diff -N obexftp/patches/patch-acinclude_m4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ obexftp/patches/patch-acinclude_m4  8 Jan 2009 20:46:09 -0000
@@ -0,0 +1,39 @@
+$OpenBSD$
+--- acinclude.m4.orig  Wed Jan  7 15:31:43 2009
++++ acinclude.m4       Wed Jan  7 15:33:03 2009
+@@ -60,6 +60,16 @@ AC_DEFUN([AC_PATH_NETBSDBT], [
+       ])
+ ])
+ 
++AC_DEFUN([AC_PATH_OPENBSDBT], [
++      AC_CACHE_CHECK([for OpenBSD Bluetooth support], openbsdbt_found, [
++              AC_TRY_COMPILE([
++                              #include <bluetooth.h>
++                      ], [
++                              struct sockaddr_bt *bt;
++                      ], openbsdbt_found=yes, openbsdbt_found=no)
++      ])
++])
++
+ AC_DEFUN([AC_PATH_FREEBSDBT], [
+       AC_CACHE_CHECK([for FreeBSD Bluetooth support], freebsdbt_found, [
+               AC_TRY_COMPILE([
+@@ -88,6 +98,9 @@ AC_DEFUN([AC_PATH_BLUETOOTH], [
+         *-*-netbsd*)
+                 AC_PATH_NETBSDBT
+                 ;;
++        *-*-openbsd*)
++                AC_PATH_OPENBSDBT
++                ;;
+       *-*-mingw32*) 
+               AC_PATH_WINBT 
+               ;;
+@@ -104,7 +117,7 @@ AC_ARG_ENABLE([bluetooth],
+ 
+ if test "$ac_bluetooth_enabled" = yes; then
+               AC_PATH_BLUETOOTH
+-      if test "${netbsdbt_found}" = "yes" -o "${freebsdbt_found}" = "yes" -o 
"${bluez_found}" = "yes" -o "${winbt_found}" = "yes"; then
++      if test "${openbsdbt_found}" = "yes" -o "${netbsdbt_found}" = "yes" -o 
"${freebsdbt_found}" = "yes" -o "${bluez_found}" = "yes" -o "${winbt_found}" = 
"yes"; then
+               AC_DEFINE([HAVE_BLUETOOTH], [1], [Define if system supports 
Bluetooth and it's enabled])
+       fi
+ fi
Index: obexftp/patches/patch-obexftp_bt_kit_h
===================================================================
RCS file: obexftp/patches/patch-obexftp_bt_kit_h
diff -N obexftp/patches/patch-obexftp_bt_kit_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ obexftp/patches/patch-obexftp_bt_kit_h      8 Jan 2009 20:46:09 -0000
@@ -0,0 +1,20 @@
+$OpenBSD$
+--- obexftp/bt_kit.h.orig      Sun Jun 15 12:18:58 2008
++++ obexftp/bt_kit.h   Thu Jan  8 10:52:22 2009
+@@ -80,6 +80,16 @@ BTKITSYM int str2ba(const char *straddr, BTH_ADDR *bta
+ #define rc_channel    bt_channel
+ #define BDADDR_ANY    NG_HCI_BDADDR_ANY
+ 
++/* OpenBSD */
++#elif defined(__OpenBSD__)
++#define COMPAT_BLUEZ
++#include <bluetooth.h>
++#include <netbt/rfcomm.h>
++#define sockaddr_rc   sockaddr_bt
++#define rc_family     bt_family
++#define rc_bdaddr     bt_bdaddr
++#define rc_channel    bt_channel
++
+ /* BlueZ, Linux 2.4.6 and up (incl. 2.6) */
+ #else
+ #include <bluetooth/bluetooth.h>
Index: obexftp/patches/patch-obexftp_obexftp_h
===================================================================
RCS file: obexftp/patches/patch-obexftp_obexftp_h
diff -N obexftp/patches/patch-obexftp_obexftp_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ obexftp/patches/patch-obexftp_obexftp_h     8 Jan 2009 20:46:09 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- obexftp/obexftp.h.orig     Sun Jun 15 12:18:58 2008
++++ obexftp/obexftp.h  Thu Jan  8 11:25:41 2009
+@@ -27,6 +27,10 @@ extern "C" {
+ #endif
+ 
+ 
++#ifdef HAVE_BLUETOOTH
++#include <obexftp/bt_kit.h>
++#endif
++
+ /** ObexFTP message callback prototype. */
+ typedef void (*obexftp_info_cb_t) (int event, const char *buf, int len, void 
*data);
+ 
Index: obexftp/pkg/PFRAG.shared
===================================================================
RCS file: /cvs/ports/comms/obexftp/pkg/PFRAG.shared,v
retrieving revision 1.2
diff -u -p -r1.2 PFRAG.shared
--- obexftp/pkg/PFRAG.shared    23 Dec 2005 14:16:01 -0000      1.2
+++ obexftp/pkg/PFRAG.shared    8 Jan 2009 20:46:09 -0000
@@ -1,4 +1,5 @@
 @comment $OpenBSD: PFRAG.shared,v 1.2 2005/12/23 14:16:01 bernd Exp $
 @lib lib/libbfb.so.${LIBbfb_VERSION}
-...@lib lib/libcobexbfb.so.${LIBcobexbfb_VERSION}
+...@lib lib/libmulticobex.so.${LIBmulticobex_VERSION}
 @lib lib/libobexftp.so.${LIBobexftp_VERSION}
+libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/OBEXFTP.so
Index: obexftp/pkg/PLIST
===================================================================
RCS file: /cvs/ports/comms/obexftp/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- obexftp/pkg/PLIST   12 Nov 2004 08:06:54 -0000      1.1.1.1
+++ obexftp/pkg/PLIST   8 Jan 2009 20:46:09 -0000
@@ -1,20 +1,32 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $
 %%SHARED%%
-bin/obexftp
-bin/obexftpd
+...@bin bin/obexftp
+...@bin bin/obexftpd
 include/bfb/
 include/bfb/bfb.h
 include/bfb/bfb_io.h
-include/cobexbfb/
-include/cobexbfb/cobex_bfb.h
+include/multicobex/
+include/multicobex/multi_cobex.h
 include/obexftp/
 include/obexftp/client.h
 include/obexftp/obexftp.h
 include/obexftp/object.h
+include/obexftp/uuid.h
 lib/libbfb.a
 lib/libbfb.la
-lib/libcobexbfb.a
-lib/libcobexbfb.la
+lib/libmulticobex.a
+lib/libmulticobex.la
 lib/libobexftp.a
 lib/libobexftp.la
+lib/pkgconfig/
+lib/pkgconfig/obexftp.pc
+libdata/perl5/${MACHINE_ARCH}-openbsd/
+libdata/perl5/${MACHINE_ARCH}-openbsd/5.10.0/
+libdata/perl5/${MACHINE_ARCH}-openbsd/5.10.0/perllocal.pod
+libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/
+libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/OBEXFTP.pm
+libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/
+libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/
+libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/OBEXFTP.bs
 @man man/man1/obexftp.1
+...@man man/man1/obexftpd.1
Index: openobex/Makefile
===================================================================
RCS file: /cvs/ports/comms/openobex/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- openobex/Makefile   16 Sep 2007 01:37:10 -0000      1.10
+++ openobex/Makefile   8 Jan 2009 20:46:09 -0000
@@ -1,9 +1,8 @@
 # $OpenBSD: Makefile,v 1.10 2007/09/16 01:37:10 merdely Exp $
 
 COMMENT=               OBEX protocol implementation
-DISTNAME=              openobex-1.0.1
-PKGNAME=               ${DISTNAME}p3
-SHARED_LIBS += openobex             1.0      # .1.0
+DISTNAME=              openobex-1.4
+SHARED_LIBS += openobex             1.4      # .1.4
 
 CATEGORIES=            comms
 HOMEPAGE=              http://openobex.triq.net/
@@ -14,10 +13,17 @@ PERMIT_PACKAGE_FTP= Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes
 
-MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=openobex/}
+MASTER_SITES=          http://www.kernel.org/pub/linux/bluetooth/ \
+                       http://www.de.kernel.org/pub/linux/bluetooth/
 
 USE_GMAKE=             Yes
 USE_LIBTOOL=           Yes
 CONFIGURE_STYLE=       gnu
+
+BUILD_DEPENDS=         ::devel/bluetooth-libs
+
+CONFIGURE_ARGS+= --disable-usb
+# LIB_DEPENDS+=        ::devel/libusb
+# CONFIGURE_ARGS+= --enable-usb
 
 .include <bsd.port.mk>
Index: openobex/distinfo
===================================================================
RCS file: /cvs/ports/comms/openobex/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- openobex/distinfo   5 Apr 2007 15:37:47 -0000       1.3
+++ openobex/distinfo   8 Jan 2009 20:46:09 -0000
@@ -1,5 +1,5 @@
-MD5 (openobex-1.0.1.tar.gz) = N0Jma7mCWfrOdr5Jtz6onQ==
-RMD160 (openobex-1.0.1.tar.gz) = cNx9Lji4Ga8MNcyyb4BreqdoKw4=
-SHA1 (openobex-1.0.1.tar.gz) = qnOz+eNFCI6PHAcODnJ/WGgg0g4=
-SHA256 (openobex-1.0.1.tar.gz) = BmHBXotXhsmiINAlfKM5sU+94XTp60WWLuYFvfpNntg=
-SIZE (openobex-1.0.1.tar.gz) = 211696
+MD5 (openobex-1.4.tar.gz) = VypSrEI0NKMpDF+Gfu02LQ==
+RMD160 (openobex-1.4.tar.gz) = 4ZNK+bWHRPUm5jUnVUtpYO/eiAM=
+SHA1 (openobex-1.4.tar.gz) = 60jrCJf0zIxnSngsVRb7/LtUH0A=
+SHA256 (openobex-1.4.tar.gz) = eSZTCeIyC+sDkQ/M8n/QSu+xi6R6kAlH0t6OiPrgXNg=
+SIZE (openobex-1.4.tar.gz) = 393756
Index: openobex/patches/patch-lib_bluez_compat_h
===================================================================
RCS file: openobex/patches/patch-lib_bluez_compat_h
diff -N openobex/patches/patch-lib_bluez_compat_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ openobex/patches/patch-lib_bluez_compat_h   8 Jan 2009 20:46:09 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- lib/bluez_compat.h.orig    Fri Nov  7 05:36:09 2008
++++ lib/bluez_compat.h Wed Jan  7 14:42:03 2009
+@@ -53,6 +53,8 @@ static bdaddr_t bluez_compat_bdaddr_any = {BTH_ADDR_NU
+ #define rc_family   rfcomm_family
+ #define rc_bdaddr   rfcomm_bdaddr
+ #define rc_channel  rfcomm_channel
++#define BDADDR_ANY  NG_HCI_BDADDR_ANY
++#define BTPROTO_RFCOMM BLUETOOTH_PROTO_RFCOMM
+ 
+ #elif defined(HAVE_BLUETOOTH_NETBSD)
+ #include <bluetooth.h>
Index: openobex/patches/patch-lib_usbobex_c
===================================================================
RCS file: openobex/patches/patch-lib_usbobex_c
diff -N openobex/patches/patch-lib_usbobex_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ openobex/patches/patch-lib_usbobex_c        8 Jan 2009 20:46:09 -0000
@@ -0,0 +1,66 @@
+$OpenBSD$
+--- lib/usbobex.c.orig Fri Nov  7 05:36:09 2008
++++ lib/usbobex.c      Wed Jan  7 14:42:06 2009
+@@ -392,25 +392,8 @@ int usbobex_connect_request(obex_t *self)
+ 
+       DEBUG(4, "\n");
+ 
+-      self->trans.self.usb.dev_control = 
usb_open(self->trans.self.usb.device);
+       self->trans.self.usb.dev_data = usb_open(self->trans.self.usb.device);
+ 
+-      ret = usb_set_configuration(self->trans.self.usb.dev_control, 
self->trans.self.usb.configuration);
+-      if (ret < 0)
+-              DEBUG(4, "Can't set configuration %d", ret);
+-
+-      ret = usb_claim_interface(self->trans.self.usb.dev_control, 
self->trans.self.usb.control_interface);
+-      if (ret < 0) {
+-              DEBUG(4, "Can't claim control interface %d", ret);
+-              goto err1;
+-      }
+-
+-      ret = usb_set_altinterface(self->trans.self.usb.dev_control, 
self->trans.self.usb.control_setting);
+-      if (ret < 0) {
+-              DEBUG(4, "Can't set control setting %d", ret);
+-              goto err2;
+-      }
+-
+       ret = usb_claim_interface(self->trans.self.usb.dev_data, 
self->trans.self.usb.data_interface);
+       if (ret < 0) {
+               DEBUG(4, "Can't claim data interface %d", ret);
+@@ -430,10 +413,8 @@ int usbobex_connect_request(obex_t *self)
+ err3:
+       usb_release_interface(self->trans.self.usb.dev_data, 
self->trans.self.usb.data_interface);
+ err2:
+-      usb_release_interface(self->trans.self.usb.dev_control, 
self->trans.self.usb.control_interface);
+ err1:
+       usb_close(self->trans.self.usb.dev_data);
+-      usb_close(self->trans.self.usb.dev_control);
+       return ret;
+ }
+ 
+@@ -450,21 +431,19 @@ int usbobex_disconnect_request(obex_t *self)
+               return 0;
+ 
+       DEBUG(4, "\n");
++
++      usb_clear_halt(self->trans.self.usb.dev_data, 
self->trans.self.usb.data_endpoint_read);
++      usb_clear_halt(self->trans.self.usb.dev_data, 
self->trans.self.usb.data_endpoint_write);
++
+       ret = usb_set_altinterface(self->trans.self.usb.dev_data, 
self->trans.self.usb.data_idle_setting);
+       if (ret < 0)
+               DEBUG(4, "Can't set data idle setting %d", ret);
+       ret = usb_release_interface(self->trans.self.usb.dev_data, 
self->trans.self.usb.data_interface);
+       if (ret < 0)
+               DEBUG(4, "Can't release data interface %d", ret);
+-      ret = usb_release_interface(self->trans.self.usb.dev_control, 
self->trans.self.usb.control_interface);
+-      if (ret < 0)
+-              DEBUG(4, "Can't release control interface %d", ret);
+       ret = usb_close(self->trans.self.usb.dev_data);
+       if (ret < 0)
+               DEBUG(4, "Can't close data interface %d", ret);
+-      ret = usb_close(self->trans.self.usb.dev_control);
+-      if (ret < 0)
+-              DEBUG(4, "Can't close control interface %d", ret);
+ 
+       return ret;
+ }
Index: openobex/patches/patch-openobex-config_in
===================================================================
RCS file: openobex/patches/patch-openobex-config_in
diff -N openobex/patches/patch-openobex-config_in
--- openobex/patches/patch-openobex-config_in   12 Nov 2004 08:04:22 -0000      
1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
-$OpenBSD: patch-openobex-config_in,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $
---- openobex-config.in.orig    Wed Oct 20 22:18:55 2004
-+++ openobex-config.in Wed Oct 20 22:19:30 2004
-@@ -4,6 +4,7 @@ pref...@prefix@
- exec_pref...@exec_prefix@
- exec_prefix_set=no
- included...@includedir@
-+libd...@libdir@
- 
- usage()
- {
-@@ -87,7 +88,7 @@ if $cflags; then
- fi
- 
- if $libs; then
--    all_flags="$all_flags $services $the_libs -lopenobex"
-+    all_flags="$all_flags $services $the_libs -L$libdir -lopenobex"
- fi
- 
- if test -z "$all_flags" || test "x$all_flags" = "x "; then
Index: openobex/patches/patch-src_Makefile_in
===================================================================
RCS file: openobex/patches/patch-src_Makefile_in
diff -N openobex/patches/patch-src_Makefile_in
--- openobex/patches/patch-src_Makefile_in      12 Nov 2004 08:04:22 -0000      
1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $
---- src/Makefile.in.orig       Fri Nov 12 10:51:50 2004
-+++ src/Makefile.in    Fri Nov 12 10:52:19 2004
-@@ -95,7 +95,7 @@ lib_LTLIBRARIES = libopenobex.la
- libopenobex_la_SOURCES =      obex.c  obex_main.c obex_main.h         
obex_connect.c obex_connect.h   obex_header.c obex_header.h     obex_object.c 
obex_object.h     obex_transport.c obex_transport.h       obex_server.c 
obex_server.h     obex_client.c obex_client.h     irobex.c irobex.h       
inobex.c inobex.h       btobex.c btobex.h       netbuf.c netbuf.h       irda.h 
irda_wrap.h
- 
- 
--libopenobex_la_LDFLAGS =      -version-info 
$(LT_CURRENT):$(LT_REVISION):$(LT_AGE)    -release $(LT_RELEASE)  
-export-symbols $(top_srcdir)/src/obex.sym
-+libopenobex_la_LDFLAGS =      -version-info 
$(LT_CURRENT):$(LT_REVISION):$(LT_AGE)    -export-symbols 
$(top_srcdir)/src/obex.sym
- 
- 
- INCLUDES = -I$(top_srcdir)/src
Index: openobex/patches/patch-src_irda_h
===================================================================
RCS file: openobex/patches/patch-src_irda_h
diff -N openobex/patches/patch-src_irda_h
--- openobex/patches/patch-src_irda_h   12 Nov 2004 08:04:22 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-$OpenBSD: patch-src_irda_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $
---- src/irda.h.orig    Wed Oct 20 21:47:28 2004
-+++ src/irda.h Wed Oct 20 21:47:46 2004
-@@ -26,7 +26,9 @@
- #define IRDA_H
- 
- #include <sys/types.h>
-+#ifndef __OpenBSD__
- #include <stdint.h>
-+#endif
- 
- /* Hint bit positions for first hint byte */
- #define HINT_PNP         0x01
Index: openobex/patches/patch-src_netbuf_h
===================================================================
RCS file: openobex/patches/patch-src_netbuf_h
diff -N openobex/patches/patch-src_netbuf_h
--- openobex/patches/patch-src_netbuf_h 12 Nov 2004 08:04:22 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-$OpenBSD: patch-src_netbuf_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $
---- src/netbuf.h.orig  Wed Oct 20 21:48:32 2004
-+++ src/netbuf.h       Wed Oct 20 21:48:55 2004
-@@ -37,7 +37,11 @@
- #ifndef G_NETBUF_H
- #define G_NETBUF_H
- 
-+#ifndef __OpenBSD__
- #include <stdint.h>
-+#else
-+#include <sys/types.h>
-+#endif
- 
- typedef struct _slist_t{
-       void            *data;
Index: openobex/patches/patch-src_obex_const_h
===================================================================
RCS file: openobex/patches/patch-src_obex_const_h
diff -N openobex/patches/patch-src_obex_const_h
--- openobex/patches/patch-src_obex_const_h     12 Nov 2004 08:04:22 -0000      
1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-$OpenBSD: patch-src_obex_const_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $
---- src/obex_const.h.orig      Wed Oct 20 21:46:41 2004
-+++ src/obex_const.h   Wed Oct 20 21:47:01 2004
-@@ -30,7 +30,11 @@
- #ifndef OBEX_CONST_H
- #define OBEX_CONST_H
- 
-+#ifndef __OpenBSD__
- #include <stdint.h>
-+#else
-+#include <sys/types.h>
-+#endif
- 
- typedef union {
-       uint32_t bq4;
Index: openobex/patches/patch-src_obex_h
===================================================================
RCS file: openobex/patches/patch-src_obex_h
diff -N openobex/patches/patch-src_obex_h
--- openobex/patches/patch-src_obex_h   12 Nov 2004 08:04:22 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-$OpenBSD: patch-src_obex_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $
---- src/obex.h.orig    Wed Oct 20 21:47:57 2004
-+++ src/obex.h Wed Oct 20 21:48:22 2004
-@@ -30,7 +30,11 @@
- #ifndef OBEX_H
- #define OBEX_H
- 
-+#ifndef __OpenBSD__
- #include <stdint.h>
-+#else
-+#include <sys/types.h>
-+#endif
- 
- #ifdef _WIN32
- #include <winsock.h>
Index: openobex/pkg/PLIST
===================================================================
RCS file: /cvs/ports/comms/openobex/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- openobex/pkg/PLIST  12 Nov 2004 08:04:22 -0000      1.1.1.1
+++ openobex/pkg/PLIST  8 Jan 2009 20:46:09 -0000
@@ -1,10 +1,9 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $
 %%SHARED%%
-bin/openobex-config
 include/openobex/
 include/openobex/obex.h
 include/openobex/obex_const.h
 lib/libopenobex.a
 lib/libopenobex.la
-share/aclocal/
-share/aclocal/openobex.m4
+lib/pkgconfig/
+lib/pkgconfig/openobex.pc

Reply via email to