diff options
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/webstats/Makefile | 77 | ||||
-rw-r--r-- | www/webstats/distinfo | 1 | ||||
-rw-r--r-- | www/webstats/files/patch-aa | 13 | ||||
-rw-r--r-- | www/webstats/files/patch-ab | 8 | ||||
-rw-r--r-- | www/webstats/files/patch-ac | 9 | ||||
-rw-r--r-- | www/webstats/files/patch-ad | 22 | ||||
-rw-r--r-- | www/webstats/files/patch-ae | 11 | ||||
-rw-r--r-- | www/webstats/pkg-descr | 4 | ||||
-rw-r--r-- | www/webstats/pkg-message | 6 | ||||
-rw-r--r-- | www/webstats/pkg-plist | 23 |
11 files changed, 175 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 763087f..0b4b8cd 100644 --- a/www/Makefile +++ b/www/Makefile @@ -517,6 +517,7 @@ SUBDIR += weblint SUBDIR += webredirect SUBDIR += webresolve + SUBDIR += webstats SUBDIR += webstone SUBDIR += webstone-ssl SUBDIR += wml diff --git a/www/webstats/Makefile b/www/webstats/Makefile new file mode 100644 index 0000000..f682913 --- /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 0000000..dbd3bbd --- /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 0000000..95d8991 --- /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 0000000..025da05 --- /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 0000000..12f29c1 --- /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 0000000..f536815 --- /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 0000000..5c06807 --- /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 0000000..2e01d43 --- /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 0000000..a3eb16a --- /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 0000000..df4a077 --- /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 |