1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Add staging support

This commit is contained in:
Pawel Pekala 2014-06-01 15:27:24 +00:00
parent 8d0788e6fa
commit b89c89362f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356136

View File

@ -21,12 +21,8 @@ FILES_DOCS= AUTHORS COPYING Changelog INSTALL README TODO \
qmail.sample
FILES_SCRIPTS= bayes_process_email.pl bayes_spam_check.pl bayestest.pl
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
# fix location of Bayesian filter
@${REINPLACE_CMD} -e 's|/user/|${PREFIX}/|' ${WRKSRC}/README
@ -37,17 +33,11 @@ post-patch:
${WRKSRC}/bayestest.pl
do-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in ${FILES_DOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@${MKDIR} ${PREFIX}/${SITE_PERL_REL}/Bayespam
@${INSTALL_DATA} ${WRKSRC}/Bayespam/Process.pm \
${PREFIX}/${SITE_PERL_REL}/Bayespam
.for file in ${FILES_SCRIPTS}
@${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${FILES_DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Bayespam
${INSTALL_DATA} ${WRKSRC}/Bayespam/Process.pm \
${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Bayespam
${INSTALL_SCRIPT} ${FILES_SCRIPTS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>