mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
6abb3ce3f8
- Fix fping issue with the unreachable ip in the arp cache [2] - Convert Makefile headers to new style PR: ports/177368 [1] PR: ports/176439 [2] Submitted by: Lars Eggert <lars@eggert.org> [1], Alexandre RAYNAUD <alexandre.raynaud@sallanches.fr> [2] Approved by: Jason Harris <jharris@widomaker.com> (maintainer)
58 lines
1.2 KiB
Makefile
58 lines
1.2 KiB
Makefile
# Created by: David O'Brien (obrien@NUXI.com)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fping
|
|
PORTVERSION= 3.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= net ipv6
|
|
MASTER_SITES= http://fping.org/dist/
|
|
|
|
PATCH_SITES= https://raw.github.com/tohojo/netperf-wrapper/master/misc/
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= jharris@widomaker.com
|
|
COMMENT= Quickly ping N hosts w/o flooding the network
|
|
|
|
OPTIONS_DEFINE= TIMESTAMPS
|
|
OPTIONS_MULTI= NET
|
|
OPTIONS_MULTI_NET= IPV4 IPV6
|
|
OPTIONS_DEFAULT= IPV4
|
|
TIMESTAMPS_DESC= Enable timestamps
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --bindir="${PREFIX}/sbin"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MIPV4}
|
|
CONFIGURE_ARGS+=--enable-ipv4
|
|
PLIST_FILES+=sbin/fping
|
|
MAN8+= fping.8
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-ipv4
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
PLIST_FILES+=sbin/fping6
|
|
MAN8+= fping6.8
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTIMESTAMPS}
|
|
PATCHFILES+= fping_timestamps.patch
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MIPV4}
|
|
@${STRIP_CMD} ${PREFIX}/sbin/fping
|
|
@${CHMOD} 4555 ${PREFIX}/sbin/fping
|
|
.endif
|
|
.if ${PORT_OPTIONS:MIPV6}
|
|
@${STRIP_CMD} ${PREFIX}/sbin/fping6
|
|
@${CHMOD} 4555 ${PREFIX}/sbin/fping6
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|