1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Fix broken detection of Japanese locales [1]

- Update patches
- Bump PORTREVISION

PR:		60853 [1] (partly)
Submitted by:	Fumihiko Kimura <jfkimura@yahoo.co.jp> [1],
		maintainer
This commit is contained in:
Sergei Kolobov 2004-01-04 13:25:13 +00:00
parent 5421118755
commit 7d42f8ae01
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97271
8 changed files with 46 additions and 38 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= qmail-scanner
PORTVERSION= 1.20
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= mail security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -1,15 +1,19 @@
--- configure.orig Thu Dec 11 14:28:41 2003
+++ configure Thu Dec 11 14:28:48 2003
@@ -48,6 +48,8 @@
--- configure.orig Wed Nov 5 03:04:26 2003
+++ configure Sun Jan 4 16:20:01 2004
@@ -48,6 +48,12 @@
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"
+fi
+
if [ ! -d "./locale/$QSLANG" ]; then
echo "
@@ -83,7 +83,8 @@ DEBUG_LEVEL="1"
@@ -81,7 +87,8 @@
FORCE_UNZIP="0"
DESCRIPTIVE_HEADERS="0"
NOTIFY_ADDRESSES="sender,admin"
@ -19,7 +23,7 @@
MANUAL_INSTALL="0"
INSTALLIT="0"
DONOTCONFIRM="0"
@@ -100,8 +101,10 @@ do
@@ -98,8 +105,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" ;;
@ -32,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" ;;
@@ -130,9 +133,17 @@ valid options:
@@ -128,9 +137,17 @@
--spooldir <spooldir> defaults to $AS_QQ/
--bindir <installdir> where to install qmail-scanner-queue.pl
Defaults to /var/qmail/bin/
@ -53,7 +57,7 @@
--scanners <list of installed content scanners>
Defaults to "auto" - will use
whatever scanners are found on system.
@@ -911,12 +922,16 @@ fi
@@ -909,12 +926,16 @@
if [ "$UNAME" ] ; then FQDN="$UNAME" ; fi
if [ "$HOST" ] ; then FQDN="$HOST" ; fi
@ -74,7 +78,7 @@
if [ "$MANUAL_INSTALL" = "1" ]; then
CMDLINE="$CMDLINE --no-QQ-check $MANUAL_INSTALL"
fi
@@ -1286,7 +1301,7 @@ if [ "$SPAMC_BINARY" != "" ]; then
@@ -1284,7 +1305,7 @@
fi
fi
@ -83,7 +87,7 @@
SCANNER_ARRAY=`echo $SCANNER_ARRAY|sed 's/^,//g'`
@@ -1360,7 +1375,13 @@ if [ "$ARCHIVEIT" != "0" ]; then
@@ -1358,7 +1379,13 @@
fi
echo "archiving $ASTRING into $AS_QQ/$ARCHIVEDIR/"
fi
@ -98,7 +102,7 @@
echo "local-domains=$LOCAL_DOMAINS_ARRAY"
echo "silent-viruses=$FIND_SILENT_VIRUSES_ARRAY"
echo "scanners=$SCANNER_ARRAY"
@@ -1506,10 +1527,12 @@ s?SPAMASSASSIN_BINARY?$SPAMASSASSIN_BINA
@@ -1504,10 +1531,12 @@
s?SPAMC_BINARY?$SPAMC_BINARY?g;
s?SPAMC_OPTIONS?$SPAMC_OPTIONS?g;
s?SPAMC_SUBJECT?$SPAMC_SUBJECT?g;

View File

@ -1,6 +1,6 @@
--- qmail-scanner-queue.template.orig Thu Oct 16 02:05:10 2003
+++ qmail-scanner-queue.template Thu Dec 11 14:28:48 2003
@@ -85,11 +85,17 @@ $qsmsgid=tolower("$V_HEADER-message-id")
--- qmail-scanner-queue.template.orig Wed Nov 5 01:26:47 2003
+++ qmail-scanner-queue.template Sun Jan 4 16:17:55 2004
@@ -85,11 +85,17 @@
#From: line information used when making reports
@ -23,13 +23,13 @@
#deciding whether or not to send recipient alerts to
@@ -294,6 +300,7 @@
}
my $quarantine_event=0;
+my $spam_event=0;
my $file_id = &uniq_id();
@@ -415,7 +422,18 @@ eval {
@@ -415,7 +422,18 @@
&email_quarantine_report;
} else {
&qmail_parent_check;

View File

@ -1,6 +1,6 @@
--- sub-spamassassin.pl.orig Mon Sep 29 04:17:22 2003
+++ sub-spamassassin.pl Thu Dec 11 14:28:48 2003
@@ -57,6 +57,7 @@ sub spamassassin {
+++ sub-spamassassin.pl Sun Jan 4 16:17:55 2004
@@ -57,6 +57,7 @@
$tag_score .= "SA:1($sa_score/$sa_max):";
$sa_comment = "Yes, hits=$sa_score required=$sa_max" if ($spamc_options =~ /\-c/);
&debug("SA: yup, this smells like SPAM");

View File

@ -7,7 +7,7 @@
PORTNAME= qmail-scanner
PORTVERSION= 1.20
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= mail security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -1,15 +1,19 @@
--- configure.orig Thu Dec 11 14:28:41 2003
+++ configure Thu Dec 11 14:28:48 2003
@@ -48,6 +48,8 @@
--- configure.orig Wed Nov 5 03:04:26 2003
+++ configure Sun Jan 4 16:20:01 2004
@@ -48,6 +48,12 @@
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"
+fi
+
if [ ! -d "./locale/$QSLANG" ]; then
echo "
@@ -83,7 +83,8 @@ DEBUG_LEVEL="1"
@@ -81,7 +87,8 @@
FORCE_UNZIP="0"
DESCRIPTIVE_HEADERS="0"
NOTIFY_ADDRESSES="sender,admin"
@ -19,7 +23,7 @@
MANUAL_INSTALL="0"
INSTALLIT="0"
DONOTCONFIRM="0"
@@ -100,8 +101,10 @@ do
@@ -98,8 +105,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" ;;
@ -32,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" ;;
@@ -130,9 +133,17 @@ valid options:
@@ -128,9 +137,17 @@
--spooldir <spooldir> defaults to $AS_QQ/
--bindir <installdir> where to install qmail-scanner-queue.pl
Defaults to /var/qmail/bin/
@ -53,7 +57,7 @@
--scanners <list of installed content scanners>
Defaults to "auto" - will use
whatever scanners are found on system.
@@ -911,12 +922,16 @@ fi
@@ -909,12 +926,16 @@
if [ "$UNAME" ] ; then FQDN="$UNAME" ; fi
if [ "$HOST" ] ; then FQDN="$HOST" ; fi
@ -74,7 +78,7 @@
if [ "$MANUAL_INSTALL" = "1" ]; then
CMDLINE="$CMDLINE --no-QQ-check $MANUAL_INSTALL"
fi
@@ -1286,7 +1301,7 @@ if [ "$SPAMC_BINARY" != "" ]; then
@@ -1284,7 +1305,7 @@
fi
fi
@ -83,7 +87,7 @@
SCANNER_ARRAY=`echo $SCANNER_ARRAY|sed 's/^,//g'`
@@ -1360,7 +1375,13 @@ if [ "$ARCHIVEIT" != "0" ]; then
@@ -1358,7 +1379,13 @@
fi
echo "archiving $ASTRING into $AS_QQ/$ARCHIVEDIR/"
fi
@ -98,7 +102,7 @@
echo "local-domains=$LOCAL_DOMAINS_ARRAY"
echo "silent-viruses=$FIND_SILENT_VIRUSES_ARRAY"
echo "scanners=$SCANNER_ARRAY"
@@ -1506,10 +1527,12 @@ s?SPAMASSASSIN_BINARY?$SPAMASSASSIN_BINA
@@ -1504,10 +1531,12 @@
s?SPAMC_BINARY?$SPAMC_BINARY?g;
s?SPAMC_OPTIONS?$SPAMC_OPTIONS?g;
s?SPAMC_SUBJECT?$SPAMC_SUBJECT?g;

View File

@ -1,6 +1,6 @@
--- qmail-scanner-queue.template.orig Thu Oct 16 02:05:10 2003
+++ qmail-scanner-queue.template Thu Dec 11 14:28:48 2003
@@ -85,11 +85,17 @@ $qsmsgid=tolower("$V_HEADER-message-id")
--- qmail-scanner-queue.template.orig Wed Nov 5 01:26:47 2003
+++ qmail-scanner-queue.template Sun Jan 4 16:17:55 2004
@@ -85,11 +85,17 @@
#From: line information used when making reports
@ -23,13 +23,13 @@
#deciding whether or not to send recipient alerts to
@@ -294,6 +300,7 @@
}
my $quarantine_event=0;
+my $spam_event=0;
my $file_id = &uniq_id();
@@ -415,7 +422,18 @@ eval {
@@ -415,7 +422,18 @@
&email_quarantine_report;
} else {
&qmail_parent_check;

View File

@ -1,6 +1,6 @@
--- sub-spamassassin.pl.orig Mon Sep 29 04:17:22 2003
+++ sub-spamassassin.pl Thu Dec 11 14:28:48 2003
@@ -57,6 +57,7 @@ sub spamassassin {
+++ sub-spamassassin.pl Sun Jan 4 16:17:55 2004
@@ -57,6 +57,7 @@
$tag_score .= "SA:1($sa_score/$sa_max):";
$sa_comment = "Yes, hits=$sa_score required=$sa_max" if ($spamc_options =~ /\-c/);
&debug("SA: yup, this smells like SPAM");