aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/netwox
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2014-07-20 09:29:21 +0800
committerdanilo <danilo@FreeBSD.org>2014-07-20 09:29:21 +0800
commit723ec82048188b022e6130b4dab0386e6bb3579d (patch)
tree73030c6cbbcd95fc5bf487b6280482ef28110b41 /net-mgmt/netwox
parent9b60cfd7bb114c5ae1e973420cf7f9c380501523 (diff)
downloadfreebsd-ports-gnome-723ec82048188b022e6130b4dab0386e6bb3579d.tar.gz
freebsd-ports-gnome-723ec82048188b022e6130b4dab0386e6bb3579d.tar.zst
freebsd-ports-gnome-723ec82048188b022e6130b4dab0386e6bb3579d.zip
- Add stage support
- Add DOCS option Approved by: portmgr (blanket)
Diffstat (limited to 'net-mgmt/netwox')
-rw-r--r--net-mgmt/netwox/Makefile12
-rw-r--r--net-mgmt/netwox/pkg-plist2
2 files changed, 7 insertions, 7 deletions
diff --git a/net-mgmt/netwox/Makefile b/net-mgmt/netwox/Makefile
index 483009193135..b940318c6466 100644
--- a/net-mgmt/netwox/Makefile
+++ b/net-mgmt/netwox/Makefile
@@ -14,13 +14,13 @@ COMMENT= Netwox a network testing toolbox
BUILD_DEPENDS= netwib-config:${PORTSDIR}/net/netwib
+OPTIONS_DEFINE= DOCS
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/src
SHORTPORTVERSION=${PORTVERSION:C/([0-9]*)\.([0-9]*)\.[0-9]*/\1\2/}
-MAN1= netwox.1 netwox${SHORTPORTVERSION}.1
PLIST_SUB+= SHORTPORTVERSION=${SHORTPORTVERSION}
-NO_STAGE= yes
do-configure:
@${REINPLACE_CMD} \
-e 's|%%PREFIX%%|${PREFIX}|' \
@@ -31,10 +31,8 @@ do-configure:
(cd ${WRKSRC} ; ${SH} ${WRKSRC}/genemake )
post-install:
- ${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}
-.ifndef(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${CP} -R ${WRKSRC}/../../${PORTNAME}-${PORTVERSION}-doc_html/* ${DOCSDIR}
-.endif
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${CP} -R ${WRKSRC}/../../${PORTNAME}-${PORTVERSION}-doc_html/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/net-mgmt/netwox/pkg-plist b/net-mgmt/netwox/pkg-plist
index 0b1e76388cb4..368cef8b6dd7 100644
--- a/net-mgmt/netwox/pkg-plist
+++ b/net-mgmt/netwox/pkg-plist
@@ -1,5 +1,7 @@
bin/netwox%%SHORTPORTVERSION%%
bin/netwox
+man/man1/netwox.1.gz
+man/man1/netwox%%SHORTPORTVERSION%%.1.gz
%%PORTDOCS%%%%DOCSDIR%%/html/examples.html
%%PORTDOCS%%%%DOCSDIR%%/html/routerandfw.html
%%PORTDOCS%%%%DOCSDIR%%/html/sendip6.html