summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/Makefile1
-rw-r--r--mail/sccmilter/Makefile65
-rw-r--r--mail/sccmilter/distinfo1
-rw-r--r--mail/sccmilter/pkg-descr22
-rw-r--r--mail/sccmilter/pkg-message12
-rw-r--r--mail/sccmilter/pkg-plist10
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