From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jul 30 23:50:21 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 044F116A4E6 for ; Sun, 30 Jul 2006 23:50:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E49C43D4C for ; Sun, 30 Jul 2006 23:50:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6UNoKnn087072 for ; Sun, 30 Jul 2006 23:50:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6UNoKAN087071; Sun, 30 Jul 2006 23:50:20 GMT (envelope-from gnats) Resent-Date: Sun, 30 Jul 2006 23:50:20 GMT Resent-Message-Id: <200607302350.k6UNoKAN087071@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gabor Kovesdan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61D3816A4DA; Sun, 30 Jul 2006 23:47:34 +0000 (UTC) (envelope-from root@catv-50635cb6.catv.broadband.hu) Received: from catv-50635cb6.catv.broadband.hu (catv-50635cb6.catv.broadband.hu [80.99.92.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBC3A43D45; Sun, 30 Jul 2006 23:47:33 +0000 (GMT) (envelope-from root@catv-50635cb6.catv.broadband.hu) Received: by catv-50635cb6.catv.broadband.hu (Postfix, from userid 0) id B5D63289F00; Mon, 31 Jul 2006 01:47:33 +0200 (CEST) Message-Id: <20060730234733.B5D63289F00@catv-50635cb6.catv.broadband.hu> Date: Mon, 31 Jul 2006 01:47:33 +0200 (CEST) From: Gabor Kovesdan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Gabor Kovesdan Subject: ports/101071: [maintainer update] security/amavisd-new X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gabor Kovesdan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2006 23:50:21 -0000 >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: