From owner-freebsd-ports Tue Sep 3 23:50:15 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A13A37B400 for ; Tue, 3 Sep 2002 23:50:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D314A43E4A for ; Tue, 3 Sep 2002 23:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g846o1JU081850 for ; Tue, 3 Sep 2002 23:50:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g846o1an081849; Tue, 3 Sep 2002 23:50:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 203FB37B400 for ; 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 ; 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 ; 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 Reply-To: Amar Takhar To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/42402: maintainer update: sysutils/fastresolve Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42402 >Category: ports >Synopsis: maintainer update: sysutils/fastresolve >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 03 23:50:01 PDT 2002 >Closed-Date: >Last-Modified: >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 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 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 X # and David MacKenzie X # Please send comments and bug reports to fastresolve-bugs@web.us.uu.net. X+# Updated to use BerkeleyDB (db3) by Harold Paulson 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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message