From owner-svn-ports-all@freebsd.org Sat Feb 20 01:01:08 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98684AAD1D0; Sat, 20 Feb 2016 01:01:08 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6E3CC1EEF; Sat, 20 Feb 2016 01:01:08 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1K117OF005001; Sat, 20 Feb 2016 01:01:07 GMT (envelope-from novel@FreeBSD.org) Received: (from novel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1K116qd004995; Sat, 20 Feb 2016 01:01:06 GMT (envelope-from novel@FreeBSD.org) Message-Id: <201602200101.u1K116qd004995@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: novel set sender to novel@FreeBSD.org using -f From: Roman Bogorodskiy Date: Sat, 20 Feb 2016 01:01:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409220 - in head/www: . squidanalyzer squidanalyzer/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 01:01:08 -0000 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 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 +# $FreeBSD$ + +PORTNAME= squidanalyzer +PORTVERSION= 6.5 +DISTVERSIONPREFIX= v +CATEGORIES= www perl5 + +MAINTAINER= dominique.goncalves@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 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 + + Options -Indexes FollowSymLinks MultiViews + AllowOverride None + Order deny,allow + Deny from all + Allow from 127.0.0.1 + +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 +@sample etc/squidreport/excluded.sample +@sample etc/squidreport/included.sample +@sample etc/squidreport/network-aliases.sample +@sample etc/squidreport/squidanalyzer.conf.sample +@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