aboutsummaryrefslogtreecommitdiff
path: root/net/fping
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-02-10 17:57:29 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-02-10 17:57:29 +0000
commit4cad580f406179cd997aebd912750021ca04b323 (patch)
treea46067be3df55fc4576cc200dab153b5234c923b /net/fping
parent17231bb9634015a3ef6755e1d969dcf369232709 (diff)
downloadports-4cad580f406179cd997aebd912750021ca04b323.tar.gz
ports-4cad580f406179cd997aebd912750021ca04b323.zip
Convert to staging.
Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=343666
Diffstat (limited to 'net/fping')
-rw-r--r--net/fping/Makefile33
-rw-r--r--net/fping/pkg-plist6
2 files changed, 10 insertions, 29 deletions
diff --git a/net/fping/Makefile b/net/fping/Makefile
index 98743b780e6c..82f739deb1e4 100644
--- a/net/fping/Makefile
+++ b/net/fping/Makefile
@@ -14,38 +14,13 @@ LICENSE= GFDL
OPTIONS_MULTI= NET
OPTIONS_MULTI_NET= IPV4 IPV6
OPTIONS_DEFAULT= IPV4
+OPTIONS_SUB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --bindir="${PREFIX}/sbin"
+INSTALL_TARGET= install-strip
-NO_STAGE= yes
-
-.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
+IPV4_CONFIGURE_ENABLE= ipv4
+IPV6_CONFIGURE_ENABLE= ipv6
.include <bsd.port.mk>
diff --git a/net/fping/pkg-plist b/net/fping/pkg-plist
new file mode 100644
index 000000000000..8b7a1f98ea16
--- /dev/null
+++ b/net/fping/pkg-plist
@@ -0,0 +1,6 @@
+@mode 4555
+%%IPV4%%sbin/fping
+%%IPV6%%sbin/fping6
+@mode
+%%IPV4%%man/man8/fping.8.gz
+%%IPV6%%man/man8/fping6.8.gz