From verm@jolly.drunkmonk.net  Tue Sep  3 23:46:26 2002
Return-Path: <verm@jolly.drunkmonk.net>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 203FB37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Sep 2002 23:46:26 -0700 (PDT)
Received: from jolly.drunkmonk.net (jolly.drunkmonk.net [66.37.140.163])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B041643E6E
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Sep 2002 23:46:25 -0700 (PDT)
	(envelope-from verm@jolly.drunkmonk.net)
Received: from jolly.drunkmonk.net (localhost [127.0.0.1])
	by jolly.drunkmonk.net (8.12.3/8.12.3) with ESMTP id g846kFEK044017
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 4 Sep 2002 00:46:15 -0600 (MDT)
	(envelope-from verm@jolly.drunkmonk.net)
Received: (from verm@localhost)
	by jolly.drunkmonk.net (8.12.3/8.12.1/Submit) id g846kFuS044016;
	Wed, 4 Sep 2002 00:46:15 -0600 (MDT)
Message-Id: <200209040646.g846kFuS044016@jolly.drunkmonk.net>
Date: Wed, 4 Sep 2002 00:46:15 -0600 (MDT)
From: Amar Takhar <verm@drunkmonk.net>
Reply-To: Amar Takhar <verm@drunkmonk.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: maintainer update: sysutils/fastresolve
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42402
>Category:       ports
>Synopsis:       maintainer update: sysutils/fastresolve
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 03 23:50:01 PDT 2002
>Closed-Date:    Wed Jan 08 10:17:17 PST 2003
>Last-Modified:  Wed Jan 08 10:17:17 PST 2003
>Originator:     Amar Takhar
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:

>Description:

Added a message to the Makefile notifying the user that they need to install the 
p5-BerkelyDB port to use one of the scripts.  (it's only one out of sevral no
point in adding it as a dep)

Also, a patch was submitted to me by Harold Paulson <haroldp@internal.org> which
fixes the convert-ip-db script, i missed this the first round, sorry!

Just add the following patch to the makefile and throw the supplied patch into
files/


>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	fastresolve-fix
#	fastresolve-fix/fastresolve.diff
#	fastresolve-fix/patch-scripts::convert-ip-db-in
#
echo c - fastresolve-fix
mkdir -p fastresolve-fix > /dev/null 2>&1
echo x - fastresolve-fix/fastresolve.diff
sed 's/^X//' >fastresolve-fix/fastresolve.diff << 'END-of-fastresolve-fix/fastresolve.diff'
XIndex: Makefile
X===================================================================
XRCS file: /home/ncvs/ports/sysutils/fastresolve/Makefile,v
Xretrieving revision 1.2
Xdiff -u -r1.2 Makefile
X--- Makefile	2002/08/22 19:13:44	1.2
X+++ Makefile	2002/09/04 06:40:45
X@@ -32,4 +32,10 @@
X pre-configure:
X 	@(cd ${WRKSRC} && aclocal14)
X 
X+post-install:
X+        @${ECHO_MSG} ""
X+        @${ECHO_MSG} "If you want to use the convert-ip-db script you must"
X+        @${ECHO_MSG} "install the databases/p5-BerkeleyDB port"
X+        @${ECHO_MSG} ""
X+
X .include <bsd.port.post.mk>
END-of-fastresolve-fix/fastresolve.diff
echo x - fastresolve-fix/patch-scripts::convert-ip-db-in
sed 's/^X//' >fastresolve-fix/patch-scripts::convert-ip-db-in << 'END-of-fastresolve-fix/patch-scripts::convert-ip-db-in'
X--- scripts/convert-ip-db.in.orig	Wed Sep 29 12:13:42 1999
X+++ scripts/convert-ip-db.in	Wed Sep  4 02:31:43 2002
X@@ -13,6 +13,7 @@
X # Written by Chris Ross <cross@eng.us.uu.net>
X # and David MacKenzie <djm@web.us.uu.net>
X # Please send comments and bug reports to fastresolve-bugs@web.us.uu.net.
X+# Updated to use BerkeleyDB (db3) by Harold Paulson <haroldp@internal.org>
X 
X ##############################################################################
X #   Copyright 1999 UUNET, an MCI WorldCom company.
X@@ -33,8 +34,7 @@
X # 02111-1307, USA.
X ##############################################################################
X 
X-use DB_File;
X-use Fcntl;
X+use BerkeleyDB;
X 
X main();
X exit(0);
X@@ -45,8 +45,11 @@
X 
X     $dbfile = shift @ARGV || "ip2host.db";
X 
X-    tie(%input, "DB_File", $dbfile, O_RDONLY, 0640, $DB_BTREE)
X-	|| die "$0: Can't read $dbfile: $!\n";
X+    tie(%input, 'BerkeleyDB::Btree', 
X+        -Filename => $dbfile, 
X+        -Flags    => DB_RDONLY, 
X+        -Mode     => 0640)
X+        || die "$0: Can't read $dbfile: $!\n";
X     
X     while (($ipaddr, $domain) = each(%input)) {
X 	($timestamp, $domain) = unpack("IA*", $domain);
END-of-fastresolve-fix/patch-scripts::convert-ip-db-in
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Wed Jan 8 10:16:55 PST 2003 
State-Changed-Why:  
Committed, thanks. 

Please note, that your port does not build on FreeBSD CURRENT 

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