diff options
author | pav <pav@FreeBSD.org> | 2004-05-30 08:37:26 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-30 08:37:26 +0800 |
commit | 65d8b338b26f711b2da0ca2527abab35036906b7 (patch) | |
tree | 1b2ba179dc2750144ce1bd0d8bf5e6d5abbd66b0 /mail/qmail-scanner/files | |
parent | 727e06dd31c4bac9de704a9d0f8cb483ba959c65 (diff) | |
download | freebsd-ports-gnome-65d8b338b26f711b2da0ca2527abab35036906b7.tar.gz freebsd-ports-gnome-65d8b338b26f711b2da0ca2527abab35036906b7.tar.zst freebsd-ports-gnome-65d8b338b26f711b2da0ca2527abab35036906b7.zip |
- Update to 1.22
PR: ports/65974
Submitted by: <freebsd@simplerezo.com> (maintainer)
Diffstat (limited to 'mail/qmail-scanner/files')
-rw-r--r-- | mail/qmail-scanner/files/patch-configure | 46 | ||||
-rw-r--r-- | mail/qmail-scanner/files/patch-qmail-scanner-queue.template | 10 | ||||
-rw-r--r-- | mail/qmail-scanner/files/patch-sub-spamassassin.pl | 12 |
3 files changed, 32 insertions, 36 deletions
diff --git a/mail/qmail-scanner/files/patch-configure b/mail/qmail-scanner/files/patch-configure index a1d52dc8fe3a..f447881360eb 100644 --- a/mail/qmail-scanner/files/patch-configure +++ b/mail/qmail-scanner/files/patch-configure @@ -1,29 +1,29 @@ ---- configure.orig Wed Nov 5 03:04:26 2003 -+++ configure Sun Jan 4 16:20:01 2004 -@@ -48,6 +48,12 @@ +--- configure.orig Mon Apr 12 12:29:06 2004 ++++ configure Sun May 30 02:11:14 2004 +@@ -51,6 +51,12 @@ + #reset all English to en_GB QSLANG="en_GB" fi - ++ +QSLANG=`echo $QSLANG|sed 's/\..*//'` +if [ "$QSLANG" = "ja_JP" ]; then -+ #reset all Japanese to jp_JP.EUC -+ QSLANG="jp_JP.EUC" ++ #reset all Japanese to ja_JP.EUC ++ QSLANG="ja_JP.EUC" +fi -+ + if [ ! -d "./locale/$QSLANG" ]; then echo " - -@@ -81,7 +87,8 @@ - FORCE_UNZIP="0" +@@ -87,7 +93,8 @@ + QUARANTINE_PASSWORD_PROTECTED="0" DESCRIPTIVE_HEADERS="0" - NOTIFY_ADDRESSES="sender,admin" + NOTIFY_ADDRESSES="psender,nmlvadm" -USERNAME="$USER" +ADMIN_MAIL="$USER" +ADMIN_REALNAME="System Anti-Virus Administrator" MANUAL_INSTALL="0" INSTALLIT="0" DONOTCONFIRM="0" -@@ -98,8 +105,10 @@ +@@ -104,8 +111,10 @@ --spooldir) if [ "$2" != "" ] ; then shift ; fi ; AS_QQ="$1" ;; --qmaildir) if [ "$2" != "" ]; then shift ; fi ; QMAILDIR="$1" ;; --bindir) if [ "$2" != "" ] ; then shift ; fi ; BINDIR="$1" ;; @@ -36,7 +36,7 @@ --notify) if [ "$2" != "" ]; then shift ; fi ; NOTIFY_ADDRESSES="$1" ;; --batch) DONOTCONFIRM="1" ; if [ "$2" != "" -a "`echo $2|grep '\-'`" = "" ] ; then shift ; fi ;; --silent-viruses) if [ "$2" != "" ]; then shift ; fi ; FIND_SILENT_VIRUSES="$1" ;; -@@ -128,9 +137,17 @@ +@@ -136,9 +145,17 @@ --spooldir <spooldir> defaults to $AS_QQ/ --bindir <installdir> where to install qmail-scanner-queue.pl Defaults to /var/qmail/bin/ @@ -57,17 +57,13 @@ --scanners <list of installed content scanners> Defaults to "auto" - will use whatever scanners are found on system. -@@ -909,12 +926,16 @@ - if [ "$UNAME" ] ; then FQDN="$UNAME" ; fi - if [ "$HOST" ] ; then FQDN="$HOST" ; fi +@@ -946,9 +963,14 @@ --MAILDOMAIN=${MAILDOMAIN:-$FQDN} --LOCAL_DOMAINS_ARRAY=${LOCAL_DOMAINS_ARRAY:-$MAILDOMAIN} --CMDLINE="$0 --spooldir $AS_QQ --qmaildir $QMAILDIR --bindir $BINDIR --qmail-queue-binary $QMAILQUEUE_BIN --admin $USERNAME --domain $MAILDOMAIN --notify $NOTIFY_ADDRESSES --local-domains $LOCAL_DOMAINS_ARRAY --silent-viruses $SILENT_VIRUSES --lang $QSLANG --debug $DEBUG_LEVEL --unzip $FORCE_UNZIP --add-dscr-hdrs $DESCRIPTIVE_HEADERS --archive $ARCHIVEIT --redundant $REDUNDANT --log-details $LOG_DETAILS --log-crypto $LOG_CRYPTO --fix-mime $FIX_MIME --scanners \"$SCANNERS\"" + MAILDOMAIN=${MAILDOMAIN:-$FQDN} + LOCAL_DOMAINS_ARRAY=${LOCAL_DOMAINS_ARRAY:-$MAILDOMAIN} +-CMDLINE="$0 --spooldir $AS_QQ --qmaildir $QMAILDIR --bindir $BINDIR --qmail-queue-binary $QMAILQUEUE_BIN --admin $USERNAME --domain $MAILDOMAIN --notify $NOTIFY_ADDRESSES --local-domains $LOCAL_DOMAINS_ARRAY --silent-viruses $SILENT_VIRUSES --lang $QSLANG --debug $DEBUG_LEVEL --unzip $FORCE_UNZIP --block-password-protected $QUARANTINE_PASSWORD_PROTECTED --add-dscr-hdrs $DESCRIPTIVE_HEADERS --archive $ARCHIVEIT --redundant $REDUNDANT --log-details $LOG_DETAILS --log-crypto $LOG_CRYPTO --fix-mime $FIX_MIME --ignore-eol-check $DISABLE_EOL_CHECK --scanners \"$SCANNERS\"" - -+LOCAL_DOMAINS_ARRAY=${LOCAL_DOMAINS_ARRAY:-$FQDN} -+CMDLINE="$0 --spooldir $AS_QQ --qmaildir $QMAILDIR --bindir $BINDIR --qmail-queue-binary $QMAILQUEUE_BIN --admin $ADMIN_MAIL --admin-realname \"$ADMIN_REALNAME\" --notify $NOTIFY_ADDRESSES --local-domains $LOCAL_DOMAINS_ARRAY --silent-viruses $SILENT_VIRUSES --lang $QSLANG --debug $DEBUG_LEVEL --unzip $FORCE_UNZIP --add-dscr-hdrs $DESCRIPTIVE_HEADERS --archive $ARCHIVEIT --redundant $REDUNDANT --log-details $LOG_DETAILS --log-crypto $LOG_CRYPTO --fix-mime $FIX_MIME --scanners \"$SCANNERS\"" - ++CMDLINE="$0 --spooldir $AS_QQ --qmaildir $QMAILDIR --bindir $BINDIR --qmail-queue-binary $QMAILQUEUE_BIN --admin $ADMIN_MAIL --admin-realname \"$ADMIN_REALNAME\" --domain $MAILDOMAIN --notify $NOTIFY_ADDRESSES --local-domains $LOCAL_DOMAINS_ARRAY --silent-viruses $SILENT_VIRUSES --lang $QSLANG --debug $DEBUG_LEVEL --unzip $FORCE_UNZIP --block-password-protected $QUARANTINE_PASSWORD_PROTECTED --add-dscr-hdrs $DESCRIPTIVE_HEADERS --archive $ARCHIVEIT --redundant $REDUNDANT --log-details $LOG_DETAILS --log-crypto $LOG_CRYPTO --fix-mime $FIX_MIME --ignore-eol-check $DISABLE_EOL_CHECK --scanners \"$SCANNERS\"" +if [ -n "$SPAMS_REDIRECT" ]; then + CMDLINE="$CMDLINE --spams-redirect $SPAMS_REDIRECT" @@ -78,7 +74,7 @@ if [ "$MANUAL_INSTALL" = "1" ]; then CMDLINE="$CMDLINE --no-QQ-check $MANUAL_INSTALL" fi -@@ -1284,7 +1305,7 @@ +@@ -1312,7 +1334,7 @@ fi fi @@ -87,7 +83,7 @@ SCANNER_ARRAY=`echo $SCANNER_ARRAY|sed 's/^,//g'` -@@ -1358,7 +1379,13 @@ +@@ -1389,7 +1411,13 @@ fi echo "archiving $ASTRING into $AS_QQ/$ARCHIVEDIR/" fi @@ -102,7 +98,7 @@ echo "local-domains=$LOCAL_DOMAINS_ARRAY" echo "silent-viruses=$FIND_SILENT_VIRUSES_ARRAY" echo "scanners=$SCANNER_ARRAY" -@@ -1504,10 +1531,12 @@ +@@ -1545,10 +1573,12 @@ s?SPAMC_BINARY?$SPAMC_BINARY?g; s?SPAMC_OPTIONS?$SPAMC_OPTIONS?g; s?SPAMC_SUBJECT?$SPAMC_SUBJECT?g; diff --git a/mail/qmail-scanner/files/patch-qmail-scanner-queue.template b/mail/qmail-scanner/files/patch-qmail-scanner-queue.template index 33c3ac10a4e2..aa2d3c6788a0 100644 --- a/mail/qmail-scanner/files/patch-qmail-scanner-queue.template +++ b/mail/qmail-scanner/files/patch-qmail-scanner-queue.template @@ -1,5 +1,5 @@ ---- qmail-scanner-queue.template.orig Wed Nov 5 01:26:47 2003 -+++ qmail-scanner-queue.template Sun Jan 4 16:17:55 2004 +--- qmail-scanner-queue.template.orig Wed Mar 10 21:02:05 2004 ++++ qmail-scanner-queue.template Mon Mar 15 01:26:52 2004 @@ -85,11 +85,17 @@ @@ -21,15 +21,15 @@ #Array of local domains that are checked against for #deciding whether or not to send recipient alerts to -@@ -294,6 +300,7 @@ +@@ -302,6 +308,7 @@ } - my $quarantine_event=0; + my ($quarantine_event,$quarantine_event_tmp)=0; +my $spam_event=0; my $file_id = &uniq_id(); -@@ -415,7 +422,18 @@ +@@ -424,7 +431,18 @@ &email_quarantine_report; } else { &qmail_parent_check; diff --git a/mail/qmail-scanner/files/patch-sub-spamassassin.pl b/mail/qmail-scanner/files/patch-sub-spamassassin.pl index fe3cd89f5f7c..8daf87ded5c2 100644 --- a/mail/qmail-scanner/files/patch-sub-spamassassin.pl +++ b/mail/qmail-scanner/files/patch-sub-spamassassin.pl @@ -1,10 +1,10 @@ ---- sub-spamassassin.pl.orig Mon Sep 29 04:17:22 2003 -+++ sub-spamassassin.pl Sun Jan 4 16:17:55 2004 -@@ -57,6 +57,7 @@ +--- sub-spamassassin.pl.orig Thu Dec 4 22:17:55 2003 ++++ sub-spamassassin.pl Mon Mar 15 01:27:28 2004 +@@ -61,6 +61,7 @@ $tag_score .= "SA:1($sa_score/$sa_max):"; - $sa_comment = "Yes, hits=$sa_score required=$sa_max" if ($spamc_options =~ /\-c/); + $sa_comment = "Yes, hits=$sa_score required=$sa_max" if ($sa_fast); &debug("SA: yup, this smells like SPAM"); + $spam_event = 1; } - $stop_spamassassin_time=[gettimeofday]; - $spamassassin_time = tv_interval ($start_spamassassin_time, $stop_spamassassin_time); + if ($sa_score > 0) { + $sa_score=int($sa_score); |