openbsd-ports/mail/mimedefang/Makefile
ajacoutot 5f9fae9f61 Update to mimedefang-2.73.
Rework the port to comply with upstream defaults and generally simplify
it. Set default options in rc.d(8) following the default init script
behavior.
Activate ipheader and install gen-ip-validator.pl.

ok okan@ (maintainer)
2012-05-31 18:31:42 +00:00

49 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2012/05/31 18:31:42 ajacoutot Exp $
COMMENT= mailfilter to identify and mark spam
DISTNAME= mimedefang-2.73
CATEGORIES= mail
HOMEPAGE= http://www.mimedefang.org/
MASTER_SITES= ${HOMEPAGE}static/
MAINTAINER= Okan Demirmen <okan@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= 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
USE_GROFF = Yes
NO_REGRESS= Yes
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/mimedefang
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_SCRIPT} ${WRKSRC}/gen-ip-validator.pl \
${PREFIX}/share/examples
.include <bsd.port.mk>