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.
I'm trying to compile the binaries on Debian Buster 10. When I'm running dpkg-buildpackage -us -uc I'm getting this error:
dpkg-buildpackage: info: source package squidanalyzer
dpkg-buildpackage: info: source version 6.6-1
dpkg-buildpackage: info: source distribution experimental
dpkg-buildpackage: info: source changed by Benjamin Renard <brenard@easter-eggs.com>
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
debian/rules clean
dh clean --with apache2
dh: Compatibility levels before 9 are deprecated (level 7 in use)
dh_clean
dh_clean: Compatibility levels before 9 are deprecated (level 7 in use)
dpkg-source -b .
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format '1.0'
dpkg-source: warning: source directory 'squidanalyzer' is not <sourcepackage>-<upstreamversion> 'squidanalyzer-6.6'
dpkg-source: info: building squidanalyzer in squidanalyzer_6.6-1.tar.gz
dpkg-source: info: building squidanalyzer in squidanalyzer_6.6-1.dsc
dpkg-source: warning: missing information for output field Standards-Version
debian/rules build
dh build --with apache2
dh: Compatibility levels before 9 are deprecated (level 7 in use)
dh_update_autotools_config
debian/rules override_dh_auto_configure
make[1]: Entering directory '/opt/devel/squid/squidanalyzer'
perl Makefile.PL \
LOGFILE=/var/log/squid3/access.log \
BINDIR=/usr/bin \
CONFDIR=/etc/squidanalyzer \
HTMLDIR=/var/lib/squidanalyzer \
BASEURL=/squidreport \
MANDIR=/usr/share/man/man3 \
DOCDIR=/usr/share/doc/squidanalyzer \
DESTDIR=/opt/devel/squid/squidanalyzer/debian/squidanalyzer
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for SquidAnalyzer
Writing MYMETA.yml and MYMETA.json
Done...
Now type 'make && make install'
make[1]: Leaving directory '/opt/devel/squid/squidanalyzer'
dh_auto_build
dh_auto_build: Compatibility levels before 9 are deprecated (level 7 in use)
make -j1
make[1]: Entering directory '/opt/devel/squid/squidanalyzer'
cp SquidAnalyzer.pm blib/lib/SquidAnalyzer.pm
cp squid-analyzer blib/script/squid-analyzer
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/squid-analyzer
Manifying 1 pod document
make[1]: Leaving directory '/opt/devel/squid/squidanalyzer'
dh_auto_test
dh_auto_test: Compatibility levels before 9 are deprecated (level 7 in use)
make -j1 test TEST_VERBOSE=1
make[1]: Entering directory '/opt/devel/squid/squidanalyzer'
No tests defined for SquidAnalyzer extension.
make[1]: Leaving directory '/opt/devel/squid/squidanalyzer'
debian/rules binary
dh binary --with apache2
dh: Compatibility levels before 9 are deprecated (level 7 in use)
dh_testroot
dh_prep
dh_auto_install
dh_auto_install: Compatibility levels before 9 are deprecated (level 7 in use)
make -j1 install DESTDIR=/opt/devel/squid/squidanalyzer/debian/squidanalyzer AM_UPDATE_INFO_DIR=no PREFIX=/usr
make[1]: Entering directory '/opt/devel/squid/squidanalyzer'
Manifying 1 pod document
Installing /opt/devel/squid/squidanalyzer/debian/squidanalyzer/usr/local/share/perl/5.28.1/SquidAnalyzer.pm
Installing /opt/devel/squid/squidanalyzer/debian/squidanalyzer/usr/local/man/man3/SquidAnalyzer.3pm
Installing /opt/devel/squid/squidanalyzer/debian/squidanalyzer/usr/local/bin/squid-analyzer
sh install_all.sh
-----------------------------------------------------------------------------
1. Modify your httpd.conf to allow access to HTML output like follow:
Alias /squidreport /var/lib/squidanalyzer
<Directory /var/lib/squidanalyzer>
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 * * * /usr/bin/squid-analyzer > /dev/null 2>&1
or run it manually. For more information, see /usr/share/doc/squidanalyzer/README file.
-----------------------------------------------------------------------------
Appending installation info to /opt/devel/squid/squidanalyzer/debian/squidanalyzer/usr/local/lib/x86_64-linux-gnu/perl/5.28.1/perllocal.pod
make[1]: Leaving directory '/opt/devel/squid/squidanalyzer'
dh_apache2
dh_apache2: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installdocs
dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installchangelogs
dh_installchangelogs: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installman
dh_installman: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installcron
dh_perl
dh_usrlocal
dh_usrlocal: debian/squidanalyzer/usr/local/bin/squid-analyzer is not a directory
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
I don't know where to fix the issue. The debian folder doesn't contain a file list which have to be added in the .deb archive.
Commit 616d742 might solve this issue, but I don't know anything in debian packaging so there could be some additional problem. At least it solves the error reported.
Hi,
I'm trying to compile the binaries on Debian Buster 10. When I'm running dpkg-buildpackage -us -uc I'm getting this error:
I don't know where to fix the issue. The debian folder doesn't contain a file list which have to be added in the .deb archive.