Date: Wed, 4 Sep 2002 00:46:15 -0600 (MDT) From: Amar Takhar <verm@drunkmonk.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/42402: maintainer update: sysutils/fastresolve Message-ID: <200209040646.g846kFuS044016@jolly.drunkmonk.net>
next in thread | raw e-mail | index | archive | help
>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 <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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209040646.g846kFuS044016>