From f76656b9cc16c2c85581dc019c8f0e343e7f24b9 Mon Sep 17 00:00:00 2001 From: pawel Date: Sun, 1 Jun 2014 15:27:24 +0000 Subject: Add staging support --- mail/bayespam/Makefile | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'mail/bayespam') diff --git a/mail/bayespam/Makefile b/mail/bayespam/Makefile index d33473198e4f..8eb56c11b6b2 100644 --- a/mail/bayespam/Makefile +++ b/mail/bayespam/Makefile @@ -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 - 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 -- cgit