From 092b870d26c42007fc5efa325c289c7de3fc2170 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 11 Aug 2016 18:33:26 +0200 Subject: [PATCH] Add initial Debian package build files --- debian/.gitignore | 4 ++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 18 ++++++++++++++++++ debian/copyright | 4 ++++ debian/rules | 15 +++++++++++++++ debian/squidanalyzer.apache2 | 1 + debian/squidanalyzer.conf | 6 ++++++ debian/squidanalyzer.cron.daily | 2 ++ 9 files changed, 56 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/squidanalyzer.apache2 create mode 100644 debian/squidanalyzer.conf create mode 100755 debian/squidanalyzer.cron.daily diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..33b3f68 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,4 @@ +squidanalyzer +*.debhelper* +squidanalyzer.substvars +files diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d1742b4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +squidanalyzer (6.5-1) experimental; urgency=low + + - Initial Debian package release + + -- Benjamin Renard Thu, 11 Aug 2016 12:09:18 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4007bb3 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: squidanalyzer +Section: admin +Priority: extra +Maintainer: Gilles Darold + +Package: squidanalyzer +Architecture: all +Description: Squid proxy log analyzer and report generator + Squid proxy native log analyzer and reports generator with full + statistics about times, hits, bytes, users, networks, top URLs and + top domains. Statistic reports are oriented toward user and + bandwidth control; this is not a pure cache statistics generator. + . + SquidAnalyzer uses flat files to store data and doesn't need any SQL, + SQL Lite or Berkeley databases. + . + This log analyzer is incremental and should be run in a daily cron, + or more often with heavy proxy usage. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7f3e819 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,4 @@ +Copyright (c) 2001-2016 Gilles DAROLD + +This package is free software and published under the GPL v3 or above +license. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1ab71d0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +%: + dh $@ --with apache2 + +override_dh_auto_configure: + 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=$(CURDIR)/debian/squidanalyzer diff --git a/debian/squidanalyzer.apache2 b/debian/squidanalyzer.apache2 new file mode 100644 index 0000000..d2810c9 --- /dev/null +++ b/debian/squidanalyzer.apache2 @@ -0,0 +1 @@ +conf debian/squidanalyzer.conf diff --git a/debian/squidanalyzer.conf b/debian/squidanalyzer.conf new file mode 100644 index 0000000..164fc79 --- /dev/null +++ b/debian/squidanalyzer.conf @@ -0,0 +1,6 @@ +Alias /squidreport /var/lib/squidanalyzer + + Options -Indexes +FollowSymLinks +MultiViews + AllowOverride None + Require ip 127.0.0.1 + diff --git a/debian/squidanalyzer.cron.daily b/debian/squidanalyzer.cron.daily new file mode 100755 index 0000000..c023a7c --- /dev/null +++ b/debian/squidanalyzer.cron.daily @@ -0,0 +1,2 @@ +#!/bin/sh +/usr/bin/squid-analyzer