From 1afe86b73905a6f7331740380b97a10ff32d064f Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Sun, 20 Jul 2014 01:30:40 +0000 Subject: [PATCH] - Add stage support - Add DOCS option Approved by: portmgr (blanket) --- net-mgmt/netwag/Makefile | 10 ++++------ net-mgmt/netwag/pkg-plist | 2 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net-mgmt/netwag/Makefile b/net-mgmt/netwag/Makefile index 8527ea430bab..c916ae7774fa 100644 --- a/net-mgmt/netwag/Makefile +++ b/net-mgmt/netwag/Makefile @@ -18,13 +18,13 @@ BUILD_DEPENDS= netwox:${PORTSDIR}/net-mgmt/netwox \ xterm:${PORTSDIR}/x11/xterm RUN_DEPENDS:= ${BUILD_DEPENDS} +OPTIONS_DEFINE= DOCS + WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/src SHORTPORTVERSION=${PORTVERSION:C/([0-9]*)\.([0-9]*)\.[0-9]*/\1\2/} -MAN1= ${PORTNAME}.1 ${PORTNAME}${SHORTPORTVERSION}.1 PLIST_SUB+= SHORTPORTVERSION=${SHORTPORTVERSION} -NO_STAGE= yes do-configure: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \ -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ @@ -32,9 +32,7 @@ do-configure: cd ${WRKSRC}; ${SH} ./genemake post-install: -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${CP} -R ${WRKSRC}/../../${PORTNAME}-${PORTVERSION}-doc_html/* ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${CP} -R ${WRKSRC}/../../${PORTNAME}-${PORTVERSION}-doc_html/* ${STAGEDIR}${DOCSDIR} .include diff --git a/net-mgmt/netwag/pkg-plist b/net-mgmt/netwag/pkg-plist index 70c9a57ee19f..216fd7cc7e5e 100644 --- a/net-mgmt/netwag/pkg-plist +++ b/net-mgmt/netwag/pkg-plist @@ -1,5 +1,7 @@ bin/netwag%%SHORTPORTVERSION%% bin/netwag +man/man1/netwag.1.gz +man/man1/netwag%%SHORTPORTVERSION%%.1.gz %%PORTDOCS%%%%DOCSDIR%%/html/lessons.html %%PORTDOCS%%%%DOCSDIR%%/images/banner_netwag.jpg %%PORTDOCS%%%%DOCSDIR%%/index.html