2002-05-23 19:20:58 +00:00
|
|
|
# New ports collection makefile for: mimedefang
|
|
|
|
# Date created: 13 May 2002
|
|
|
|
# Whom: Andrey V. Pevnev <andrey@mgul.ac.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mimedefang
|
2003-07-04 11:38:40 +00:00
|
|
|
PORTVERSION= 2.35
|
2002-05-23 19:20:58 +00:00
|
|
|
CATEGORIES= mail
|
2003-04-18 05:37:59 +00:00
|
|
|
MASTER_SITES= http://www.mimedefang.org/static/ \
|
|
|
|
http://www.roaringpenguin.com/mimedefang/
|
2002-05-23 19:20:58 +00:00
|
|
|
|
|
|
|
MAINTAINER= andrey@mgul.ac.ru
|
2003-02-21 12:51:06 +00:00
|
|
|
COMMENT= Milter based anti-spam and anti-virus filtering program
|
2002-05-23 19:20:58 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= \
|
|
|
|
${PERL_SITELIBDIR}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
|
|
|
|
${PERL_SITELIBDIR}/MIME/Tools.pm:${PORTSDIR}/mail/p5-MIME-Tools \
|
|
|
|
${PERL_SITELIBDIR}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
|
|
|
|
${PERL_SITELIBDIR}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools \
|
|
|
|
${PERL_SITELIBDIR}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
|
|
|
|
${PERL_SITELIBDIR}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
2002-10-25 22:10:34 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-05-23 19:20:58 +00:00
|
|
|
PERL_SITELIBDIR= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
|
|
|
|
GNU_CONFIGURE= yes
|
2003-02-15 08:51:00 +00:00
|
|
|
|
|
|
|
MAILUSER?= mailnull
|
|
|
|
SPOOLDIR?= /var/spool/MIMEDefang
|
2003-06-27 04:19:24 +00:00
|
|
|
QUARANTINEDIR?= /var/spool/MD-Quarantine
|
2003-02-15 08:51:00 +00:00
|
|
|
|
2003-04-05 06:24:22 +00:00
|
|
|
CONFIGURE_ENV+= PERL=${PERL}
|
2002-09-07 03:53:02 +00:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/mimedefang \
|
2003-04-05 06:24:22 +00:00
|
|
|
--with-confsubdir= \
|
|
|
|
--with-user=${MAILUSER} \
|
|
|
|
--with-spooldir=${SPOOLDIR} \
|
|
|
|
--with-quarantinedir=${QUARANTINEDIR} \
|
|
|
|
--prefix=${PREFIX}
|
2002-05-23 19:20:58 +00:00
|
|
|
|
|
|
|
MAN5= mimedefang-filter.5
|
|
|
|
MAN7= mimedefang-protocol.7
|
2002-10-25 22:10:34 +00:00
|
|
|
MAN8= mimedefang.8 mimedefang.pl.8 mimedefang-multiplexor.8 \
|
|
|
|
md-mx-ctrl.8 watch-mimedefang.8
|
2002-05-23 19:20:58 +00:00
|
|
|
|
|
|
|
.if !exists( /usr/include/libmilter/mfapi.h )
|
2002-05-29 21:05:52 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
|
2002-05-23 19:20:58 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2002-10-25 22:10:34 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,# MX_USER=,MX_USER=,g ; \
|
|
|
|
s,# MX_MAX_RSS=,MX_MAX_RSS=,g ; \
|
|
|
|
s,# MX_MAX_AS=,MX_MAX_AS=,g' ${WRKSRC}/examples/init-script
|
2002-06-03 02:36:00 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/examples/init-script ${PREFIX}/etc/rc.d/mimedefang.sh-dist
|
2002-05-23 19:20:58 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-06-03 02:36:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/stream-by-domain-filter ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/suggested-minimum-filter-for-windows-clients ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README* ${DOCSDIR}
|
2002-05-23 19:20:58 +00:00
|
|
|
.endif
|
2002-06-03 02:36:00 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-05-23 19:20:58 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|