freebsd-ports/net/libpcap/Makefile
Cy Schubert ac6f714ee9 Fix libpcap issue #893: check for invalid IPv4 addresses.
This fixes errors such as:

tcpdump -i lagg0 net 999.999.999.999

This was originally discovered on a Red Hat 7.7 server and verified
to also be a bug on FreeBSD.

PR:		242719
Submitted by:	cy
Reported by:	cy
Approved by:	garga (maintainer)
Obtained from:	https://github.com/the-tcpdump-group/libpcap/commit/ \
		07070918d5e81a515315b395f334e52589fe0fb
Fixed by:	https://github.com/guyharris
2019-12-20 15:38:11 +00:00

33 lines
641 B
Makefile

# Created by: Bruce M Simpson <bms@FreeBSD.org>
# $FreeBSD$
PORTNAME= libpcap
PORTVERSION= 1.9.1
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.tcpdump.org/release/
MAINTAINER= garga@FreeBSD.org
COMMENT= Ubiquitous network traffic capture library
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex
USES= bison gmake
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS+=--enable-dbus=no \
--with-pcap=bpf
CONFIGURE_ENV+= LEX=${LOCALBASE}/bin/flex
CFLAGS_amd64= -fPIC
CFLAGS_sparc64= -fPIC
PLIST_SUB+= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= IPV6
IPV6_CONFIGURE_ENABLE= ipv6
.include <bsd.port.mk>