Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2006 01:47:33 +0200 (CEST)
From:      Gabor Kovesdan <gkovesdan@t-hosting.hu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Gabor Kovesdan <gabor@FreeBSD.org>
Subject:   ports/101071: [maintainer update] security/amavisd-new
Message-ID:  <20060730234733.B5D63289F00@catv-50635cb6.catv.broadband.hu>
Resent-Message-ID: <200607302350.k6UNoKAN087071@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         101071
>Category:       ports
>Synopsis:       [maintainer update] security/amavisd-new
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 30 23:50:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gabor Kovesdan
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
n/a
>Environment:
System: FreeBSD spitfire 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jul 29 18:31:18 CEST 2006 gabor@spitfire:/usr/src/sys/i386/compile/SPITFIRE i386
>Description:

- Fix a bug when using LMTP transfer
- Make some archiver support optionally

>How-To-Repeat:
>Fix:

--- security-amavisd-new.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/security/amavisd-new/Makefile,v
retrieving revision 1.38
diff -u -r1.38 Makefile
--- Makefile	4 Jul 2006 19:25:10 -0000	1.38
+++ Makefile	30 Jul 2006 22:48:01 -0000
@@ -8,6 +8,7 @@
 
 PORTNAME=	amavisd-new
 PORTVERSION=	2.4.2
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	security
 MASTER_SITES=	http://www.ijs.si/software/amavisd/ \
@@ -31,13 +32,6 @@
 		${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \
 		${SITE_PERL}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
 		${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB \
-		${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc \
-		${LOCALBASE}/bin/unfreeze:${PORTSDIR}/archivers/freeze \
-		${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha \
-		${LOCALBASE}/bin/lzop:${PORTSDIR}/archivers/lzop \
-		${LOCALBASE}/bin/arj:${PORTSDIR}/archivers/arj \
-		${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar \
-		${LOCALBASE}/bin/unzoo:${PORTSDIR}/archivers/unzoo \
 		${LOCALBASE}/bin/cabextract:${PORTSDIR}/archivers/cabextract \
 		${LOCALBASE}/bin/rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
 
@@ -53,7 +47,15 @@
 OPTIONS=	MYSQL	"MySQL support"		off \
 		PGSQL	"PgSQL support"		off \
 		LDAP	"LDAP support"		off \
-		MILTER	"sendmail milter support" on
+		MILTER	"sendmail milter support" on \
+		RAR	"rar support"	on \
+		ARJ	"arj support"	on \
+		LHA	"lha support"	on \
+		ARC	"arc support"	on \
+		ZOO	"zoo support with zoo archiver"	on \
+		UNZOO	"zoo support with unzoo archiver"	off \
+		LZOP	"lzop support"	on \
+		FREEZE	"freeze support"	on
 
 SUB_FILES=	pkg-install pkg-deinstall pkg-message
 
@@ -106,6 +108,38 @@
 RUN_DEPENDS+=	${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap
 .endif
 
+.if defined(WITH_RAR)
+RUN_DEPENDS+=	${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar
+.endif
+
+.if defined(WITH_ARJ)
+RUN_DEPENDS+=	${LOCALBASE}/bin/arj:${PORTSDIR}/archivers/arj
+.endif
+
+.if defined(WITH_LHA)
+RUN_DEPENDS+=	${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha
+.endif
+
+.if defined(WITH_ARC)
+RUN_DEPENDS+=	${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc
+.endif
+
+.if defined(WITH_ZOO)
+RUN_DEPENDS+=	${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo
+.endif
+
+.if defined(WITH_ZOO)
+RUN_DEPENDS+=	${LOCALBASE}/bin/unzoo:${PORTSDIR}/archivers/unzoo
+.endif
+
+.if defined(WITH_LZOP)
+RUN_DEPENDS+=	${LOCALBASE}/bin/lzop:${PORTSDIR}/archivers/lzop
+.endif
+
+.if defined(WITH_FREEZE)
+RUN_DEPENDS+=	${LOCALBASE}/bin/unfreeze:${PORTSDIR}/archivers/freeze
+.endif
+
 post-patch:
 .for f in amavisd.conf amavisd.conf-sample amavisd amavisd-agent amavisd-nanny amavisd-release
 	@${REINPLACE_CMD} ${SED_SCRIPT} -e "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/${f}
Index: files/patch-amavisd
===================================================================
RCS file: /usr/cvs/ports/security/amavisd-new/files/patch-amavisd,v
retrieving revision 1.10
diff -u -r1.10 patch-amavisd
--- files/patch-amavisd	25 Apr 2005 14:51:44 -0000	1.10
+++ files/patch-amavisd	30 Jul 2006 22:45:48 -0000
@@ -1,6 +1,6 @@
---- amavisd.orig	Mon Apr 25 01:23:32 2005
-+++ amavisd	Mon Apr 25 09:53:59 2005
-@@ -8495,7 +8495,7 @@
+--- amavisd.orig	Tue Jun 27 13:31:56 2006
++++ amavisd	Mon Jul 31 00:44:09 2006
+@@ -9335,7 +9335,7 @@
  Amavis::Conf::build_default_maps();
  
  # default location of the config file if none specified
@@ -9,3 +9,32 @@
  # Read/execute the config file, which may override default settings
  Amavis::Conf::read_config(@config_files);
  
+@@ -12049,15 +12049,20 @@
+             my($bounced) = $msginfo->dsn_sent;
+             for my $r (@{$msginfo->per_recip_data}) {
+               my($resp) = $r->recip_smtp_response;
+-              if ($bounced && $smtp_resp=~/^2/ && $resp!~/^2/) {
+-                # as the message was already bounced by us,
+-                # MTA must not bounce it again; failure status
+-                # needs to be converted into success!
+-                $resp = sprintf("250 2.5.0 Ok %s, DSN %s (%s)",
+-                        $r->recip_addr, $bounced==1 ? 'sent' : 'muted', $resp);
++              my($recip_quoted) = qquote_rfc2821_local($r->recip_addr);
++              if ($resp=~/^2/) {
++                # success, no need to change status
++              } elsif ($bounced) {
++                # a non-delivery notifications was already sent by us, so
++                # MTA must not bounce it again; turn status into a success
++                $resp = sprintf("250 2.5.0 Ok %s, DSN was sent (%s)",
++                                $recip_quoted, $resp);
++              } elsif ($resp=~/^5/ && $r->recip_destiny != D_REJECT) {
++                $resp = sprintf("250 2.5.0 Ok %s, DSN suppressed (%s)",
++                                $recip_quoted, $resp);
+               }
+-              do_log(4, 'sending LMTP response for <%s>: "%s"',
+-                        $r->recip_addr, $resp);
++              do_log(4, 'sending LMTP response for %s: "%s"',
++                        $recip_quoted, $resp);
+               $self->smtp_resp(0, $resp);
+             }
+           }
--- security-amavisd-new.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060730234733.B5D63289F00>