mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Add stage support
- Add DOCS option Approved by: portmgr (blanket)
This commit is contained in:
parent
a463ee6438
commit
8ada39bd30
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362292
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user