blob: 89dcf003f04a24de5c4a3df33536acaef5c38828 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# 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>
|