Add an option to disable IPv6 support

In jail environment, because fping 4.0 comes
with combined IPv4/IPv6 support, you need to enable
IPv6 for the jail even if you will not use IPv6.

This patch adds an IPV6 option, enabled by default,
but who can be turn off to build fping without IPv6
support and used it inside a jail without IPv6.

PR:		229903
Submitted by:	Andrew <andrew.hotlab@hotmail.com>
Reported by:	Stefan Witzel <stefan.witzel@zvw.uni-goettingen.de>
Approved by:	<jharris@widomaker.com> (maintainer)
This commit is contained in:
Rodrigo Osorio 2018-08-15 23:54:20 +00:00
parent 990a27cec1
commit 084402f2c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477297

View file

@ -4,6 +4,7 @@
PORTNAME= fping
PORTVERSION= 4.0
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= net ipv6
MAINTAINER= jharris@widomaker.com
@ -19,9 +20,11 @@ USES= autoreconf gmake
USE_GITHUB= yes
GH_ACCOUNT= schweikert
OPTIONS_DEFINE=IPV6
IPV6_CONFIGURE_OFF=--disable-ipv6
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --bindir="${PREFIX}/sbin" \
--enable-ipv6 \
--enable-ipv4
INSTALL_TARGET= install-strip