1 Summary: Sqmgrlog generate reports per user/ip/name from SQUID log file
2 Summary(pl.UTF-8): Sqmgrlog generuje raporty na podstawie logów SQUIDa
7 Group: Networking/Utilities
8 Source0: http://web.onda.com.br/orso/%{name}-%{version}.tar.gz
9 # Source0-md5: 5ea6cce40796fca8c1dd8bf03b9b3e13
10 URL: http://web.onda.com.br/orso/
11 BuildRequires: autoconf
12 BuildRequires: automake
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Sqmgrlog generate reports per user/ip/name from SQUID log file. The
22 reports will be generated in HTML or email.
24 %description -l pl.UTF-8
25 Sqmgrlog generuje raporty według użytkownika/numeru IP/nazwy hosta
26 korzystając z logów SQUIDa. Raporty mogą generowane w HTML lub
27 wysyłane pocztą elektroniczną.
31 perl -pi -e "s;/usr/local/squid/logs/access.log;/var/log/squid/access.log;" *.c
32 perl -pi -e "s;/usr/local/etc/httpd/htdocs/squid-reports;/home/services/httpd/html/squid-reports;" *.c
38 --enable-prefix=%{_prefix} \
39 --enable-config=%{_sysconfdir}/squid/
43 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{cron.d,squid},%{_sbindir},/home/services/httpd/html/squid-reports}
46 install sqmgrlog $RPM_BUILD_ROOT%{_sbindir}
47 install sqmgrlog.conf $RPM_BUILD_ROOT%{_sysconfdir}/squid
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc CONTRIBUTORS ChangeLog README
56 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/squid/sqmgrlog.conf
57 %attr(755,root,root) %{_sbindir}/*
58 %dir /home/services/httpd/html/squid-reports