summaryrefslogtreecommitdiff
path: root/www/webstats
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-06 02:23:01 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-06 02:23:01 +0000
commit147232170171c28eed086d4c74fbb44093c3d36c (patch)
tree82865606df074ef29aa4afa27ce4815c1f289cae /www/webstats
parentUpdate to version 0.41, which contains several documentation and other (diff)
New POrt: webstats
ananlog + reportmagic automation tool PR: ports/48422 Submitted by: Kevin Golding <kevin@caomhin.demon.co.uk>
Notes
Notes: svn path=/head/; revision=90352
Diffstat (limited to 'www/webstats')
-rw-r--r--www/webstats/Makefile77
-rw-r--r--www/webstats/distinfo1
-rw-r--r--www/webstats/files/patch-aa13
-rw-r--r--www/webstats/files/patch-ab8
-rw-r--r--www/webstats/files/patch-ac9
-rw-r--r--www/webstats/files/patch-ad22
-rw-r--r--www/webstats/files/patch-ae11
-rw-r--r--www/webstats/pkg-descr4
-rw-r--r--www/webstats/pkg-message6
-rw-r--r--www/webstats/pkg-plist23
10 files changed, 174 insertions, 0 deletions
diff --git a/www/webstats/Makefile b/www/webstats/Makefile
new file mode 100644
index 000000000000..f68291325e8e
--- /dev/null
+++ b/www/webstats/Makefile
@@ -0,0 +1,77 @@
+# New ports collection makefile for: webstats
+# Date created: 12 February 2003
+# Whom: Kevin Golding <kevin@caomhin.demon.co.uk>
+#
+# $FreeBSD$
+#
+
+PORTNAME= webstats
+PORTVERSION= 0.3
+CATEGORIES= www
+MASTER_SITES= http://www.patsplanet.com/software/webstats/files/
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= kevin@caomhin.demon.co.uk
+COMMENT= Automated log file processing
+
+RUN_DEPENDS= analog:${PORTSDIR}/www/analog \
+ ${LOCALBASE}/reportmagic/rmagic.pl:${PORTSDIR}/www/reportmagic
+
+NO_BUILD= yes
+USE_PERL5= yes
+
+post-patch:
+ @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/configfiles/serverwide/webstats.ini
+ @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/configfiles/vhosts/analog.cfg
+ @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/configfiles/vhosts/rmagic.ini
+ @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/scripts/perl/webstats
+ @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/scripts/php/webstats.php
+
+do-install:
+ @${MKDIR} ${PREFIX}/webstats
+ @${MKDIR} ${PREFIX}/webstats/stuff
+ @${MKDIR} ${PREFIX}/webstats/web
+ @${MKDIR} ${PREFIX}/etc/webstats
+ @${MKDIR} ${PREFIX}/etc/webstats/vhosts
+ @${INSTALL_SCRIPT} ${WRKSRC}/scripts/perl/webstats \
+ ${PREFIX}/webstats/webstats
+ @${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/webstats.ini \
+ ${PREFIX}/etc/webstats/webstats.ini-dist
+ @${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/default.cfg \
+ ${PREFIX}/etc/webstats/default.cfg-dist
+ @${INSTALL_DATA} ${WRKSRC}/configfiles/serverwide/default.ini \
+ ${PREFIX}/etc/webstats/default.ini-dist
+ @${INSTALL_DATA} ${WRKSRC}/configfiles/vhosts/analog.cfg \
+ ${PREFIX}/etc/webstats/vhosts/analog.cfg-dist
+ @${INSTALL_DATA} ${WRKSRC}/configfiles/vhosts/rmagic.ini \
+ ${PREFIX}/etc/webstats/vhosts/rmagic.ini-dist
+ @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/webstats/README
+ @${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/webstats/INSTALL
+ @${INSTALL_DATA} ${WRKSRC}/VERSION ${PREFIX}/webstats/VERSION
+ @${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/webstats/CHANGES
+ @${INSTALL_DATA} ${WRKSRC}/docs/index.html \
+ ${PREFIX}/share/doc/webstats.html
+ @${INSTALL_DATA} ${WRKSRC}/scripts/php/bullet.gif \
+ ${PREFIX}/webstats/web/bullet.gif
+ @${INSTALL_DATA} ${WRKSRC}/scripts/php/class.inifile.php \
+ ${PREFIX}/webstats/web/class.inifile.php
+ @${INSTALL_DATA} ${WRKSRC}/scripts/php/menu.css \
+ ${PREFIX}/webstats/web/menu.css
+ @${INSTALL_DATA} ${WRKSRC}/scripts/php/webstats.php \
+ ${PREFIX}/webstats/web/webstats.php
+ @${INSTALL_DATA} ${WRKSRC}/stuff/README \
+ ${PREFIX}/webstats/stuff/README
+ @${INSTALL_DATA} ${WRKSRC}/stuff/advxsplitlogfile \
+ ${PREFIX}/webstats/stuff/advxsplitlogfile
+ @${INSTALL_DATA} ${WRKSRC}/stuff/DynamicVhosts.conf \
+ ${PREFIX}/webstats/stuff/DynamicVhosts.conf
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/www/webstats/distinfo b/www/webstats/distinfo
new file mode 100644
index 000000000000..dbd3bbdfa45f
--- /dev/null
+++ b/www/webstats/distinfo
@@ -0,0 +1 @@
+MD5 (webstats_0.3.tar.gz) = 11d66a9bc64f32799cd33daa19280e82
diff --git a/www/webstats/files/patch-aa b/www/webstats/files/patch-aa
new file mode 100644
index 000000000000..95d8991c45a9
--- /dev/null
+++ b/www/webstats/files/patch-aa
@@ -0,0 +1,13 @@
+--- configfiles/serverwide/webstats.ini Wed Sep 5 22:13:38 2001
++++ configfiles/serverwide/webstats.ini Sun Feb 16 18:08:11 2003
+@@ -6,8 +6,8 @@
+
+ [misc]
+ #where are the analog and rmagic executables?
+-ANALOG=/usr/bin/analog
+-RMAGIC=/usr/local/bin/rmagic
++ANALOG=%%PREFIX%%/bin/analog
++RMAGIC=%%PREFIX%%/reportmagic/rmagic.pl
+
+ #where should the logfile for webstats go to?
+ WEBSTATSLOG=/tmp/webstats_log
diff --git a/www/webstats/files/patch-ab b/www/webstats/files/patch-ab
new file mode 100644
index 000000000000..025da055eceb
--- /dev/null
+++ b/www/webstats/files/patch-ab
@@ -0,0 +1,8 @@
+--- configfiles/vhosts/analog.cfg Mon Jul 2 16:29:54 2001
++++ configfiles/vhosts/analog.cfg Sun Feb 16 18:09:00 2003
+@@ -14,4 +14,4 @@
+
+ #don't touch this line! it tells analog where the main configuration
+ #file is located
+-CONFIGFILE /etc/webstats/default.cfg
++CONFIGFILE %%PREFIX%%/etc/webstats/default.cfg
diff --git a/www/webstats/files/patch-ac b/www/webstats/files/patch-ac
new file mode 100644
index 000000000000..12f29c1e9105
--- /dev/null
+++ b/www/webstats/files/patch-ac
@@ -0,0 +1,9 @@
+--- configfiles/vhosts/rmagic.ini Mon Jul 2 16:29:43 2001
++++ configfiles/vhosts/rmagic.ini Sun Feb 16 18:08:38 2003
+@@ -22,5 +22,5 @@
+
+ #don't touch this line! it tells report magic where the main
+ #configuration file is located
+-Include = /etc/webstats/default.ini
++Include = %%PREFIX%%/etc/webstats/default.ini
+
diff --git a/www/webstats/files/patch-ad b/www/webstats/files/patch-ad
new file mode 100644
index 000000000000..f536815f41b8
--- /dev/null
+++ b/www/webstats/files/patch-ad
@@ -0,0 +1,22 @@
+--- scripts/perl/webstats Wed Feb 6 09:51:43 2002
++++ scripts/perl/webstats Sun Feb 16 18:09:33 2003
+@@ -42,8 +42,8 @@
+ #use strict;
+ use Config::IniFiles;
+
+-#we read variables from /etc/webstats/webstats.ini
+-$cfg = new Config::IniFiles -file => "/etc/webstats/webstats.ini";
++#we read variables from $PREFIX/etc/webstats/webstats.ini
++$cfg = new Config::IniFiles -file => "%%PREFIX%%/etc/webstats/webstats.ini";
+
+ my $VHOSTDIR=$cfg->val('rmagic', 'VHOSTDIR');
+ my $WWWDIR=$cfg->val('rmagic', 'WWWDIR');
+@@ -73,7 +73,7 @@
+ #
+ #What does it do?:
+ #
+-# if DEBUG variable in /etc/webstats/webstats.ini is set to "yes"
++# if DEBUG variable in $PREFIX/etc/webstats/webstats.ini is set to "yes"
+ # print some useful information to $WEBSTATSLOG
+ sub debug{
+ if ($DEBUG eq "yes"){
diff --git a/www/webstats/files/patch-ae b/www/webstats/files/patch-ae
new file mode 100644
index 000000000000..5c06807434de
--- /dev/null
+++ b/www/webstats/files/patch-ae
@@ -0,0 +1,11 @@
+--- scripts/php/webstats.php Sun Jul 15 21:50:15 2001
++++ scripts/php/webstats.php Sun Feb 16 18:10:25 2003
+@@ -4,7 +4,7 @@
+ <?php
+ include "class.inifile.php";
+ //we read the serverwide config file
+-$serverwideini = new IniFile("/etc/webstats/webstats.ini");
++$serverwideini = new IniFile("%%PREFIX%%/etc/webstats/webstats.ini");
+ $servername = $serverwideini->value("misc","SERVERNAME","not defined/config file not found?");
+ $vhost_directory = $serverwideini->value("rmagic","VHOSTDIR","VHOSTDIR not defined/config file not found?");
+ $logs_directory = $serverwideini->value("rmagic","LOGSDIR","LOGSDIR not defined/config file not found?");
diff --git a/www/webstats/pkg-descr b/www/webstats/pkg-descr
new file mode 100644
index 000000000000..2e01d4369410
--- /dev/null
+++ b/www/webstats/pkg-descr
@@ -0,0 +1,4 @@
+This is a port of Webstats. A set of scripts to help automate analog
+and reportmagic.
+
+WWW: http://www.patsplanet.com/
diff --git a/www/webstats/pkg-message b/www/webstats/pkg-message
new file mode 100644
index 000000000000..a3eb16ad1f0e
--- /dev/null
+++ b/www/webstats/pkg-message
@@ -0,0 +1,6 @@
+
+For information on configuration look at $PREFIX/share/doc/webstats.html
+or the author's website http://www.patsplanet.com/
+
+Files can be found in $PREFIX/webstats and $PREFIX/etc/webstats
+
diff --git a/www/webstats/pkg-plist b/www/webstats/pkg-plist
new file mode 100644
index 000000000000..df4a077978cc
--- /dev/null
+++ b/www/webstats/pkg-plist
@@ -0,0 +1,23 @@
+webstats/webstats
+etc/webstats/webstats.ini-dist
+etc/webstats/default.cfg-dist
+etc/webstats/default.ini-dist
+etc/webstats/vhosts/analog.cfg-dist
+etc/webstats/vhosts/rmagic.ini-dist
+webstats/README
+webstats/INSTALL
+webstats/VERSION
+webstats/CHANGES
+share/doc/webstats.html
+webstats/web/bullet.gif
+webstats/web/class.inifile.php
+webstats/web/menu.css
+webstats/web/webstats.php
+webstats/stuff/README
+webstats/stuff/advxsplitlogfile
+webstats/stuff/DynamicVhosts.conf
+@dirrm webstats/stuff
+@dirrm webstats/web
+@dirrm webstats
+@dirrm etc/webstats/vhosts
+@dirrm etc/webstats