openbsd-ports/mail/mimedefang/Makefile
ajacoutot 480e2acd60 Enable queuing by default (up to 10 msgs).
Rework and document the way mimedefang+spamassassin work wrt bayes.
Add a note on using mfs(8) for the spool directory.
Take maintainer.

ok okan@ (former maintainer)
2013-03-28 14:27:19 +00:00

52 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.33 2013/03/28 14:27:19 ajacoutot Exp $
COMMENT= mailfilter to identify and mark spam
DISTNAME= mimedefang-2.73
REVISION= 9
CATEGORIES= mail
HOMEPAGE= http://www.mimedefang.org/
MASTER_SITES= ${HOMEPAGE}static/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c m perl pthread util milter
RUN_DEPENDS= archivers/p5-Archive-Zip \
mail/p5-MIME-tools \
security/p5-Digest-SHA1 \
www/p5-HTML-Parser \
sysutils/p5-Unix-Syslog
BUILD_DEPENDS= ${RUN_DEPENDS}
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-user=_mdefang \
--with-ipheader \
--disable-anti-virus \
--enable-poll
NO_TEST= Yes
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/mimedefang
post-extract:
cp ${WRKSRC}/examples/suggested-minimum-filter-for-windows-clients \
${WRKSRC}/examples/mimedefang-filter-openbsd-ports
pre-configure:
perl -pi -e 's,/var/lib,/var/db,g' ${WRKSRC}/mimedefang.pl.in
post-install:
${INSTALL_DATA} ${WRKSRC}/SpamAssassin/spamassassin.cf \
${PREFIX}/share/examples/mimedefang/mail/sa-mimedefang.cf
${INSTALL_DATA} ${WRKSRC}/examples/mimedefang-filter-openbsd-ports \
${PREFIX}/share/examples/mimedefang/mail
${INSTALL_SCRIPT} ${WRKSRC}/gen-ip-validator.pl \
${PREFIX}/share/examples
.include <bsd.port.mk>