Brief summary of changes (taken from upstream release announcement): - -C option to change the default reject code - -S option to specify a path to sendmail (for the -x option) - -R option to specify the rejection message - -a option to skip messages that were authenticated - IPv6 address support - zombie process fix for the - option introduced in 0.3.2 Some of these changes (notably the -R and -a flags and the IPv6 support) were previously included in the port via patch files, which are now unneeded and have been removed.
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# Created by: Eugene M. Kim <ab@astralblue.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= spamass-milter
|
|
PORTVERSION= 0.4.0
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
|
MASTER_SITE_SUBDIR= spamass-milt
|
|
|
|
MAINTAINER= bmah@FreeBSD.org
|
|
COMMENT= Sendmail Milter (mail filter) plugin for SpamAssassin
|
|
|
|
BUILD_DEPENDS= spamc:${PORTSDIR}/mail/spamassassin
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
OPTIONS_DEFINE= LDAP SENDMAIL_PORT DOCS
|
|
SENDMAIL_PORT_DESC= Build against sendmail port
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${LOCALBASE}/lib/libldap.so)
|
|
WITH_LDAP=yes
|
|
.undef WITHOUT_LDAP
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
USE_OPENLDAP=yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
|
|
.endif
|
|
|
|
USE_RC_SUBR= spamass-milter
|
|
GNU_CONFIGURE= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
post-patch:
|
|
@${SED} -e's,%%PREFIX%%,${PREFIX},g' \
|
|
${FILESDIR}/activation.txt > ${WRKDIR}/activation.txt
|
|
.if ${PORT_OPTIONS:MLDAP} && ${PORT_OPTIONS:MLDAP}
|
|
@${REINPLACE_CMD} -e 's|-lmilter|-lmilter -lldap|g' ${WRKSRC}/configure
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/activation.txt ${STAGEDIR}${DOCSDIR}/activation.txt
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
|
|
|
.include <bsd.port.post.mk>
|