mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Support staging
This commit is contained in:
parent
735e040253
commit
420222c316
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346443
@ -26,22 +26,20 @@ MODULES= model/Abstract.pm model/CiscoCAT.pm model/CiscoIOS.pm \
|
|||||||
model/CiscoPIX.pm model/JunOS.pm model/TellabsMSR.pm
|
model/CiscoPIX.pm model/JunOS.pm model/TellabsMSR.pm
|
||||||
PORTDOCS= CHANGES README device_table.example
|
PORTDOCS= CHANGES README device_table.example
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e '1s|.*|#!${PERL} -w|' ${WRKSRC}/${PORTNAME}.pl
|
@${REINPLACE_CMD} -e '1s|.*|#!${PERL} -w|' ${WRKSRC}/${PORTNAME}.pl
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
|
||||||
${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/model
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||||
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/model
|
||||||
.for f in ${MODULES}
|
.for f in ${MODULES}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${f} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${f}
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${f} \
|
||||||
|
${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${f}
|
||||||
.endfor
|
.endfor
|
||||||
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.if !defined(NOPORTDOCS)
|
|
||||||
${MKDIR} ${DOCSDIR}
|
|
||||||
.for i in ${PORTDOCS}
|
.for i in ${PORTDOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -20,3 +20,6 @@ bin/fetchconfig
|
|||||||
%%SITE_PERL%%/fetchconfig/Logger.pm
|
%%SITE_PERL%%/fetchconfig/Logger.pm
|
||||||
@dirrm %%SITE_PERL%%/fetchconfig/model
|
@dirrm %%SITE_PERL%%/fetchconfig/model
|
||||||
@dirrm %%SITE_PERL%%/fetchconfig
|
@dirrm %%SITE_PERL%%/fetchconfig
|
||||||
|
@dirrm lib/perl5/site_perl
|
||||||
|
@dirrm lib/perl5
|
||||||
|
@dirrm %%SITE_PERL%%
|
||||||
|
Loading…
Reference in New Issue
Block a user