2006-11-09 13:48:59 +01:00
|
|
|
PORTNAME= milter-regex
|
2019-12-20 05:36:07 +01:00
|
|
|
PORTVERSION= 2.7
|
2020-12-31 13:14:42 +01:00
|
|
|
PORTREVISION= 2
|
2003-10-04 18:03:17 +02:00
|
|
|
CATEGORIES= mail
|
2019-01-07 02:08:08 +01:00
|
|
|
MASTER_SITES= https://www.benzedrine.ch/
|
2003-10-04 18:03:17 +02:00
|
|
|
|
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
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://www.benzedrine.ch/milter-regex.html
|
2003-10-04 18:03:17 +02:00
|
|
|
|
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}
|
2013-09-21 13:06:03 +02:00
|
|
|
|
2004-04-07 17:44:50 +02:00
|
|
|
MAILUSER?= mailnull
|
2006-11-09 13:48:59 +01:00
|
|
|
SPOOLDIR?= /var/run/milter-regex
|
2006-11-02 07:52:54 +01:00
|
|
|
|
2005-11-20 17:03:43 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-01-13 05:22:51 +01:00
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
2003-10-04 18:03:17 +02:00
|
|
|
|
|
|
|
post-patch:
|
2013-11-27 05:39:09 +01:00
|
|
|
${REINPLACE_CMD} -e \
|
2005-11-20 17:03:43 +01:00
|
|
|
"s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \
|
2006-11-02 07:52:54 +01:00
|
|
|
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 \
|
2005-11-20 17:03:43 +01:00
|
|
|
"s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \
|
2006-11-02 07:52:54 +01:00
|
|
|
s:/var/spool/milter-regex:${SPOOLDIR}:g; \
|
2004-04-07 17:44:50 +02:00
|
|
|
s:mailstats 1:mailstats 8:;" ${WRKSRC}/milter-regex.8
|
2015-03-25 12:41:17 +01:00
|
|
|
${REINPLACE_CMD} -e "s:-I/usr/src/gnu/usr.sbin/sendmail/include::g; \
|
2005-11-20 17:03:43 +01:00
|
|
|
s:-L/usr/local/lib:-L${LOCALBASE}/lib:g; \
|
2004-04-07 17:44:50 +02:00
|
|
|
s/-Werror//g" ${WRKSRC}/Makefile
|
2003-10-04 18:03:17 +02:00
|
|
|
|
|
|
|
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/
|
2015-09-26 22:02:17 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${SPOOLDIR}
|
2003-10-04 18:03:17 +02:00
|
|
|
|
2005-11-20 17:03:43 +01:00
|
|
|
.include <bsd.port.post.mk>
|