Subject: pkg/22983: Update of mail/bogofilter to 0.14.5.4
To: None <gnats-bugs@gnats.netbsd.org>
From: None <soren@lothar.blef.org>
List: netbsd-bugs
Date: 09/27/2003 19:10:05
>Number:         22983
>Category:       pkg
>Synopsis:       Update of mail/bogofilter to 0.14.5.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 28 02:10:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Soren Jacobsen
>Release:        NetBSD 1.6ZC
>Organization:
>Environment:
pkgsrc as of 09/25/2003.
>Description:
The latest stable version of bogofilter is 0.14.5.4. While updating,
make bogofilter honor PKG_SYSCONFDIR.

Changes:
0.14.5.4
* _Really_ fix defective printing in 'bogofilter -Q' output.
0.14.5.3
* Fix parser errors that can cause:
  1. Incorrect processing of html comments.
  2. "fatal flex scanner internal error--end of buffer missed", 
     which kills bogofilter.
* Fix defective printing in 'bogofilter -Q' output.
* Compiles with TDB again.
0.14.5.2
* bogominitrain.pl - removed email 'cruft' and revised format
  of verbose output.
0.14.5.1
* Fixed parameter type error in dbh_print_names() that causes
  segfault.
* Enhanced verbose output of bogominitrain.pl
* Documented '-T' option in man page.
* Fixed parsing error that treated "^From " in encoded text as
  a message separator.
* Revised format for '-T'.
* Fixed defect in bogominitrain.pl's norepetition mode.
0.14.5
* Updated bogominitrain.pl to version 1.3.
* Corrected parsing error (in html code) that caused
  bogofilter to miss message separators.
* Added '-T' as terse mode (with fixed formatting).
* Revised processing of From and empty lines so that parsing
  works correctly with both flex-2.5.4 and flex-2.5.31.
0.14.4
* Revised database API so that there are 3 distinct layers
  (program, datastore, and database) with a clean interface
  between them.
* Correct exitcodes in bogoutil by using EX_ERROR.
* Fixed token registration bug in 0.14.x versions.
* Fixed seg fault caused by database lock contention.
0.14.3
* Fixed critical locking bug introduced into bogofilter 0.14.0
  with the combined-wordlist code: when working with separate
  wordlists, bogofilter would lock only the first one opened,
  rather than all.
* Documentation updates.
* %g formatting is now supported by bogofilter's formatting functions.
* Merged trio 1.10 (http://ctrio.sourceforge.net/) to support
  compilation on ancient systems (Solaris 2.5) that do not have
  [v]snprintf functions.
  Trio is Copyright (C) 1998-2000 Bjorn Reese and Daniel Stenberg.
* Various documentation updates, including the FAQ.
* The test suite was adjusted for older grep variants (Solaris
  2.5) that don't cope with long lines.
* Print database version in print_version().
* Postfix integration instructions have been upgraded.
* Debug output for wordlists and databases was enhanced.
>How-To-Repeat:
>Fix:
Add patch-aa:
$NetBSD$

--- Makefile.in.orig	2003-08-30 05:22:27.000000000 -0700
+++ Makefile.in	2003-09-27 16:44:37.000000000 -0700
@@ -204,15 +204,10 @@
 	cd $(top_builddir) && $(SHELL) ./config.status $@
 uninstall-info-am:
 sysconfDATA_INSTALL = $(INSTALL_DATA)
+egdir = $(prefix)/share/examples/bogofilter
 install-sysconfDATA: $(sysconf_DATA)
-	@$(NORMAL_INSTALL)
-	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
-	@list='$(sysconf_DATA)'; for p in $$list; do \
-	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-	  f="`echo $$p | sed -e 's|^.*/||'`"; \
-	  echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
-	  $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
-	done
+	$(mkinstalldirs) $(egdir)
+	$(INSTALL_DATA) $(sysconf_DATA) $(egdir)/bogofilter.cf
 
 uninstall-sysconfDATA:
 	@$(NORMAL_UNINSTALL)


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/bogofilter/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	2003/08/05 04:31:40	1.8
+++ Makefile	2003/09/28 01:58:16
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.8 2003/08/05 04:31:40 itojun Exp $
 #
 
-DISTNAME=	bogofilter-0.14.2
+DISTNAME=	bogofilter-0.14.5.4
 CATEGORIES=	mail
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=bogofilter/}
 
@@ -13,6 +13,12 @@
 GNU_CONFIGURE=	YES
 
 CONFIGURE_ARGS+=	--with-db=${BUILDLINK_PREFIX.db4}/include/db4
+
+USE_PKGINSTALL=		YES
+PKG_SYSCONFSUBDIR=	bogofilter
+EGDIR=			${PREFIX}/share/examples/bogofilter
+CONF_FILES=		${EGDIR}/bogofilter.cf ${PKG_SYSCONFDIR}/bogofilter.cf
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
 
 REPLACE_PERL=	src/bogoupgrade
 
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/mail/bogofilter/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- PLIST	2003/04/03 12:06:07	1.1.1.1
+++ PLIST	2003/09/28 01:58:16
@@ -1,10 +1,11 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2003/04/03 12:06:07 manu Exp $
 bin/bogofilter
-bin/bogoutil
 bin/bogolexer
 bin/bogoupgrade
-etc/bogofilter.cf.example
+bin/bogoutil
 man/man1/bogofilter.1
-man/man1/bogoutil.1
-man/man1/bogoupgrade.1
 man/man1/bogolexer.1
+man/man1/bogoupgrade.1
+man/man1/bogoutil.1
+share/examples/bogofilter/bogofilter.cf
+@dirrm share/examples/bogofilter
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/mail/bogofilter/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo	2003/08/05 04:31:40	1.3
+++ distinfo	2003/09/28 01:58:16
@@ -1,4 +1,5 @@
 $NetBSD: distinfo,v 1.3 2003/08/05 04:31:40 itojun Exp $
 
-SHA1 (bogofilter-0.14.2.tar.gz) = 33ae905072b824005b6ea4d70c74f3c09f9dfce5
-Size (bogofilter-0.14.2.tar.gz) = 814380 bytes
+SHA1 (bogofilter-0.14.5.4.tar.gz) = fd2ce315aaa480a7aaf51e68ba113c6e25bb9b45
+Size (bogofilter-0.14.5.4.tar.gz) = 883395 bytes
+SHA1 (patch-aa) = b0d8829d131077ebb9ab964ce2b61d0396bb3313
>Release-Note:
>Audit-Trail:
>Unformatted: