diff options
author | John Marino <marino@FreeBSD.org> | 2014-07-29 00:16:32 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-07-29 00:16:32 +0000 |
commit | 95ea30709e1f1b437415cb865db0ce777aa12971 (patch) | |
tree | a368a3822c5796c0f705bd9bf139c327f5734671 /net-mgmt/routers2-extensions/Makefile | |
parent | 761953421cede100e80109df615975297149c31c (diff) | |
download | ports-95ea30709e1f1b437415cb865db0ce777aa12971.tar.gz ports-95ea30709e1f1b437415cb865db0ce777aa12971.zip |
Notes
Diffstat (limited to 'net-mgmt/routers2-extensions/Makefile')
-rw-r--r-- | net-mgmt/routers2-extensions/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/net-mgmt/routers2-extensions/Makefile b/net-mgmt/routers2-extensions/Makefile index 5886f0796b56..506b92d2ff83 100644 --- a/net-mgmt/routers2-extensions/Makefile +++ b/net-mgmt/routers2-extensions/Makefile @@ -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> |