openbsd-ports/net/fping/Makefile
sthen 1af8ca5ad5 update to fping-4.2
without flags, the main fping binary is v4/v6 dual stack, use -4 / -6 to
force one particular af.

a v6-only fping6 is installed to provide support for dependent ports, using
the method from https://github.com/schweikert/fping/pull/139
2019-03-31 00:09:09 +00:00

33 lines
747 B
Makefile

# $OpenBSD: Makefile,v 1.46 2019/03/31 00:09:09 sthen Exp $
COMMENT= quickly ping N hosts w/o flooding the network
DISTNAME= fping-4.2
CATEGORIES= net
HOMEPAGE= https://fping.org/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
# uses pledge()
WANTLIB += c
MASTER_SITES= https://fping.org/dist/
CONFIGURE_STYLE= gnu
SEPARATE_BUILD= Yes
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin
# some dependent programs want fping/fping6 separation e.g. net/zabbix,
# net/smokeping, net/librenms; with this symlink fping6 is v6-only,
# fping is dual-stack, or fping -4/-6 can be used to force it.
# see https://github.com/schweikert/fping/pull/139
post-install:
ln -s fping ${PREFIX}/sbin/fping6
.include <bsd.port.mk>