2014-06-27 03:31:51 +02:00
|
|
|
# Created by: Petr Rehor <rx@rx.cz>
|
2005-11-13 17:28:47 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= amavisd-milter
|
2013-08-22 04:37:47 +02:00
|
|
|
PORTVERSION= 1.6.0
|
2014-06-27 19:55:07 +02:00
|
|
|
PORTREVISION= 2
|
2005-11-13 17:28:47 +01:00
|
|
|
CATEGORIES= security mail
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2005-11-13 17:28:47 +01:00
|
|
|
|
2014-06-27 03:31:51 +02:00
|
|
|
MAINTAINER= rx@rx.cz
|
2005-11-13 17:28:47 +01:00
|
|
|
COMMENT= Milter for amavisd-new
|
|
|
|
|
|
|
|
RUN_DEPENDS= amavisd:${PORTSDIR}/security/amavisd-new
|
|
|
|
|
2006-04-26 00:08:42 +02:00
|
|
|
##
|
|
|
|
# Use the following quirks to choose which sendmail to use (ports or system):
|
|
|
|
#
|
|
|
|
# WITH_SENDMAIL_BASE=yes
|
|
|
|
# or
|
|
|
|
# WITH_SENDMAIL_PORT=yes
|
|
|
|
#
|
|
|
|
# If unspecified, check for an up-to-date system version but give an
|
|
|
|
# installed port preference over it.
|
|
|
|
##
|
|
|
|
|
2005-11-13 17:28:47 +01:00
|
|
|
# Shared defaults with security/amavisd-new
|
|
|
|
AMAVISUSER?= vscan
|
2014-06-27 03:31:51 +02:00
|
|
|
AMAVISGROUP?= vscan
|
2005-11-13 17:28:47 +01:00
|
|
|
AMAVISDIR?= /var/amavis
|
|
|
|
|
2014-06-27 03:31:51 +02:00
|
|
|
RUNDIR= /var/run/amavis
|
|
|
|
|
2005-11-13 17:28:47 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2014-06-27 03:31:51 +02:00
|
|
|
CONFIGURE_ARGS= --localstatedir=${RUNDIR} --with-working-dir=tmp
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2005-11-13 17:28:47 +01:00
|
|
|
|
|
|
|
SUB_LIST= AMAVISUSER=${AMAVISUSER} \
|
2014-06-27 03:31:51 +02:00
|
|
|
AMAVISGROUP=${AMAVISGROUP} \
|
|
|
|
AMAVISDIR=${AMAVISDIR} \
|
|
|
|
RUNDIR=${RUNDIR}
|
|
|
|
PLIST_SUB= ${SUB_LIST}
|
2005-11-13 17:28:47 +01:00
|
|
|
|
2005-11-17 21:14:49 +01:00
|
|
|
PORTDOCS= AUTHORS CHANGES INSTALL LICENSE README TODO
|
2005-11-13 17:28:47 +01:00
|
|
|
|
2006-04-26 00:08:42 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-09-24 19:23:32 +02:00
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
2006-04-26 00:08:42 +02:00
|
|
|
|
2007-09-24 19:23:32 +02:00
|
|
|
.if defined(WITH_SENDMAIL_BASE) && !exists(/usr/lib/libmilter.a)
|
2006-04-26 00:08:42 +02:00
|
|
|
BROKEN= Base system sendmail not found or too old, rebuild with WITH_SENDMAIL_PORT=yes
|
|
|
|
.endif
|
2007-09-24 19:23:32 +02:00
|
|
|
|
|
|
|
.if defined(WITH_SENDMAIL_PORT)
|
|
|
|
CONFIGURE_ARGS+=--with-sendmail=${MILTERBASE}
|
2006-04-26 00:08:42 +02:00
|
|
|
.endif
|
|
|
|
|
2009-11-21 17:17:05 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
|
|
.endif
|
|
|
|
|
2005-11-13 17:28:47 +01:00
|
|
|
post-install:
|
2014-06-27 03:31:51 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-11-17 21:14:49 +01:00
|
|
|
.for f in ${PORTDOCS}
|
2014-06-27 03:31:51 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
2005-11-13 17:28:47 +01:00
|
|
|
.endfor
|
2014-06-27 03:31:51 +02:00
|
|
|
${INSTALL} -d -o ${AMAVISUSER} -g ${AMAVISGROUP} -m 755 ${STAGEDIR}${RUNDIR}
|
2014-06-27 19:55:07 +02:00
|
|
|
${INSTALL} -d -o ${AMAVISUSER} -g ${AMAVISGROUP} -m 750 ${STAGEDIR}${RUNDIR}/tmp
|
2005-11-13 17:28:47 +01:00
|
|
|
|
2006-04-26 00:08:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|