# 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: # # squidanalyzer # squidanalyzer/Makefile # squidanalyzer/distinfo # squidanalyzer/pkg-descr # squidanalyzer/pkg-plist # squidanalyzer/pkg-message # echo c - squidanalyzer mkdir -p squidanalyzer > /dev/null 2>&1 echo x - squidanalyzer/Makefile sed 's/^X//' >squidanalyzer/Makefile << 'c1fe955005200a0ecfda9bfdcb8cf6f3' X# Created by: Dominique Goncalves X# $FreeBSD$ X XPORTNAME= squidanalyzer XPORTVERSION= 6.5 XDISTVERSIONPREFIX= v XCATEGORIES= www perl5 X XMAINTAINER= dominique.goncalves@gmail.com XCOMMENT= Squid access log report generation tool X XLICENSE= GPLv3 X XEXTRACT_SUFFIX= .tar.gz XUSE_GITHUB= yes XGH_ACCOUNT= darold X XMAKE_JOBS_UNSAFE=yes X XUSE_PERL5= configure XUSES= perl5 XCONFIGURE_ARGS+=LOGFILE=/var/log/squid3/access.log \ X BINDIR=${LOCALBASE}/bin \ X CONFDIR=${LOCALBASE}/etc \ X HTMLDIR=${LOCALBASE}/www/squidreport \ X BASEURL=/squidreport \ X MANDIR=${LOCALBASE}/man/man3 \ X DOCDIR=${LOCALBASE}/share/doc/squidanalyzer \ X INSTALLDIRS=site \ X X.include c1fe955005200a0ecfda9bfdcb8cf6f3 echo x - squidanalyzer/distinfo sed 's/^X//' >squidanalyzer/distinfo << 'f3293510238a02e8a4bf843c230886dc' XSHA256 (darold-squidanalyzer-v6.5_GH0.tar.gz) = 93c51de611beff47d49b1b46aef42d1f6028366ff46ec1617a2549c3baa26053 XSIZE (darold-squidanalyzer-v6.5_GH0.tar.gz) = 157964 f3293510238a02e8a4bf843c230886dc echo x - squidanalyzer/pkg-descr sed 's/^X//' >squidanalyzer/pkg-descr << 'b6ed058481a706c5ef561fae2b066495' XSquid Analyzer parses Squid proxy access log and reports general statistics Xabout hits, bytes, users, networks, top URLs, and top second level domains. XStatistic reports are oriented toward user and bandwidth control. X XWWW: http://squidanalyzer.darold.net/ b6ed058481a706c5ef561fae2b066495 echo x - squidanalyzer/pkg-plist sed 's/^X//' >squidanalyzer/pkg-plist << 'd0764bb3125dfc6911742e5164c93149' Xbin/squid-analyzer X%%SITE_PERL%%/SquidAnalyzer.pm X%%PERL5_MAN3%%/SquidAnalyzer.3.gz d0764bb3125dfc6911742e5164c93149 echo x - squidanalyzer/pkg-message sed 's/^X//' >squidanalyzer/pkg-message << 'b5c4956b4bfb535c9c616a823ba2ac62' X----------------------------------------------------------------------------- X1. Modify your httpd.conf to allow access to HTML output like follow: X Alias /squidreport ${LOCALBASE}/www/squidreport X X Options -Indexes FollowSymLinks MultiViews X AllowOverride None X Order deny,allow X Deny from all X Allow from 127.0.0.1 X X2. If necessary, give additional host access to SquidAnalyzer in httpd.conf. X Restart and ensure that httpd is running. X3. Browse to http://my.host.dom/squidreport/ to ensure that things are working X properly. X4. Setup a cronjob to run squid-analyzer daily: X X # SquidAnalyzer log reporting daily X 0 2 * * * ${LOCALBASE}/bin/squid-analyzer > /dev/null 2>&1 X Xor run it manually. XFor more information, see ${LOCALBASE}/share/doc/squidanalyzer/README file. X----------------------------------------------------------------------------- b5c4956b4bfb535c9c616a823ba2ac62 exit