aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/apinger/Makefile10
-rw-r--r--net/apinger/pkg-plist8
2 files changed, 13 insertions, 5 deletions
diff --git a/net/apinger/Makefile b/net/apinger/Makefile
index 70f7b0b8b7c8..d62e65003e22 100644
--- a/net/apinger/Makefile
+++ b/net/apinger/Makefile
@@ -17,6 +17,14 @@ COMMENT= An IP device monitoring tool
GNU_CONFIGURE= yes
+OPTIONS= IPV6 "With support for IPv6" on
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITH_IPV6)
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
post-extract:
@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${FILESDIR}/apinger.sh \
> ${WRKSRC}/apinger.sh
@@ -40,4 +48,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}/AUTHORS
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net/apinger/pkg-plist b/net/apinger/pkg-plist
index 57e08e438bd1..8cb44e3a39c4 100644
--- a/net/apinger/pkg-plist
+++ b/net/apinger/pkg-plist
@@ -1,7 +1,7 @@
sbin/apinger
etc/apinger.conf.sample
etc/rc.d/apinger.sh.sample
-%%PORTDOCS%%share/doc/apinger/README
-%%PORTDOCS%%share/doc/apinger/NEWS
-%%PORTDOCS%%share/doc/apinger/AUTHORS
-%%PORTDOCS%%@dirrm share/doc/apinger
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%@dirrm %%DOCSDIR%%