mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
1785520646
Merge IPv4 and IPv6 support into net/fping, selectable via options. Remove the now un-needed net/fping+ipv6 Add common description for IPV4 option, analogous to the IPV6 option PR: ports/169949 [1], ports/169950 [2] Submitted by: Rodrigo OSORIO <rodrigo@bebik.net> [1] Jason Harris <jharris@widomaker.com> [2] zeising (final patch version) Approved by: maintainer, kwm (mentor)
53 lines
1.0 KiB
Makefile
53 lines
1.0 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: fping
|
|
# Date created: Tue Mar 25, 1997
|
|
# Whom: David O'Brien (obrien@NUXI.com)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fping
|
|
PORTVERSION= 3.4
|
|
CATEGORIES= net ipv6
|
|
MASTER_SITES= http://fping.org/dist/
|
|
|
|
MAINTAINER= jharris@widomaker.com
|
|
COMMENT= Quickly ping N hosts w/o flooding the network
|
|
|
|
OPTIONS_MULTI= NET
|
|
OPTIONS_MULTI_NET= IPV4 IPV6
|
|
OPTIONS_DEFAULT= IPV4
|
|
|
|
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
|
|
|
|
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>
|