From owner-freebsd-ports-bugs Tue Feb 18 6:10:15 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71A3537B401 for ; Tue, 18 Feb 2003 06:10:08 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C89143F93 for ; Tue, 18 Feb 2003 06:10:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1IEA7NS009475 for ; Tue, 18 Feb 2003 06:10:07 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1IEA7TN009474; Tue, 18 Feb 2003 06:10:07 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15D9537B401 for ; Tue, 18 Feb 2003 06:05:33 -0800 (PST) Received: from kpq.caomhin.org (kpq.caomhin.org [64.49.223.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4938143F75 for ; Tue, 18 Feb 2003 06:05:32 -0800 (PST) (envelope-from kgolding@hive.beehost.net) Received: (qmail 24240 invoked by uid 89); 18 Feb 2003 14:09:07 -0000 Received: from unknown (HELO hive.beehost.net) (127.0.0.1) by localhost with DES-CBC3-SHA encrypted SMTP; 18 Feb 2003 14:09:07 -0000 Received: (from kgolding@localhost) by hive.beehost.net (8.12.6/8.12.6/Submit) id h1IE97eR024238; Tue, 18 Feb 2003 14:09:07 GMT Message-Id: <200302181409.h1IE97eR024238@hive.beehost.net> Date: Tue, 18 Feb 2003 14:09:07 GMT From: kevin@caomhin.demon.co.uk Reply-To: kevin@caomhin.demon.co.uk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/48422: New POrt: webstats Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48422 >Category: ports >Synopsis: New POrt: webstats >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 18 06:10:06 PST 2003 >Closed-Date: >Last-Modified: >Originator: Kevin Golding >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD hive.caomhin.org 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/HIVE i386 >Description: ananlog + reportmagic automation tool >How-To-Repeat: >Fix: --- webstats.shar begins here --- # 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: # # webstats # webstats/Makefile # webstats/distinfo # webstats/pkg-comment # webstats/pkg-descr # webstats/pkg-message # webstats/pkg-plist # webstats/files # webstats/files/patch-aa # webstats/files/patch-ab # webstats/files/patch-ac # webstats/files/patch-ad # webstats/files/patch-ae # echo c - webstats mkdir -p webstats > /dev/null 2>&1 echo x - webstats/Makefile sed 's/^X//' >webstats/Makefile << 'END-of-webstats/Makefile' X# New ports collection makefile for: webstats X# Date created: 12 February 2003 X# Whom: Kevin Golding X# X# $FreeBSD$ X# X XPORTNAME= webstats XPORTVERSION= 0.3 XCATEGORIES= www XMASTER_SITES= http://www.patsplanet.com/software/webstats/files/ XDISTNAME= ${PORTNAME}_${PORTVERSION} X XMAINTAINER= kevin@caomhin.demon.co.uk X XRUN_DEPENDS= analog:${PORTSDIR}/www/analog \ X ${LOCALBASE}/reportmagic/rmagic.pl:${PORTSDIR}/www/reportmagic X XNO_BUILD= yes XUSE_PERL5= yes X Xpost-patch: X @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKSRC}/configfiles/serverwide/webstats.ini X @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKSRC}/configfiles/vhosts/analog.cfg X @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKSRC}/configfiles/vhosts/rmagic.ini X @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKSRC}/scripts/perl/webstats X @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKSRC}/scripts/php/webstats.php X Xdo-install: X @${MKDIR} ${PREFIX}/webstats X @${MKDIR} ${PREFIX}/webstats/stuff X @${MKDIR} ${PREFIX}/webstats/web X @${MKDIR} ${PREFIX}/etc/webstats X @${MKDIR} ${PREFIX}/etc/webstats/vhosts X @${INSTALL_SCRIPT} ${WRKSRC}/scripts/perl/webstats \ X ${PREFIX}/webstats/webstats X @${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/webstats.ini \ X ${PREFIX}/etc/webstats/webstats.ini-dist X @${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/default.cfg \ X ${PREFIX}/etc/webstats/default.cfg-dist X @${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/default.ini \ X ${PREFIX}/etc/webstats/default.ini-dist X @${INSTALL_DATA} ${WRKSRC}/configfiles/vhosts/analog.cfg \ X ${PREFIX}/etc/webstats/vhosts/analog.cfg-dist X @${INSTALL_DATA} ${WRKSRC}/configfiles/vhosts/rmagic.ini \ X ${PREFIX}/etc/webstats/vhosts/rmagic.ini-dist X @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/webstats/README X @${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/webstats/INSTALL X @${INSTALL_DATA} ${WRKSRC}/VERSION ${PREFIX}/webstats/VERSION X @${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/webstats/CHANGES X @${INSTALL_DATA} ${WRKSRC}/docs/index.html \ X ${PREFIX}/share/doc/webstats.html X @${INSTALL_DATA} ${WRKSRC}/scripts/php/bullet.gif \ X ${PREFIX}/webstats/web/bullet.gif X @${INSTALL_DATA} ${WRKSRC}/scripts/php/class.inifile.php \ X ${PREFIX}/webstats/web/class.inifile.php X @${INSTALL_DATA} ${WRKSRC}/scripts/php/menu.css \ X ${PREFIX}/webstats/web/menu.css X @${INSTALL_DATA} ${WRKSRC}/scripts/php/webstats.php \ X ${PREFIX}/webstats/web/webstats.php X @${INSTALL_DATA} ${WRKSRC}/stuff/README \ X ${PREFIX}/webstats/stuff/README X @${INSTALL_DATA} ${WRKSRC}/stuff/advxsplitlogfile \ X ${PREFIX}/webstats/stuff/advxsplitlogfile X @${INSTALL_DATA} ${WRKSRC}/stuff/DynamicVhosts.conf \ X ${PREFIX}/webstats/stuff/DynamicVhosts.conf X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include END-of-webstats/Makefile echo x - webstats/distinfo sed 's/^X//' >webstats/distinfo << 'END-of-webstats/distinfo' XMD5 (webstats_0.3.tar.gz) = 11d66a9bc64f32799cd33daa19280e82 END-of-webstats/distinfo echo x - webstats/pkg-comment sed 's/^X//' >webstats/pkg-comment << 'END-of-webstats/pkg-comment' XAutomated log file processing END-of-webstats/pkg-comment echo x - webstats/pkg-descr sed 's/^X//' >webstats/pkg-descr << 'END-of-webstats/pkg-descr' XThis is a port of Webstats. A set of scripts to help automate analog Xand reportmagic. X XWWW: http://www.patsplanet.com/ END-of-webstats/pkg-descr echo x - webstats/pkg-message sed 's/^X//' >webstats/pkg-message << 'END-of-webstats/pkg-message' X XFor information on configuration look at $PREFIX/share/doc/webstats.html Xor the author's website http://www.patsplanet.com/ X XFiles can be found in $PREFIX/webstats and $PREFIX/etc/webstats X END-of-webstats/pkg-message echo x - webstats/pkg-plist sed 's/^X//' >webstats/pkg-plist << 'END-of-webstats/pkg-plist' Xwebstats/webstats Xetc/webstats/webstats.ini-dist Xetc/webstats/default.cfg-dist Xetc/webstats/default.ini-dist Xetc/webstats/vhosts/analog.cfg-dist Xetc/webstats/vhosts/rmagic.ini-dist Xwebstats/README Xwebstats/INSTALL Xwebstats/VERSION Xwebstats/CHANGES Xshare/doc/webstats.html Xwebstats/web/bullet.gif Xwebstats/web/class.inifile.php Xwebstats/web/menu.css Xwebstats/web/webstats.php Xwebstats/stuff/README Xwebstats/stuff/advxsplitlogfile Xwebstats/stuff/DynamicVhosts.conf X@dirrm webstats/stuff X@dirrm webstats/web X@dirrm webstats X@dirrm etc/webstats/vhosts X@dirrm etc/webstats END-of-webstats/pkg-plist echo c - webstats/files mkdir -p webstats/files > /dev/null 2>&1 echo x - webstats/files/patch-aa sed 's/^X//' >webstats/files/patch-aa << 'END-of-webstats/files/patch-aa' X--- configfiles/serverwide/webstats.ini Wed Sep 5 22:13:38 2001 X+++ configfiles/serverwide/webstats.ini Sun Feb 16 18:08:11 2003 X@@ -6,8 +6,8 @@ X X [misc] X #where are the analog and rmagic executables? X-ANALOG=/usr/bin/analog X-RMAGIC=/usr/local/bin/rmagic X+ANALOG=%%PREFIX%%/bin/analog X+RMAGIC=%%PREFIX%%/reportmagic/rmagic.pl X X #where should the logfile for webstats go to? X WEBSTATSLOG=/tmp/webstats_log END-of-webstats/files/patch-aa echo x - webstats/files/patch-ab sed 's/^X//' >webstats/files/patch-ab << 'END-of-webstats/files/patch-ab' X--- configfiles/vhosts/analog.cfg Mon Jul 2 16:29:54 2001 X+++ configfiles/vhosts/analog.cfg Sun Feb 16 18:09:00 2003 X@@ -14,4 +14,4 @@ X X #don't touch this line! it tells analog where the main configuration X #file is located X-CONFIGFILE /etc/webstats/default.cfg X+CONFIGFILE %%PREFIX%%/etc/webstats/default.cfg END-of-webstats/files/patch-ab echo x - webstats/files/patch-ac sed 's/^X//' >webstats/files/patch-ac << 'END-of-webstats/files/patch-ac' X--- configfiles/vhosts/rmagic.ini Mon Jul 2 16:29:43 2001 X+++ configfiles/vhosts/rmagic.ini Sun Feb 16 18:08:38 2003 X@@ -22,5 +22,5 @@ X X #don't touch this line! it tells report magic where the main X #configuration file is located X-Include = /etc/webstats/default.ini X+Include = %%PREFIX%%/etc/webstats/default.ini X END-of-webstats/files/patch-ac echo x - webstats/files/patch-ad sed 's/^X//' >webstats/files/patch-ad << 'END-of-webstats/files/patch-ad' X--- scripts/perl/webstats Wed Feb 6 09:51:43 2002 X+++ scripts/perl/webstats Sun Feb 16 18:09:33 2003 X@@ -42,8 +42,8 @@ X #use strict; X use Config::IniFiles; X X-#we read variables from /etc/webstats/webstats.ini X-$cfg = new Config::IniFiles -file => "/etc/webstats/webstats.ini"; X+#we read variables from $PREFIX/etc/webstats/webstats.ini X+$cfg = new Config::IniFiles -file => "%%PREFIX%%/etc/webstats/webstats.ini"; X X my $VHOSTDIR=$cfg->val('rmagic', 'VHOSTDIR'); X my $WWWDIR=$cfg->val('rmagic', 'WWWDIR'); X@@ -73,7 +73,7 @@ X # X #What does it do?: X # X-# if DEBUG variable in /etc/webstats/webstats.ini is set to "yes" X+# if DEBUG variable in $PREFIX/etc/webstats/webstats.ini is set to "yes" X # print some useful information to $WEBSTATSLOG X sub debug{ X if ($DEBUG eq "yes"){ END-of-webstats/files/patch-ad echo x - webstats/files/patch-ae sed 's/^X//' >webstats/files/patch-ae << 'END-of-webstats/files/patch-ae' X--- scripts/php/webstats.php Sun Jul 15 21:50:15 2001 X+++ scripts/php/webstats.php Sun Feb 16 18:10:25 2003 X@@ -4,7 +4,7 @@ X value("misc","SERVERNAME","not defined/config file not found?"); X $vhost_directory = $serverwideini->value("rmagic","VHOSTDIR","VHOSTDIR not defined/config file not found?"); X $logs_directory = $serverwideini->value("rmagic","LOGSDIR","LOGSDIR not defined/config file not found?"); END-of-webstats/files/patch-ae exit --- webstats.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message