- don't barf if Time:HiRes isn't available (doesn't look like there's

even a package for it)
- crank PKGREVISION for above
- fix the PLIST (at least, i think it's correct. there's some stuff still
  missing WRT what print-PLIST shows, but that might be just perl pkg foo)

btw: i *love* incompletely tested packages.  especially those which are
as important to correct mail delivery as spamassassin is.  *grrr*
This commit is contained in:
lukem 2002-07-03 14:02:38 +00:00
parent 354fd9e347
commit ad9cb1798a
4 changed files with 28 additions and 3 deletions

View file

@ -1,8 +1,9 @@
# $NetBSD: Makefile,v 1.5 2002/07/03 13:13:32 abs Exp $
# $NetBSD: Makefile,v 1.6 2002/07/03 14:02:38 lukem Exp $
#
DISTNAME= Mail-SpamAssassin-2.31
PKGNAME= p5-${DISTNAME}
PKGREVISION= 1
SVR4_PKGNAME= p5msa
CATEGORIES= mail
#MASTER_SITES= http://spamassassin.taint.org/released/

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.3 2002/05/03 11:48:35 mjl Exp $
@comment $NetBSD: PLIST,v 1.4 2002/07/03 14:02:39 lukem Exp $
@comment bin/spamassassin
@comment bin/spamc
@comment bin/spamd
@ -16,12 +16,17 @@ share/spamassassin/20_head_tests.cf
share/spamassassin/20_uri_tests.cf
share/spamassassin/25_body_tests_es.cf
share/spamassassin/25_body_tests_pl.cf
share/spamassassin/25_head_tests_es.cf
share/spamassassin/25_head_tests_pl.cf
share/spamassassin/30_text_de.cf
share/spamassassin/30_text_es.cf
share/spamassassin/30_text_fr.cf
share/spamassassin/30_text_pl.cf
share/spamassassin/40_spam_phrases.cf
share/spamassassin/50_scores.cf
share/spamassassin/60_whitelist.cf
share/spamassassin/languages
share/spamassassin/triplets.txt
share/spamassassin/user_prefs.template
@dirrm share/doc/spamassassin/spamd
@dirrm share/doc/spamassassin/sql

View file

@ -1,4 +1,5 @@
$NetBSD: distinfo,v 1.4 2002/07/03 13:13:32 abs Exp $
$NetBSD: distinfo,v 1.5 2002/07/03 14:02:39 lukem Exp $
SHA1 (Mail-SpamAssassin-2.31.tar.gz) = d43295b0e3e49c60e8f91f7f7645a40db04965f1
Size (Mail-SpamAssassin-2.31.tar.gz) = 370237 bytes
SHA1 (patch-aa) = f42777a6288c23ba3bb02fd5fc12612d53740d42

View file

@ -0,0 +1,18 @@
$NetBSD: patch-aa,v 1.1 2002/07/03 14:02:39 lukem Exp $
--- lib/Mail/SpamAssassin.pm.orig Fri Jun 21 03:20:29 2002
+++ lib/Mail/SpamAssassin.pm
@@ -63,7 +63,12 @@ use Config;
#eval { require Time::HiRes };
#Time::HiRes->import( qw(time) ) unless $@;
# Unfortunately, the above doesn't work, please FIXME
-use Time::HiRes qw ( time );
+#use Time::HiRes qw ( time );
+
+BEGIN {
+ eval { require Time::HiRes };
+ Time::HiRes->import( qw(time) ) unless $@;
+}
use vars qw{
@ISA $VERSION $SUB_VERSION $HOME_URL $DEBUG $TIMELOG