freebsd-ports/security/amavisd-milter/Makefile
John Marino a28dc18cc5 security/amavisd-milter: Remove pre-everything check
The pre-everything target fails on systems that do not have sendmail
installed in base.  The logic may have worked in the past, but today
the existence check fails because the library that is checked is pulled
in later.

The check itself is aimed at the sysadmin that intentionally changes the
sendmail default to not install milter, but then tries to install this
port.  The worst case scenario the results from removing this check (even
if it worked) is that the amavisd-milter port breaks during the build.

PR:		200247
Submitted by:	marino
Approved by:	maintainer timeout (6 weeks)
2015-07-03 09:20:24 +00:00

69 lines
1.7 KiB
Makefile

# Created by: Petr Rehor <rx@rx.cz>
# $FreeBSD$
PORTNAME= amavisd-milter
PORTVERSION= 1.6.0
PORTREVISION= 2
CATEGORIES= security mail
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= rx@rx.cz
COMMENT= Milter for amavisd-new
RUN_DEPENDS= amavisd:${PORTSDIR}/security/amavisd-new
##
# 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.
##
# Shared defaults with security/amavisd-new
AMAVISUSER?= vscan
AMAVISGROUP?= vscan
AMAVISDIR?= /var/amavis
RUNDIR= /var/run/amavis
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${RUNDIR} --with-working-dir=tmp
USE_RC_SUBR= ${PORTNAME}
SUB_LIST= AMAVISUSER=${AMAVISUSER} \
AMAVISGROUP=${AMAVISGROUP} \
AMAVISDIR=${AMAVISDIR} \
RUNDIR=${RUNDIR}
PLIST_SUB= ${SUB_LIST}
PORTDOCS= AUTHORS CHANGES INSTALL LICENSE README TODO
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
.if defined(WITH_SENDMAIL_BASE) && !exists(/usr/lib/libmilter.a)
BROKEN= Base system sendmail not found or too old, rebuild with WITH_SENDMAIL_PORT=yes
.endif
.if defined(WITH_SENDMAIL_PORT)
CONFIGURE_ARGS+=--with-sendmail=${MILTERBASE}
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL} -d -o ${AMAVISUSER} -g ${AMAVISGROUP} -m 755 ${STAGEDIR}${RUNDIR}
${INSTALL} -d -o ${AMAVISUSER} -g ${AMAVISGROUP} -m 750 ${STAGEDIR}${RUNDIR}/tmp
.include <bsd.port.post.mk>