pkgsrc-WIP-changes archive

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

Let wip/fwknop build on NetBSD



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Fri Apr 27 02:52:04 2018 +0200
Changeset:	78529fbba1dea4e90093f8c10ebb7b8ebacbd519

Modified Files:
	fwknop/distinfo
Added Files:
	fwknop/patches/patch-common_netinet__common.h
	fwknop/patches/patch-configure.ac

Log Message:
Let wip/fwknop build on NetBSD

As submitted to the project upstream. This package does not build as-is
yet though.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=78529fbba1dea4e90093f8c10ebb7b8ebacbd519

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 fwknop/distinfo                               |  2 ++
 fwknop/patches/patch-common_netinet__common.h | 15 +++++++++++++++
 fwknop/patches/patch-configure.ac             | 16 ++++++++++++++++
 3 files changed, 33 insertions(+)

diffs:
diff --git a/fwknop/distinfo b/fwknop/distinfo
index 7e177f75bc..3535605bb6 100644
--- a/fwknop/distinfo
+++ b/fwknop/distinfo
@@ -4,3 +4,5 @@ SHA1 (fwknop-2.6.9.tar.gz) = d306c206bc0afd26cad3567584d5017348ebc13e
 RMD160 (fwknop-2.6.9.tar.gz) = 6409bc7fa4880070502e3c92ff60bf3aa3968b3f
 SHA512 (fwknop-2.6.9.tar.gz) = 4706560d44c911c8604059d88dded9c1b8c333399d90ec7dc366c0fba96c79680bdbf1b8b5e76cc34aaf3a1e58fff80db8f5f20c96d57481bdb476a9b99f4d1b
 Size (fwknop-2.6.9.tar.gz) = 3043542 bytes
+SHA1 (patch-common_netinet__common.h) = 14aba8c993916b6ce4bd035326e1b74735333c8b
+SHA1 (patch-configure.ac) = a17c487cb4f294f3800b5557ccb8124c64c679c4
diff --git a/fwknop/patches/patch-common_netinet__common.h b/fwknop/patches/patch-common_netinet__common.h
new file mode 100644
index 0000000000..3adf283cd6
--- /dev/null
+++ b/fwknop/patches/patch-common_netinet__common.h
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Add support for NetBSD.
+
+--- common/netinet_common.h.orig	2016-06-09 01:01:53.000000000 +0000
++++ common/netinet_common.h
+@@ -45,7 +45,7 @@
+   #if HAVE_NETINET_IN_H
+     #include <netinet/in.h>
+   #endif
+-  #if PLATFORM_OPENBSD  /* OpenBSD hack due to autoconf net/if.h difficulties */
++  #if PLATFORM_NETBSD || PLATFORM_OPENBSD  /* for autoconf net/if.h difficulties */
+     #include <net/if.h>
+     #include <net/ethertypes.h>
+     #include <netinet/if_ether.h>
diff --git a/fwknop/patches/patch-configure.ac b/fwknop/patches/patch-configure.ac
new file mode 100644
index 0000000000..09adf2ec70
--- /dev/null
+++ b/fwknop/patches/patch-configure.ac
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Add support for NetBSD.
+
+--- configure.ac.orig	2016-06-09 01:01:53.000000000 +0000
++++ configure.ac
+@@ -412,6 +412,9 @@ use_mingw=no
+ case "$host" in
+ *-*-linux*)
+     ;;
++*-*-netbsd*)
++    AC_DEFINE_UNQUOTED([PLATFORM_NETBSD], [1], [Define if you are running on NetBSD])
++    ;;
+ *-*-openbsd*)
+     AC_DEFINE_UNQUOTED([PLATFORM_OPENBSD], [1], [Define if you are running on OpenBSD])
+     ;;


Home | Main Index | Thread Index | Old Index