mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Support staging
This commit is contained in:
parent
182bdd076d
commit
2446bb8a82
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348517
@ -21,22 +21,18 @@ PLIST_FILES= bin/spamstats.pl
|
||||
USES= shebangfix perl5
|
||||
SHEBANG_FILES= ${PORTNAME}${PORTVERSION}.pl
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -i '' -e 's|mail.log|maillog|g' \
|
||||
${WRKSRC}/${PORTNAME}${PORTVERSION}.pl
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}${PORTVERSION}.pl ${PREFIX}/bin/${PORTNAME}.pl
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}${PORTVERSION}.pl \
|
||||
${STAGEDIR}${PREFIX}/bin/${PORTNAME}.pl
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for f in ${PORTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user