git: 22402cde186c - main - net/arp-sk: Fix build with libnet 1.2+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 30 Jul 2022 06:03:38 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=22402cde186c6946c3d2e3b861894987f43401f3

commit 22402cde186c6946c3d2e3b861894987f43401f3
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-07-30 05:59:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-07-30 06:00:59 +0000

    net/arp-sk: Fix build with libnet 1.2+
---
 net/arp-sk/files/patch-configure | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/net/arp-sk/files/patch-configure b/net/arp-sk/files/patch-configure
new file mode 100644
index 000000000000..28bcdf9e3360
--- /dev/null
+++ b/net/arp-sk/files/patch-configure
@@ -0,0 +1,22 @@
+--- configure.orig	2004-12-07 15:26:51 UTC
++++ configure
+@@ -2932,8 +2932,8 @@ echo "${ECHO_T}yes" >&6
+ 
+ fi;
+ 
+-echo "$as_me:$LINENO: checking for version 1.1.x of libnet" >&5
+-echo $ECHO_N "checking for version 1.1.x of libnet... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for version 1.2.x of libnet" >&5
++echo $ECHO_N "checking for version 1.2.x of libnet... $ECHO_C" >&6
+ 
+ if test "$cross_compiling" = yes; then
+   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+@@ -2953,7 +2953,7 @@ cat >>conftest.$ac_ext <<_ACEOF
+ #include <string.h>
+ int main()
+ {
+-   return (strncmp(LIBNET_VERSION, "1.1.", 4));
++   return (strncmp(LIBNET_VERSION, "1.2", 3));
+ }
+ 
+ _ACEOF