From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 10 00:00:10 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9432B16A473 for ; Fri, 10 Aug 2007 00:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6031513C474 for ; Fri, 10 Aug 2007 00:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7A00AVY065531 for ; Fri, 10 Aug 2007 00:00:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7A00AQQ065530; Fri, 10 Aug 2007 00:00:10 GMT (envelope-from gnats) Resent-Date: Fri, 10 Aug 2007 00:00:10 GMT Resent-Message-Id: <200708100000.l7A00AQQ065530@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, Michael Scheidell Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD22D16A419 for ; Thu, 9 Aug 2007 23:59:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 9F48E13C467 for ; Thu, 9 Aug 2007 23:59:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l79NxI0Z090689 for ; Thu, 9 Aug 2007 23:59:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l79NxIFb090688; Thu, 9 Aug 2007 23:59:18 GMT (envelope-from nobody) Message-Id: <200708092359.l79NxIFb090688@www.freebsd.org> Date: Thu, 9 Aug 2007 23:59:18 GMT From: Michael Scheidell To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/115369: [MAINTAINER UPDATE] p5-Mail-SpamAssassin from 3.2.1 to 3.2.3 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 00:00:10 -0000 >Number: 115369 >Category: ports >Synopsis: [MAINTAINER UPDATE] p5-Mail-SpamAssassin from 3.2.1 to 3.2.3 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Aug 10 00:00:09 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Michael Scheidell >Release: 5.5 >Organization: SECNAP Network Security >Environment: all >Description: Several security updates from 3.2.1 to 3.2.2, but 3.2.2 broke spamd. This fixes the spamd problem in 3.2.2 as well. Build depends for DNS bumped to .60 due to DOS condition, crypt to 0.24 due to segv in spamd with malformed DomainKey message. DomainKey plugin turned BACK OFF in default installs (not needed now that DKIM does work) removed unnecessary test for perl version (all supported fbsd versions include 5.8.8 or greater) NOTE: PORTS MAINTAINERS: REMOVE patch it is not needed anymore.(I left a 0 byte file in just in case) >How-To-Repeat: na >Fix: apply patch to ports. Patch attached with submission follows: diff -bBru p5-Mail-SpamAssassin/Makefile /var/tmp/p5-Mail-SpamAssassin323/Makefile --- p5-Mail-SpamAssassin/Makefile Sun Jul 22 18:40:58 2007 +++ /var/tmp/p5-Mail-SpamAssassin323/Makefile Thu Aug 9 19:12:51 2007 @@ -6,8 +6,7 @@ # PORTNAME= Mail-SpamAssassin -PORTVERSION= 3.2.1 -PORTREVISION= 1 +PORTVERSION= 3.2.3 CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan @@ -17,7 +16,8 @@ MAINTAINER= scheidell@secnap.net COMMENT= A highly efficient mail filter for identifying spam -BUILD_DEPENDS= p5-Net-DNS>=0.60:${PORTSDIR}/dns/p5-Net-DNS \ +BUILD_DEPENDS= +p5-Net-DNS>=0.60:${PORTSDIR}/dns/p5-Net-DNS \ p5-IO-Zlib>=1.04:${PORTSDIR}/archivers/p5-IO-Zlib \ p5-HTML-Parser>=3.43:${PORTSDIR}/www/p5-HTML-Parser \ p5-IO-Compress-Zlib>=2.04:${PORTSDIR}/archivers/p5-IO-Compress-Zlib \ @@ -97,7 +97,7 @@ .if defined(WITH_DKIM) RUN_DEPENDS+= p5-Mail-DKIM>=.20:${PORTSDIR}/mail/p5-Mail-DKIM RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL -RUN_DEPENDS+= p5-Mail-DomainKeys>=0.80:${PORTSDIR}/mail/p5-Mail-DomainKeys +RUN_DEPENDS+= p5-Crypt-OpenSSL-RSA>=0.24:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA .endif .if defined(WITH_SACOMPILE) @@ -212,7 +212,6 @@ .endif .if defined(WITH_DKIM) ${REINPLACE_CMD} -e '/DKIM/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/v312.pre - ${REINPLACE_CMD} -e '/DomainKeys/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/v310.pre .endif .if !defined(WITH_SPF_QUERY) ${REINPLACE_CMD} -e '/SPF/s/^loadplugin/#loadplugin/' ${WRKSRC}/rules/init.pre @@ -266,10 +265,5 @@ .endif @${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE} - -.if ${PERL_LEVEL} < 500800 -BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \ - ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable -.endif .include diff -bBru p5-Mail-SpamAssassin/distinfo /var/tmp/p5-Mail-SpamAssassin323/distinfo --- p5-Mail-SpamAssassin/distinfo Sat Jun 16 18:17:03 2007 +++ /var/tmp/p5-Mail-SpamAssassin323/distinfo Thu Aug 9 19:28:55 2007 @@ -1,3 +1,3 @@ -MD5 (Mail-SpamAssassin-3.2.1.tar.gz) = a7d51294c565999da01f212e5ad2a031 -SHA256 (Mail-SpamAssassin-3.2.1.tar.gz) = e0925d9c490bb8f1e56c3b850b50b12b124536dfe581b23d3c25715b1ce9ebf7 -SIZE (Mail-SpamAssassin-3.2.1.tar.gz) = 1193561 +MD5 (Mail-SpamAssassin-3.2.3.tar.gz) = 2e356b70b9458b44a828c19f6e816521 +SHA256 (Mail-SpamAssassin-3.2.3.tar.gz) = 2bf7635555dea4912512a32c7c567094ef264770b86029c49f653e97352efad8 +SIZE (Mail-SpamAssassin-3.2.3.tar.gz) = 1202082 diff -bBru p5-Mail-SpamAssassin/files/patch-ImageInfo.pm /var/tmp/p5-Mail-SpamAssassin323/files/patch-ImageInfo.pm --- p5-Mail-SpamAssassin/files/patch-ImageInfo.pm Sat Jun 2 03:09:46 2007 +++ /var/tmp/p5-Mail-SpamAssassin323/files/patch-ImageInfo.pm Sun Jul 29 19:47:26 2007 @@ -1,98 +1,17 @@ --- ImageInfo.pm.orig Tue May 1 09:54:09 2007 +++ lib/Mail/SpamAssassin/Plugin/ImageInfo.pm Thu May 3 16:08:29 2007 -@@ -1,10 +1,9 @@ - # <@LICENSE> --# Licensed to the Apache Software Foundation (ASF) under one or more --# contributor license agreements. See the NOTICE file distributed with --# this work for additional information regarding copyright ownership. --# The ASF licenses this file to you under the Apache License, Version 2.0 --# (the "License"); you may not use this file except in compliance with --# the License. You may obtain a copy of the License at: -+# Copyright 2004 Apache Software Foundation -+# -+# Licensed under the Apache License, Version 2.0 (the "License"); -+# you may not use this file except in compliance with the License. -+# You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # -@@ -16,6 +15,36 @@ - # - # - # ------------------------------------------------------- -+# ImageInfo Plugin for SpamAssassin -+# Version: 0.7 -+# Current Home: http://www.rulesemporium.com/plugins.htm#imageinfo -+# Created: 2006-08-02 -+# Modified: 2007-01-17 -+# By: Dallas Engelken -+# -+# Changes: -+# 0.7 - added image_name_regex to allow pattern matching on the image name -+# - added support for image/pjpeg content types (progressive jpeg) -+# - updated imageinfo.cf with a few sample rules for using image_name_regex() -+# 0.6 - fixed dems_ bug in image_size_range_ -+# 0.5 - added image_named and image_to_text_ratio -+# 0.4 - added image_size_exact and image_size_range -+# 0.3 - added jpeg support -+# 0.2 - optimized by theo -+# 0.1 - added gif/png support -+# -+# Files: -+# ImageInfo.pm (plugin) - http://www.rulesemporium.com/plugins/ImageInfo.pm -+# imageinfo.cf (ruleset) - http://www.rulesemporium.com/plugins/imageinfo.cf -+# -+# Install: -+# 1) place ruleset in your local config dir -+# 2) place plugin in your plugins dir -+# 3) add to init.pre (or v310.pre) the following line -+# loadplugin Mail::SpamAssassin::Plugin::ImageInfo -+# or if not in plugin dir.. -+# loadplugin Mail::SpamAssassin::Plugin::ImageInfo /path/to/plugin -+# 4) restart spamd (if necessary) - # - # Usage: - # image_count() -@@ -27,7 +56,7 @@ - # max: optional, if specified, message must not - # contain more than this number of images +@@ -49,6 +49,10 @@ + # body LARGE_IMAGE_AREA eval:pixel_coverage('all',150000) + # body SMALL_GIF_AREA eval:pixel_coverage('gif',1,40000) # --# examples -+# image_count() examples - # - # body ONE_IMAGE eval:image_count('all',1,1) - # body ONE_OR_MORE_IMAGES eval:image_count('all',1) -@@ -44,13 +73,24 @@ - # max: optional, if specified, message must not - # contain more than this much pixel area - # --# examples -+# pixel_coverage() examples -+# -+# body LARGE_IMAGE_AREA eval:pixel_coverage('all',150000) # catches any images that are 150k pixel/sq or higher -+# body SMALL_GIF_AREA eval:pixel_coverage('gif',1,40000) # catches only gifs that 1 to 40k pixel/sql -+# -+# image_name_regex() -+# -+# body RULENAME eval:image_name_regex() -+# regex: full quoted regexp, see examples below -+# +# image_name_regex() examples +# +# body CG_DOUBLEDOT_GIF eval:image_name_regex('/^\w{2,9}\.\.gif$/i') # catches double dot gifs abcd..gif ++# + # See the ruleset for ways to meta image_count() + # and pixel_coverage() together. # --# body LARGE_IMAGE_AREA eval:pixel_coverage('all',150000) --# body SMALL_GIF_AREA eval:pixel_coverage('gif',1,40000) -+# See the ruleset for more examples that arent documented here. - # --# See the ruleset for ways to meta image_count() --# and pixel_coverage() together. -+# New functions added in v0.5+ need some documentation here. Or just -+# see .cf for sample rules. - # - # ------------------------------------------------------- - -@@ -80,6 +120,7 @@ +@@ -80,6 +84,7 @@ $self->register_eval_rule ("image_size_exact"); $self->register_eval_rule ("image_size_range"); $self->register_eval_rule ("image_named"); @@ -100,10 +19,13 @@ $self->register_eval_rule ("image_to_text_ratio"); return $self; -@@ -244,6 +285,34 @@ - - # ----------------------------------------- +@@ -272,6 +277,33 @@ + # dbg("imageinfo: pc_$type: $min, ".($max ? $max:'').", $type, ".$pms->{'imageinfo'}->{"pc_$type"}); + return result_check($min, $max, $pms->{'imageinfo'}->{"pc_$type"}); ++} ++ ++# ----------------------------------------- +sub image_name_regex { + my ($self,$pms,$body,$re) = @_; + return unless (defined $re); @@ -128,20 +50,7 @@ + } + return 0; + -+} -+ -+# ----------------------------------------- -+ - sub image_count { - my ($self,$pms,$body,$type,$min,$max) = @_; - -@@ -323,7 +392,8 @@ - $self->_get_images($pms); } -- return unless (exists $pms->{'imageinfo'}->{"dems_$type"}); -+ my $name = 'dems_'.$type; -+ return unless (exists $pms->{'imageinfo'}->{$name}); + # ----------------------------------------- - foreach my $dem ( keys %{$pms->{'imageinfo'}->{"dems_$type"}}) { - my ($h,$w) = split(/x/,$dem); diff -bBru p5-Mail-SpamAssassin/files/patch-sa-compile.raw /var/tmp/p5-Mail-SpamAssassin323/files/patch-sa-compile.raw --- p5-Mail-SpamAssassin/files/patch-sa-compile.raw Sat Jun 16 18:17:03 2007 +++ /var/tmp/p5-Mail-SpamAssassin323/files/patch-sa-compile.raw Wed Jul 25 20:23:48 2007 @@ -1,6 +1,6 @@ ---- sa-compile.raw.orig Tue May 1 09:54:33 2007 -+++ sa-compile.raw Thu May 3 13:35:23 2007 -@@ -643,7 +643,7 @@ +--- sa-compile.raw.orig Mon Jul 23 10:47:06 2007 ++++ sa-compile.raw Wed Jul 25 20:23:14 2007 +@@ -659,9 +659,9 @@ -p prefs, --prefspath=file, --prefs-file=file Set user preferences file --siteconfigpath=path Path for site configs @@ -10,7 +10,9 @@ - (default: /var/lib/spamassassin/compiled/) + (default: @@LOCAL_STATE_DIR@@/compiled/) --cf='config line' Additional line of configuration -@@ -692,12 +692,12 @@ + -D, --debug [area=n,...] Print debugging messages + -V, --version Print version +@@ -708,12 +708,12 @@ =item B<-C> I, B<--configpath>=I, B<--config-file>=I Use the specified path for locating the distributed configuration files. diff -bBru p5-Mail-SpamAssassin/files/patch-spamc-Makefile.in /var/tmp/p5-Mail-SpamAssassin323/files/patch-spamc-Makefile.in --- p5-Mail-SpamAssassin/files/patch-spamc-Makefile.in Sat Jun 16 18:17:03 2007 +++ /var/tmp/p5-Mail-SpamAssassin323/files/patch-spamc-Makefile.in Wed Jul 25 17:20:29 2007 @@ -1,20 +0,0 @@ ---- spamc/Makefile.in~ Fri Jun 8 14:56:02 2007 -+++ spamc/Makefile.in Thu Jun 14 00:41:37 2007 -@@ -7,4 +7,5 @@ - LDFLAGS = @LDFLAGS@ - LDDLFLAGS = @LDDLFLAGS@ -+SHLIBFLAGS = -fPIC - - LIBS = @LIBS@ -@@ -33,9 +34,9 @@ - - spamc/libspamc$(SHLIBEXT): $(LIBSPAMC_FILES) -- $(CC) $(CCDLFLAGS) $(LIBSPAMC_FILES) \ -+ $(CC) $(CCDLFLAGS) $(SHLIBFLAGS) $(LIBSPAMC_FILES) \ - -o $@ $(LDDLFLAGS) $(LIBS) - - spamc/libsslspamc$(SHLIBEXT): $(LIBSPAMC_FILES) -- $(CC) $(SSLCFLAGS) $(CCDLFLAGS) $(LIBSPAMC_FILES) \ -+ $(CC) $(SSLCFLAGS) $(CCDLFLAGS) $(SHLIBFLAGS) $(LIBSPAMC_FILES) \ - -o $@ $(LDDLFLAGS) $(SSLLIBS) $(LIBS) - diff -bBru p5-Mail-SpamAssassin/pkg-install /var/tmp/p5-Mail-SpamAssassin323/pkg-install --- p5-Mail-SpamAssassin/pkg-install Sun Jul 22 18:40:58 2007 +++ /var/tmp/p5-Mail-SpamAssassin323/pkg-install Mon Jul 23 08:11:12 2007 @@ -1,5 +1,5 @@ #!/bin/sh -PKG_PREFIX=${PKG_PREFIX:=/usr/local} +PKG_PREFIX=${PKG_PREFIX:-/usr/local} ask() { local question default answer >Release-Note: >Audit-Trail: >Unformatted: