FreeBSD Bugzilla – Attachment 68830 Details for
Bug 101071
[maintainer update] security/amavisd-new
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
security-amavisd-new.diff
security-amavisd-new.diff (text/plain), 5.03 KB, created by
Gabor Kovesdan
on 2006-07-31 00:50:14 UTC
(
hide
)
Description:
security-amavisd-new.diff
Filename:
MIME Type:
Creator:
Gabor Kovesdan
Created:
2006-07-31 00:50:14 UTC
Size:
5.03 KB
patch
obsolete
>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); >+ } >+ }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 101071
: 68830