/[packages]/cauldron/squidanalyzer/current/SPECS/squidanalyzer.spec
ViewVC logotype

Contents of /cauldron/squidanalyzer/current/SPECS/squidanalyzer.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1946287 - (show annotations) (download)
Thu Mar 2 11:28:49 2023 UTC (13 months, 2 weeks ago) by danf
File size: 2329 byte(s)
Update URL to https (SILENT)
1 %define contentdir /var/www
2
3 Summary: Squid proxy log analyzer and report generator
4 Name: squidanalyzer
5 Version: 6.6
6 Release: %mkrel 3
7 License: GPLv3
8 Group: Monitoring
9 URL: https://%{name}.darold.net/
10 Source: https://prdownloads.sourceforge.net/squid-report/%{name}-%{version}.tar.gz
11 Requires: squid
12 BuildRequires: perl
13 BuildArch: noarch
14 Obsoletes: sarg < 2.3.2-7
15
16 %description
17 Squid proxy native log analyzer and reports generator with full
18 statistics about times, hits, bytes, users, networks, top URLs and
19 top domains. Statistic reports are oriented toward user and
20 bandwidth control; this is not a pure cache statistics generator.
21
22 SquidAnalyzer uses flat files to store data and doesn't need any SQL,
23 SQL Lite or Berkeley databases.
24
25 This log analyzer is incremental and should be run in a daily cron,
26 or more often with heavy proxy usage.
27
28 %prep
29
30 %setup -q
31
32 %build
33 perl Makefile.PL DESTDIR=%{buildroot} LOGFILE=%{_logdir}/squid/access.log BINDIR=%{_sbindir} HTMLDIR=%{contentdir}/html/%{name} BASEURL=/%{name} MANDIR=%{_mandir}/man3 INSTALLDIRS=vendor QUIET=yes
34
35 %make_build
36
37 %install
38 %make_install
39 install -d %{buildroot}%{_sysconfdir}/cron.daily
40 echo -e "#!/bin/sh\n%{_sbindir}/squid-analyzer" > %{buildroot}%{_sysconfdir}/cron.daily/0%{name}
41
42 rm -f %{buildroot}%{_bindir}/squid-analyzer
43
44 %files
45 %defattr(-,root,squid)
46 %doc README ChangeLog
47 %{_mandir}/man3/*
48 %{perl_vendorlib}/SquidAnalyzer.pm
49 %attr(0755,root,squid) %{_sbindir}/squid-analyzer
50 %attr(0755,root,squid) %dir %{_sysconfdir}/%{name}
51 %attr(0664,root,squid) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
52 %config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/excluded
53 %config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/included
54 %config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/network-aliases
55 %config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/user-aliases
56 %config(noreplace) %attr(0754,root,squid) %{_sysconfdir}/cron.daily/0%{name}
57 %attr(0755,root,squid) %dir %{_sysconfdir}/%{name}/lang
58 %{_sysconfdir}/%{name}/lang/*
59 %attr(0755,root,squid) %dir %{contentdir}/html/%{name}
60 %{contentdir}/html/%{name}/flotr2.js
61 %{contentdir}/html/%{name}/sorttable.js
62 %{contentdir}/html/%{name}/%{name}.css
63 %attr(0755,root,squid) %dir %{contentdir}/html/%{name}/images
64 %{contentdir}/html/%{name}/images/*.png
65

  ViewVC Help
Powered by ViewVC 1.1.30