summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2019-07-04 07:17:24 +0000
committeradam <adam@pkgsrc.org>2019-07-04 07:17:24 +0000
commit6dfba862a4091b10d007b7f7682d0fe5e6f38ece (patch)
tree11dafebaf173c4a330f43a8a6a5595cda4b66665 /net
parentd1dd978e691ac94938d93eb89003caeee3d2db90 (diff)
downloadpkgsrc-6dfba862a4091b10d007b7f7682d0fe5e6f38ece.tar.gz
libpcap: updated to 1.9.0
Summary for 1.9.0 libpcap release Added testing system to libpcap, independent of tcpdump Changes to how pcap_t is activated Adding support for Large stream buffers on Endace DAG cards Changes to BSD 3-clause license to 2-clause licence Additions to TCP header parsing, per RFC3168 Add CMake build process (extensive number of changes) Assign a value for OpenBSD DLT_OPENFLOW. Support setting non-blocking mode before activating. Extensive build support for Windows VS2010 and MINGW (many many changes, over many months) Added RPCAPD support when --enable-remote (default no) Add the rpcap daemon source and build instructions. Put back the greasy "save the capture filter string so we can tweak it" hack, that keeps libpcap from capturing rpcap traffic. Fixes for captures on MacOS, utun0 fixes so that non-AF_INET addresses, are not ==AF_INET6 addresses. Add a linktype for IBM SDLC frames containing SNA PDUs. pcap_compile() in 1.8.0 and later is newly thread-safe. bound snaplen for linux tpacket_v2 to ~64k Make VLAN filter handle both metadata and inline tags D-Bus captures can now be up to 128MB in size Added LORATAP DLT value Added DLT_VSOCK for http://qemu-project.org/Features/VirtioVsock probe_devices() fixes not to overrun buffer for name of device Add linux-specific pcap_set_protocol_linux() to allow specifying a specific capture protocol. RDMA sniffing support for pcap Add Nordic Semiconductor Bluetooth LE sniffer link-layer header type. fixes for reading /etc/ethers Make it possible to build on Windows without packet.dll. Add tests for large file support on UN*X. Solaris fixes to work with 2.8.6 configuration test now looks for header files, not capture devices present Fix to work with Berkeley YACC. fixes for DragonBSD compilation of pcap-netmap.c Clean up the ether_hostton() stuff. Add an option to disable Linux memory-mapped capture support. Add DAG API support checks. Add Septel, Myricom SNF, and Riverbed TurboCap checks. Add checks for Linux USB, Linux Bluetooth, D-Bus, and RDMA sniffing support. Add a check for hardware time stamping on Linux. Don't bother supporting pre-2005 Visual Studio. Increased minimum autoconf version requirement to 2.64 Add DLT value 273 for XRA-31 sniffer Clean up handing of signal interrupts in pcap_read_nocb_remote(). Use the XPG 4.2 versions of the networking APIs in Solaris. Fix, and better explain, the "IPv6 means IPv6, not IPv4" option setting. Explicitly warn that negative packet buffer timeouts should not be used. rpcapd: Add support inetd-likes, including xinetd.conf, and systemd units Rename DLT_IEEE802_15_4 to DLT_IEEE802_15_4_WITHFCS. Add DISPLAYPORT AUX link type Remove the sunos4 kernel modules and all references to them. Add more interface flags to pcap_findalldevs().
Diffstat (limited to 'net')
-rw-r--r--net/libpcap/Makefile5
-rw-r--r--net/libpcap/PLIST9
-rw-r--r--net/libpcap/distinfo16
-rw-r--r--net/libpcap/patches/patch-Makefile.in (renamed from net/libpcap/patches/patch-ac)192
-rw-r--r--net/libpcap/patches/patch-configure34
-rw-r--r--net/libpcap/patches/patch-fad-getad.c (renamed from net/libpcap/patches/patch-ad)4
6 files changed, 97 insertions, 163 deletions
diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile
index 841d9843000..7cedba6f176 100644
--- a/net/libpcap/Makefile
+++ b/net/libpcap/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.63 2017/02/02 18:46:39 maya Exp $
+# $NetBSD: Makefile,v 1.64 2019/07/04 07:17:24 adam Exp $
-DISTNAME= libpcap-1.8.1
+DISTNAME= libpcap-1.9.0
CATEGORIES= net
MASTER_SITES= http://www.tcpdump.org/release/
@@ -15,6 +15,7 @@ USE_LIBTOOL= yes
USE_TOOLS+= bison flex gm4
GNU_CONFIGURE= yes
CONFIGURE_ARGS.Darwin+= --disable-universal
+PKGCONFIG_OVERRIDE= libpcap.pc.in
# Versions of SunOS which include getifaddrs confuse the configure script,
# and result in dlpi stubs not being enabled.
diff --git a/net/libpcap/PLIST b/net/libpcap/PLIST
index b8a20d1059e..35fef795fa7 100644
--- a/net/libpcap/PLIST
+++ b/net/libpcap/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2017/02/02 18:46:39 maya Exp $
+@comment $NetBSD: PLIST,v 1.14 2019/07/04 07:17:24 adam Exp $
bin/pcap-config
include/pcap-bpf.h
include/pcap-int.h
@@ -7,16 +7,19 @@ include/pcap.h
include/pcap/bluetooth.h
include/pcap/bpf.h
include/pcap/can_socketcan.h
+include/pcap/compiler-tests.h
include/pcap/dlt.h
-include/pcap/export-defs.h
+include/pcap/funcattrs.h
include/pcap/ipnet.h
include/pcap/namedb.h
include/pcap/nflog.h
+include/pcap/pcap-inttypes.h
include/pcap/pcap.h
include/pcap/sll.h
include/pcap/usb.h
include/pcap/vlan.h
lib/libpcap.la
+lib/pkgconfig/libpcap.pc
man/man1/pcap-config.1
man/man3/pcap.3
man/man3/pcap_activate.3
@@ -46,6 +49,7 @@ man/man3/pcap_free_datalinks.3
man/man3/pcap_free_tstamp_types.3
man/man3/pcap_freealldevs.3
man/man3/pcap_freecode.3
+man/man3/pcap_get_required_select_timeout.3
man/man3/pcap_get_selectable_fd.3
man/man3/pcap_get_tstamp_precision.3
man/man3/pcap_geterr.3
@@ -74,6 +78,7 @@ man/man3/pcap_set_buffer_size.3
man/man3/pcap_set_datalink.3
man/man3/pcap_set_immediate_mode.3
man/man3/pcap_set_promisc.3
+man/man3/pcap_set_protocol_linux.3
man/man3/pcap_set_rfmon.3
man/man3/pcap_set_snaplen.3
man/man3/pcap_set_timeout.3
diff --git a/net/libpcap/distinfo b/net/libpcap/distinfo
index 20343261c0a..1435037988a 100644
--- a/net/libpcap/distinfo
+++ b/net/libpcap/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.34 2017/04/19 11:50:18 dsainty Exp $
+$NetBSD: distinfo,v 1.35 2019/07/04 07:17:24 adam Exp $
-SHA1 (libpcap-1.8.1.tar.gz) = 32d7526dde8f8a2f75baf40c01670602aeef7e39
-RMD160 (libpcap-1.8.1.tar.gz) = 295766ab2646c05c330aa04cabc30c5737200279
-SHA512 (libpcap-1.8.1.tar.gz) = bff5ff53fe53324f423e38eb4062c3fbb9125f86ca90d5e88aca9f0b3da72bc0acc6221c022b0f88cb3f000267580719119824c388da545c6f35117660cbb53b
-Size (libpcap-1.8.1.tar.gz) = 739163 bytes
-SHA1 (patch-ac) = bcbb2a5de2eedf10b7cb38d6b78f68540bf4161c
-SHA1 (patch-ad) = ea818a5fb146488f909483d96d943941ea1873e4
-SHA1 (patch-configure) = 36557d7db9f09467fc9699b96d96c4c49173246b
+SHA1 (libpcap-1.9.0.tar.gz) = c565f591c9a921fb5938cc16407c321c1ca8b9e8
+RMD160 (libpcap-1.9.0.tar.gz) = 81d3bad9e4caddb955fdb984c7ba404902f74c14
+SHA512 (libpcap-1.9.0.tar.gz) = 0ff25641f1e9d29082766caef45888c19214f770c4f378818caa73fcbc4ae54ad9195549c2499d4879ff46e35741d93b2b02cc5f3d6aa99e85a32194cf10bfe7
+Size (libpcap-1.9.0.tar.gz) = 832079 bytes
+SHA1 (patch-Makefile.in) = d14bd32d23bbbbe69e1fcdc7b8c2cd0ccd9f2808
+SHA1 (patch-configure) = 28d773e2a25fd029291c2b12f5cad141e46d51b7
+SHA1 (patch-fad-getad.c) = f7a29d558e1f3c54a143d0977deffb2be3f494ef
diff --git a/net/libpcap/patches/patch-ac b/net/libpcap/patches/patch-Makefile.in
index aa2bbbe8738..2bcbdc698be 100644
--- a/net/libpcap/patches/patch-ac
+++ b/net/libpcap/patches/patch-Makefile.in
@@ -1,15 +1,11 @@
-$NetBSD: patch-ac,v 1.12 2017/04/19 11:50:18 dsainty Exp $
+$NetBSD: patch-Makefile.in,v 1.1 2019/07/04 07:17:25 adam Exp $
-Add libtoolization
+Add libtoolization.
+Fix manpage installation.
-Fix manpage installation
-
-Remove dependencies on VERSION, which trigger unintended implicit rules against
-version.c on case-insensitive file systems.
-
---- Makefile.in.orig 2016-10-26 11:07:59.000000000 +1100
-+++ Makefile.in 2017-04-19 21:01:59.000000000 +1000
-@@ -43,7 +43,7 @@
+--- Makefile.in.orig 2018-07-22 17:08:39.000000000 +0000
++++ Makefile.in
+@@ -45,7 +45,7 @@ VPATH = @srcdir@
#
LD = /usr/bin/ld
@@ -18,7 +14,7 @@ version.c on case-insensitive file systems.
AR = @AR@
LN_S = @LN_S@
MKDEP = @MKDEP@
-@@ -75,7 +75,8 @@
+@@ -82,7 +82,8 @@ YACC = @YACC@
# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
# Also, gcc does not remove the .o before forking 'as', which can be a
# problem if you don't own the file but can write to the directory.
@@ -28,10 +24,10 @@ version.c on case-insensitive file systems.
@rm -f $@
$(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
-@@ -86,13 +87,13 @@
- etherent.c savefile.c sf-pcap.c sf-pcap-ng.c pcap-common.c \
- bpf_image.c bpf_dump.c
- GENSRC = scanner.c grammar.c bpf_filter.c version.c
+@@ -94,13 +95,13 @@ CSRC = pcap.c gencode.c optimize.c namet
+ savefile.c sf-pcap.c sf-pcapng.c pcap-common.c \
+ bpf_image.c bpf_filter.c bpf_dump.c
+ GENSRC = scanner.c grammar.c
-LIBOBJS = @LIBOBJS@
+LIBOBJS = @LTLIBOBJS@
@@ -44,12 +40,12 @@ version.c on case-insensitive file systems.
PUBHDR = \
pcap.h \
pcap-bpf.h \
-@@ -358,12 +359,10 @@
+@@ -379,12 +380,10 @@ EXTRA_DIST = \
Win32/Prj/wpcap.vcxproj \
Win32/Prj/wpcap.vcxproj.filters
--all: libpcap.a shared pcap-config
-+all: libpcap.la pcap-config
+-all: libpcap.a shared $(BUILD_RPCAPD) libpcap.pc pcap-config
++all: libpcap.la $(BUILD_RPCAPD) libpcap.pc pcap-config
-libpcap.a: $(OBJ)
- @rm -f $@
@@ -60,7 +56,7 @@ version.c on case-insensitive file systems.
shared: libpcap.$(DYEXT)
-@@ -452,10 +451,10 @@
+@@ -471,7 +470,7 @@ scanner.h: scanner.c
$(MAKE) $(MAKEFLAGS) scanner.c; \
fi
@@ -68,27 +64,19 @@ version.c on case-insensitive file systems.
+scanner.lo: scanner.c grammar.h
$(CC) $(FULL_CFLAGS) -c scanner.c
--pcap.o: pcap_version.h
-+pcap.lo: pcap_version.h
-
grammar.c: $(srcdir)/grammar.y
- $(YACC) -p pcap_ -o grammar.c -d $<
-@@ -466,22 +465,22 @@
+@@ -483,16 +482,16 @@ grammar.h: grammar.c
$(MAKE) $(MAKEFLAGS) grammar.c; \
fi
--grammar.o: grammar.c
-+grammar.lo: grammar.c
+-grammar.o: grammar.c scanner.h
++grammar.lo: grammar.c scanner.h
$(CC) $(FULL_CFLAGS) -c grammar.c
-gencode.o: $(srcdir)/gencode.c grammar.h scanner.h
+gencode.lo: $(srcdir)/gencode.c grammar.h scanner.h
$(CC) $(FULL_CFLAGS) -c $(srcdir)/gencode.c
--version.o: version.c
-+version.lo: version.c
- $(CC) $(FULL_CFLAGS) -c version.c
-
-snprintf.o: $(srcdir)/missing/snprintf.c
+snprintf.lo: $(srcdir)/missing/snprintf.c
$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c
@@ -97,39 +85,17 @@ version.c on case-insensitive file systems.
+strtok_r.lo: $(srcdir)/missing/strtok_r.c
$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strtok_r.c
--version.c: $(srcdir)/VERSION $(srcdir)/gen_version_c.sh
-+version.c: $(srcdir)/gen_version_c.sh
- #
- # Older programs import this if they want to show the
- # libpcap version number, rather than calling
-@@ -490,7 +489,7 @@
- @rm -f $@
- $(srcdir)/gen_version_c.sh $(srcdir)/VERSION $@
-
--pcap_version.h: $(srcdir)/VERSION $(srcdir)/pcap_version.h.in $(srcdir)/gen_version_header.sh
-+pcap_version.h: $(srcdir)/pcap_version.h.in $(srcdir)/gen_version_header.sh
- @rm -f $@
- $(srcdir)/gen_version_header.sh $(srcdir)/VERSION $(srcdir)/pcap_version.h.in $@
-
-@@ -498,7 +497,7 @@
- rm -f bpf_filter.c
- ln -s $(srcdir)/bpf/net/bpf_filter.c bpf_filter.c
-
--bpf_filter.o: bpf_filter.c
-+bpf_filter.lo: bpf_filter.c
- $(CC) $(FULL_CFLAGS) -c bpf_filter.c
-
#
-@@ -550,7 +549,7 @@
- valgrindtest: tests/valgrindtest.c libpcap.a
- $(CC) $(FULL_CFLAGS) -I. -L. -o valgrindtest $(srcdir)/tests/valgrindtest.c libpcap.a $(LIBS)
+@@ -538,7 +537,7 @@ testprogs: FORCE
+
+ FORCE:
--install: install-shared install-archive pcap-config
-+install: libpcap.la pcap-config
+-install: install-shared install-archive libpcap.pc pcap-config @INSTALL_RPCAPD@
++install: libpcap.pc pcap-config @INSTALL_RPCAPD@
[ -d $(DESTDIR)$(libdir) ] || \
(mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
[ -d $(DESTDIR)$(includedir) ] || \
-@@ -565,56 +564,73 @@
+@@ -553,59 +552,60 @@ install: install-shared install-archive
(mkdir -p $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@; chmod 755 $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@)
[ -d $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@ ] || \
(mkdir -p $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@; chmod 755 $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@)
@@ -141,6 +107,9 @@ version.c on case-insensitive file systems.
(mkdir -p $(DESTDIR)$(bindir); chmod 755 $(DESTDIR)$(bindir))
- $(INSTALL_PROGRAM) pcap-config $(DESTDIR)$(bindir)/pcap-config
+ $(BSD_INSTALL_SCRIPT) pcap-config $(DESTDIR)$(bindir)/pcap-config
+ [ -d $(DESTDIR)$(libdir)/pkgconfig ] || \
+ (mkdir -p $(DESTDIR)$(libdir)/pkgconfig; chmod 755 $(DESTDIR)$(libdir)/pkgconfig)
+ $(INSTALL_DATA) libpcap.pc $(DESTDIR)$(libdir)/pkgconfig/libpcap.pc
for i in $(MAN1); do \
$(INSTALL_DATA) $(srcdir)/$$i \
$(DESTDIR)$(mandir)/man1/$$i; done
@@ -154,7 +123,7 @@ version.c on case-insensitive file systems.
+ for i in $(MAN3PCAP_EXPAND:.3pcap.in=.3); do \
+ $(INSTALL_DATA) $${i}pcap \
$(DESTDIR)$(mandir)/man3/$$i; done
-- (cd $(DESTDIR)$(mandir)/man3 && \
+ (cd $(DESTDIR)$(mandir)/man3 && \
- rm -f pcap_datalink_val_to_description.3pcap && \
- $(LN_S) pcap_datalink_val_to_name.3pcap \
- pcap_datalink_val_to_description.3pcap && \
@@ -189,61 +158,44 @@ version.c on case-insensitive file systems.
- $(LN_S) pcap_tstamp_type_val_to_name.3pcap pcap_tstamp_type_val_to_description.3pcap && \
- rm -f pcap_getnonblock.3pcap && \
- $(LN_S) pcap_setnonblock.3pcap pcap_getnonblock.3pcap)
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_description.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_name.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_description.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_dump_open.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_freealldevs.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_findalldevs.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_freealldevs.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_perror.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_geterr.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_perror.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_inject.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_free_datalinks.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_list_datalinks.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_free_datalinks.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_free_tstamp_types.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_list_tstamp_types.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_free_tstamp_types.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_dispatch.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_loop.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_dispatch.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_minor_version.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_major_version.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_minor_version.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_next.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_next_ex.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_next.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_open_dead_with_tstamp_precision.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_open_dead.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_open_dead_with_tstamp_precision.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_open_offline_with_tstamp_precision.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_open_offline_with_tstamp_precision.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_fopen_offline_with_tstamp_precision.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_fopen_offline_with_tstamp_precision.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_tstamp_type_val_to_description.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_tstamp_type_val_to_name.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_tstamp_type_val_to_description.3
-+ rm -f $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3
-+ ln $(DESTDIR)$(mandir)/man3/pcap_setnonblock.3 \
-+ $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3
++ rm -f pcap_datalink_val_to_description.3 && \
++ $(LN_S) pcap_datalink_val_to_name.3 \
++ pcap_datalink_val_to_description.3 && \
++ rm -f pcap_dump_fopen.3 && \
++ $(LN_S) pcap_dump_open.3 pcap_dump_fopen.3 && \
++ rm -f pcap_freealldevs.3 && \
++ $(LN_S) pcap_findalldevs.3 pcap_freealldevs.3 && \
++ rm -f pcap_perror.3 && \
++ $(LN_S) pcap_geterr.3 pcap_perror.3 && \
++ rm -f pcap_sendpacket.3 && \
++ $(LN_S) pcap_inject.3 pcap_sendpacket.3 && \
++ rm -f pcap_free_datalinks.3 && \
++ $(LN_S) pcap_list_datalinks.3 pcap_free_datalinks.3 && \
++ rm -f pcap_free_tstamp_types.3 && \
++ $(LN_S) pcap_list_tstamp_types.3 pcap_free_tstamp_types.3 && \
++ rm -f pcap_dispatch.3 && \
++ $(LN_S) pcap_loop.3 pcap_dispatch.3 && \
++ rm -f pcap_minor_version.3 && \
++ $(LN_S) pcap_major_version.3 pcap_minor_version.3 && \
++ rm -f pcap_next.3 && \
++ $(LN_S) pcap_next_ex.3 pcap_next.3 && \
++ rm -f pcap_open_dead_with_tstamp_precision.3 && \
++ $(LN_S) pcap_open_dead.3 \
++ pcap_open_dead_with_tstamp_precision.3 && \
++ rm -f pcap_open_offline_with_tstamp_precision.3 && \
++ $(LN_S) pcap_open_offline.3 pcap_open_offline_with_tstamp_precision.3 && \
++ rm -f pcap_fopen_offline.3 && \
++ $(LN_S) pcap_open_offline.3 pcap_fopen_offline.3 && \
++ rm -f pcap_fopen_offline_with_tstamp_precision.3 && \
++ $(LN_S) pcap_open_offline.3 pcap_fopen_offline_with_tstamp_precision.3 && \
++ rm -f pcap_tstamp_type_val_to_description.3 && \
++ $(LN_S) pcap_tstamp_type_val_to_name.3 pcap_tstamp_type_val_to_description.3 && \
++ rm -f pcap_getnonblock.3 && \
++ $(LN_S) pcap_setnonblock.3 pcap_getnonblock.3)
for i in $(MANFILE); do \
$(INSTALL_DATA) `echo $$i | sed 's/.manfile.in/.manfile/'` \
$(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@/`echo $$i | sed 's/.manfile.in/.@MAN_FILE_FORMATS@/'`; done
-@@ -656,15 +672,15 @@
+@@ -647,15 +647,15 @@ install-shared-shareda: libpcap.shareda
install-shared-none:
install-archive: install-archive-$(DYEXT)
@@ -262,21 +214,3 @@ version.c on case-insensitive file systems.
install-archive-shareda:
#
# AIX, however, doesn't, so we don't install the archive
-@@ -672,7 +688,7 @@
- #
-
- uninstall: uninstall-shared
-- rm -f $(DESTDIR)$(libdir)/libpcap.a
-+ rm -f $(DESTDIR)$(libdir)/libpcap.la
- for i in $(PUBHDR); do \
- rm -f $(DESTDIR)$(includedir)/$$i; done
- -rmdir $(DESTDIR)$(includedir)/pcap
-@@ -720,7 +736,7 @@
- rm -f $(DESTDIR)$(libdir)/libpcap.$$MAJOR_VER; \
- rm -f $(DESTDIR)$(libdir)/libpcap.sl
- uninstall-shared-shareda:
-- rm -f $(DESTDIR)$(libdir)/libpcap.a
-+ rm -f $(DESTDIR)$(libdir)/libpcap.la
- uninstall-shared-none:
-
- clean:
diff --git a/net/libpcap/patches/patch-configure b/net/libpcap/patches/patch-configure
index 82eb471c138..615b95c9022 100644
--- a/net/libpcap/patches/patch-configure
+++ b/net/libpcap/patches/patch-configure
@@ -1,19 +1,21 @@
-$NetBSD: patch-configure,v 1.5 2016/02/11 05:55:19 jklos Exp $
+$NetBSD: patch-configure,v 1.6 2019/07/04 07:17:25 adam Exp $
-Ensure consistent manual page locations.
+Ensure consistent manpage locations.
+Correctly detect Mac OS X Leopard.
---- configure.orig 2015-04-22 20:19:15.000000000 +0000
+--- configure.orig 2018-06-24 17:54:20.000000000 +0000
+++ configure
-@@ -6879,8 +6879,6 @@ fi
+@@ -7974,9 +7974,6 @@ fi
# Individual cases can override this.
#
DYEXT="none"
-MAN_FILE_FORMATS=5
-MAN_MISC_INFO=7
+-MAN_ADMIN_COMMANDS=8
case "$host_os" in
aix*)
-@@ -6978,7 +6976,7 @@ fi
+@@ -8074,7 +8071,7 @@ fi
LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
;;
@@ -22,22 +24,14 @@ Ensure consistent manual page locations.
#
# Leopard. Build for 32-bit PowerPC, 64-bit
# PowerPC, x86, and x86-64, with 32-bit PowerPC
-@@ -7155,6 +7153,9 @@ fi
-
- test "x$enable_shared" = "xno" && DYEXT="none"
+@@ -8271,6 +8268,10 @@ $as_echo "#define HAVE_SOLARIS 1" >>conf
+ ;;
+ esac
+MAN_FILE_FORMATS=5
+MAN_MISC_INFO=7
++MAN_ADMIN_COMMANDS=8
+
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
- set dummy ${ac_tool_prefix}ranlib; ac_word=$2
-@@ -8147,7 +8148,7 @@ else
- fi
-
-
-- if test "x$ac_lbl_bluetooth_available" == "xno" ; then
-+ if test "x$ac_lbl_bluetooth_available" = "xno" ; then
- if test "x$enable_bluetooth" = "xyes" ; then
- as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
- else
+ # Check whether --enable-shared was given.
+ if test "${enable_shared+set}" = set; then :
+ enableval=$enable_shared;
diff --git a/net/libpcap/patches/patch-ad b/net/libpcap/patches/patch-fad-getad.c
index 278ef36c046..29466fec925 100644
--- a/net/libpcap/patches/patch-ad
+++ b/net/libpcap/patches/patch-fad-getad.c
@@ -1,6 +1,6 @@
-$NetBSD: patch-ad,v 1.7 2015/03/11 21:05:09 tnn Exp $
+$NetBSD: patch-fad-getad.c,v 1.1 2019/07/04 07:17:25 adam Exp $
-* Re-order includes to avoid bpf_program re-definition.
+Re-order includes to avoid bpf_program re-definition.
--- fad-getad.c.orig 2014-11-13 08:58:52.000000000 +0000
+++ fad-getad.c