From 8ada39bd306d3c2127eda0994acb58eef307207f Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Sun, 20 Jul 2014 01:29:21 +0000 Subject: [PATCH] - Add stage support - Add DOCS option Approved by: portmgr (blanket) --- net-mgmt/netwox/Makefile | 12 +++++------- net-mgmt/netwox/pkg-plist | 2 ++ 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 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