2013-03-28 10:27:19 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2013/03/28 14:27:19 ajacoutot Exp $
|
2006-10-18 21:06:22 -04:00
|
|
|
|
2007-09-15 20:17:04 -04:00
|
|
|
COMMENT= mailfilter to identify and mark spam
|
2006-10-18 21:06:22 -04:00
|
|
|
|
2012-05-31 14:31:42 -04:00
|
|
|
DISTNAME= mimedefang-2.73
|
2013-03-28 10:27:19 -04:00
|
|
|
REVISION= 9
|
2007-11-02 18:40:03 -04:00
|
|
|
CATEGORIES= mail
|
2006-10-18 21:06:22 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.mimedefang.org/
|
2008-10-21 19:28:14 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}static/
|
2006-10-18 21:06:22 -04:00
|
|
|
|
2013-03-28 10:27:19 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
2007-11-02 18:40:03 -04:00
|
|
|
|
2012-05-31 14:31:42 -04:00
|
|
|
# GPLv2
|
2006-10-18 21:06:22 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2008-02-05 15:46:21 -05:00
|
|
|
|
2007-07-27 17:57:29 -04:00
|
|
|
WANTLIB= c m perl pthread util milter
|
2006-10-18 21:06:22 -04:00
|
|
|
|
2010-12-06 21:56:18 -05:00
|
|
|
RUN_DEPENDS= archivers/p5-Archive-Zip \
|
|
|
|
mail/p5-MIME-tools \
|
2010-11-19 02:23:05 -05:00
|
|
|
security/p5-Digest-SHA1 \
|
|
|
|
www/p5-HTML-Parser \
|
|
|
|
sysutils/p5-Unix-Syslog
|
2006-10-18 21:06:22 -04:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= --with-user=_mdefang \
|
2012-05-31 14:31:42 -04:00
|
|
|
--with-ipheader \
|
2009-09-10 08:13:06 -04:00
|
|
|
--disable-anti-virus \
|
|
|
|
--enable-poll
|
2006-10-18 21:06:22 -04:00
|
|
|
|
2013-03-11 07:20:26 -04:00
|
|
|
NO_TEST= Yes
|
2006-10-18 21:06:22 -04:00
|
|
|
|
2012-05-31 14:31:42 -04:00
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/mimedefang
|
|
|
|
|
2012-06-01 11:35:48 -04:00
|
|
|
post-extract:
|
|
|
|
cp ${WRKSRC}/examples/suggested-minimum-filter-for-windows-clients \
|
|
|
|
${WRKSRC}/examples/mimedefang-filter-openbsd-ports
|
|
|
|
|
2012-05-31 14:31:42 -04:00
|
|
|
pre-configure:
|
|
|
|
perl -pi -e 's,/var/lib,/var/db,g' ${WRKSRC}/mimedefang.pl.in
|
|
|
|
|
2006-10-18 21:06:22 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/SpamAssassin/spamassassin.cf \
|
2012-05-31 14:31:42 -04:00
|
|
|
${PREFIX}/share/examples/mimedefang/mail/sa-mimedefang.cf
|
2012-06-01 11:35:48 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/mimedefang-filter-openbsd-ports \
|
|
|
|
${PREFIX}/share/examples/mimedefang/mail
|
2012-05-31 14:31:42 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gen-ip-validator.pl \
|
|
|
|
${PREFIX}/share/examples
|
2006-10-18 21:06:22 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|