1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/mail/milter-regex/Makefile
Dirk Meyer 6058705eb9 - bump MILTER_SOVER to fix linking on FREEBSD-12
- bump PORTREVISION on ports using libmilter
- rename WITH_SENDMAIL_PORT to WITH_MILTER_PORT
- rename WITH_SENDMAIL_BASE to WITH_MILTER_BASE
- rename WITH_SENDMAIL_STATIC_MILTER to WITH_MILTER_STATIC
- cleanup ifdefs
- fix build on batv-filter with libmilter from ports
2018-07-01 10:17:18 +00:00

46 lines
1.3 KiB
Makefile

# Created by: trevor
# $FreeBSD$
PORTNAME= milter-regex
PORTVERSION= 2.0
PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= http://www.benzedrine.cx/
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Milter plugin to sendmail for regular expression filtering
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${FILESDIR}/COPYRIGHT
USE_RC_SUBR= milterregex
SUB_LIST= SPOOLDIR=${SPOOLDIR}
PLIST_SUB= SPOOLDIR=${SPOOLDIR}
MAILUSER?= mailnull
SPOOLDIR?= /var/run/milter-regex
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
post-patch:
${REINPLACE_CMD} -e \
"s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \
s:/var/spool/milter-regex:${SPOOLDIR}:g; \
s:_milter-regex:${MAILUSER}:g;" ${WRKSRC}/milter-regex.c
${REINPLACE_CMD} -e \
"s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \
s:/var/spool/milter-regex:${SPOOLDIR}:g; \
s:mailstats 1:mailstats 8:;" ${WRKSRC}/milter-regex.8
${REINPLACE_CMD} -e "s:-I/usr/src/gnu/usr.sbin/sendmail/include::g; \
s:-L/usr/local/lib:-L${LOCALBASE}/lib:g; \
s/-Werror//g" ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${STAGEDIR}${PREFIX}/libexec/
${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${STAGEDIR}${PREFIX}/man/man8/
${MKDIR} ${STAGEDIR}${SPOOLDIR}
.include <bsd.port.post.mk>