aboutsummaryrefslogtreecommitdiff
path: root/mail/milter-regex/Makefile
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2003-10-04 16:03:17 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2003-10-04 16:03:17 +0000
commit58c62615afaba65f9bf7183243ae5691c76fbdb6 (patch)
tree15aaa39c2eb33a977d32770e8d2295dd899bef3c /mail/milter-regex/Makefile
parente6fa52ae20d2ac470cdc8a9e4fa8f5259e8d6102 (diff)
Notes
Diffstat (limited to 'mail/milter-regex/Makefile')
-rw-r--r--mail/milter-regex/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/mail/milter-regex/Makefile b/mail/milter-regex/Makefile
new file mode 100644
index 000000000000..8fb1a1e6fa60
--- /dev/null
+++ b/mail/milter-regex/Makefile
@@ -0,0 +1,40 @@
+# 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
+PORTVERSION= 0.5
+CATEGORIES= mail
+MASTER_SITES= http://www.benzedrine.cx/
+DISTNAME= milter-regex-${PORTVERSION}
+
+MAINTAINER= trevor@FreeBSD.org
+COMMENT= "Milter plugin to sendmail for regular expression filtering"
+
+MAN8= milter-regex.8
+PLIST= ${WRKDIR}/pkg-plist
+USE_PERL5= yes
+
+pre-everything::
+.if !exists(/usr/lib/libmilter.a)
+ ${ECHO_CMD} "Fatal: milter required, see instructions in DESCR"
+ exit 1
+.endif
+
+post-patch:
+ ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
+ ${SED} -E "s:-I/usr/src/gnu/usr.sbin/sendmail/include:${PTHREAD_CFLAGS}:g;s:-lpthread:${PTHREAD_LIBS}:g" < ${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
+
+pre-install:
+ ${ECHO_CMD} libexec/milter-regex > ${PLIST}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${PREFIX}/libexec
+ ${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${PREFIX}/man/man8
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>