From 5ce1473719bfc1edbef0fed0090314875a2fd221 Mon Sep 17 00:00:00 2001 From: dhartmei Date: Sun, 19 Oct 2003 17:54:06 +0000 Subject: [PATCH] add milter-regex, ok jolan@, sturm@ --- mail/Makefile | 3 ++- mail/milter-regex/Makefile | 32 ++++++++++++++++++++++++++++++++ mail/milter-regex/distinfo | 3 +++ mail/milter-regex/pkg/DESCR | 12 ++++++++++++ mail/milter-regex/pkg/MESSAGE | 16 ++++++++++++++++ mail/milter-regex/pkg/PLIST | 3 +++ 6 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 mail/milter-regex/Makefile create mode 100644 mail/milter-regex/distinfo create mode 100644 mail/milter-regex/pkg/DESCR create mode 100755 mail/milter-regex/pkg/MESSAGE create mode 100644 mail/milter-regex/pkg/PLIST diff --git a/mail/Makefile b/mail/Makefile index b1d5e4a6426..d44dd04423b 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.113 2003/07/30 14:43:09 danh Exp $ +# $OpenBSD: Makefile,v 1.114 2003/10/19 17:54:06 dhartmei Exp $ # $FreeBSD: Makefile,v 1.51 1997/11/14 22:56:43 hoek Exp $ # @@ -43,6 +43,7 @@ SUBDIR += majordomo SUBDIR += mboxgrep SUBDIR += metamail + SUBDIR += milter-regex SUBDIR += mini_sendmail SUBDIR += mixmaster SUBDIR += movemail diff --git a/mail/milter-regex/Makefile b/mail/milter-regex/Makefile new file mode 100644 index 00000000000..c3bb4982e2e --- /dev/null +++ b/mail/milter-regex/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1 2003/10/19 17:54:06 dhartmei Exp $ + +.if !exists(/usr/lib/libmilter.a) +ERRORS+="Fatal: milter required, see instructions in DESCR" +.endif + +COMMENT= "sendmail milter plugin for regular expression filtering" + +DISTNAME= milter-regex-0.6 +CATEGORIES= mail +MASTER_SITES= http://www.benzedrine.cx/ + +HOMEPAGE= http://www.benzedrine.cx/milter-regex.html + +MAINTAINER= Daniel Hartmeier + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +NO_REGRESS= Yes + +do-configure: + @perl -pi -e 's,/etc/mi,${SYSCONFDIR}/mi,g' ${WRKSRC}/milter-regex.{8,c} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${PREFIX}/libexec + ${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${PREFIX}/man/man8 + +.include diff --git a/mail/milter-regex/distinfo b/mail/milter-regex/distinfo new file mode 100644 index 00000000000..b2d492fe5a9 --- /dev/null +++ b/mail/milter-regex/distinfo @@ -0,0 +1,3 @@ +MD5 (milter-regex-0.6.tar.gz) = 1f65e2a14e791af2a8395ce81081400d +RMD160 (milter-regex-0.6.tar.gz) = c78abd509b273ad00520fbb467145cef7cb921e8 +SHA1 (milter-regex-0.6.tar.gz) = 02056a9ab11fb9279ae9baeaf164114dc5f42954 diff --git a/mail/milter-regex/pkg/DESCR b/mail/milter-regex/pkg/DESCR new file mode 100644 index 00000000000..66763187b70 --- /dev/null +++ b/mail/milter-regex/pkg/DESCR @@ -0,0 +1,12 @@ +milter-regex is a sendmail milter plugin that allows to reject mail +based on regular expressions matching SMTP envelope parameters and +mail headers and body. + +In order to build milter-regex, sendmail needs to be compiled with +milter support, installing the libmilter library: + + # cd /usr/src/gnu/usr.sbin/sendmail + # make clean cleandir + # [set the environment variable WANT_LIBMILTER to 1] + # make obj && make && make install + diff --git a/mail/milter-regex/pkg/MESSAGE b/mail/milter-regex/pkg/MESSAGE new file mode 100755 index 00000000000..b9875452a45 --- /dev/null +++ b/mail/milter-regex/pkg/MESSAGE @@ -0,0 +1,16 @@ ++--------------- +| milter-regex has been installed as /usr/local/libexec/milter-regex. +| See milter-regex(8) for instructions on how to register the plugin. +| +| To start the plugin automatically on startup, one can use: +| +| /etc/rc.conf.local +| milter_regex=YES +| +| /etc/rc.local +| if [ X"${milter_regex}" == X"YES" -a \ +| -x /usr/local/libexec/milter-regex ]; then +| echo -n ' milter-regex' +| /usr/local/libexec/milter-regex +| fi ++--------------- diff --git a/mail/milter-regex/pkg/PLIST b/mail/milter-regex/pkg/PLIST new file mode 100644 index 00000000000..c3ff5e4137d --- /dev/null +++ b/mail/milter-regex/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1 2003/10/19 17:54:06 dhartmei Exp $ +libexec/milter-regex +man/man8/milter-regex.8