diff options
author | krion <krion@FreeBSD.org> | 2003-07-29 21:59:35 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2003-07-29 21:59:35 +0800 |
commit | bfc2bc8ef85e5ff848d8dce7348dd12a5b2bfaf7 (patch) | |
tree | 550f28392a1e3a25dab246150c9cdf11234c7e7c | |
parent | ea3f3cdfabe50e2c5281919656fefaf1d8d8ca54 (diff) | |
download | freebsd-ports-gnome-bfc2bc8ef85e5ff848d8dce7348dd12a5b2bfaf7.tar.gz freebsd-ports-gnome-bfc2bc8ef85e5ff848d8dce7348dd12a5b2bfaf7.tar.zst freebsd-ports-gnome-bfc2bc8ef85e5ff848d8dce7348dd12a5b2bfaf7.zip |
New port: mail/sccmilter, a spam control and canceling sendmail
milter-API filter
PR: 54847
Submitted by: Rashid N. Achilov <shelton@sentry.granch.ru>
Approved by: fjoe (mentor) (implicit)
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/sccmilter/Makefile | 65 | ||||
-rw-r--r-- | mail/sccmilter/distinfo | 1 | ||||
-rw-r--r-- | mail/sccmilter/pkg-descr | 22 | ||||
-rw-r--r-- | mail/sccmilter/pkg-message | 12 | ||||
-rw-r--r-- | mail/sccmilter/pkg-plist | 10 |
6 files changed, 111 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 0b3ef4e9b037..697b92b7453e 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -278,6 +278,7 @@ SUBDIR += ruby-rmail SUBDIR += ruby-tmail SUBDIR += scmail + SUBDIR += sccmilter SUBDIR += sendmail SUBDIR += sendmail-ldap SUBDIR += sendmail-old diff --git a/mail/sccmilter/Makefile b/mail/sccmilter/Makefile new file mode 100644 index 000000000000..afa363f9c936 --- /dev/null +++ b/mail/sccmilter/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: sccmilter +# Date created: 25 Jul 2003 +# Whom: Rashid N. Achilov <shelton@granch.ru> +# +# $FreeBSD$ +# + +PORTNAME= sccmilter +PORTVERSION= 0.92.2 +PORTREVISION= +CATEGORIES= mail sysutils +MASTER_SITES= ftp://granch.ru/pub/kavmilter/ + +MAINTAINER= shelton@granch.ru +COMMENT= Sendmail spam control and canceling filter, based on Milter API + +.if !exists(/usr/lib/libmilter.a) +IGNORE= requires Sendmail 8.12; upgrade the base system +.endif + +USE_BZIP2= yes +USE_GETOPT_LONG=yes +USE_REINPLACE= yes + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --localstatedir=/var + +MAN5= sccmilter.conf.5 scchosts.5 sccusers.5 +MAN8= sccmilter.8 + +CPPFLAGS= ${PTHREAD_CFLAGS} +LDFLAGS= ${PTHREAD_LIBS} +MAKE_ENV= CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" + +.if defined(WITH_DEBUG) +CONFIGURE_ARGS+= --with-debug +.endif + +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} "For debugging information support you should specify" + @${ECHO_MSG} " WITH_DEBUG=yes (press Ctrl-C here and start make WITH_DEBUG=yes)" + @${ECHO_MSG} "" + @sleep 2 + +post-install: + ${STRIP_CMD} ${PREFIX}/libexec/sccmilter + +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for i in README CHANGES FAQ + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + + @${CAT} ${PKGMESSAGE} + +post-deinstall: + @${ECHO_MSG} "" + @${ECHO_MSG} "Do not forget delete filter description from /etc/mail/freebsd.mc" + @${ECHO_MSG} "and rebuild sendmail.cf file!" + @${ECHO_MSG} "" + +.include <bsd.port.mk> diff --git a/mail/sccmilter/distinfo b/mail/sccmilter/distinfo new file mode 100644 index 000000000000..afb312b81326 --- /dev/null +++ b/mail/sccmilter/distinfo @@ -0,0 +1 @@ +MD5 (sccmilter-0.92.2.tar.bz2) = 4389dfbc15e1bbc833672c995ce1f989 diff --git a/mail/sccmilter/pkg-descr b/mail/sccmilter/pkg-descr new file mode 100644 index 000000000000..ff6b75cd36cd --- /dev/null +++ b/mail/sccmilter/pkg-descr @@ -0,0 +1,22 @@ +This is a sendmail filter, based on Milter API, intedned to do +spam control and canceling it. This is multi-thread small filter, +which sits between sendmail and local mail agent, checks all mail +by selected rules and cancels spam-qualified messages. + +Main features: +- Charset controlling. No more unreadable mails in your box! + You can selectively setup, which codepages for which users + are allowed, mail with other codepages will declined +- HTML isolating. You can setup filter to check all incoming, + outgoing or all (or none) mail to HTML mail and decline it. + IMHO, HTML mail is a headache only. You can separately setup + on per-user basis, which users can send HTML mail, which can + receive + +Any other features (content filtering, attachment checking) are +planned, but not imlemented this release. + +WWW: http://granch.ru/~shelton/ + +- Rashid N. Achilov +shelton@granch.ru diff --git a/mail/sccmilter/pkg-message b/mail/sccmilter/pkg-message new file mode 100644 index 000000000000..7d76b8bf10c5 --- /dev/null +++ b/mail/sccmilter/pkg-message @@ -0,0 +1,12 @@ +************************************************************************ + +In order to run this port, please add the following line to +/etc/mail/freebsd.mc: + +INPUT_MAIL_FILTER(`sccmilter',`S=unix:/var/run/sccmilter,F=T') + +and appropriate correct the line with confINPUT_MAIL_FILTERS, when exist. + +Don't forget remake sendmail configuration file after modifying freebsd.mc + +************************************************************************ diff --git a/mail/sccmilter/pkg-plist b/mail/sccmilter/pkg-plist new file mode 100644 index 000000000000..5d2a6ff2c8ea --- /dev/null +++ b/mail/sccmilter/pkg-plist @@ -0,0 +1,10 @@ +libexec/sccmilter +etc/sccmilter/sccmilter.conf.sample +etc/sccmilter/scchosts.sample +etc/sccmilter/sccusers.sample +etc/rc.d/sccmilter.sh.sample +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/FAQ +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm etc/sccmilter |