62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# Created by: Petr Rehor <rx@rx.cz>
|
|
|
|
PORTNAME= amavisd-milter
|
|
PORTVERSION= 1.7.0
|
|
CATEGORIES= security mail
|
|
MASTER_SITES= https://github.com/prehor/${PORTNAME}/releases/download/${PORTVERSION}/
|
|
|
|
MAINTAINER= rx@rx.cz
|
|
COMMENT= Milter for amavisd-new
|
|
|
|
RUN_DEPENDS= amavisd:security/amavisd-new
|
|
|
|
##
|
|
# Use the following quirks to choose which sendmail to use (ports or system):
|
|
#
|
|
# WITH_MILTER_BASE=yes
|
|
# or
|
|
# WITH_MILTER_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=${AMAVISDIR}/tmp
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
SUB_LIST= AMAVISUSER=${AMAVISUSER} \
|
|
AMAVISGROUP=${AMAVISGROUP} \
|
|
AMAVISDIR=${AMAVISDIR} \
|
|
RUNDIR=${RUNDIR}
|
|
PLIST_SUB= ${SUB_LIST}
|
|
|
|
PORTDOCS= CHANGES INSTALL LICENSE
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
|
|
|
CONFIGURE_ARGS+=--with-sendmail=${MILTERBASE}
|
|
|
|
.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}
|
|
|
|
.include <bsd.port.post.mk>
|