pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/nmap/patches



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu May 15 15:47:09 UTC 2025

Added Files:
        pkgsrc/net/nmap/patches: patch-ncat_configure patch-nping_configure

Log Message:
nmap: add patches


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/nmap/patches/patch-ncat_configure \
    pkgsrc/net/nmap/patches/patch-nping_configure

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

Added files:

Index: pkgsrc/net/nmap/patches/patch-ncat_configure
diff -u /dev/null pkgsrc/net/nmap/patches/patch-ncat_configure:1.1
--- /dev/null   Thu May 15 15:47:09 2025
+++ pkgsrc/net/nmap/patches/patch-ncat_configure        Thu May 15 15:47:08 2025
@@ -0,0 +1,30 @@
+$NetBSD: patch-ncat_configure,v 1.1 2025/05/15 15:47:08 adam Exp $
+
+pcap_version is not portable.
+
+--- ncat/configure.orig        2025-05-15 09:52:29.731026958 +0000
++++ ncat/configure
+@@ -4832,9 +4832,10 @@ else
+ /* end confdefs.h.  */
+ 
+ #include <stdio.h>
+-extern char pcap_version[];
++#include <pcap/pcap.h>
+ int main() {
+   int major, minor1, minor2;
++  const char *pcap_version = pcap_lib_version();
+   sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
+   if (major > 0)
+     return 0;
+@@ -4868,9 +4869,10 @@ else
+ #ifdef HAVE_NET_BPF_H
+ #include <net/bpf.h>
+ #endif
+-extern char pcap_version[];
++#include <pcap/pcap.h>
+ int main() {
+   int major, minor;
++  const char *pcap_version = pcap_lib_version();
+   sscanf(pcap_version,"%d.%d", &major, &minor);
+   if ((major == 1 && minor >= 1) || major > 1)
+     return 0;
Index: pkgsrc/net/nmap/patches/patch-nping_configure
diff -u /dev/null pkgsrc/net/nmap/patches/patch-nping_configure:1.1
--- /dev/null   Thu May 15 15:47:09 2025
+++ pkgsrc/net/nmap/patches/patch-nping_configure       Thu May 15 15:47:08 2025
@@ -0,0 +1,30 @@
+$NetBSD: patch-nping_configure,v 1.1 2025/05/15 15:47:08 adam Exp $
+
+pcap_version is not portable.
+
+--- nping/configure.orig       2025-05-15 09:53:51.037421707 +0000
++++ nping/configure
+@@ -6057,9 +6057,10 @@ else $as_nop
+ /* end confdefs.h.  */
+ 
+ #include <stdio.h>
+-extern char pcap_version[];
++#include <pcap/pcap.h>
+ int main() {
+   int major, minor1, minor2;
++  const char *pcap_version = pcap_lib_version();
+   sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
+   if (major > 0)
+     return 0;
+@@ -6095,9 +6096,10 @@ else $as_nop
+ #ifdef HAVE_NET_BPF_H
+ #include <net/bpf.h>
+ #endif
+-extern char pcap_version[];
++#include <pcap/pcap.h>
+ int main() {
+   int major, minor;
++  const char *pcap_version = pcap_lib_version();
+   sscanf(pcap_version,"%d.%d", &major, &minor);
+   if ((major == 1 && minor >= 1) || major > 1)
+     return 0;



Home | Main Index | Thread Index | Old Index