Index: head/mail/spampd/Makefile =================================================================== --- head/mail/spampd/Makefile (revision 396477) +++ head/mail/spampd/Makefile (revision 396478) @@ -1,25 +1,28 @@ # Created by: chris # $FreeBSD$ PORTNAME= spampd -PORTVERSION= 2.30 -PORTREVISION= 5 +PORTVERSION= 2.42 CATEGORIES= mail perl5 -MASTER_SITES= http://www.worlddesign.com/Content/rd/mta/spampd/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= des@FreeBSD.org COMMENT= Spamassassin SMTP Proxy +LICENSE= GPLv2 + RUN_DEPENDS= spamc:${PORTSDIR}/mail/spamassassin \ p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server NO_BUILD= yes PLIST_FILES= sbin/spampd USES= perl5 shebangfix -SHEBANG_FILES= spampd +SHEBANG_FILES= spampd.pl USE_RC_SUBR= spampd +USE_GITHUB= yes +GH_ACCOUNT= mpaperno + do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/spampd ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/spampd.pl ${STAGEDIR}${PREFIX}/sbin/spampd .include Index: head/mail/spampd/distinfo =================================================================== --- head/mail/spampd/distinfo (revision 396477) +++ head/mail/spampd/distinfo (revision 396478) @@ -1,2 +1,2 @@ -SHA256 (spampd-2.30.tar.gz) = 6885544f4d1b339ebe3ad58068434397280a6526f682e78f7d0246aef6a09979 -SIZE (spampd-2.30.tar.gz) = 25001 +SHA256 (mpaperno-spampd-2.42_GH0.tar.gz) = c6dcef8df0c471b3982e777bcccfe343f1f6f921113c2b369a76144724b1d15d +SIZE (mpaperno-spampd-2.42_GH0.tar.gz) = 202504 Index: head/mail/spampd/files/patch-setsid =================================================================== --- head/mail/spampd/files/patch-setsid (revision 396477) +++ head/mail/spampd/files/patch-setsid (revision 396478) @@ -1,11 +1,11 @@ ---- spampd.orig Mon Nov 29 16:34:40 2004 -+++ spampd Mon Nov 29 16:34:50 2004 -@@ -825,7 +825,7 @@ +--- spampd.pl.orig 2013-12-08 11:34:02 UTC ++++ spampd.pl +@@ -961,7 +961,7 @@ my $server = bless { syslog_ident => 'spampd', syslog_facility => 'mail', background => $background, - # setsid => 1, + setsid => 1, pid_file => $pidfile, user => $user, group => $group, Index: head/mail/spampd/files/patch-user_dir =================================================================== --- head/mail/spampd/files/patch-user_dir (revision 396477) +++ head/mail/spampd/files/patch-user_dir (revision 396478) @@ -1,10 +1,10 @@ ---- spampd.orig Thu Dec 8 09:54:07 2005 -+++ spampd Thu Dec 8 09:54:07 2005 -@@ -793,6 +793,7 @@ - my $assassin = Mail::SpamAssassin->new({ - 'dont_copy_prefs' => 1, +--- spampd.pl.orig 2015-09-09 13:41:07 UTC ++++ spampd.pl +@@ -914,6 +914,7 @@ my $sa_options = { 'debug' => $debug, + 'local_tests_only' => $options{'local-only'} || 0, + 'home_dir_for_helpers' => $sa_home_dir, + 'user_dir' => (getpwnam($user))[7], - 'local_tests_only' => $options{'local-only'} || 0 }); - - $options{'auto-whitelist'} and eval { + 'userstate_dir' => $sa_home_dir, + 'username' => $user + }; Index: head/mail/spampd/pkg-descr =================================================================== --- head/mail/spampd/pkg-descr (revision 396477) +++ head/mail/spampd/pkg-descr (revision 396478) @@ -1,11 +1,11 @@ spampd is a program used within an e-mail delivery system to scan messages for possible Unsolicited Commercial E-mail (UCE, aka spam) content. It uses an excellent program called SpamAssassin (SA) to do the actual message scanning. spampd acts as a transparent SMTP/LMTP proxy between two mail servers, and during the transaction it passes the mail through SA. If SA decides the mail could be spam, then spampd will ask SA to add some headers and a report to the message indicating it's spam and why. spampd is written in Perl and should theoretically run on any platform supported by Perl and SpamAssassin. -WWW: http://www.worlddesign.com/index.cfm/rd/mta/spampd.htm +WWW: https://github.com/mpaperno/spampd