summaryrefslogtreecommitdiff
path: root/mail/bogofilter
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-05-28 19:30:05 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-05-28 19:30:05 +0000
commit202720e44ba1b79275e312e4828fc01a48832081 (patch)
tree4c0300528b3eeb64680da1bf609d2b8bfa9c5b03 /mail/bogofilter
parent- Update to version 0.6.8 (diff)
- Install trainbogo.sh script
- Add a WITHOUT_BASH install-time option that will remove the bash2 dependency and the bash-dependent contrib/ scripts and documentation (randomtrain, scramble, trainbogo.sh) - Bump PORTREVISION PR: ports/67303 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=110237
Diffstat (limited to 'mail/bogofilter')
-rw-r--r--mail/bogofilter/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile
index f3506fd8aa71..c0c396db288a 100644
--- a/mail/bogofilter/Makefile
+++ b/mail/bogofilter/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bogofilter
PORTVERSION= 0.17.5
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,7 +17,9 @@ COMMENT= "Fast, teachable, learning spam detector"
LIB_DEPENDS?= db-4.2:${PORTSDIR}/databases/db42
LIB_DEPENDS+= gsl.5:${PORTSDIR}/math/gsl
+.if !defined(WITHOUT_BASH)
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
+.endif
CONFLICTS?= bogofilter-tdb* bogofilter-qdbm*
@@ -50,6 +53,15 @@ post-patch:
PORTDOCS= *
.endif
+.if !defined(WITHOUT_BASH)
+pre-everything::
+ @${ECHO_CMD} "----------------------------------------------------------------------------"
+ @${ECHO_CMD} "To install without bash dependency, you can use: make -DWITHOUT_BASH install"
+ @${ECHO_CMD} "Note that installing without bash dependency will mean that some of the"
+ @${ECHO_CMD} "${DOCSDIR}/contrib scripts will not be installed."
+ @${ECHO_CMD} "----------------------------------------------------------------------------"
+.endif
+
post-build::
cd ${WRKSRC} && make check SHELL=${SH}
@@ -69,12 +81,11 @@ post-install::
.endfor
${INSTALL_DATA} ${WRKSRC}/trio/AUTHORS ${DOCSDIR}/AUTHORS.trio
.for i in contrib/bogo.R contrib/bogofilter-qfe \
- contrib/randomtrain contrib/scramble \
contrib/mime.get.rfc822 contrib/printmaildir.pl \
contrib/bogominitrain.pl contrib/README.contrib
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
-.for i in contrib/README.randomtrain contrib/dot-qmail-bogofilter-default
+.for i in contrib/dot-qmail-bogofilter-default
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/contrib/bogogrep ${DOCSDIR}/contrib/
@@ -82,6 +93,12 @@ post-install::
${INSTALL_DATA} ${WRKSRC}/doc/*.xml ${DOCSDIR}/xml
${INSTALL_DATA} ${WRKSRC}/doc/programmer/README.freebsd ${DOCSDIR}/programmer
.endif
+.if !defined(WITHOUT_BASH)
+.for i in randomtrain scramble trainbogo.sh
+ ${INSTALL_SCRIPT} ${WRKSRC}/contrib/${i} ${DOCSDIR}/contrib/
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/contrib/README.randomtrain ${DOCSDIR}/contrib/
+.endif
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>