svn commit: r409220 - in head/www: . squidanalyzer squidanalyzer/files
Roman Bogorodskiy
novel at FreeBSD.org
Sat Feb 20 01:01:08 UTC 2016
Author: novel
Date: Sat Feb 20 01:01:06 2016
New Revision: 409220
URL: https://svnweb.freebsd.org/changeset/ports/409220
Log:
Add squidanalyzer 6.5, squid access log report generation tool.
PR: 205906
Submitted by: Dominique Goncalves <dominique.goncalves at gmail.com>
Added:
head/www/squidanalyzer/
head/www/squidanalyzer/Makefile (contents, props changed)
head/www/squidanalyzer/distinfo (contents, props changed)
head/www/squidanalyzer/files/
head/www/squidanalyzer/files/pkg-message.in (contents, props changed)
head/www/squidanalyzer/pkg-descr (contents, props changed)
head/www/squidanalyzer/pkg-plist (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Sat Feb 20 00:37:10 2016 (r409219)
+++ head/www/Makefile Sat Feb 20 01:01:06 2016 (r409220)
@@ -2067,6 +2067,7 @@
SUBDIR += sqstat
SUBDIR += squid
SUBDIR += squid_radius_auth
+ SUBDIR += squidanalyzer
SUBDIR += squidclamav
SUBDIR += squidguard
SUBDIR += squidpurge
Added: head/www/squidanalyzer/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/squidanalyzer/Makefile Sat Feb 20 01:01:06 2016 (r409220)
@@ -0,0 +1,42 @@
+# Created by: Dominique Goncalves <dominique.goncalves at gmail.com>
+# $FreeBSD$
+
+PORTNAME= squidanalyzer
+PORTVERSION= 6.5
+DISTVERSIONPREFIX= v
+CATEGORIES= www perl5
+
+MAINTAINER= dominique.goncalves at gmail.com
+COMMENT= Squid access log report generation tool
+
+LICENSE= GPLv3
+
+USE_GITHUB= yes
+GH_ACCOUNT= darold
+
+MAKE_JOBS_UNSAFE=yes
+
+USE_PERL5= configure
+USES= perl5
+CONFIGURE_ENV= DESTDIR=${STAGEDIR} \
+ LOGFILE=/var/log/squid3/access.log \
+ BINDIR=${PREFIX}/bin \
+ CONFDIR=${PREFIX}/etc/squidreport \
+ HTMLDIR=${PREFIX}/www/squidreport \
+ BASEURL=/squidreport \
+ MANDIR=${PREFIX}/man/man3 \
+ DOCDIR=${PREFIX}/share/doc/squidanalyzer \
+ INSTALLDIRS=site
+ETCDIR= ${PREFIX}/etc/squidreport
+SUB_FILES= pkg-message
+
+CONF_FILES= excluded included network-aliases \
+ squidanalyzer.conf user-aliases
+
+post-install:
+.for file in ${CONF_FILES}
+ @${MV} ${STAGEDIR}${ETCDIR}/${file} \
+ ${STAGEDIR}${ETCDIR}/${file}.sample
+.endfor
+
+.include <bsd.port.mk>
Added: head/www/squidanalyzer/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/squidanalyzer/distinfo Sat Feb 20 01:01:06 2016 (r409220)
@@ -0,0 +1,2 @@
+SHA256 (darold-squidanalyzer-v6.5_GH0.tar.gz) = 93c51de611beff47d49b1b46aef42d1f6028366ff46ec1617a2549c3baa26053
+SIZE (darold-squidanalyzer-v6.5_GH0.tar.gz) = 157964
Added: head/www/squidanalyzer/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/squidanalyzer/files/pkg-message.in Sat Feb 20 01:01:06 2016 (r409220)
@@ -0,0 +1,22 @@
+-----------------------------------------------------------------------------
+1. Modify your httpd.conf to allow access to HTML output like follow:
+ Alias /squidreport %%PREFIX%%/www/squidreport
+ <Directory %%PREFIX%%/www/squidreport>
+ Options -Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ Order deny,allow
+ Deny from all
+ Allow from 127.0.0.1
+ </Directory>
+2. If necessary, give additional host access to SquidAnalyzer in httpd.conf.
+ Restart and ensure that httpd is running.
+3. Browse to http://my.host.dom/squidreport/ to ensure that things are working
+ properly.
+4. Setup a cronjob to run squid-analyzer daily:
+
+ # SquidAnalyzer log reporting daily
+ 0 2 * * * %%PREFIX%%/bin/squid-analyzer > /dev/null 2>&1
+
+or run it manually.
+For more information, see %%PREFIX%%/share/doc/squidanalyzer/README file.
+-----------------------------------------------------------------------------
Added: head/www/squidanalyzer/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/squidanalyzer/pkg-descr Sat Feb 20 01:01:06 2016 (r409220)
@@ -0,0 +1,5 @@
+Squid Analyzer parses Squid proxy access log and reports general statistics
+about hits, bytes, users, networks, top URLs, and top second level domains.
+Statistic reports are oriented toward user and bandwidth control.
+
+WWW: http://squidanalyzer.darold.net/
Added: head/www/squidanalyzer/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/squidanalyzer/pkg-plist Sat Feb 20 01:01:06 2016 (r409220)
@@ -0,0 +1,33 @@
+bin/squid-analyzer
+ at sample etc/squidreport/excluded.sample
+ at sample etc/squidreport/included.sample
+ at sample etc/squidreport/network-aliases.sample
+ at sample etc/squidreport/squidanalyzer.conf.sample
+ at sample etc/squidreport/user-aliases.sample
+etc/squidreport/lang/ca_CA.txt
+etc/squidreport/lang/cs_CZ.txt
+etc/squidreport/lang/de_DE.txt
+etc/squidreport/lang/en_US.txt
+etc/squidreport/lang/es_ES.txt
+etc/squidreport/lang/fr_FR.txt
+etc/squidreport/lang/it_IT.txt
+etc/squidreport/lang/pl_PL.txt
+etc/squidreport/lang/pt_BR.txt
+etc/squidreport/lang/ru_RU.txt
+etc/squidreport/lang/uk_UA.txt
+man/man3/squid-analyzer.3.gz
+%%SITE_PERL%%/SquidAnalyzer.pm
+%%PERL5_MAN3%%/SquidAnalyzer.3.gz
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/README
+www/squidreport/flotr2.js
+www/squidreport/images/back-arrow.png
+www/squidreport/images/cursor.png
+www/squidreport/images/domain.png
+www/squidreport/images/info.png
+www/squidreport/images/logo-squidanalyzer.png
+www/squidreport/images/network.png
+www/squidreport/images/user.png
+www/squidreport/sorttable.js
+www/squidreport/squidanalyzer.css
More information about the svn-ports-all
mailing list