# 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/files # squidanalyzer/files/pkg-message.in # 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 XUSE_GITHUB= yes XGH_ACCOUNT= darold X XMAKE_JOBS_UNSAFE=yes X XUSE_PERL5= configure XUSES= perl5 XCONFIGURE_ENV= DESTDIR=${STAGEDIR} \ X LOGFILE=/var/log/squid3/access.log \ X BINDIR=${PREFIX}/bin \ X CONFDIR=${PREFIX}/etc/squidreport \ X HTMLDIR=${PREFIX}/www/squidreport \ X BASEURL=/squidreport \ X MANDIR=${PREFIX}/man/man3 \ X DOCDIR=${PREFIX}/share/doc/squidanalyzer \ X INSTALLDIRS=site XETCDIR= ${PREFIX}/etc/squidreport XSUB_FILES= pkg-message X XCONF_FILES= excluded included network-aliases \ X squidanalyzer.conf user-aliases X Xpost-install: X.for file in ${CONF_FILES} X @${MV} ${STAGEDIR}${ETCDIR}/${file} \ X ${STAGEDIR}${ETCDIR}/${file}.sample X.endfor 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@sample etc/squidreport/excluded.sample X@sample etc/squidreport/included.sample X@sample etc/squidreport/network-aliases.sample X@sample etc/squidreport/squidanalyzer.conf.sample X@sample etc/squidreport/user-aliases.sample Xetc/squidreport/lang/ca_CA.txt Xetc/squidreport/lang/cs_CZ.txt Xetc/squidreport/lang/de_DE.txt Xetc/squidreport/lang/en_US.txt Xetc/squidreport/lang/es_ES.txt Xetc/squidreport/lang/fr_FR.txt Xetc/squidreport/lang/it_IT.txt Xetc/squidreport/lang/pl_PL.txt Xetc/squidreport/lang/pt_BR.txt Xetc/squidreport/lang/ru_RU.txt Xetc/squidreport/lang/uk_UA.txt Xman/man3/squid-analyzer.3.gz X%%SITE_PERL%%/SquidAnalyzer.pm X%%PERL5_MAN3%%/SquidAnalyzer.3.gz X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog X%%PORTDOCS%%%%DOCSDIR%%/INSTALL X%%PORTDOCS%%%%DOCSDIR%%/README Xwww/squidreport/flotr2.js Xwww/squidreport/images/back-arrow.png Xwww/squidreport/images/cursor.png Xwww/squidreport/images/domain.png Xwww/squidreport/images/info.png Xwww/squidreport/images/logo-squidanalyzer.png Xwww/squidreport/images/network.png Xwww/squidreport/images/user.png Xwww/squidreport/sorttable.js Xwww/squidreport/squidanalyzer.css d0764bb3125dfc6911742e5164c93149 echo c - squidanalyzer/files mkdir -p squidanalyzer/files > /dev/null 2>&1 echo x - squidanalyzer/files/pkg-message.in sed 's/^X//' >squidanalyzer/files/pkg-message.in << 'e095ff7b9b108c448c8e02c68d9621c7' X----------------------------------------------------------------------------- X1. Modify your httpd.conf to allow access to HTML output like follow: X Alias /squidreport %%PREFIX%%/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 * * * %%PREFIX%%/bin/squid-analyzer > /dev/null 2>&1 X Xor run it manually. XFor more information, see %%PREFIX%%/share/doc/squidanalyzer/README file. X----------------------------------------------------------------------------- e095ff7b9b108c448c8e02c68d9621c7 exit