Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jul 2014 01:30:40 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362293 - head/net-mgmt/netwag
Message-ID:  <201407200130.s6K1UeAv004996@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sun Jul 20 01:30:40 2014
New Revision: 362293
URL: http://svnweb.freebsd.org/changeset/ports/362293
QAT: https://qat.redports.org/buildarchive/r362293/

Log:
  - Add stage support
  - Add DOCS option
  
  Approved by:	portmgr (blanket)

Modified:
  head/net-mgmt/netwag/Makefile
  head/net-mgmt/netwag/pkg-plist

Modified: head/net-mgmt/netwag/Makefile
==============================================================================
--- head/net-mgmt/netwag/Makefile	Sun Jul 20 01:29:21 2014	(r362292)
+++ head/net-mgmt/netwag/Makefile	Sun Jul 20 01:30:40 2014	(r362293)
@@ -18,13 +18,13 @@ BUILD_DEPENDS=	netwox:${PORTSDIR}/net-mg
 		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 <bsd.port.mk>

Modified: head/net-mgmt/netwag/pkg-plist
==============================================================================
--- head/net-mgmt/netwag/pkg-plist	Sun Jul 20 01:29:21 2014	(r362292)
+++ head/net-mgmt/netwag/pkg-plist	Sun Jul 20 01:30:40 2014	(r362293)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407200130.s6K1UeAv004996>