1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Stage net-mgmt/routers2-extensions and cleanup

* stage support
 * use PORTDOCS (remove from pkg-plist)
 * use DOCS instead of NOPORTDOCS
 * get rid of 3 unnecessary for loops

PR:		191708
Submitted by:	Dan Lukes
Modified++:	marino
This commit is contained in:
John Marino 2014-07-29 00:16:32 +00:00
parent 761953421c
commit 95ea30709e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363279
2 changed files with 13 additions and 26 deletions

View File

@ -21,24 +21,23 @@ WRKSRC= ${WRKDIR}/routers2-v${PORTVERSION}/extensions
USES= perl5
NO_BUILD= YES
PORTDOCS= README *.txt extension.cgi.pl
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
NO_STAGE= yes
post-patch:
for file in *.cgi ; do \
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/$$file; \
done
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/*.cgi
do-install:
${MKDIR} -m 755 ${PREFIX}/www/routers2/extensions
.if !defined(NOPORTDOCS)
${MKDIR} -m 755 ${DOCSDIR}
for file in README *.txt extension.cgi.pl; do \
${INSTALL_DATA} ${WRKSRC}/$$file ${DOCSDIR}; \
done
${MKDIR} ${STAGEDIR}${PREFIX}/www/routers2/extensions
${INSTALL_SCRIPT} ${WRKSRC}/*.cgi \
${STAGEDIR}${PREFIX}/www/routers2/extensions
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}; ${INSTALL_DATA} README *.txt extension.cgi.pl \
${STAGEDIR}${DOCSDIR}
.endif
for file in *.cgi; do \
${INSTALL_SCRIPT} ${WRKSRC}/$$file ${PREFIX}/www/routers2/extensions; \
done
.include <bsd.port.mk>

View File

@ -6,16 +6,4 @@ www/routers2/extensions/routingtable.cgi
www/routers2/extensions/showcfg.cgi
www/routers2/extensions/tonagios.cgi
www/routers2/extensions/trend.cgi
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/extension.cgi.pl
%%PORTDOCS%%%%DOCSDIR%%/extension.txt
%%PORTDOCS%%%%DOCSDIR%%/ifrouter.txt
%%PORTDOCS%%%%DOCSDIR%%/ifstatus.txt
%%PORTDOCS%%%%DOCSDIR%%/ifswitch.txt
%%PORTDOCS%%%%DOCSDIR%%/pdfreport.txt
%%PORTDOCS%%%%DOCSDIR%%/routingtable.txt
%%PORTDOCS%%%%DOCSDIR%%/showcfg.txt
%%PORTDOCS%%%%DOCSDIR%%/tonagios.txt
%%PORTDOCS%%%%DOCSDIR%%/trend.txt
@dirrm www/routers2/extensions
%%PORTDOCS%%@dirrm %%DOCSDIR%%