freebsd-ports/mail/milter-regex/Makefile

52 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: milter-regex
# Date created: 2003-10-03
# Whom: trevor
#
# based on the OpenBSD port by Daniel Hartmeier (dhartmei on OpenBSD.org)
# $FreeBSD$
#
PORTNAME= milter-regex
2007-08-07 12:27:30 +02:00
PORTVERSION= 1.7
CATEGORIES= mail
MASTER_SITES= http://www.benzedrine.cx/
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
DIST_SUBDIR= repacked
2004-04-07 17:44:50 +02:00
MAILUSER?= mailnull
MAN8= milter-regex.8
PLIST_FILES= libexec/milter-regex
USE_RC_SUBR= milterregex.sh
SPOOLDIR?= /var/run/milter-regex
SUB_LIST= SPOOLDIR=${SPOOLDIR}
.include <bsd.port.pre.mk>
2007-01-13 05:22:51 +01:00
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
post-patch:
2004-04-07 17:44:50 +02: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
@${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:-lpthread:${PTHREAD_LIBS}:g; \
s:-I/usr/src/gnu/usr.sbin/sendmail/include:${PTHREAD_CFLAGS}: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:
2004-04-07 16:07:31 +02:00
@${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${PREFIX}/libexec
@${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${PREFIX}/man/man8
@${INSTALL} -d -o ${MAILUSER} -g daemon -m 0700 ${SPOOLDIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>