svn commit: r356136 - head/mail/bayespam
Pawel Pekala
pawel at FreeBSD.org
Sun Jun 1 15:27:25 UTC 2014
Author: pawel
Date: Sun Jun 1 15:27:24 2014
New Revision: 356136
URL: http://svnweb.freebsd.org/changeset/ports/356136
QAT: https://qat.redports.org/buildarchive/r356136/
Log:
Add staging support
Modified:
head/mail/bayespam/Makefile
Modified: head/mail/bayespam/Makefile
==============================================================================
--- head/mail/bayespam/Makefile Sun Jun 1 15:12:39 2014 (r356135)
+++ head/mail/bayespam/Makefile Sun Jun 1 15:27:24 2014 (r356136)
@@ -21,12 +21,8 @@ FILES_DOCS= AUTHORS COPYING Changelog IN
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>
More information about the svn-ports-all
mailing list