Date: Wed, 6 Dec 2000 12:41:24 -0800 (PST) From: joseph@randomnetworks.com To: FreeBSD-gnats-submit@freebsd.org Subject: ports/23333: [NEW PORT] www/webresolve Message-ID: <200012062041.eB6KfOI46845@mothra.ecs.csus.edu> Resent-Message-ID: <200012061920.eB6JK1t71147@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 23333 >Category: ports >Synopsis: [NEW PORT] www/webresolve >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: Wed Dec 06 11:20:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Joseph Scott >Release: FreeBSD 4.2-STABLE i386 >Organization: randomnetworks.com >Environment: ports collection >Description: [NEW PORT] www/webresolve I think that www is probably the best place for this port, although sysutils might also be good. The shar file below doesn't include the www in the path. From the pkg-descr: This program is pretty slow. Thanks to the caching, repeated visits from the same address will only result in one lookup. Therefore large files will be processed proportionally faster than small ones. The load from this program is very light, because it spends most of its time waiting for the resolver. This also means that large files can take quite some time to process. The solution is to split the log file and run several resolution processes in parallel. This is done by the script splitwr: splitwr logfile > logfile.resolved webalizer logfile.resolved rm logfile.resolved By default, splitwr runs 20 parallel resolution processes. The number can be changed by editing the script. >How-To-Repeat: # 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: # # webresolve # webresolve/Makefile # webresolve/distinfo # webresolve/pkg-comment # webresolve/pkg-descr # webresolve/pkg-plist # echo c - webresolve mkdir -p webresolve > /dev/null 2>&1 echo x - webresolve/Makefile sed 's/^X//' >webresolve/Makefile << 'END-of-webresolve/Makefile' X# New ports collection makefile for: webresolve X# Date created: Wed 6 Dec 2000 X# Whom: Joseph Scott <joseph@randomnetworks.com> X# X# $FreeBSD$ X# X XPORTNAME= webresolve XPORTVERSION= 0.0.1 XCATEGORIES= www XMASTER_SITES= ftp://siag.nu/pub/webresolve/ X XMAINTAINER= joseph@randomnetworks.com X XALL_TARGET= webresolve XMAKE_ARGS= PREFIX=${PREFIX} X Xpost-install: X strip ${PREFIX}/bin/webresolve X X.include <bsd.port.mk> END-of-webresolve/Makefile echo x - webresolve/distinfo sed 's/^X//' >webresolve/distinfo << 'END-of-webresolve/distinfo' XMD5 (webresolve-0.0.1.tar.gz) = b0ecb991ebbf6b2c4cebe6e6ebfbce03 END-of-webresolve/distinfo echo x - webresolve/pkg-comment sed 's/^X//' >webresolve/pkg-comment << 'END-of-webresolve/pkg-comment' XWebresolve resolves IP addresses to host names in web log files. END-of-webresolve/pkg-comment echo x - webresolve/pkg-descr sed 's/^X//' >webresolve/pkg-descr << 'END-of-webresolve/pkg-descr' XThis program is pretty slow. Thanks to the caching, repeated visits from the Xsame address will only result in one lookup. Therefore large files will be Xprocessed proportionally faster than small ones. X XThe load from this program is very light, because it spends most of its time Xwaiting for the resolver. This also means that large files can take quite some Xtime to process. The solution is to split the log file and run several Xresolution processes in parallel. This is done by the script splitwr: X X splitwr logfile > logfile.resolved X webalizer logfile.resolved X rm logfile.resolved X XBy default, splitwr runs 20 parallel resolution processes. The number can be Xchanged by editing the script. X XWWW: http://siag.nu/webresolve/ END-of-webresolve/pkg-descr echo x - webresolve/pkg-plist sed 's/^X//' >webresolve/pkg-plist << 'END-of-webresolve/pkg-plist' Xbin/splitwr Xbin/webresolve END-of-webresolve/pkg-plist exit >Fix: >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?200012062041.eB6KfOI46845>