mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
Add squidanalyzer 6.5, squid access log report generation tool.
PR: 205906 Submitted by: Dominique Goncalves <dominique.goncalves@gmail.com>
This commit is contained in:
parent
a91980ac03
commit
c2c64a7756
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=409220
@ -2067,6 +2067,7 @@
|
||||
SUBDIR += sqstat
|
||||
SUBDIR += squid
|
||||
SUBDIR += squid_radius_auth
|
||||
SUBDIR += squidanalyzer
|
||||
SUBDIR += squidclamav
|
||||
SUBDIR += squidguard
|
||||
SUBDIR += squidpurge
|
||||
|
42
www/squidanalyzer/Makefile
Normal file
42
www/squidanalyzer/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# Created by: Dominique Goncalves <dominique.goncalves@gmail.com>
|
||||
# $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 <bsd.port.mk>
|
2
www/squidanalyzer/distinfo
Normal file
2
www/squidanalyzer/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (darold-squidanalyzer-v6.5_GH0.tar.gz) = 93c51de611beff47d49b1b46aef42d1f6028366ff46ec1617a2549c3baa26053
|
||||
SIZE (darold-squidanalyzer-v6.5_GH0.tar.gz) = 157964
|
22
www/squidanalyzer/files/pkg-message.in
Normal file
22
www/squidanalyzer/files/pkg-message.in
Normal file
@ -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.
|
||||
-----------------------------------------------------------------------------
|
5
www/squidanalyzer/pkg-descr
Normal file
5
www/squidanalyzer/pkg-descr
Normal file
@ -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/
|
33
www/squidanalyzer/pkg-plist
Normal file
33
www/squidanalyzer/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user