2013-06-04 12:32:49 +02:00
|
|
|
# Created by: Andrey V. Pevnev <andrey@mgul.ac.ru>
|
2002-05-23 21:20:58 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mimedefang
|
2017-12-14 16:57:15 +01:00
|
|
|
PORTVERSION= 2.83
|
2019-03-15 06:02:15 +01:00
|
|
|
PORTREVISION= 2
|
2002-05-23 21:20:58 +02:00
|
|
|
CATEGORIES= mail
|
2014-07-08 23:03:07 +02:00
|
|
|
MASTER_SITES= http://www.mimedefang.org/static/ \
|
|
|
|
http://fossies.org/linux/misc/
|
2002-05-23 21:20:58 +02:00
|
|
|
|
2011-02-18 04:12:51 +01:00
|
|
|
MAINTAINER= m.tsatsenko@gmail.com
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= Milter based anti-spam and anti-virus filtering program
|
2002-05-23 21:20:58 +02:00
|
|
|
|
2011-12-28 15:26:17 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2002-05-23 21:20:58 +02:00
|
|
|
BUILD_DEPENDS= \
|
2016-04-01 16:16:16 +02:00
|
|
|
p5-IO-stringy>=0:devel/p5-IO-stringy \
|
|
|
|
p5-MIME-Tools>=5.417:mail/p5-MIME-Tools \
|
|
|
|
p5-Mail-Tools>=0:mail/p5-Mail-Tools \
|
|
|
|
p5-Digest-SHA1>=0:security/p5-Digest-SHA1 \
|
|
|
|
spamassassin>=3.0:mail/spamassassin
|
2011-12-28 15:26:17 +01:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
|
2014-07-08 23:03:07 +02:00
|
|
|
USES= perl5 shebangfix
|
|
|
|
perl_OLD_CMD= perl
|
2002-05-23 21:20:58 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-02-15 09:51:00 +01:00
|
|
|
|
2015-10-27 17:49:27 +01:00
|
|
|
MIMEDEFANG_USER?= mailnull
|
|
|
|
MIMEDEFANG_GROUP?= mailnull
|
2003-02-15 09:51:00 +01:00
|
|
|
SPOOLDIR?= /var/spool/MIMEDefang
|
2014-07-08 23:03:07 +02:00
|
|
|
QUARANTINEDIR?= /var/spool/MD-Quarantine
|
2003-02-15 09:51:00 +01:00
|
|
|
|
2003-04-05 08:24:22 +02:00
|
|
|
CONFIGURE_ENV+= PERL=${PERL}
|
2009-10-11 14:15:17 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc \
|
|
|
|
--with-confsubdir=mimedefang \
|
2015-10-27 17:49:27 +01:00
|
|
|
--with-user=${MIMEDEFANG_USER} \
|
2003-04-05 08:24:22 +02:00
|
|
|
--with-spooldir=${SPOOLDIR} \
|
|
|
|
--with-quarantinedir=${QUARANTINEDIR} \
|
2011-08-13 09:52:29 +02:00
|
|
|
--with-ipheader \
|
2003-04-05 08:24:22 +02:00
|
|
|
--prefix=${PREFIX}
|
2002-05-23 21:20:58 +02:00
|
|
|
|
2011-01-01 05:22:06 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2015-10-27 17:49:27 +01:00
|
|
|
PLIST_SUB+= USER="${MIMEDEFANG_USER}" \
|
|
|
|
GROUP="${MIMEDEFANG_GROUP}" \
|
2014-07-08 23:03:07 +02:00
|
|
|
MIMEDEFANG_RUNDIR="${SPOOLDIR}" \
|
|
|
|
MIMEDEFANG_QUARANTINEDIR="${QUARANTINEDIR}"
|
|
|
|
|
2011-08-13 09:52:29 +02:00
|
|
|
CONFIG_FILES= mimedefang-filter sa-mimedefang.cf mimedefang-ip-key
|
2011-07-05 18:37:10 +02:00
|
|
|
|
2019-03-15 06:02:15 +01:00
|
|
|
OPTIONS_DEFINE= CLAMAV EXAMPLES DOCS
|
|
|
|
OPTIONS_DEFAULT= CLAMAV
|
|
|
|
|
|
|
|
CLAMAV_DESC= Enable Clamav
|
|
|
|
|
|
|
|
CLAMAV_BUILD_DEPENDS= clamscan:security/clamav
|
|
|
|
CLAMAV_RUN_DEPENDS= clamscan:security/clamav
|
|
|
|
CLAMAV_CONFIGURE_ENABLE= antivirus clamav clamd
|
|
|
|
|
2012-04-16 22:06:22 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2004-04-05 23:44:45 +02:00
|
|
|
|
2017-12-14 16:57:15 +01:00
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
2002-05-23 21:20:58 +02:00
|
|
|
|
2018-07-01 12:17:18 +02:00
|
|
|
CONFIGURE_ARGS+= --with-milterinc=${MILTERBASE}/include --with-milterlib=${MILTERBASE}/lib
|
2007-02-12 19:24:45 +01:00
|
|
|
|
2009-10-11 14:15:17 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/fgrep -e/d' ${WRKSRC}/configure
|
|
|
|
|
2007-07-23 19:27:13 +02:00
|
|
|
pre-install:
|
|
|
|
@${REINPLACE_CMD} -e '/LOCAL_STATE_DIR/s,/var/lib,/var/db,' ${WRKSRC}/mimedefang.pl
|
|
|
|
|
2002-05-23 21:20:58 +02:00
|
|
|
post-install:
|
2010-08-13 10:41:13 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,%%CHMOD%%,${CHMOD},g' ${WRKSRC}/examples/init-script
|
2015-10-27 17:49:27 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/init-script ${STAGEDIR}${PREFIX}/etc/rc.d/mimedefang
|
2013-06-04 12:32:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-07-08 23:03:07 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2015-10-27 17:49:27 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README* ${STAGEDIR}${DOCSDIR}/
|
2011-01-01 05:22:06 +01:00
|
|
|
.endif
|
2011-07-05 18:37:10 +02:00
|
|
|
|
2013-06-04 12:32:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2014-07-08 23:03:07 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2011-01-01 05:22:06 +01:00
|
|
|
@cd ${WRKSRC}/examples/ && ${INSTALL_DATA} stream-by-domain-filter \
|
2014-07-08 23:03:07 +02:00
|
|
|
suggested-minimum-filter-for-windows-clients README ${STAGEDIR}${EXAMPLESDIR}/
|
2002-05-23 21:20:58 +02:00
|
|
|
.endif
|
2017-12-14 16:57:15 +01:00
|
|
|
|
2012-04-16 22:06:22 +02:00
|
|
|
.include <bsd.port.mk>
|