svn commit: r362293 - head/net-mgmt/netwag
Danilo Egea Gondolfo
danilo at FreeBSD.org
Sun Jul 20 01:30:41 UTC 2014
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
More information about the svn-ports-all
mailing list