From matthias.andree@gmx.de  Mon Jun 20 12:04:56 2005
Return-Path: <matthias.andree@gmx.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9397516A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Jun 2005 12:04:56 +0000 (GMT)
	(envelope-from matthias.andree@gmx.de)
Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.e-technik.Uni-Dortmund.DE [129.217.163.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 16BB343D55
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Jun 2005 12:04:55 +0000 (GMT)
	(envelope-from matthias.andree@gmx.de)
Received: from localhost (localhost [127.0.0.1])
	by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id E66F544013;
	Mon, 20 Jun 2005 14:04:54 +0200 (CEST)
Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1])
 by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 02026-01; Mon, 20 Jun 2005 14:04:53 +0200 (CEST)
Received: from m2a2.dyndns.org (p509149FA.dip.t-dialin.net [80.145.73.250])
	by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 52ECF44001;
	Mon, 20 Jun 2005 14:04:53 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by merlin.emma.line.org (Postfix) with ESMTP id 7FFEF7971C;
	Mon, 20 Jun 2005 14:04:52 +0200 (CEST)
Received: from m2a2.dyndns.org ([127.0.0.1])
 by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 10044-20; Mon, 20 Jun 2005 14:04:51 +0200 (CEST)
Received: from libertas.emma.line.org (libertas.emma.line.org [192.168.0.2])
	by merlin.emma.line.org (Postfix) with ESMTP id 47FDB7971B;
	Mon, 20 Jun 2005 14:04:51 +0200 (CEST)
Received: from emma by libertas.emma.line.org with local (Exim 4.51 (FreeBSD))
	id 1DkL1G-0005Q9-QN; Mon, 20 Jun 2005 14:04:50 +0200
Message-Id: <E1DkL1G-0005Q9-QN@libertas.emma.line.org>
Date: Mon, 20 Jun 2005 14:04:50 +0200
From: Matthias Andree <matthias.andree@gmx.de>
Sender: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] mail/bogofilter: fix bf_resize bashisms
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         82441
>Category:       ports
>Synopsis:       [MAINTAINER] mail/bogofilter: fix bf_resize bashisms
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 20 12:10:22 GMT 2005
>Closed-Date:    Tue Jun 21 14:44:50 GMT 2005
>Last-Modified:  Tue Jun 21 14:44:50 GMT 2005
>Originator:     Matthias Andree
>Release:        FreeBSD 4.11-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.11-RELEASE-p10 FreeBSD 4.11-RELEASE-p10 #0: Fri Jun 10 15:59:46 CEST 2005
>Description:
fix bf_resize bashisms.
Reported by: Andrey Chernov (Bcc'd to protect his address)

Added file(s):
- files/patch-src_bf__resize.in

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- bogofilter-0.94.14_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/bogofilter/Makefile /usr/home/emma/ports/mail/bogofilter/Makefile
--- /usr/ports/mail/bogofilter/Makefile	Wed Jun 15 18:44:37 2005
+++ /usr/home/emma/ports/mail/bogofilter/Makefile	Mon Jun 20 13:55:51 2005
@@ -7,7 +7,7 @@
 
 PORTNAME=	bogofilter
 PORTVERSION=	0.94.14
-PORTREVISION?=	0
+PORTREVISION?=	1
 CATEGORIES?=	mail
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
diff -ruN --exclude=CVS /usr/ports/mail/bogofilter/files/patch-src_bf__resize.in /usr/home/emma/ports/mail/bogofilter/files/patch-src_bf__resize.in
--- /usr/ports/mail/bogofilter/files/patch-src_bf__resize.in	Thu Jan  1 01:00:00 1970
+++ /usr/home/emma/ports/mail/bogofilter/files/patch-src_bf__resize.in	Mon Jun 20 13:55:23 2005
@@ -0,0 +1,29 @@
+--- a/src/bf_resize.in	Mon Jun 13 21:56:45 2005
++++ b/src/bf_resize.in	Mon Jun 20 13:50:17 2005
+@@ -35,19 +35,19 @@
+ # count pages in database files
+ for DB in $DATABASES ; do
+     COUNT=`bogoutil --db-print-leafpage-count="$DB"`
+-    let PAGES="$PAGES + $COUNT"
++    PAGES=$(( $PAGES + $COUNT ))
+ done
+ 
+ # be generous, double count
+-let PAGES="$PAGES + $PAGES"
++PAGES=$(( $PAGES + $PAGES ))
+ 
+ # and update or create DB_CONFIG
+ : >> "$BOGOHOME"/DB_CONFIG
+-(
+-  set +e
+-  egrep -v '^set_lk_max_(locks|objects)' "$BOGOHOME"/DB_CONFIG >"$BOGOHOME"/DB_CONFIG.new
+-)
+-if [ $? -ge 2 ] ; then exit 1 ; fi
++set +e
++egrep -v '^set_lk_max_(locks|objects)' "$BOGOHOME"/DB_CONFIG >"$BOGOHOME"/DB_CONFIG.new
++s=$?
++set -e
++if [ $s -ge 2 ] ; then exit 1 ; fi
+ echo >>"$BOGOHOME"/DB_CONFIG.new set_lk_max_locks $PAGES
+ echo >>"$BOGOHOME"/DB_CONFIG.new set_lk_max_objects $PAGES
+ mv "$BOGOHOME"/DB_CONFIG.new "$BOGOHOME"/DB_CONFIG
--- bogofilter-0.94.14_1.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: flz 
State-Changed-When: Tue Jun 21 14:44:19 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82441 
>Unformatted:
