Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2003 00:58:08 +0800 (CST)
From:      HHCHANG <sexbear@tmu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/54508: New port: www/pwebstats 
Message-ID:  <200307151658.h6FGw8Iv076923@freebsd.netlab.cse.yzu.edu.tw>
Resent-Message-ID: <200307151700.h6FH0fsj076816@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         54508
>Category:       ports
>Synopsis:       New port: www/pwebstats
>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 Jul 15 10:00:36 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     HSIN-HSIUNG CHANG <sexbear@tmu.edu.tw>
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD freebsd.netlab.cse.yzu.edu.tw 4.8-STABLE FreeBSD 4.8-STABLE #0: Wed May 28 03:46:24 CST 2003 statue@freebsd.netlab.cse.yzu.edu.tw:/usr/src/sys/compile/statue i386


	
>Description:
pwebstats will analyse a web server log in Common Log Format, or proxy server log, producing a variety of statistics. The output is a series of HTML pages and graphs.
	
>How-To-Repeat:
	
>Fix:

	

--- pwebstats.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:
#
#	/usr/ports/www/pwebstats
#	/usr/ports/www/pwebstats/Makefile
#	/usr/ports/www/pwebstats/pkg-descr
#	/usr/ports/www/pwebstats/pkg-plist
#	/usr/ports/www/pwebstats/distinfo
#	/usr/ports/www/pwebstats/pkg-message
#	/usr/ports/www/pwebstats/files
#	/usr/ports/www/pwebstats/files/patch-aa
#
echo c - /usr/ports/www/pwebstats
mkdir -p /usr/ports/www/pwebstats > /dev/null 2>&1
echo x - /usr/ports/www/pwebstats/Makefile
sed 's/^X//' >/usr/ports/www/pwebstats/Makefile << 'END-of-/usr/ports/www/pwebstats/Makefile'
X# New ports collection makefile for:    pwebstats
X# Date created:         13.07.2003
X# Whom:                 HSIN-HSIUNG CHANG <sexbear@tmu.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pwebstats
XPORTVERSION=	1.3.8
XCATEGORIES=	www
XMASTER_SITES=	ftp://ftp.psg.com/pub/pwebstats/
X
XMAINTAINER=	sexbear@tmu.edu.tw
XCOMMENT=	Analyse a web server log
X
XRUN_DEPENDS=	fly:${PORTSDIR}/graphics/fly
X
XUSE_PERL5=	yes
X
XNO_BUILD=	yes
X
Xdo-install:
X	${MKDIR} ${PREFIX}/etc/pwebstats/
X	${CP} -R ${WRKSRC}/* ${PREFIX}/etc/pwebstats/
X	${MV} "${PREFIX}/etc/pwebstats/templates/images/'.gif" ${PREFIX}/etc/pwebstats/templates/images/10.gif
X	${MV} "${PREFIX}/etc/pwebstats/templates/images/dates/'.gif" ${PREFIX}/etc/pwebstats/templates/images/dates/10.gif
X	${RM} ${PREFIX}/etc/pwebstats/pwebstats.orig
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-/usr/ports/www/pwebstats/Makefile
echo x - /usr/ports/www/pwebstats/pkg-descr
sed 's/^X//' >/usr/ports/www/pwebstats/pkg-descr << 'END-of-/usr/ports/www/pwebstats/pkg-descr'
Xpwebstats will analyse a web server log in Common Log Format, or proxy server 
Xlog, producing a variety of statistics. The output is a series of HTML pages 
Xand graphs.
X
X-- HSIN-HSIUNG CHANG <sexbear@tmu.edu.tw>
END-of-/usr/ports/www/pwebstats/pkg-descr
echo x - /usr/ports/www/pwebstats/pkg-plist
sed 's/^X//' >/usr/ports/www/pwebstats/pkg-plist << 'END-of-/usr/ports/www/pwebstats/pkg-plist'
Xetc/pwebstats/README
Xetc/pwebstats/conf/proxy.conf
Xetc/pwebstats/conf/pwebstats.conf
Xetc/pwebstats/conf/pwebstats.pages
Xetc/pwebstats/conf/squid-proxy.conf
Xetc/pwebstats/pwebstats
Xetc/pwebstats/templates/domains/domains.txt
Xetc/pwebstats/templates/footer.html
Xetc/pwebstats/templates/images/10.gif
Xetc/pwebstats/templates/images/0.gif
Xetc/pwebstats/templates/images/1.gif
Xetc/pwebstats/templates/images/2.gif
Xetc/pwebstats/templates/images/3.gif
Xetc/pwebstats/templates/images/4.gif
Xetc/pwebstats/templates/images/5.gif
Xetc/pwebstats/templates/images/6.gif
Xetc/pwebstats/templates/images/7.gif
Xetc/pwebstats/templates/images/8.gif
Xetc/pwebstats/templates/images/9.gif
Xetc/pwebstats/templates/images/Apr.gif
Xetc/pwebstats/templates/images/Aug.gif
Xetc/pwebstats/templates/images/Dec.gif
Xetc/pwebstats/templates/images/Feb.gif
Xetc/pwebstats/templates/images/Jan.gif
Xetc/pwebstats/templates/images/Jul.gif
Xetc/pwebstats/templates/images/Jun.gif
Xetc/pwebstats/templates/images/Mar.gif
Xetc/pwebstats/templates/images/May.gif
Xetc/pwebstats/templates/images/Nov.gif
Xetc/pwebstats/templates/images/Oct.gif
Xetc/pwebstats/templates/images/Sep.gif
Xetc/pwebstats/templates/images/dates/10.gif
Xetc/pwebstats/templates/images/dates/0.gif
Xetc/pwebstats/templates/images/dates/1.gif
Xetc/pwebstats/templates/images/dates/2.gif
Xetc/pwebstats/templates/images/dates/3.gif
Xetc/pwebstats/templates/images/dates/4.gif
Xetc/pwebstats/templates/images/dates/5.gif
Xetc/pwebstats/templates/images/dates/6.gif
Xetc/pwebstats/templates/images/dates/7.gif
Xetc/pwebstats/templates/images/dates/8.gif
Xetc/pwebstats/templates/images/dates/9.gif
Xetc/pwebstats/templates/images/dates/apr.gif
Xetc/pwebstats/templates/images/dates/aug.gif
Xetc/pwebstats/templates/images/dates/dec.gif
Xetc/pwebstats/templates/images/dates/feb.gif
Xetc/pwebstats/templates/images/dates/jan.gif
Xetc/pwebstats/templates/images/dates/jul.gif
Xetc/pwebstats/templates/images/dates/jun.gif
Xetc/pwebstats/templates/images/dates/mar.gif
Xetc/pwebstats/templates/images/dates/may.gif
Xetc/pwebstats/templates/images/dates/nov.gif
Xetc/pwebstats/templates/images/dates/oct.gif
Xetc/pwebstats/templates/images/dates/sep.gif
Xetc/pwebstats/templates/images/domain_template.gif
Xetc/pwebstats/templates/images/growth_template.gif
Xetc/pwebstats/templates/images/growth_template_proxy.gif
Xetc/pwebstats/templates/images/hourly_template.gif
Xetc/pwebstats/templates/images/i_daily.gif
Xetc/pwebstats/templates/images/i_monthly.gif
Xetc/pwebstats/templates/images/i_quarterly.gif
Xetc/pwebstats/templates/images/i_weekly.gif
Xetc/pwebstats/templates/images/r_day.gif
Xetc/pwebstats/templates/images/r_fortnight.gif
Xetc/pwebstats/templates/images/r_month.gif
Xetc/pwebstats/templates/images/r_quarter.gif
Xetc/pwebstats/templates/images/r_week.gif
Xetc/pwebstats/templates/images/r_year.gif
Xetc/pwebstats/templates/images/requests_per_day.gif
Xetc/pwebstats/templates/images/valid_html.gif
Xetc/pwebstats/templates/old-images/0.gif
Xetc/pwebstats/templates/old-images/1.gif
Xetc/pwebstats/templates/old-images/2.gif
Xetc/pwebstats/templates/old-images/3.gif
Xetc/pwebstats/templates/old-images/4.gif
Xetc/pwebstats/templates/old-images/5.gif
Xetc/pwebstats/templates/old-images/6.gif
Xetc/pwebstats/templates/old-images/7.gif
Xetc/pwebstats/templates/old-images/8.gif
Xetc/pwebstats/templates/old-images/9.gif
Xetc/pwebstats/utilities/ftp-log-convert
Xetc/pwebstats/utilities/log-splitter.pl
Xetc/pwebstats/utilities/ns-splitter.pl
Xetc/pwebstats/utilities/rotatelogs.sh
Xetc/pwebstats/utilities/run-up.sh
Xetc/pwebstats/utilities/squid2common.pl
X@dirrm etc/pwebstats/utilities
X@dirrm etc/pwebstats/templates/old-images
X@dirrm etc/pwebstats/templates/images/dates
X@dirrm etc/pwebstats/templates/images
X@dirrm etc/pwebstats/templates/domains
X@dirrm etc/pwebstats/templates
X@dirrm etc/pwebstats/conf
X@dirrm etc/pwebstats
END-of-/usr/ports/www/pwebstats/pkg-plist
echo x - /usr/ports/www/pwebstats/distinfo
sed 's/^X//' >/usr/ports/www/pwebstats/distinfo << 'END-of-/usr/ports/www/pwebstats/distinfo'
XMD5 (pwebstats-1.3.8.tar.gz) = f7d0bbc56b701dbd129cbb1c00ff6c57
END-of-/usr/ports/www/pwebstats/distinfo
echo x - /usr/ports/www/pwebstats/pkg-message
sed 's/^X//' >/usr/ports/www/pwebstats/pkg-message << 'END-of-/usr/ports/www/pwebstats/pkg-message'
X
X---------------------------------------------------------------
XYou need to configure the conf/pwebstats.conf.
Xhttp://martin.gleeson.com/pwebstats/running.html#config
X---------------------------------------------------------------
X
END-of-/usr/ports/www/pwebstats/pkg-message
echo c - /usr/ports/www/pwebstats/files
mkdir -p /usr/ports/www/pwebstats/files > /dev/null 2>&1
echo x - /usr/ports/www/pwebstats/files/patch-aa
sed 's/^X//' >/usr/ports/www/pwebstats/files/patch-aa << 'END-of-/usr/ports/www/pwebstats/files/patch-aa'
X--- pwebstats.orig	Tue Jul 15 01:35:07 2003
X+++ pwebstats	Tue Jul 15 01:35:59 2003
X@@ -414,8 +414,8 @@
X 		$date_num_size{$num} = &get_width("$image_templates/dates/$num.gif");
X 	}
X 
X-	$num_size{'\''} = &get_width("$image_templates/\'.gif");
X-	$date_num_size{'\''} = &get_width("$image_templates/dates/\'.gif");
X+	$num_size{'\''} = &get_width("$image_templates/10.gif");
X+	$date_num_size{'\''} = &get_width("$image_templates/dates/10.gif");
X 
X 	foreach $mon ( keys(%months) ) {
X 		$mon_size{$mon} = &get_width("$image_templates/$mon.gif");
X@@ -2264,7 +2264,7 @@
X 	print "copy 10,214,0,0,24,16,$image_templates/dates/$mon.gif\n";
X 	($y1,$y2) = $yea =~ m/^\d\d(.)(.)$/;
X 	$x = 34;
X-	printf "copy $x,214,0,0,%s,16,$image_templates/dates/'.gif\n", $date_num_size{"'"};
X+	printf "copy $x,214,0,0,%s,16,$image_templates/dates/10.gif\n", $date_num_size{"'"};
X 	$x += $date_num_size{"'"};
X 	printf "copy $x,214,0,0,%s,16,$image_templates/dates/$y1.gif\n", $date_num_size{"$y1"};
X 	$x += $date_num_size{$y1};
X@@ -2276,7 +2276,7 @@
X 	print "copy 397,214,0,0,24,16,$image_templates/dates/$mon.gif\n";
X 	($y1,$y2) = $yea =~ m/^\d\d(.)(.)$/;
X 	$x = 423;
X-	printf "copy $x,214,0,0,%s,16,$image_templates/dates/'.gif\n", $date_num_size{"'"};
X+	printf "copy $x,214,0,0,%s,16,$image_templates/dates/10101010101010101010.gif\n", $date_num_size{"'"};
X 	$x += $date_num_size{"'"};
X 	printf "copy $x,214,0,0,%s,16,$image_templates/dates/$y1.gif\n", $date_num_size{"$y1"};
X 	$x += $date_num_size{$y1};
X@@ -2456,7 +2456,7 @@
X 	print "copy 10,214,0,0,24,16,$image_templates/dates/$mon.gif\n";
X 	($y1,$y2) = $yea =~ m/^\d\d(.)(.)$/;
X 	$x = 34;
X-	printf "copy $x,214,0,0,%s,16,$image_templates/dates/'.gif\n", $date_num_size{"'"};
X+	printf "copy $x,214,0,0,%s,16,$image_templates/dates/10.gif\n", $date_num_size{"'"};
X 	$x += $date_num_size{"'"};
X 	printf "copy $x,214,0,0,%s,16,$image_templates/dates/$y1.gif\n", $date_num_size{"$y1"};
X 	$x += $date_num_size{$y1};
X@@ -2468,7 +2468,7 @@
X 	print "copy 397,214,0,0,24,16,$image_templates/dates/$mon.gif\n";
X 	($y1,$y2) = $yea =~ m/^\d\d(.)(.)$/;
X 	$x = 423;
X-	printf "copy $x,214,0,0,%s,16,$image_templates/dates/'.gif\n", $date_num_size{"'"};
X+	printf "copy $x,214,0,0,%s,16,$image_templates/dates/10.gif\n", $date_num_size{"'"};
X 	$x += $date_num_size{"'"};
X 	printf "copy $x,214,0,0,%s,16,$image_templates/dates/$y1.gif\n", $date_num_size{"$y1"};
X 	$x += $date_num_size{$y1};
END-of-/usr/ports/www/pwebstats/files/patch-aa
exit
--- pwebstats.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307151658.h6FGw8Iv076923>