aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2015-11-24 02:53:59 +0800
committergarga <garga@FreeBSD.org>2015-11-24 02:53:59 +0800
commit5923cb9eb82ad1a340a14784cb994e805f2d79c7 (patch)
tree1e0275965fe085d05cceaab7837e2a510fc3184a /net
parentce46f0bcf89f74056e8176653a4eee47ac1ac918 (diff)
downloadfreebsd-ports-gnome-5923cb9eb82ad1a340a14784cb994e805f2d79c7.tar.gz
freebsd-ports-gnome-5923cb9eb82ad1a340a14784cb994e805f2d79c7.tar.zst
freebsd-ports-gnome-5923cb9eb82ad1a340a14784cb994e805f2d79c7.zip
- Update net/libpcap to 1.7.4
- Move PLIST_FILES to pkg-plist - Remove LIBPCAP_OVERWRITE_BASE - Use OPTION helpers
Diffstat (limited to 'net')
-rw-r--r--net/libpcap/Makefile118
-rw-r--r--net/libpcap/distinfo4
-rw-r--r--net/libpcap/files/patch-Makefile.in6
-rw-r--r--net/libpcap/files/pkg-message-base13
-rw-r--r--net/libpcap/pkg-plist77
5 files changed, 89 insertions, 129 deletions
diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile
index 9a8abcc1b8ce..6fece8671a97 100644
--- a/net/libpcap/Makefile
+++ b/net/libpcap/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= libpcap
-PORTVERSION= 1.7.3
+PORTVERSION= 1.7.4
CATEGORIES= net ipv6
MASTER_SITES= http://www.tcpdump.org/release/
@@ -14,91 +14,9 @@ LICENSE= BSD3CLAUSE
GNU_CONFIGURE= yes
USES= bison gmake
USE_LDCONFIG= yes
-
-.if defined(LIBPCAP_OVERWRITE_BASE)
-PREFIX= /usr
-PKGNAMESUFFIX= -overwrite-base
-MANPREFIX= ${PREFIX}/share
-PKGMESSAGE= ${FILESDIR}/pkg-message-base
-.endif
-
-PLIST_FILES+= bin/pcap-config \
- include/pcap/bluetooth.h \
- include/pcap/bpf.h \
- include/pcap/ipnet.h \
- include/pcap/namedb.h \
- include/pcap/nflog.h \
- include/pcap/pcap.h \
- include/pcap/sll.h \
- include/pcap/usb.h \
- include/pcap/vlan.h \
- include/pcap.h \
- include/pcap-namedb.h \
- include/pcap-bpf.h \
- lib/libpcap.a \
- lib/libpcap.so.1 \
- lib/libpcap.so.${PORTVERSION} \
- lib/libpcap.so \
- man/man1/pcap-config.1.gz \
- man/man3/pcap.3.gz \
- man/man3/pcap_activate.3.gz \
- man/man3/pcap_breakloop.3.gz \
- man/man3/pcap_can_set_rfmon.3.gz \
- man/man3/pcap_close.3.gz \
- man/man3/pcap_compile.3.gz \
- man/man3/pcap_create.3.gz \
- man/man3/pcap_datalink.3.gz \
- man/man3/pcap_datalink_name_to_val.3.gz \
- man/man3/pcap_datalink_val_to_name.3.gz \
- man/man3/pcap_dump.3.gz \
- man/man3/pcap_dump_close.3.gz \
- man/man3/pcap_dump_file.3.gz \
- man/man3/pcap_dump_flush.3.gz \
- man/man3/pcap_dump_ftell.3.gz \
- man/man3/pcap_dump_open.3.gz \
- man/man3/pcap_file.3.gz \
- man/man3/pcap_fileno.3.gz \
- man/man3/pcap_findalldevs.3.gz \
- man/man3/pcap_freecode.3.gz \
- man/man3/pcap_get_tstamp_precision.3.gz \
- man/man3/pcap_get_selectable_fd.3.gz \
- man/man3/pcap_geterr.3.gz \
- man/man3/pcap_inject.3.gz \
- man/man3/pcap_is_swapped.3.gz \
- man/man3/pcap_lib_version.3.gz \
- man/man3/pcap_list_datalinks.3.gz \
- man/man3/pcap_list_tstamp_types.3.gz \
- man/man3/pcap_lookupdev.3.gz \
- man/man3/pcap_lookupnet.3.gz \
- man/man3/pcap_loop.3.gz \
- man/man3/pcap_major_version.3.gz \
- man/man3/pcap_next_ex.3.gz \
- man/man3/pcap_offline_filter.3.gz \
- man/man3/pcap_open_dead.3.gz \
- man/man3/pcap_open_live.3.gz \
- man/man3/pcap_open_offline.3.gz \
- man/man3/pcap_set_buffer_size.3.gz \
- man/man3/pcap_set_datalink.3.gz \
- man/man3/pcap_set_immediate_mode.3.gz \
- man/man3/pcap_set_promisc.3.gz \
- man/man3/pcap_set_rfmon.3.gz \
- man/man3/pcap_set_snaplen.3.gz \
- man/man3/pcap_set_timeout.3.gz \
- man/man3/pcap_set_tstamp_precision.3.gz \
- man/man3/pcap_set_tstamp_type.3.gz \
- man/man3/pcap_setdirection.3.gz \
- man/man3/pcap_setfilter.3.gz \
- man/man3/pcap_setnonblock.3.gz \
- man/man3/pcap_snapshot.3.gz \
- man/man3/pcap_stats.3.gz \
- man/man3/pcap_statustostr.3.gz \
- man/man3/pcap_strerror.3.gz \
- man/man3/pcap_tstamp_type_name_to_val.3.gz \
- man/man3/pcap_tstamp_type_val_to_name.3.gz \
- man/man5/pcap-savefile.5.gz \
- man/man7/pcap-filter.7.gz \
- man/man7/pcap-linktype.7.gz \
- man/man7/pcap-tstamp.7.gz
+CONFIGURE_ARGS+=--enable-dbus=no \
+ --with-pcap=bpf
+PLIST_SUB+= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= DAG IPV6
@@ -106,36 +24,14 @@ DAG_DESC= Support for Endace DAG hardware
OPTIONS_DEFAULT= IPV6
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MIPV6}
-CONFIGURE_ARGS+= --enable-ipv6
-.endif
-
-.if ${PORT_OPTIONS:MDAG}
-LDFLAGS+= -L${LOCALBASE}/lib
-.else
-CONFIGURE_ARGS+= --without-dag
-.endif
-
-# Maybe make this into an OPTION?
-.if defined(LIBPCAP_OVERWRITE_BASE)
-post-install:
- ${CAT} ${PKGMESSAGE}
-.endif
+IPV6_CONFIGURE_ENABLE= ipv6
+DAG_CONFIGURE_WITH= dag
+DAG_LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
-# Packages are built on a kernel that has cloning, but the resulting
-# package will be run on a system that does not have cloning (7.x).
-# Always use bpf device, but specify CFLAGS if we have cloning.
-CONFIGURE_ARGS+= --with-pcap=bpf
-CFLAGS+= -DHAVE_DEVICE_CLONING=1
-
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
CFLAGS+= -fPIC
.endif
-CONFIGURE_ARGS+= --enable-dbus=no
-
.include <bsd.port.post.mk>
diff --git a/net/libpcap/distinfo b/net/libpcap/distinfo
index cc7e82fa8a8a..51d675f6c303 100644
--- a/net/libpcap/distinfo
+++ b/net/libpcap/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libpcap-1.7.3.tar.gz) = dd9f85213dc8e948068405b55dd20f8b32e3083e9e0e186f833bd0372e559e2f
-SIZE (libpcap-1.7.3.tar.gz) = 662941
+SHA256 (libpcap-1.7.4.tar.gz) = 7ad3112187e88328b85e46dce7a9b949632af18ee74d97ffc3f2b41fe7f448b0
+SIZE (libpcap-1.7.4.tar.gz) = 663021
diff --git a/net/libpcap/files/patch-Makefile.in b/net/libpcap/files/patch-Makefile.in
index 3472743e7095..4ddb577dc0aa 100644
--- a/net/libpcap/files/patch-Makefile.in
+++ b/net/libpcap/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig 2015-01-06 19:12:16.000000000 +0100
-+++ Makefile.in 2015-01-06 19:16:34.000000000 +0100
-@@ -565,51 +565,19 @@
+--- Makefile.in.orig 2015-06-28 01:03:37 UTC
++++ Makefile.in
+@@ -569,51 +569,19 @@ install: install-shared install-archive
$(DESTDIR)$(includedir)/$$i; done
[ -d $(DESTDIR)$(bindir) ] || \
(mkdir -p $(DESTDIR)$(bindir); chmod 755 $(DESTDIR)$(bindir))
diff --git a/net/libpcap/files/pkg-message-base b/net/libpcap/files/pkg-message-base
deleted file mode 100644
index 9cb9a773b0d3..000000000000
--- a/net/libpcap/files/pkg-message-base
+++ /dev/null
@@ -1,13 +0,0 @@
-***************************************
-* You might run into troubles running *
-* tcpdump, you should recompile it if *
-* it segfaults: *
-* $ cd /usr/src/usr.sbin/tcpdump *
-* $ make && make install *
-***************************************
-* You can always reinstall the older *
-* libraries via the source directory *
-* of the base system: *
-* $ cd /usr/src/lib/libpcap *
-* $ make && make install *
-***************************************
diff --git a/net/libpcap/pkg-plist b/net/libpcap/pkg-plist
new file mode 100644
index 000000000000..e020648f1bd3
--- /dev/null
+++ b/net/libpcap/pkg-plist
@@ -0,0 +1,77 @@
+bin/pcap-config
+include/pcap-bpf.h
+include/pcap-namedb.h
+include/pcap.h
+include/pcap/bluetooth.h
+include/pcap/bpf.h
+include/pcap/ipnet.h
+include/pcap/namedb.h
+include/pcap/nflog.h
+include/pcap/pcap.h
+include/pcap/sll.h
+include/pcap/usb.h
+include/pcap/vlan.h
+lib/libpcap.a
+lib/libpcap.so
+lib/libpcap.so.%%PORTVERSION%%
+lib/libpcap.so.1
+man/man1/pcap-config.1.gz
+man/man3/pcap.3.gz
+man/man3/pcap_activate.3.gz
+man/man3/pcap_breakloop.3.gz
+man/man3/pcap_can_set_rfmon.3.gz
+man/man3/pcap_close.3.gz
+man/man3/pcap_compile.3.gz
+man/man3/pcap_create.3.gz
+man/man3/pcap_datalink.3.gz
+man/man3/pcap_datalink_name_to_val.3.gz
+man/man3/pcap_datalink_val_to_name.3.gz
+man/man3/pcap_dump.3.gz
+man/man3/pcap_dump_close.3.gz
+man/man3/pcap_dump_file.3.gz
+man/man3/pcap_dump_flush.3.gz
+man/man3/pcap_dump_ftell.3.gz
+man/man3/pcap_dump_open.3.gz
+man/man3/pcap_file.3.gz
+man/man3/pcap_fileno.3.gz
+man/man3/pcap_findalldevs.3.gz
+man/man3/pcap_freecode.3.gz
+man/man3/pcap_get_selectable_fd.3.gz
+man/man3/pcap_get_tstamp_precision.3.gz
+man/man3/pcap_geterr.3.gz
+man/man3/pcap_inject.3.gz
+man/man3/pcap_is_swapped.3.gz
+man/man3/pcap_lib_version.3.gz
+man/man3/pcap_list_datalinks.3.gz
+man/man3/pcap_list_tstamp_types.3.gz
+man/man3/pcap_lookupdev.3.gz
+man/man3/pcap_lookupnet.3.gz
+man/man3/pcap_loop.3.gz
+man/man3/pcap_major_version.3.gz
+man/man3/pcap_next_ex.3.gz
+man/man3/pcap_offline_filter.3.gz
+man/man3/pcap_open_dead.3.gz
+man/man3/pcap_open_live.3.gz
+man/man3/pcap_open_offline.3.gz
+man/man3/pcap_set_buffer_size.3.gz
+man/man3/pcap_set_datalink.3.gz
+man/man3/pcap_set_immediate_mode.3.gz
+man/man3/pcap_set_promisc.3.gz
+man/man3/pcap_set_rfmon.3.gz
+man/man3/pcap_set_snaplen.3.gz
+man/man3/pcap_set_timeout.3.gz
+man/man3/pcap_set_tstamp_precision.3.gz
+man/man3/pcap_set_tstamp_type.3.gz
+man/man3/pcap_setdirection.3.gz
+man/man3/pcap_setfilter.3.gz
+man/man3/pcap_setnonblock.3.gz
+man/man3/pcap_snapshot.3.gz
+man/man3/pcap_stats.3.gz
+man/man3/pcap_statustostr.3.gz
+man/man3/pcap_strerror.3.gz
+man/man3/pcap_tstamp_type_name_to_val.3.gz
+man/man3/pcap_tstamp_type_val_to_name.3.gz
+man/man5/pcap-savefile.5.gz
+man/man7/pcap-filter.7.gz
+man/man7/pcap-linktype.7.gz
+man/man7/pcap-tstamp.7.gz