freebsd-ports/mail/milter-regex/Makefile

44 lines
1.3 KiB
Makefile
Raw Normal View History

PORTNAME= milter-regex
2019-12-20 05:36:07 +01:00
PORTVERSION= 2.7
PORTREVISION= 2
CATEGORIES= mail
2019-01-07 02:08:08 +01:00
MASTER_SITES= https://www.benzedrine.ch/
2006-11-03 05:42:22 +01:00
MAINTAINER= dinoex@FreeBSD.org
2004-04-07 16:09:52 +02:00
COMMENT= Milter plugin to sendmail for regular expression filtering
WWW= https://www.benzedrine.ch/milter-regex.html
2014-03-04 07:51:37 +01:00
LICENSE= BSD2CLAUSE
2010-06-11 09:42:14 +02:00
LICENSE_FILE= ${FILESDIR}/COPYRIGHT
2010-06-04 16:08:27 +02:00
2013-11-13 07:31:00 +01:00
USE_RC_SUBR= milterregex
SUB_LIST= SPOOLDIR=${SPOOLDIR}
PLIST_SUB= SPOOLDIR=${SPOOLDIR}
2004-04-07 17:44:50 +02:00
MAILUSER?= mailnull
SPOOLDIR?= /var/run/milter-regex
.include <bsd.port.pre.mk>
2007-01-13 05:22:51 +01:00
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
post-patch:
2013-11-27 05:39:09 +01:00
${REINPLACE_CMD} -e \
"s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \
s:/var/spool/milter-regex:${SPOOLDIR}:g; \
2004-04-07 17:44:50 +02:00
s:_milter-regex:${MAILUSER}:g;" ${WRKSRC}/milter-regex.c
2013-11-27 05:39:09 +01:00
${REINPLACE_CMD} -e \
"s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \
s:/var/spool/milter-regex:${SPOOLDIR}:g; \
2004-04-07 17:44:50 +02:00
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; \
2004-04-07 17:44:50 +02:00
s/-Werror//g" ${WRKSRC}/Makefile
do-install:
2013-11-13 07:31:00 +01:00
${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${STAGEDIR}${PREFIX}/libexec/
2014-03-04 07:51:37 +01:00
${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${STAGEDIR}${PREFIX}/man/man8/
${MKDIR} ${STAGEDIR}${SPOOLDIR}
.include <bsd.port.post.mk>