pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/p5-Mail-Audit Updated to version 2.219.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27265f118f7c
branches:  trunk
changeset: 530127:27265f118f7c
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sat Jun 16 11:42:50 2007 +0000

description:
Updated to version 2.219.

Pkgsrc changes:
  - Removed requirement for p5-Mail-ListDetector, Mail::Audit::List is no
    longer part of this module. p5-Mail-Audit is a leaf package in pkgsrc,
    so this has no further impact.
  - New requirements are p5-File-HomeDir and p5-File-Tempdir.
  - No compiler needed.
  - Security fixes in patch-aa and patch-ab are finally integrated with
    v2.219.

Changes since version 2.1:
==========================
2.219     2007-06-14
          For security reasons, the log is now ~/mail-audit.log, not
          /tmp/username-audit.log

          fix bug: logging wasn't working when processing mime messages
          add optional "reason" argument to ignore method
          _log method renamed to log and documented

2.218     2007-03-06
          remove List, Razor, and PGP plugins to their own dists
          this is the first step in paring down Mail::Audit

2.217     2007-03-05
          make the test skipped in 2.216 pass reliable (thanks to HDP for idea)

2.216     2007-02-26
          skip a test that doesn't pass reliably

2.215     2007-02-19
          subclass File::Tempdir to avoid cleaning up in forked child

2.214     2007-02-15
          refactor internals of emergency and default destinations

2.213     2007-02-15
          add a no_log option

2.212     2006-10-31
          try to avoid letting temp dirs linger too long

2.211     2006-09-19
          fix Mail::Audit::List breakage; it needs tests!; rt #20934

2.210     2006-09-19
          use File::HomeDir to reduce unix-o-centrism

2.203     2006-07-21
          update PEP information

2.202     2006-07-21
          test fix: don't rely on default mbox not existing; force it to fail
          prune list of sysexits.h-like error code constants

2.201     2006-07-16
          use File::Temp a few places where it's indicated
          add a munge_name arg to Mail::Audit::List
          pipe now returns the exit status of the pipe
          fix directory permissions
          fixed bugs in proc2ma (ticket 2982, thanks MARKSTOS)

2.200_05  2006-06-04
          more testing
          more tweaking
          more frustration

2.200_04  2006-06-04
          log now uses on-object filehandles, rather than globals
          delivery to msgprefix completely removed, as it was never implemented
          exit behavior somewhat encapsulated for testability
          PGP plugin now replaces, rather than adds, content type headers
          more tests

2.200_03  2006-06-01
          our first meaningful tests!
          also some POD tests
          POD cleaned up
          many undocumented modules given a _-prefix
          removed undocumented, bizarre inreplyto_and_references method

2.200_02  2006-05-30
          various code cleanup, including perltidy
          extra options, previously an optional hashref passed as first arg,
            should now be passed as the last arg; factored out and deprecation
            warning added; they were mostly undocumented
          moved to Module::Install

2.200_01  2006-05-24
          maintenance assumed by RJBS
          changes inherited from Meng Wong

diffstat:

 mail/p5-Mail-Audit/Makefile         |  15 +++++++++----
 mail/p5-Mail-Audit/distinfo         |  10 +++-----
 mail/p5-Mail-Audit/patches/patch-aa |  29 ----------------------------
 mail/p5-Mail-Audit/patches/patch-ab |  38 -------------------------------------
 4 files changed, 14 insertions(+), 78 deletions(-)

diffs (126 lines):

diff -r cc69f66cb3ab -r 27265f118f7c mail/p5-Mail-Audit/Makefile
--- a/mail/p5-Mail-Audit/Makefile       Sat Jun 16 11:26:00 2007 +0000
+++ b/mail/p5-Mail-Audit/Makefile       Sat Jun 16 11:42:50 2007 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2006/03/04 21:30:01 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2007/06/16 11:42:50 heinz Exp $
 
-DISTNAME=      Mail-Audit-2.1
+DISTNAME=      Mail-Audit-2.219
 PKGNAME=       p5-${DISTNAME}
 SVR4_PKGNAME=  p5mau
-PKGREVISION=   2
 CATEGORIES=    mail perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Mail/}
 
@@ -11,12 +10,18 @@
 HOMEPAGE=      http://search.cpan.org/dist/Mail-Audit/
 COMMENT=       Perl5 module for filtering mail
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+DEPENDS+=      p5-File-HomeDir>=0.61:../../devel/p5-File-HomeDir
+DEPENDS+=      p5-File-Tempdir-[0-9]*:../../devel/p5-File-Tempdir
+# Needs Mail::Internet and Mail::Mailer from p5-MailTools.
 DEPENDS+=      p5-MailTools-[0-9]*:../../mail/p5-MailTools
-DEPENDS+=      p5-Mail-ListDetector-[0-9]*:../../mail/p5-Mail-ListDetector
+# Needs MIME::Entity from p5-MIME-tools.
 DEPENDS+=      p5-MIME-tools-[0-9]*:../../mail/p5-MIME-tools
-# We need Net::SMTP from p5-Net.
+# Needs Net::SMTP from p5-Net.
 DEPENDS+=      p5-Net>=1.0:../../net/p5-Net
 
+USE_LANGUAGES=         # empty
 PERL5_PACKLIST=                auto/Mail/Audit/.packlist
 
 .include "../../lang/perl5/module.mk"
diff -r cc69f66cb3ab -r 27265f118f7c mail/p5-Mail-Audit/distinfo
--- a/mail/p5-Mail-Audit/distinfo       Sat Jun 16 11:26:00 2007 +0000
+++ b/mail/p5-Mail-Audit/distinfo       Sat Jun 16 11:42:50 2007 +0000
@@ -1,7 +1,5 @@
-$NetBSD: distinfo,v 1.5 2006/02/02 12:08:14 salo Exp $
+$NetBSD: distinfo,v 1.6 2007/06/16 11:42:51 heinz Exp $
 
-SHA1 (Mail-Audit-2.1.tar.gz) = 4fbfc782c8230025b793c2e15eff231acfa55f57
-RMD160 (Mail-Audit-2.1.tar.gz) = c59d006f1f9aa544e854be089f3fe793a8694d4f
-Size (Mail-Audit-2.1.tar.gz) = 21669 bytes
-SHA1 (patch-aa) = 8d1646afb5ac34de60fa19c2aa15c80210c9d6a7
-SHA1 (patch-ab) = e7d95c44d63dc2e78f30774e0c1092e59268376d
+SHA1 (Mail-Audit-2.219.tar.gz) = 7ba1ce179f1e8e7cfa4399f74c3818cbcb5bfc67
+RMD160 (Mail-Audit-2.219.tar.gz) = eadb808605705e2ace734b706c0ae803cebd42ab
+Size (Mail-Audit-2.219.tar.gz) = 42896 bytes
diff -r cc69f66cb3ab -r 27265f118f7c mail/p5-Mail-Audit/patches/patch-aa
--- a/mail/p5-Mail-Audit/patches/patch-aa       Sat Jun 16 11:26:00 2007 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2006/02/02 12:08:14 salo Exp $
-
-Security fix for SA18656, from Debian.
-
---- Audit.pm.orig      2002-03-03 18:11:20.000000000 +0100
-+++ Audit.pm   2006-02-02 12:48:52.000000000 +0100
-@@ -4,7 +4,13 @@
- 
- my $logging;
- my $loglevel=3;
--my $logfile = "/tmp/".getpwuid($>)."-audit.log";
-+my $logfile;
-+if (exists $ENV{HOME} and defined $ENV{HOME} and -d $ENV{HOME}) {
-+     $logfile = "$ENV{HOME}/.mail_audit.log"
-+}
-+else {
-+     (undef,$logfile) = tempfile("mail_audit.log-XXXXX",TMPDIR=>1);
-+}
- 
- # ----------------------------------------------------------
- # no user-modifiable parts below this line.
-@@ -18,6 +24,7 @@
- use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $ASSUME_MSGPREFIX);
- # @ISA will depend on whether the message is MIME; if it is, we'll be MIME::Entity.  if not, we'll be Mail::Internet.
- use Fcntl ':flock';
-+use File::Temp qw(tempfile);
- 
- $ASSUME_MSGPREFIX = 0;
- 
diff -r cc69f66cb3ab -r 27265f118f7c mail/p5-Mail-Audit/patches/patch-ab
--- a/mail/p5-Mail-Audit/patches/patch-ab       Sat Jun 16 11:26:00 2007 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2006/02/02 12:08:14 salo Exp $
-
-Security fix for SA18656, from Debian.
-
---- Audit/MimeEntity.pm.orig   2002-01-18 01:23:32.000000000 +0100
-+++ Audit/MimeEntity.pm        2006-02-02 12:48:52.000000000 +0100
-@@ -4,6 +4,7 @@
- 
- use strict;
- use File::Path;
-+use File::Temp qw(tempdir)
- use MIME::Parser;
- use MIME::Entity;
- use Mail::Audit::MailInternet;
-@@ -12,10 +13,12 @@
- 
- $VERSION = '2.0';
- 
--$MIME_PARSER_TMPDIR = "/tmp/".getpwuid($>)."-mailaudit";
--
- my $parser = MIME::Parser->new();
- 
-+# Create a tempdir using File::Temp::tempdir, have it be destroyed at
-+# END{} time.
-+$MIME_PARSER_TMPDIR = tempdir(CLEANUP => 1);
-+
- my @to_rmdir;
- 
- sub autotype_new { 
-@@ -23,8 +26,6 @@
-     my $mailinternet = shift;
- 
-     $parser->ignore_errors(1);
--    mkdir ($MIME_PARSER_TMPDIR, 0777);
--    if (! -d $MIME_PARSER_TMPDIR) { $MIME_PARSER_TMPDIR = "/tmp" }
-     $parser->output_under($MIME_PARSER_TMPDIR);
- 
-     # todo: add eval error trapping.  if there's a problem, return Mail::Audit::MailInternet as a fallback.



Home | Main Index | Thread Index | Old Index