FreeBSD Bugzilla – Attachment 21428 Details for
Bug 37577
New port: mail/spamass-milter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar
shar (text/plain), 8.37 KB, created by
Eugene M. Kim
on 2002-04-29 22:10:01 UTC
(
hide
)
Description:
shar
Filename:
MIME Type:
Creator:
Eugene M. Kim
Created:
2002-04-29 22:10:01 UTC
Size:
8.37 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># mail/spamass-milter ># mail/spamass-milter/Makefile ># mail/spamass-milter/distinfo ># mail/spamass-milter/files ># mail/spamass-milter/files/activation.txt ># mail/spamass-milter/files/patch-Makefile.am ># mail/spamass-milter/files/spamass-milter.sh.dist ># mail/spamass-milter/pkg-comment ># mail/spamass-milter/pkg-descr ># mail/spamass-milter/pkg-message ># mail/spamass-milter/pkg-plist ># >echo c - mail/spamass-milter >mkdir -p mail/spamass-milter > /dev/null 2>&1 >echo x - mail/spamass-milter/Makefile >sed 's/^X//' >mail/spamass-milter/Makefile << 'END-of-mail/spamass-milter/Makefile' >X# New ports collection makefile for: spamass-milter >X# Date created: 29 April 2002 >X# Whom: Eugene M. Kim <ab@astralblue.net> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= spamass-milter >XPORTVERSION= 0.1.1 >XCATEGORIES= mail >XMASTER_SITES= http://freesoftware.fsf.org/download/spamass-milt/ >X >XMAINTAINER= ab@astralblue.net >X >X.if !exists(/usr/lib/libmilter.a) >XBROKEN= Sendmail 8.12 required; upgrade the base system. >X.endif >X >XUSE_AUTOMAKE= YES >XBUILD_DEPENDS= ${LOCALBASE}/bin/spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin >XRUN_DEPENDS= ${LOCALBASE}/bin/spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin >XMAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ >X PTHREAD_LIBS="${PTHREAD_LIBS}" PORT_CFLAGS="${CFLAGS}" >XPLIST_SUB= DOCSDIR=${DOCSDIR} >X >Xpost-install: >X ${INSTALL_SCRIPT} ${FILESDIR}/spamass-milter.sh.dist \ >X ${PREFIX}/etc/rc.d/spamass-milter.sh.dist >X.if !defined(NOPORTDOCS) >X ${MKDIR} ${DOCSDIR} >X ${INSTALL_DATA} ${FILESDIR}/activation.txt ${DOCSDIR}/activation.txt >X.endif >X @${CAT} < '${PKGMESSAGE}' >X >X.include <bsd.port.mk> >END-of-mail/spamass-milter/Makefile >echo x - mail/spamass-milter/distinfo >sed 's/^X//' >mail/spamass-milter/distinfo << 'END-of-mail/spamass-milter/distinfo' >XMD5 (spamass-milter-0.1.1.tar.gz) = 9dfb1316a60c7ddecff9acbdc9e9476b >END-of-mail/spamass-milter/distinfo >echo c - mail/spamass-milter/files >mkdir -p mail/spamass-milter/files > /dev/null 2>&1 >echo x - mail/spamass-milter/files/activation.txt >sed 's/^X//' >mail/spamass-milter/files/activation.txt << 'END-of-mail/spamass-milter/files/activation.txt' >XIn order to activate spamass-milter, follow these steps: >X >X1. Review and customize your system-wide SpamAssassin preference, by >X editing /etc/mail/spamassassin/local.cf. Refer to the SpamAssassin >X manpage Mail::SpamAssassin::Conf(3) for details on what to put in it. >X >X2. If you didn't activate spamd (the SpamAssassin daemon), do so now: >X >X cd /usr/local/etc/rc.d >X cp -p spamd.sh-dist spamd.sh >X chmod 755 spamd.sh >X /usr/local/etc/rc.d/spamd.sh start >X >X3. Activate spamass-milter: >X >X cd /usr/local/etc/rc.d >X cp -p spamass-milter.sh.dist spamass-milter.sh >X chmod 755 spamass-milter.sh >X /usr/local/etc/rc.d/spamass-milter.sh start >X >X4. Backup your sendmail.cf (in /etc/mail). >X >X5. If you didn't create your own customized version of Sendmail .mc >X file, create one from the default template (replace YOURNAME with a >X suitable name; a good candidate is the output of `hostname -s'): >X >X cd /etc/mail >X cp -p freebsd.mc YOURNAME.mc >X echo "SENDMAIL_MC = /etc/mail/YOURNAME.mc" >> /etc/make.conf >X >X The last line tells the system to use your customized version instead >X of the default freebsd.mc when you run mergemaster(8) later on. >X >X6. Add the spamass-milter hook to your Sendmail .mc file. The magic >X line to add is: >X >X INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m') >X >X Everything should go on a single line, no line break/continuation is >X allowed! >X >X The best place to add this is right after the dnsbl-related comments. >X (Hint: Every comment in an .mc file starts with `dnl'.) >X >X7. Rebuild the sendmail.cf from your .mc file: >X >X cd /etc/mail >X make >X make install >X >X Or you can run mergemaster(8) instead if you want, although it's an >X overkill. >X >X8. Restart Sendmail: >X >X kill -HUP `head -1 /var/run/sendmail.pid` >X >X9. Test the whole piece: >X >X /usr/sbin/sendmail root < /usr/local/share/doc/Mail-SpamAssassin/sample-nonspam.txt >X /usr/sbin/sendmail root < /usr/local/share/doc/Mail-SpamAssassin/sample-spam.txt >X >X Each of these commands might take a long time to finish (up to about >X 10-20 seconds), so please be patient. >X >X You should receive two messages, one from `Keith Dawson' and the >X other from xl6Ety00V@fismat1.fcfm.buap.mx. The one from Keith Dawson >X shouldn't be tagged as a spam, bearing this header line: >X >X X-Spam-Status: No, ... >X >X On the other hand, the one from xl6Ety00V@fismat1.fcfm.buap.mx should >X be tagged as a spam, bearing these two header lines: >X >X X-Spam-Status: Yes, ... >X X-Spam-Flag: YES >X >X If things don't work as expected, promptly restore your sendmail.cf >X from the backup copy then restart sendmail as shown on step 9; you >X may lose incoming mail otherwise! >X >X >XNow all messages received by Sendmail are filtered through >XSpamAssassin, and probable spam messages are tagged with the header >X`X-Spam-Flag: YES'. Tell your users about this so they can set up >Xappropriate filters on their mail reader. >END-of-mail/spamass-milter/files/activation.txt >echo x - mail/spamass-milter/files/patch-Makefile.am >sed 's/^X//' >mail/spamass-milter/files/patch-Makefile.am << 'END-of-mail/spamass-milter/files/patch-Makefile.am' >X--- Makefile.am Fri Feb 1 01:05:09 2002 >X+++ Makefile.am.new Tue Apr 30 04:03:10 2002 >X@@ -6,21 +6,21 @@ >X SPAMC = @SPAMC@ >X >X INCLUDES = >X-LIBS = @LIBS@ /usr/lib/libmilter/libmilter.a /usr/lib/libmilter/libsm.a >X+LIBS = @LIBS@ /usr/lib/libmilter.a >X >X CLEANFILES=*~ .deps/* .libs/* .deps .libs >X >X if DEBUG >X-DEBUGFLAGS += -g -Wall >X+DEBUGFLAGS += $(PORT_CFLAGS) -O0 -g -Wall >X else >X-DEBUGFLAGS += -O2 -Wall >X+DEBUGFLAGS += $(PORT_CFLAGS) >X endif >X >X-CXXFLAGS = $(DEBUGFLAGS) >X-CFLAGS = $(DEBUGFLAGS) >X-LDFLAGS += >X+CXXFLAGS = $(DEBUGFLAGS) $(PTHREAD_CFLAGS) >X+CFLAGS = $(DEBUGFLAGS) $(PTHREAD_CFLAGS) >X+LDFLAGS += $(PTHREAD_LIBS) >X >X >X-bin_PROGRAMS = spamass-milter >X+sbin_PROGRAMS = spamass-milter >X spamass_milter_SOURCES = spamass-milter.cpp >X >END-of-mail/spamass-milter/files/patch-Makefile.am >echo x - mail/spamass-milter/files/spamass-milter.sh.dist >sed 's/^X//' >mail/spamass-milter/files/spamass-milter.sh.dist << 'END-of-mail/spamass-milter/files/spamass-milter.sh.dist' >X#!/bin/sh >X >XDAEMON=/usr/local/sbin/spamass-milter >XSOCKET=/var/run/spamass-milter.sock >XPIDFILE=/var/run/spamass-milter.pid >X >Xcase "$1" in >Xstart) >X if [ -f "${DAEMON}" -a -x "${DAEMON}" ] >X then >X "${DAEMON}" "${SOCKET}" & >X echo $! > "${PIDFILE}" >X echo -n ' spamass-milter' >X fi >X;; >Xstop) >X if [ -f "${PIDFILE}" ] >X then >X read -r pid junk < "${PIDFILE}" >X kill ${pid} >X rm -f "${SOCKET}" "${PIDFILE}" >X echo -n ' spamass-milter' >X fi >X;; >Xesac >END-of-mail/spamass-milter/files/spamass-milter.sh.dist >echo x - mail/spamass-milter/pkg-comment >sed 's/^X//' >mail/spamass-milter/pkg-comment << 'END-of-mail/spamass-milter/pkg-comment' >XSendmail Milter (mail filter) for SpamAssassin >END-of-mail/spamass-milter/pkg-comment >echo x - mail/spamass-milter/pkg-descr >sed 's/^X//' >mail/spamass-milter/pkg-descr << 'END-of-mail/spamass-milter/pkg-descr' >Xspamass-milter is a little plugin for the Sendmail Milter (Mail Filter) >Xlibrary that pipes all incoming mail (including things received by >Xrmail/UUCP) through the SpamAssassin, a highly customizable SpamFilter. >X >XWWW: http://savannah.gnu.org/projects/spamass-milt/ >END-of-mail/spamass-milter/pkg-descr >echo x - mail/spamass-milter/pkg-message >sed 's/^X//' >mail/spamass-milter/pkg-message << 'END-of-mail/spamass-milter/pkg-message' >X------------------------------------------------------------------------ >Xspamass-milter has been installed, but you have to activate it manually >Xto use it. Refer to /usr/local/share/doc/spamass-milter/activation.txt >Xfor details. >X------------------------------------------------------------------------ >END-of-mail/spamass-milter/pkg-message >echo x - mail/spamass-milter/pkg-plist >sed 's/^X//' >mail/spamass-milter/pkg-plist << 'END-of-mail/spamass-milter/pkg-plist' >Xsbin/spamass-milter >Xetc/rc.d/spamass-milter.sh.dist >X%%PORTDOCS%%share/doc/spamass-milter/activation.txt >X%%PORTDOCS%%@dirrm share/doc/spamass-milter >END-of-mail/spamass-milter/pkg-plist >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 37577
: 21428