# 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: # # jdresolve # jdresolve/files # jdresolve/files/patch-0.6.2b1.diff # jdresolve/Makefile # jdresolve/distinfo # jdresolve/pkg-descr # jdresolve/pkg-plist # echo c - jdresolve mkdir -p jdresolve > /dev/null 2>&1 echo c - jdresolve/files mkdir -p jdresolve/files > /dev/null 2>&1 echo x - jdresolve/files/patch-0.6.2b1.diff sed 's/^X//' >jdresolve/files/patch-0.6.2b1.diff << 'END-of-jdresolve/files/patch-0.6.2b1.diff' X--- ../jdresolve-0.6.1/jdresolve 2000-10-16 07:43:31.000000000 -0200 X+++ jdresolve 2005-01-11 02:55:12.000000000 -0200 X@@ -627,7 +627,12 @@ X $class{$_}{COUNT} = 1; X $class{$_}{SOCKET} = undef; X $class{$_}{RESOLVED} = 'p'; X- X+ if ($1 == '0') { X+ $class{$_}{RESOLVED} = 'F'; X+ debug("LAME CLASS 0.x.y!", 1); X+ next; X+ } X+ X ($class{$_}{DBNAME}, $class{$_}{DBTYPE}, $class{$_}{DBTIME}) = dbread($_); X X if ($opts{dbfirst} and defined $class{$_}{DBNAME}) { X@@ -835,6 +840,8 @@ X # Checks sockets for DNS replies and processes them X # RETURNS: 1 (always) X X+ debug("Sockets active: " . $sel->count, 3); X+ X # Check pending replies, give it 5 seconds at most X for ($sel->can_read(5)) { X my $resolved = 0; X@@ -952,8 +959,13 @@ X # Nothing pending for this line if we got here X X for (@{$line{HOSTS}}) { X+ # escape the host periods X+ my $host = $_; X+ $host =~ s/\./\\\./g; X+ #debug("Escaped host IP to: $host\n", 4); X+ X # Update line with resolved hosts X- $hosts{$_}{RESOLVED} ne 'F' and $line{TEXT} =~ s/$_/$hosts{$_}{NAME}/; X+ $hosts{$_}{RESOLVED} ne 'F' and $line{TEXT} =~ s/$host/$hosts{$_}{NAME}/; X X # We don't need this host anymore X removehost($_); END-of-jdresolve/files/patch-0.6.2b1.diff echo x - jdresolve/Makefile sed 's/^X//' >jdresolve/Makefile << 'END-of-jdresolve/Makefile' X# New ports collection makefile for: jdresolve X# Date created: 15 June 2001 X# Whom: Christophe Labouisse X# X# $FreeBSD: ports/www/jdresolve/Makefile,v 1.8 2004/01/03 20:30:39 dougb Exp $ X# X XPORTNAME= jdresolve XPORTVERSION= 0.6.1 XPORTREVISION= 2 XCATEGORIES= www XMASTER_SITES= http://www.jdrowell.com/projects/jdresolve/ X XMAINTAINER= christophe@labouisse.org XCOMMENT= A IP addresse to hostname program for httpd log files X XBUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS XRUN_DEPENDS= ${BUILD_DEPENDS} X XUSE_PERL5= yes XNO_BUILD= yes X XMANCOMPRESSED= no XMAN1= rhost.1 jdresolve.1 X XDOC1= AUTHORS BUGS CHANGELOG COPYING CREDITS INSTALL README TODO X Xdo-install: X.for file in jdresolve rhost X ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin X ${INSTALL_MAN} ${WRKSRC}/${file}.1 ${MAN1PREFIX}/man/man1 X.endfor X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/jdresolve X.for i in ${DOC1} X ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/jdresolve X.endfor X.endif X X.include END-of-jdresolve/Makefile echo x - jdresolve/distinfo sed 's/^X//' >jdresolve/distinfo << 'END-of-jdresolve/distinfo' XMD5 (jdresolve-0.6.1.tar.gz) = 916a1e0023d2d18e2b2e8efd4efe23c5 XSIZE (jdresolve-0.6.1.tar.gz) = 51200 END-of-jdresolve/distinfo echo x - jdresolve/pkg-descr sed 's/^X//' >jdresolve/pkg-descr << 'END-of-jdresolve/pkg-descr' Xjdresolve resolves IP addresses to hostnames. Any file format is Xsupported, including those where the line does not begin with the IP Xaddress. One of the strongest features of the program is the support Xfor recursion, which can drastically reduce the number of unresolved Xhosts by faking a hostname based on the network that the IP belongs Xto. DNS queries are sent in parallel, which means that you can Xdecrease run time by increasing the number of simultaneous sockets Xused (given a fast enough machine and available bandwidth). By using Xthe database support, performance can be increased even further, by Xusing cached data from previous runs. X XIncluded is a tiny shell script called rhost to interface with Xjdresolve when resolving a single IP address. Think of it as a smart Xreplacement for the 'host' utility that comes with bind-utils. X XWWW: http://www.jdrowell.com/archives/projects/jdresolve/index.html END-of-jdresolve/pkg-descr echo x - jdresolve/pkg-plist sed 's/^X//' >jdresolve/pkg-plist << 'END-of-jdresolve/pkg-plist' Xbin/jdresolve Xbin/rhost X%%PORTDOCS%%share/doc/jdresolve/AUTHORS X%%PORTDOCS%%share/doc/jdresolve/BUGS X%%PORTDOCS%%share/doc/jdresolve/CHANGELOG X%%PORTDOCS%%share/doc/jdresolve/COPYING X%%PORTDOCS%%share/doc/jdresolve/CREDITS X%%PORTDOCS%%share/doc/jdresolve/INSTALL X%%PORTDOCS%%share/doc/jdresolve/README X%%PORTDOCS%%share/doc/jdresolve/TODO X%%PORTDOCS%%@dirrm share/doc/jdresolve END-of-jdresolve/pkg-plist exit