summaryrefslogtreecommitdiff
path: root/net/tinc/patches
diff options
context:
space:
mode:
Diffstat (limited to 'net/tinc/patches')
-rw-r--r--net/tinc/patches/patch-ab15
-rw-r--r--net/tinc/patches/patch-ac22
-rw-r--r--net/tinc/patches/patch-ad25
3 files changed, 60 insertions, 2 deletions
diff --git a/net/tinc/patches/patch-ab b/net/tinc/patches/patch-ab
index c584131535f..4fd1259c953 100644
--- a/net/tinc/patches/patch-ab
+++ b/net/tinc/patches/patch-ab
@@ -1,8 +1,10 @@
-$NetBSD: patch-ab,v 1.3 2010/05/01 16:56:41 tonnerre Exp $
+$NetBSD: patch-ab,v 1.4 2011/02/13 00:20:24 rumko Exp $
+
+DragonFly BSD support (see https://github.com/gsliepen/tinc/pull/1)
--- configure.orig 2010-04-11 17:49:06.000000000 +0000
+++ configure
-@@ -4723,7 +4723,7 @@ $as_echo "#define HAVE_LINUX 1" >>confde
+@@ -4723,7 +4723,7 @@
rm -f src/device.c; ln -sf linux/device.c src/device.c
;;
@@ -11,3 +13,12 @@ $NetBSD: patch-ab,v 1.3 2010/05/01 16:56:41 tonnerre Exp $
$as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
+@@ -5019,7 +5019,7 @@
+
+ done
+
+-for ac_header in net/if.h net/if_types.h linux/if_tun.h net/if_tun.h net/if_tap.h net/ethernet.h net/if_arp.h netinet/in_systm.h netinet/in.h netinet/in6.h
++for ac_header in net/if.h net/if_types.h linux/if_tun.h net/if_tun.h net/tun/if_tun.h net/if_tap.h net/tap/if_tap.h net/ethernet.h net/if_arp.h netinet/in_systm.h netinet/in.h netinet/in6.h
+ do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include \"have.h\"
diff --git a/net/tinc/patches/patch-ac b/net/tinc/patches/patch-ac
new file mode 100644
index 00000000000..0b24311861f
--- /dev/null
+++ b/net/tinc/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1 2011/02/13 00:20:24 rumko Exp $
+
+DragonFly BSD support (see https://github.com/gsliepen/tinc/pull/1)
+
+--- config.h.in.orig 2010-04-11 19:49:08 +0200
++++ config.h.in
+@@ -167,9 +167,15 @@
+ /* Define to 1 if you have the <net/if_tap.h> header file. */
+ #undef HAVE_NET_IF_TAP_H
+
++/* Define to 1 if you have the <net/tap/if_tap.h> header file. */
++#undef HAVE_NET_TAP_IF_TAP_H
++
+ /* Define to 1 if you have the <net/if_tun.h> header file. */
+ #undef HAVE_NET_IF_TUN_H
+
++/* Define to 1 if you have the <net/tun/if_tun.h> header file. */
++#undef HAVE_NET_TUN_IF_TUN_H
++
+ /* Define to 1 if you have the <net/if_types.h> header file. */
+ #undef HAVE_NET_IF_TYPES_H
+
diff --git a/net/tinc/patches/patch-ad b/net/tinc/patches/patch-ad
new file mode 100644
index 00000000000..2f814ae769a
--- /dev/null
+++ b/net/tinc/patches/patch-ad
@@ -0,0 +1,25 @@
+$NetBSD: patch-ad,v 1.1 2011/02/13 00:20:24 rumko Exp $
+
+DragonFly BSD support (see https://github.com/gsliepen/tinc/pull/1)
+
+--- have.h.orig 2010-03-13 18:53:33 +0100
++++ have.h 2011-01-30 21:15:07 +0100
+@@ -123,10 +123,18 @@
+ #include <net/if_tun.h>
+ #endif
+
++#ifdef HAVE_NET_TUN_IF_TUN_H
++#include <net/tun/if_tun.h>
++#endif
++
+ #ifdef HAVE_NET_IF_TAP_H
+ #include <net/if_tap.h>
+ #endif
+
++#ifdef HAVE_NET_TAP_IF_TAP_H
++#include <net/tap/if_tap.h>
++#endif
++
+ #ifdef HAVE_NETINET_IN_SYSTM_H
+ #include <netinet/in_systm.h>
+ #endif