Mon Jul 20 05:56:03 2009 UTC ()
Bluetooth support for DragonFly. Bump PKGREVISION. PR pkg/41640.


(hasso)
diff -r1.12 -r1.13 pkgsrc/comms/obexftp/Makefile
diff -r1.6 -r1.7 pkgsrc/comms/obexftp/distinfo
diff -r1.4 -r1.5 pkgsrc/comms/obexftp/patches/patch-aa
diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/patch-ab
diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/patch-ac
diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/patch-ad
diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/patch-ae
diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/patch-af
diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/patch-ag
diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/patch-ai
diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/patch-ak
diff -r1.1 -r1.2 pkgsrc/comms/obexftp/patches/patch-aj

cvs diff -r1.12 -r1.13 pkgsrc/comms/obexftp/Makefile (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/Makefile 2009/05/22 07:16:58 1.12
+++ pkgsrc/comms/obexftp/Makefile 2009/07/20 05:56:02 1.13
@@ -1,36 +1,36 @@ @@ -1,36 +1,36 @@
1# $NetBSD: Makefile,v 1.12 2009/05/22 07:16:58 plunky Exp $ 1# $NetBSD: Makefile,v 1.13 2009/07/20 05:56:02 hasso Exp $
2# 2#
3 3
4DISTNAME= obexftp-0.20 4DISTNAME= obexftp-0.20
5PKGREVISION= 1 5PKGREVISION= 2
6CATEGORIES= comms 6CATEGORIES= comms
7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openobex/} 7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openobex/}
8EXTRACT_SUFX= .tar.bz2 8EXTRACT_SUFX= .tar.bz2
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://openobex.triq.net/ 11HOMEPAGE= http://openobex.triq.net/
12COMMENT= File copying over the Object Exchange (OBEX) protocol 12COMMENT= File copying over the Object Exchange (OBEX) protocol
13 13
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
15 15
16GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
17USE_TOOLS+= autoconf gmake pkg-config 17USE_TOOLS+= autoconf gmake pkg-config
18USE_LIBTOOL= yes 18USE_LIBTOOL= yes
19 19
20CONFIGURE_ARGS+= --disable-perl 20CONFIGURE_ARGS+= --disable-perl
21CONFIGURE_ARGS+= --disable-python 21CONFIGURE_ARGS+= --disable-python
22CONFIGURE_ARGS+= --disable-swig 22CONFIGURE_ARGS+= --disable-swig
23 23
24.include "../../mk/bsd.prefs.mk" 24.include "../../mk/bsd.prefs.mk"
25 25
26.if (${OPSYS} == "NetBSD" && exists(/usr/include/bluetooth.h)) 26.if ((${OPSYS} == "NetBSD" && exists(/usr/include/bluetooth.h)) || ${OPSYS} == "DragonFly")
27CPPFLAGS+= -DCOMPAT_BLUEZ -DSDP_COMPAT 27CPPFLAGS+= -DCOMPAT_BLUEZ -DSDP_COMPAT
28.endif 28.endif
29 29
30post-patch: 30post-patch:
31 cd ${WRKSRC} && autoconf 31 cd ${WRKSRC} && autoconf
32 32
33.include "../../comms/openobex/buildlink3.mk" 33.include "../../comms/openobex/buildlink3.mk"
34.include "../../converters/libiconv/buildlink3.mk" 34.include "../../converters/libiconv/buildlink3.mk"
35.include "../../devel/libusb/buildlink3.mk" 35.include "../../devel/libusb/buildlink3.mk"
36.include "../../mk/bsd.pkg.mk" 36.include "../../mk/bsd.pkg.mk"

cvs diff -r1.6 -r1.7 pkgsrc/comms/obexftp/distinfo (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/distinfo 2006/12/07 14:22:18 1.6
+++ pkgsrc/comms/obexftp/distinfo 2009/07/20 05:56:02 1.7
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1$NetBSD: distinfo,v 1.6 2006/12/07 14:22:18 xtraeme Exp $ 1$NetBSD: distinfo,v 1.7 2009/07/20 05:56:02 hasso Exp $
2 2
3SHA1 (obexftp-0.20.tar.bz2) = 0b3a7d2aeb0dbd24d75761a7e59f42f46ea5ef82 3SHA1 (obexftp-0.20.tar.bz2) = 0b3a7d2aeb0dbd24d75761a7e59f42f46ea5ef82
4RMD160 (obexftp-0.20.tar.bz2) = ded5cf4d95eac77d5f6ee0a39f3789eb962534ed 4RMD160 (obexftp-0.20.tar.bz2) = ded5cf4d95eac77d5f6ee0a39f3789eb962534ed
5Size (obexftp-0.20.tar.bz2) = 351641 bytes 5Size (obexftp-0.20.tar.bz2) = 351641 bytes
6SHA1 (patch-aa) = e70d2fd0655a95a43f3a9440e5a2e2ab91a2ed54 6SHA1 (patch-aa) = 65925a0df323cd391dab48f45fcf6c99dbcc8fbb
7SHA1 (patch-ab) = d4693413a992f53f6aca92d9e920185c1b5e4f0e 7SHA1 (patch-ab) = 0a0c2cbcfc9449df48e8340dba1593d5593129f5
8SHA1 (patch-ac) = d06b6be98745778e2ce8e97762c102d4dbccecfc 8SHA1 (patch-ac) = 6b44406a04ea81eb615d6ed9ffebf2db27008e35
9SHA1 (patch-ad) = 8c3b99cbc2f45fe039aae000aeebb2d5779355f9 9SHA1 (patch-ad) = 00ada8c88756d3201b02e5a0b9467a7ee1ad0f50
10SHA1 (patch-ae) = 276fa421e2f20784cbcb873b0ce6870bef71d033 10SHA1 (patch-ae) = d08fd3b4aa5e2f61eda5ea6d3f6656f8b036af30
11SHA1 (patch-af) = 4de53a6ec0d711f948980cdfdd4adea3928b64bd 11SHA1 (patch-af) = f1e96b8a15a4fec69b81d19635a674ee307d31c1
12SHA1 (patch-ag) = e61fdbba340af591318b1aa3b70272a969e01e70 12SHA1 (patch-ag) = 7a3f10354e8a86022cac360b8a36198d9e7449ab
13SHA1 (patch-ah) = c0fe5bd78e7614a7eb6adb7154676fd9bde7a31c 13SHA1 (patch-ah) = c0fe5bd78e7614a7eb6adb7154676fd9bde7a31c
14SHA1 (patch-ai) = 2e77a0cd8998f3a558a2587b5cbdc7c0e080bc0f 14SHA1 (patch-ai) = 8baf3463303156e890316622ddeb011842acaa85
15SHA1 (patch-aj) = c563733a616ec0ad5b94a3ff8de5e3a2e91ccd5b 15SHA1 (patch-aj) = 26f6509d26aaa893fe6018bd048135fb077e0b9c
16SHA1 (patch-ak) = 3131a38f66bec5d0bba563e72ad2a75f21e65b99 16SHA1 (patch-ak) = bdef026206a0dca2c4781b06bbdfdd90f1c934f6
17SHA1 (patch-al) = 1f2dd6ed302711f17e33584cc34f6f674a6973c7 17SHA1 (patch-al) = 1f2dd6ed302711f17e33584cc34f6f674a6973c7

cvs diff -r1.4 -r1.5 pkgsrc/comms/obexftp/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-aa 2006/12/07 14:22:18 1.4
+++ pkgsrc/comms/obexftp/patches/Attic/patch-aa 2009/07/20 05:56:03 1.5
@@ -1,69 +1,69 @@ @@ -1,69 +1,69 @@
1$NetBSD: patch-aa,v 1.4 2006/12/07 14:22:18 xtraeme Exp $ 1$NetBSD: patch-aa,v 1.5 2009/07/20 05:56:03 hasso Exp $
2 2
3--- aclocal.m4.orig 2006-05-16 16:50:36.000000000 +0200 3--- aclocal.m4.orig 2006-05-16 16:50:36.000000000 +0200
4+++ aclocal.m4 2006-10-22 10:07:38.000000000 +0200 4+++ aclocal.m4 2006-10-22 10:07:38.000000000 +0200
5@@ -56,6 +56,9 @@ 5@@ -56,6 +56,9 @@
6 #ifdef __FreeBSD__ 6 #ifdef __FreeBSD__
7 #include <sys/types.h> 7 #include <sys/types.h>
8 #include <bluetooth.h> 8 #include <bluetooth.h>
9+ #elif defined(__NetBSD__) 9+ #elif defined(__NetBSD__) || defined(__DragonFly__)
10+ #include <bluetooth.h> 10+ #include <bluetooth.h>
11+ #include <netbt/rfcomm.h> 11+ #include <netbt/rfcomm.h>
12 #else /* Linux */ 12 #else /* Linux */
13 #include <sys/socket.h> 13 #include <sys/socket.h>
14 #include <bluetooth/bluetooth.h> 14 #include <bluetooth/bluetooth.h>
15@@ -65,6 +68,9 @@ 15@@ -65,6 +68,9 @@
16 #ifdef __FreeBSD__ 16 #ifdef __FreeBSD__
17 bdaddr_t bdaddr; 17 bdaddr_t bdaddr;
18 struct sockaddr_rfcomm addr; 18 struct sockaddr_rfcomm addr;
19+ #elif defined(__NetBSD__) 19+ #elif defined(__NetBSD__) || defined(__DragonFly__)
20+ bdaddr_t bdaddr; 20+ bdaddr_t bdaddr;
21+ struct sockaddr_bt addr; 21+ struct sockaddr_bt addr;
22 #else /* Linux */ 22 #else /* Linux */
23 bdaddr_t bdaddr; 23 bdaddr_t bdaddr;
24 struct sockaddr_rc addr; 24 struct sockaddr_rc addr;
25@@ -76,6 +82,7 @@ 25@@ -76,6 +82,7 @@
26 AC_DEFINE([HAVE_BLUETOOTH], [1], [Define if system supports Bluetooth and it's enabled]) 26 AC_DEFINE([HAVE_BLUETOOTH], [1], [Define if system supports Bluetooth and it's enabled])
27 BLUETOOTH_CFLAGS="" 27 BLUETOOTH_CFLAGS=""
28 BLUETOOTH_LIBS="-lbluetooth" 28 BLUETOOTH_LIBS="-lbluetooth"
29+ AC_CHECK_LIB(sdp, sdp_open, BLUETOOTH_LIBS="$BLUETOOTH_LIBS -lsdp") 29+ AC_CHECK_LIB(sdp, sdp_open, BLUETOOTH_LIBS="$BLUETOOTH_LIBS -lsdp")
30 fi 30 fi
31 AC_SUBST(BLUETOOTH_CFLAGS) 31 AC_SUBST(BLUETOOTH_CFLAGS)
32 AC_SUBST(BLUETOOTH_LIBS) 32 AC_SUBST(BLUETOOTH_LIBS)
33@@ -92,14 +99,22 @@ 33@@ -92,14 +99,22 @@
34 AC_MSG_CHECKING(for Bluetooth SDP support) 34 AC_MSG_CHECKING(for Bluetooth SDP support)
35  35
36 AC_TRY_COMPILE( [ 36 AC_TRY_COMPILE( [
37+ #ifdef __NetBSD__ 37+ #if defined(__NetBSD__) || defined(__DragonFly__)
38+ #include <bluetooth.h> 38+ #include <bluetooth.h>
39+ #include <sdp.h> 39+ #include <sdp.h>
40+ #else 40+ #else
41 #include <bluetooth/sdp.h> 41 #include <bluetooth/sdp.h>
42+ #endif 42+ #endif
43 ],[ 43 ],[
44+ #ifdef __NetBSD__ 44+ #if defined(__NetBSD__) || defined(__DragonFly__)
45+ sdp_attr_t attr; 45+ sdp_attr_t attr;
46+ #else 46+ #else
47 sdp_list_t sdplist; 47 sdp_list_t sdplist;
48+ #endif 48+ #endif
49 ], 49 ],
50 am_cv_sdplib_found=yes, 50 am_cv_sdplib_found=yes,
51 am_cv_sdplib_found=no 51 am_cv_sdplib_found=no
52 ) 52 )
53- 53-
54 if test $am_cv_sdplib_found = yes; then 54 if test $am_cv_sdplib_found = yes; then
55 AC_DEFINE(HAVE_SDPLIB,1,[Define if system supports Bluetooth SDP]) 55 AC_DEFINE(HAVE_SDPLIB,1,[Define if system supports Bluetooth SDP])
56  56
57@@ -118,6 +133,12 @@ 57@@ -118,6 +133,12 @@
58 AC_MSG_CHECKING(for USB support) 58 AC_MSG_CHECKING(for USB support)
59  59
60 AC_TRY_COMPILE( [ 60 AC_TRY_COMPILE( [
61+ #ifdef __NetBSD__ 61+ #if defined(__NetBSD__) || defined(__DragonFly__)
62+ #include <bluetooth.h> 62+ #include <bluetooth.h>
63+ #else 63+ #else
64+ #include <bluetooth/bluetooth.h> 64+ #include <bluetooth/bluetooth.h>
65+ #endif 65+ #endif
66+ 66+
67 #include <openobex/obex.h> 67 #include <openobex/obex.h>
68 #include <openobex/obex_const.h> 68 #include <openobex/obex_const.h>
69 ],[ 69 ],[

cvs diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/Attic/patch-ab (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-ab 2006/07/17 12:29:57 1.2
+++ pkgsrc/comms/obexftp/patches/Attic/patch-ab 2009/07/20 05:56:03 1.3
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1$NetBSD: patch-ab,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ 1$NetBSD: patch-ab,v 1.3 2009/07/20 05:56:03 hasso Exp $
2 2
3--- multicobex/multi_cobex.c.orig 2005-11-24 15:55:11.000000000 +0100 3--- multicobex/multi_cobex.c.orig 2005-11-24 15:55:11.000000000 +0100
4+++ multicobex/multi_cobex.c 2006-07-09 12:21:14.000000000 +0200 4+++ multicobex/multi_cobex.c 2006-07-09 12:21:14.000000000 +0200
5@@ -49,6 +49,14 @@ 5@@ -49,6 +49,14 @@
6 #include <termios.h> 6 #include <termios.h>
7 #endif 7 #endif
8  8
9+#ifdef HAVE_BLUETOOTH 9+#ifdef HAVE_BLUETOOTH
10+#ifdef __NetBSD__ 10+#if defined(__NetBSD__) || defined(__DragonFly__)
11+#include <bluetooth.h> 11+#include <bluetooth.h>
12+#else 12+#else
13+#include <bluetooth/bluetooth.h> 13+#include <bluetooth/bluetooth.h>
14+#endif 14+#endif
15+#endif /* HAVE_BLUETOOTH */ 15+#endif /* HAVE_BLUETOOTH */
16+ 16+
17 #include <openobex/obex.h> 17 #include <openobex/obex.h>
18 #include "multi_cobex.h" 18 #include "multi_cobex.h"
19 #include "multi_cobex_private.h" 19 #include "multi_cobex_private.h"

cvs diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/Attic/patch-ac (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-ac 2006/07/17 12:29:57 1.2
+++ pkgsrc/comms/obexftp/patches/Attic/patch-ac 2009/07/20 05:56:03 1.3
@@ -1,26 +1,26 @@ @@ -1,26 +1,26 @@
1$NetBSD: patch-ac,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ 1$NetBSD: patch-ac,v 1.3 2009/07/20 05:56:03 hasso Exp $
2 2
3--- obexftp/object.h.orig 2005-09-13 16:53:20.000000000 +0200 3--- obexftp/object.h.orig 2005-09-13 16:53:20.000000000 +0200
4+++ obexftp/object.h 2006-07-09 12:45:14.000000000 +0200 4+++ obexftp/object.h 2006-07-09 12:45:14.000000000 +0200
5@@ -22,7 +22,21 @@ 5@@ -22,7 +22,21 @@
6 #ifndef OBEXFTP_OBJECT_H 6 #ifndef OBEXFTP_OBJECT_H
7 #define OBEXFTP_OBJECT_H 7 #define OBEXFTP_OBJECT_H
8  8
9+#ifdef HAVE_CONFIG_H 9+#ifdef HAVE_CONFIG_H
10+#include <config.h> 10+#include <config.h>
11+#endif 11+#endif
12+ 12+
13 #include <inttypes.h> 13 #include <inttypes.h>
14+#include <sys/types.h> 14+#include <sys/types.h>
15+ 15+
16+#ifdef HAVE_BLUETOOTH 16+#ifdef HAVE_BLUETOOTH
17+#ifdef __NetBSD__ 17+#if defined(__NetBSD__) || defined(__DragonFly__)
18+#include <bluetooth.h> 18+#include <bluetooth.h>
19+#else 19+#else
20+#include <bluetooth/bluetooth.h> 20+#include <bluetooth/bluetooth.h>
21+#endif 21+#endif
22+#endif /* HAVE_BLUETOOTH */ 22+#endif /* HAVE_BLUETOOTH */
23+ 23+
24 #include <openobex/obex.h> 24 #include <openobex/obex.h>
25  25
26 #ifdef __cplusplus 26 #ifdef __cplusplus

cvs diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/Attic/patch-ad (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-ad 2006/07/17 12:29:57 1.2
+++ pkgsrc/comms/obexftp/patches/Attic/patch-ad 2009/07/20 05:56:03 1.3
@@ -1,28 +1,28 @@ @@ -1,28 +1,28 @@
1$NetBSD: patch-ad,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ 1$NetBSD: patch-ad,v 1.3 2009/07/20 05:56:03 hasso Exp $
2 2
3--- obexftp/client.h.orig 2006-01-11 16:22:51.000000000 +0100 3--- obexftp/client.h.orig 2006-01-11 16:22:51.000000000 +0100
4+++ obexftp/client.h 2006-07-09 12:39:10.000000000 +0200 4+++ obexftp/client.h 2006-07-09 12:39:10.000000000 +0200
5@@ -22,9 +22,23 @@ 5@@ -22,9 +22,23 @@
6 #ifndef OBEXFTP_CLIENT_H 6 #ifndef OBEXFTP_CLIENT_H
7 #define OBEXFTP_CLIENT_H 7 #define OBEXFTP_CLIENT_H
8  8
9+#ifdef HAVE_CONFIG_H 9+#ifdef HAVE_CONFIG_H
10+#include <config.h> 10+#include <config.h>
11+#endif 11+#endif
12+ 12+
13 #include <inttypes.h> 13 #include <inttypes.h>
14 #include <sys/stat.h> 14 #include <sys/stat.h>
15+#include <sys/types.h> 15+#include <sys/types.h>
16 #include <time.h> 16 #include <time.h>
17+ 17+
18+#ifdef HAVE_BLUETOOTH 18+#ifdef HAVE_BLUETOOTH
19+#ifdef __NetBSD__ 19+#if defined(__NetBSD__) || defined(__DragonFly__)
20+#include <bluetooth.h> 20+#include <bluetooth.h>
21+#else 21+#else
22+#include <bluetooth/bluetooth.h> 22+#include <bluetooth/bluetooth.h>
23+#endif 23+#endif
24+#endif /* HAVE_BLUETOOTH */ 24+#endif /* HAVE_BLUETOOTH */
25+ 25+
26 #include <openobex/obex.h> 26 #include <openobex/obex.h>
27 #ifndef OBEX_TRANS_USB 27 #ifndef OBEX_TRANS_USB
28 #define OBEX_TRANS_USB 6 28 #define OBEX_TRANS_USB 6

cvs diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/Attic/patch-ae (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-ae 2006/07/17 12:29:57 1.2
+++ pkgsrc/comms/obexftp/patches/Attic/patch-ae 2009/07/20 05:56:03 1.3
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1$NetBSD: patch-ae,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ 1$NetBSD: patch-ae,v 1.3 2009/07/20 05:56:03 hasso Exp $
2 2
3--- obexftp/client.c.orig 2006-07-09 12:37:02.000000000 +0200 3--- obexftp/client.c.orig 2006-07-09 12:37:02.000000000 +0200
4+++ obexftp/client.c 2006-07-09 12:38:10.000000000 +0200 4+++ obexftp/client.c 2006-07-09 12:38:10.000000000 +0200
5@@ -48,6 +48,10 @@ 5@@ -48,6 +48,10 @@
6 #ifdef __FreeBSD__ 6 #ifdef __FreeBSD__
7 #include <sys/types.h> 7 #include <sys/types.h>
8 #include <bluetooth.h> 8 #include <bluetooth.h>
9+#elif defined(__NetBSD__) 9+#elif defined(__NetBSD__) || defined(__DragonFly__)
10+#include <sys/types.h> 10+#include <sys/types.h>
11+#include <bluetooth.h> 11+#include <bluetooth.h>
12+#include <netbt/rfcomm.h> 12+#include <netbt/rfcomm.h>
13 #else /* Linux */ 13 #else /* Linux */
14 #include <bluetooth/bluetooth.h> 14 #include <bluetooth/bluetooth.h>
15 #include <bluetooth/rfcomm.h> 15 #include <bluetooth/rfcomm.h>

cvs diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/Attic/patch-af (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-af 2006/07/17 12:29:57 1.2
+++ pkgsrc/comms/obexftp/patches/Attic/patch-af 2009/07/20 05:56:03 1.3
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1$NetBSD: patch-af,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ 1$NetBSD: patch-af,v 1.3 2009/07/20 05:56:03 hasso Exp $
2 2
3--- obexftp/obexftp_io.c.orig 2006-07-09 12:40:32.000000000 +0200 3--- obexftp/obexftp_io.c.orig 2006-07-09 12:40:32.000000000 +0200
4+++ obexftp/obexftp_io.c 2006-07-09 12:41:36.000000000 +0200 4+++ obexftp/obexftp_io.c 2006-07-09 12:41:36.000000000 +0200
5@@ -30,6 +30,18 @@ 5@@ -30,6 +30,18 @@
6 #include <string.h> 6 #include <string.h>
7 #include <time.h> 7 #include <time.h>
8  8
9+#ifdef HAVE_CONFIG_H 9+#ifdef HAVE_CONFIG_H
10+#include <config.h> 10+#include <config.h>
11+#endif 11+#endif
12+ 12+
13+#ifdef HAVE_BLUETOOTH 13+#ifdef HAVE_BLUETOOTH
14+#ifdef __NetBSD__ 14+#if defined(__NetBSD__) || defined(__DragonFly__)
15+#include <bluetooth.h> 15+#include <bluetooth.h>
16+#else 16+#else
17+#include <bluetooth/bluetooth.h> 17+#include <bluetooth/bluetooth.h>
18+#endif 18+#endif
19+#endif /* HAVE_BLUETOOTH */ 19+#endif /* HAVE_BLUETOOTH */
20+ 20+
21 #include <openobex/obex.h> 21 #include <openobex/obex.h>
22  22
23 #include "obexftp_io.h" 23 #include "obexftp_io.h"

cvs diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/Attic/patch-ag (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-ag 2006/07/17 12:29:57 1.2
+++ pkgsrc/comms/obexftp/patches/Attic/patch-ag 2009/07/20 05:56:03 1.3
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1$NetBSD: patch-ag,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ 1$NetBSD: patch-ag,v 1.3 2009/07/20 05:56:03 hasso Exp $
2 2
3--- obexftp/cache.c.orig 2006-07-09 12:43:21.000000000 +0200 3--- obexftp/cache.c.orig 2006-07-09 12:43:21.000000000 +0200
4+++ obexftp/cache.c 2006-07-09 12:43:56.000000000 +0200 4+++ obexftp/cache.c 2006-07-09 12:43:56.000000000 +0200
5@@ -40,6 +40,14 @@ 5@@ -40,6 +40,14 @@
6 #include <langinfo.h> 6 #include <langinfo.h>
7 #endif 7 #endif
8  8
9+#ifdef HAVE_BLUETOOTH 9+#ifdef HAVE_BLUETOOTH
10+#ifdef __NetBSD__ 10+#if defined(__NetBSD__) || defined(__DragonFly__)
11+#include <bluetooth.h> 11+#include <bluetooth.h>
12+#else 12+#else
13+#include <bluetooth/bluetooth.h> 13+#include <bluetooth/bluetooth.h>
14+#endif 14+#endif
15+#endif /* HAVE_BLUETOOTH */ 15+#endif /* HAVE_BLUETOOTH */
16+ 16+
17 #include <openobex/obex.h> 17 #include <openobex/obex.h>
18  18
19 #include "obexftp.h" 19 #include "obexftp.h"

cvs diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/Attic/patch-ai (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-ai 2006/07/24 17:07:15 1.2
+++ pkgsrc/comms/obexftp/patches/Attic/patch-ai 2009/07/20 05:56:03 1.3
@@ -1,34 +1,34 @@ @@ -1,34 +1,34 @@
1$NetBSD: patch-ai,v 1.2 2006/07/24 17:07:15 xtraeme Exp $ 1$NetBSD: patch-ai,v 1.3 2009/07/20 05:56:03 hasso Exp $
2 2
3--- apps/obexftpd.c.orig 2006-04-13 07:57:55.000000000 +0200 3--- apps/obexftpd.c.orig 2006-04-13 07:57:55.000000000 +0200
4+++ apps/obexftpd.c 4+++ apps/obexftpd.c
5@@ -23,6 +23,10 @@ 5@@ -23,6 +23,10 @@
6 * Created at: Don, 2 Okt 2003 6 * Created at: Don, 2 Okt 2003
7 */ 7 */
8  8
9+#ifdef HAVE_CONFIG_H 9+#ifdef HAVE_CONFIG_H
10+#include <config.h> 10+#include <config.h>
11+#endif 11+#endif
12+ 12+
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <string.h> 15 #include <string.h>
16@@ -45,6 +49,14 @@ 16@@ -45,6 +49,14 @@
17 #include <netdb.h> 17 #include <netdb.h>
18 #endif /*_WIN32*/ 18 #endif /*_WIN32*/
19  19
20+#ifdef HAVE_BLUETOOTH 20+#ifdef HAVE_BLUETOOTH
21+#ifdef __NetBSD__ 21+#if defined(__NetBSD__) || defined(__DragonFly__)
22+#include <bluetooth.h> 22+#include <bluetooth.h>
23+#else 23+#else
24+#include <bluetooth/bluetooth.h> 24+#include <bluetooth/bluetooth.h>
25+#endif 25+#endif
26+#endif /* HAVE_BLUETOOTH */ 26+#endif /* HAVE_BLUETOOTH */
27+ 27+
28 /* just until there is a server layer in obexftp */ 28 /* just until there is a server layer in obexftp */
29 #include <openobex/obex.h> 29 #include <openobex/obex.h>
30  30
31@@ -934,16 +946,21 @@ static void start_server(int transport) 31@@ -934,16 +946,21 @@ static void start_server(int transport)
32 exit(0); 32 exit(0);
33 } 33 }
34  34

cvs diff -r1.2 -r1.3 pkgsrc/comms/obexftp/patches/Attic/patch-ak (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-ak 2006/07/24 17:07:15 1.2
+++ pkgsrc/comms/obexftp/patches/Attic/patch-ak 2009/07/20 05:56:03 1.3
@@ -1,31 +1,31 @@ @@ -1,31 +1,31 @@
1$NetBSD: patch-ak,v 1.2 2006/07/24 17:07:15 xtraeme Exp $ 1$NetBSD: patch-ak,v 1.3 2009/07/20 05:56:03 hasso Exp $
2 2
3--- apps/obexftp_sdp.c.orig 2006-03-08 00:34:15.000000000 +0100 3--- apps/obexftp_sdp.c.orig 2006-03-08 00:34:15.000000000 +0100
4+++ apps/obexftp_sdp.c 4+++ apps/obexftp_sdp.c
5@@ -25,6 +25,8 @@ 5@@ -25,6 +25,8 @@
6 #include <config.h> 6 #include <config.h>
7 #endif 7 #endif
8  8
9+#ifdef HAVE_BLUETOOTH 9+#ifdef HAVE_BLUETOOTH
10+ 10+
11 #include <stdio.h> 11 #include <stdio.h>
12 #include <errno.h> 12 #include <errno.h>
13 #include <unistd.h> 13 #include <unistd.h>
14@@ -34,6 +36,53 @@ 14@@ -34,6 +36,53 @@
15 #include <sys/types.h> 15 #include <sys/types.h>
16 #include <sys/socket.h> 16 #include <sys/socket.h>
17  17
18+#ifdef __NetBSD__ 18+#if defined(__NetBSD__) || defined(__DragonFly__)
19+#include <bluetooth.h> 19+#include <bluetooth.h>
20+#include <sdp.h> 20+#include <sdp.h>
21+ 21+
22+#include "obexftp_sdp.h" 22+#include "obexftp_sdp.h"
23+ 23+
24+#define OBEXFTP_RFCOMM_CHANNEL 10 24+#define OBEXFTP_RFCOMM_CHANNEL 10
25+ 25+
26+static void *session; 26+static void *session;
27+ 27+
28+void 28+void
29+obexftp_sdp_unregister(void) 29+obexftp_sdp_unregister(void)
30+{ 30+{
31+ sdp_close(session); 31+ sdp_close(session);

cvs diff -r1.1 -r1.2 pkgsrc/comms/obexftp/patches/Attic/patch-aj (expand / switch to unified diff)

--- pkgsrc/comms/obexftp/patches/Attic/patch-aj 2006/07/17 12:29:57 1.1
+++ pkgsrc/comms/obexftp/patches/Attic/patch-aj 2009/07/20 05:56:03 1.2
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1$NetBSD: patch-aj,v 1.1 2006/07/17 12:29:57 xtraeme Exp $ 1$NetBSD: patch-aj,v 1.2 2009/07/20 05:56:03 hasso Exp $
2 2
3--- apps/bt_discovery.c.orig 2006-01-11 17:27:35.000000000 +0000 3--- apps/bt_discovery.c.orig 2006-01-11 17:27:35.000000000 +0000
4+++ apps/bt_discovery.c 4+++ apps/bt_discovery.c
5@@ -10,6 +10,205 @@ 5@@ -10,6 +10,205 @@
6 #include <sys/types.h> 6 #include <sys/types.h>
7 #include <sys/socket.h> 7 #include <sys/socket.h>
8  8
9+#ifdef __NetBSD__ 9+#if defined(__NetBSD__) || defined(__DragonFly__)
10+#include <bluetooth.h> 10+#include <bluetooth.h>
11+#include <err.h> 11+#include <err.h>
12+#include <errno.h> 12+#include <errno.h>
13+#include <sdp.h> 13+#include <sdp.h>
14+ 14+
15+#include "bt_discovery.h" 15+#include "bt_discovery.h"
16+ 16+
17+/* 17+/*
18+ * Parse protocol descriptor list for the RFCOMM channel 18+ * Parse protocol descriptor list for the RFCOMM channel
19+ * 19+ *
20+ * seq8 len8 2 20+ * seq8 len8 2
21+ * seq8 len8 2 21+ * seq8 len8 2
22+ * uuid16 value16 3 L2CAP 22+ * uuid16 value16 3 L2CAP