Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 2004 20:39:32 +0100 (CET)
From:      Blaz Zupan <blaz.zupan@amis.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64589: MAINTAINER UPDATE: fixes for amavisd-new 
Message-ID:  <20040322193932.DBFBF55473@titanic.medinet.si>
Resent-Message-ID: <200403221940.i2MJe9Pd066123@freefall.freebsd.org>

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

>Number:         64589
>Category:       ports
>Synopsis:       MAINTAINER UPDATE: fixes for amavisd-new
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 22 11:40:08 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Blaz Zupan
>Release:        FreeBSD 4.9-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD titanic.medinet.si 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #3: Sat Dec 20 15:57:16 CET 2003 root@bigbrother.amis.net:/db/obj/usr/src/sys/TITANIC i386


	
>Description:

- fix dependencies for modules already included in perl 5.8 (PR 64374)
- remove dependency on Carp::Heavy module which is not available with
  stock FreeBSD 4.9 perl
- add official post -p8 buglet fixes which will be included in -p9
- add size information to distinfo
- bump portrevision

>How-To-Repeat:
	
>Fix:

diff -urN amavisd-new.orig/Makefile amavisd-new/Makefile
--- amavisd-new.orig/Makefile	Tue Mar 16 07:14:04 2004
+++ amavisd-new/Makefile	Mon Mar 22 20:29:14 2004
@@ -8,6 +8,7 @@
 
 PORTNAME=	amavisd-new
 PORTVERSION=	20030616.p8
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=   http://www.ijs.si/software/amavisd/ \
 		http://mirrors.catpipe.net/amavisd-new/ \
@@ -17,15 +18,14 @@
 MAINTAINER=	blaz@si.FreeBSD.org
 COMMENT=	Performance-enhanced daemonized version of amavis-perl
 
-RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
-		${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
+
+RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
 		${SITE_PERL}/MIME/Words.pm:${PORTSDIR}/mail/p5-MIME-Tools \
 		${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
 		${SITE_PERL}/${PERL_ARCH}/Convert/UUlib.pm:${PORTSDIR}/converters/p5-Convert-UUlib \
 		${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
 		${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
 		${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
-		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
 		${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \
 		${SITE_PERL}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
 		${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc \
@@ -106,7 +106,12 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${PERL_LEVEL} < 500601
+.if ${PERL_LEVEL} < 500800
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
+		${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+.endif
+
+.if ${PERL_LEVEL} < 500600
 RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/IO/Socket/UNIX.pm:${PORTSDIR}/devel/p5-IO
 .endif
 
diff -urN amavisd-new.orig/distinfo amavisd-new/distinfo
--- amavisd-new.orig/distinfo	Tue Mar 16 07:14:04 2004
+++ amavisd-new/distinfo	Mon Mar 22 20:06:19 2004
@@ -1 +1,2 @@
 MD5 (amavisd-new-20030616-p8.tar.gz) = 5b55cef4ef4cc717b9ee1ed204a1ed96
+SIZE (amavisd-new-20030616-p8.tar.gz) = 328420
diff -urN amavisd-new.orig/files/patch-amavisd amavisd-new/files/patch-amavisd
--- amavisd-new.orig/files/patch-amavisd	Thu Nov 20 12:00:19 2003
+++ amavisd-new/files/patch-amavisd	Mon Mar 22 20:27:16 2004
@@ -1,11 +1,39 @@
---- amavisd.orig	Mon Nov 10 01:22:13 2003
-+++ amavisd	Tue Nov 11 22:42:47 2003
-@@ -6279,7 +6279,7 @@
- my($amavisd_path) = find_program_path($0, [split(/:/, $path, -1)], 0);
+--- amavisd.orig	Tue Mar  9 03:21:43 2004
++++ amavisd	Mon Mar 22 20:26:59 2004
+@@ -109,7 +109,7 @@
+ 
+ BEGIN {
+     fetch_modules('REQUIRED BASIC MODULES', 1, qw(
+-	Exporter POSIX Fcntl Socket Errno Carp Carp::Heavy Time::HiRes
++	Exporter POSIX Fcntl Socket Errno Carp Time::HiRes
+ 	IO::File IO::Socket IO::Socket::UNIX IO::Socket::INET
+ 	IO::Handle IO::Wrap IO::Stringy
+ 	Digest::MD5 Unix::Syslog File::Basename File::Copy
+@@ -5358,7 +5358,8 @@
+ 		}
+ 		section_time('parts'); prolong_timer('decoding');
+ 	    }
+-	    if ($any_undecipherable) {  # test if undecipherables are banned
++	    if ($any_undecipherable && $banned_filename_re) { 
++		# test if undecipherables are banned
+ 		my($rn) = 'UNDECIPHERABLE';
+ 		my($result,$patt) = $banned_filename_re->lookup_re($rn);
+ 		if ($result) {
+@@ -5920,7 +5921,7 @@
+ 		$s = $undecipherable_subject_tag;
+ 		do_log(3,"adding $undecipherable_subject_tag, $any_undecipherable, $hold");
+ 	    }
+-	    $s .= $sa_spam_subject_tag;
++	    $s .= $sa_spam_subject_tag if $do_subj;
+ 	    my($entity) = $msginfo->mime_entity;
+ 	    if (defined $entity && defined $entity->head->get('Subject',0)) {
+ 		$hdr_edits->edit_header('Subject',
+@@ -6420,7 +6421,7 @@
+ local($1);
  $amavisd_path = $1 if $amavisd_path=~m{^([A-Za-z0-9/._=+-]+)$(?!\n)}; # untaint
  
 -my($config_file) = '/etc/amavisd.conf';  # default location of config file
 +my($config_file) = '%%PREFIX%%/etc/amavisd.conf';  # default location of config file
  if (@ARGV >= 2 && $ARGV[0] eq '-c') {    # override by command line option -c
      shift @ARGV; $config_file = shift @ARGV;
-     $config_file = $1 if $config_file=~m{^([A-Za-z0-9/._=+-]+)$(?!\n)};# untaint
+     local($1);
>Release-Note:
>Audit-Trail:
>Unformatted:



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