pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/libpcap
Module Name: pkgsrc
Committed By: adam
Date: Thu Jul 4 07:17:25 UTC 2019
Modified Files:
pkgsrc/net/libpcap: Makefile PLIST distinfo
pkgsrc/net/libpcap/patches: patch-configure
Added Files:
pkgsrc/net/libpcap/patches: patch-Makefile.in patch-fad-getad.c
Removed Files:
pkgsrc/net/libpcap/patches: patch-ac patch-ad
Log Message:
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().
To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 pkgsrc/net/libpcap/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/net/libpcap/PLIST
cvs rdiff -u -r1.34 -r1.35 pkgsrc/net/libpcap/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/libpcap/patches/patch-Makefile.in \
pkgsrc/net/libpcap/patches/patch-fad-getad.c
cvs rdiff -u -r1.12 -r0 pkgsrc/net/libpcap/patches/patch-ac
cvs rdiff -u -r1.7 -r0 pkgsrc/net/libpcap/patches/patch-ad
cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/libpcap/patches/patch-configure
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/libpcap/Makefile
diff -u pkgsrc/net/libpcap/Makefile:1.63 pkgsrc/net/libpcap/Makefile:1.64
--- pkgsrc/net/libpcap/Makefile:1.63 Thu Feb 2 18:46:39 2017
+++ pkgsrc/net/libpcap/Makefile Thu Jul 4 07:17:24 2019
@@ -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.
Index: pkgsrc/net/libpcap/PLIST
diff -u pkgsrc/net/libpcap/PLIST:1.13 pkgsrc/net/libpcap/PLIST:1.14
--- pkgsrc/net/libpcap/PLIST:1.13 Thu Feb 2 18:46:39 2017
+++ pkgsrc/net/libpcap/PLIST Thu Jul 4 07:17:24 2019
@@ -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
Index: pkgsrc/net/libpcap/distinfo
diff -u pkgsrc/net/libpcap/distinfo:1.34 pkgsrc/net/libpcap/distinfo:1.35
--- pkgsrc/net/libpcap/distinfo:1.34 Wed Apr 19 11:50:18 2017
+++ pkgsrc/net/libpcap/distinfo Thu Jul 4 07:17:24 2019
@@ -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
Index: pkgsrc/net/libpcap/patches/patch-configure
diff -u pkgsrc/net/libpcap/patches/patch-configure:1.5 pkgsrc/net/libpcap/patches/patch-configure:1.6
--- pkgsrc/net/libpcap/patches/patch-configure:1.5 Thu Feb 11 05:55:19 2016
+++ pkgsrc/net/libpcap/patches/patch-configure Thu Jul 4 07:17:25 2019
@@ -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;
Added files:
Index: pkgsrc/net/libpcap/patches/patch-Makefile.in
diff -u /dev/null pkgsrc/net/libpcap/patches/patch-Makefile.in:1.1
--- /dev/null Thu Jul 4 07:17:25 2019
+++ pkgsrc/net/libpcap/patches/patch-Makefile.in Thu Jul 4 07:17:25 2019
@@ -0,0 +1,216 @@
+$NetBSD: patch-Makefile.in,v 1.1 2019/07/04 07:17:25 adam Exp $
+
+Add libtoolization.
+Fix manpage installation.
+
+--- Makefile.in.orig 2018-07-22 17:08:39.000000000 +0000
++++ Makefile.in
+@@ -45,7 +45,7 @@ VPATH = @srcdir@
+ #
+
+ LD = /usr/bin/ld
+-CC = @CC@
++CC = ${LIBTOOL} --mode=compile @CC@
+ AR = @AR@
+ LN_S = @LN_S@
+ MKDEP = @MKDEP@
+@@ -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.
+-.c.o:
++.SUFFIXES: .lo
++.c.lo:
+ @rm -f $@
+ $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.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@
+
+ SRC = $(PSRC) $(FSRC) $(CSRC) $(SSRC) $(GENSRC)
+
+ # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
+ # hack the extra indirection
+-OBJ = $(PSRC:.c=.o) $(FSRC:.c=.o) $(CSRC:.c=.o) $(SSRC:.c=.o) $(GENSRC:.c=.o) $(LIBOBJS)
++OBJ = $(PSRC:.c=.lo) $(FSRC:.c=.lo) $(CSRC:.c=.lo) $(SSRC:.c=.lo) $(GENSRC:.c=.lo) $(LIBOBJS)
+ PUBHDR = \
+ pcap.h \
+ pcap-bpf.h \
+@@ -379,12 +380,10 @@ EXTRA_DIST = \
+ Win32/Prj/wpcap.vcxproj \
+ Win32/Prj/wpcap.vcxproj.filters
+
+-all: libpcap.a shared $(BUILD_RPCAPD) libpcap.pc pcap-config
++all: libpcap.la $(BUILD_RPCAPD) libpcap.pc pcap-config
+
+-libpcap.a: $(OBJ)
+- @rm -f $@
+- $(AR) rc $@ $(OBJ) $(ADDLARCHIVEOBJS)
+- $(RANLIB) $@
++libpcap.la: $(OBJ)
++ ${LIBTOOL} --mode=link @CC@ -rpath ${PREFIX}/lib ${LDFLAGS} $(OBJ) $(LIBS) -o libpcap.la
+
+ shared: libpcap.$(DYEXT)
+
+@@ -471,7 +470,7 @@ scanner.h: scanner.c
+ $(MAKE) $(MAKEFLAGS) scanner.c; \
+ fi
+
+-scanner.o: scanner.c grammar.h
++scanner.lo: scanner.c grammar.h
+ $(CC) $(FULL_CFLAGS) -c scanner.c
+
+ grammar.c: $(srcdir)/grammar.y
+@@ -483,16 +482,16 @@ grammar.h: grammar.c
+ $(MAKE) $(MAKEFLAGS) grammar.c; \
+ fi
+
+-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
+
+-snprintf.o: $(srcdir)/missing/snprintf.c
++snprintf.lo: $(srcdir)/missing/snprintf.c
+ $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c
+
+-strtok_r.o: $(srcdir)/missing/strtok_r.c
++strtok_r.lo: $(srcdir)/missing/strtok_r.c
+ $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strtok_r.c
+
+ #
+@@ -538,7 +537,7 @@ testprogs: FORCE
+
+ FORCE:
+
+-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) ] || \
+@@ -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@)
++ ${LIBTOOL} --mode=install $(INSTALL_DATA) libpcap.la $(DESTDIR)$(libdir)
+ for i in $(PUBHDR); do \
+ $(INSTALL_DATA) $(srcdir)/$$i \
+ $(DESTDIR)$(includedir)/$$i; done
+ [ -d $(DESTDIR)$(bindir) ] || \
+ (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
+- for i in $(MAN3PCAP_NOEXPAND); do \
+- $(INSTALL_DATA) $(srcdir)/$$i \
++ for i in $(MAN3PCAP_NOEXPAND:.3pcap=.3); do \
++ $(INSTALL_DATA) $(srcdir)/$${i}pcap \
+ $(DESTDIR)$(mandir)/man3/$$i; done
+- for i in $(MAN3PCAP_EXPAND:.in=); do \
+- $(INSTALL_DATA) $$i \
++ for i in $(MAN3PCAP_EXPAND:.3pcap.in=.3); do \
++ $(INSTALL_DATA) $${i}pcap \
+ $(DESTDIR)$(mandir)/man3/$$i; done
+ (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 && \
+- rm -f pcap_dump_fopen.3pcap && \
+- $(LN_S) pcap_dump_open.3pcap pcap_dump_fopen.3pcap && \
+- rm -f pcap_freealldevs.3pcap && \
+- $(LN_S) pcap_findalldevs.3pcap pcap_freealldevs.3pcap && \
+- rm -f pcap_perror.3pcap && \
+- $(LN_S) pcap_geterr.3pcap pcap_perror.3pcap && \
+- rm -f pcap_sendpacket.3pcap && \
+- $(LN_S) pcap_inject.3pcap pcap_sendpacket.3pcap && \
+- rm -f pcap_free_datalinks.3pcap && \
+- $(LN_S) pcap_list_datalinks.3pcap pcap_free_datalinks.3pcap && \
+- rm -f pcap_free_tstamp_types.3pcap && \
+- $(LN_S) pcap_list_tstamp_types.3pcap pcap_free_tstamp_types.3pcap && \
+- rm -f pcap_dispatch.3pcap && \
+- $(LN_S) pcap_loop.3pcap pcap_dispatch.3pcap && \
+- rm -f pcap_minor_version.3pcap && \
+- $(LN_S) pcap_major_version.3pcap pcap_minor_version.3pcap && \
+- rm -f pcap_next.3pcap && \
+- $(LN_S) pcap_next_ex.3pcap pcap_next.3pcap && \
+- rm -f pcap_open_dead_with_tstamp_precision.3pcap && \
+- $(LN_S) pcap_open_dead.3pcap \
+- pcap_open_dead_with_tstamp_precision.3pcap && \
+- rm -f pcap_open_offline_with_tstamp_precision.3pcap && \
+- $(LN_S) pcap_open_offline.3pcap pcap_open_offline_with_tstamp_precision.3pcap && \
+- rm -f pcap_fopen_offline.3pcap && \
+- $(LN_S) pcap_open_offline.3pcap pcap_fopen_offline.3pcap && \
+- rm -f pcap_fopen_offline_with_tstamp_precision.3pcap && \
+- $(LN_S) pcap_open_offline.3pcap pcap_fopen_offline_with_tstamp_precision.3pcap && \
+- rm -f pcap_tstamp_type_val_to_description.3pcap && \
+- $(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 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
+@@ -647,15 +647,15 @@ install-shared-shareda: libpcap.shareda
+ install-shared-none:
+
+ install-archive: install-archive-$(DYEXT)
+-install-archive-so install-archive-dylib install-archive-sl install-archive-none: libpcap.a
++install-archive-so install-archive-dylib install-archive-sl install-archive-none: libpcap.la
+ #
+ # Most platforms have separate suffixes for shared and
+ # archive libraries, so we install both.
+ #
+ [ -d $(DESTDIR)$(libdir) ] || \
+ (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
+- $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
+- $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
++ $(INSTALL_DATA) libpcap.la $(DESTDIR)$(libdir)/libpcap.la
++ $(RANLIB) $(DESTDIR)$(libdir)/libpcap.la
+ install-archive-shareda:
+ #
+ # AIX, however, doesn't, so we don't install the archive
Index: pkgsrc/net/libpcap/patches/patch-fad-getad.c
diff -u /dev/null pkgsrc/net/libpcap/patches/patch-fad-getad.c:1.1
--- /dev/null Thu Jul 4 07:17:25 2019
+++ pkgsrc/net/libpcap/patches/patch-fad-getad.c Thu Jul 4 07:17:25 2019
@@ -0,0 +1,32 @@
+$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.
+
+--- fad-getad.c.orig 2014-11-13 08:58:52.000000000 +0000
++++ fad-getad.c
+@@ -49,12 +49,6 @@
+ #include <string.h>
+ #include <ifaddrs.h>
+
+-#include "pcap-int.h"
+-
+-#ifdef HAVE_OS_PROTO_H
+-#include "os-proto.h"
+-#endif
+-
+ /*
+ * We don't do this on Solaris 11 and later, as it appears there aren't
+ * any AF_PACKET addresses on interfaces, so we don't need this, and
+@@ -78,6 +72,12 @@
+ # endif /* HAVE_NETPACKET_PACKET_H */
+ #endif /* (defined(linux) || defined(__Lynx__)) && defined(AF_PACKET) */
+
++#include "pcap-int.h"
++
++#ifdef HAVE_OS_PROTO_H
++#include "os-proto.h"
++#endif
++
+ /*
+ * This is fun.
+ *
Home |
Main Index |
Thread Index |
Old Index