aboutsummaryrefslogtreecommitdiffstats
path: root/net/fping
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-02-11 01:57:29 +0800
committermat <mat@FreeBSD.org>2014-02-11 01:57:29 +0800
commit1eeb6395d7025623114ef9c292f2578484b298a5 (patch)
treea46067be3df55fc4576cc200dab153b5234c923b /net/fping
parent8d5534839be25cc690f17e4944c01dfe9e66b74c (diff)
downloadfreebsd-ports-gnome-1eeb6395d7025623114ef9c292f2578484b298a5.tar.gz
freebsd-ports-gnome-1eeb6395d7025623114ef9c292f2578484b298a5.tar.zst
freebsd-ports-gnome-1eeb6395d7025623114ef9c292f2578484b298a5.zip
Convert to staging.
Sponsored by: Absolight
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