"Fossies" - the Fresh Open Source Software Archive

Member "squidanalyzer-6.6/packaging/RPM/squidanalyzer.spec" (7 May 2017, 2719 Bytes) of package /linux/privat/squidanalyzer-6.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "squidanalyzer.spec": 6.5_vs_6.6.

    1 %define contentdir /var/www
    2 
    3 Summary:    Squid proxy log analyzer and report generator
    4 Name:       squidanalyzer
    5 Version:    6.6
    6 Release:    1
    7 License:    GPLv3
    8 Group:      Monitoring
    9 URL:        http://%{name}.darold.net/
   10 Source:     http://prdownloads.sourceforge.net/squid-report/%{name}-%{version}.tar.gz
   11 BuildRequires:  perl
   12 BuildArch:  noarch
   13 
   14 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
   15 BuildRequires: perl-ExtUtils-MakeMaker, perl-ExtUtils-Install, perl-ExtUtils-Manifest, perl-ExtUtils-ParseXS, perl-Time-HiRes
   16 BuildRequires: gdbm-devel, libdb-devel, perl-devel, systemtap-sdt-devel
   17 
   18 %description
   19 Squid proxy native log analyzer and reports generator with full
   20 statistics about times, hits, bytes, users, networks, top URLs and
   21 top domains. Statistic reports are oriented toward user and
   22 bandwidth control; this is not a pure cache statistics generator.
   23 
   24 SquidAnalyzer uses flat files to store data and doesn't need any SQL,
   25 SQL Lite or Berkeley databases.
   26 
   27 This log analyzer is incremental and should be run in a daily cron,
   28 or more often with heavy proxy usage.
   29 
   30 %prep
   31 
   32 %setup -q
   33 
   34 %build
   35 perl Makefile.PL DESTDIR=%{buildroot} LOGFILE=%{_logdir}/squid/access.log BINDIR=%{_bindir} HTMLDIR=%{contentdir}/html/%{name} BASEURL=/%{name} MANDIR=%{_mandir}/man3 QUIET=yes
   36 
   37 make
   38 
   39 %install
   40 rm -rf %{buildroot}
   41 
   42 make DESTDIR=%{buildroot} install
   43 install etc/* %{buildroot}%{_sysconfdir}/%{name}/
   44 install -d %{buildroot}%{_sysconfdir}/cron.daily
   45 echo -e "#!/bin/sh\n%{_bindir}/squid-analyzer" > %{buildroot}%{_sysconfdir}/cron.daily/0%{name}
   46 
   47 
   48 %files
   49 %defattr(-,root,root)
   50 %doc README ChangeLog
   51 %{_mandir}/man3/*
   52 %{perl_vendorlib}/SquidAnalyzer.pm
   53 %attr(0755,root,root) %{_bindir}/squid-analyzer
   54 %attr(0755,root,root) %{_libdir}/perl5/perllocal.pod
   55 %attr(0755,root,root) %{_libdir}/perl5/vendor_perl/auto/SquidAnalyzer/.packlist
   56 %attr(0755,root,root) %dir %{_sysconfdir}/%{name}
   57 %attr(0664,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
   58 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}/excluded
   59 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}/included
   60 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}/network-aliases
   61 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}/user-aliases
   62 %config(noreplace) %attr(0754,root,root) %{_sysconfdir}/cron.daily/0%{name}
   63 %attr(0755,root,root) %dir %{_sysconfdir}/%{name}/lang
   64 %{_sysconfdir}/%{name}/lang/*
   65 %attr(0755,root,root) %dir %{contentdir}/html/%{name}
   66 %{contentdir}/html/%{name}/flotr2.js
   67 %{contentdir}/html/%{name}/sorttable.js
   68 %{contentdir}/html/%{name}/%{name}.css
   69 %attr(0755,root,root) %dir %{contentdir}/html/%{name}/images
   70 %{contentdir}/html/%{name}/images/*.png
   71 
   72 %clean
   73 rm -rf %{buildroot}
   74