]> git.pld-linux.org Git - SPECS.git/blob - sqmgrlog.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / sqmgrlog.spec
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
3 Name:           sqmgrlog
4 Version:        2.12
5 Release:        3
6 License:        GPL
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
13 BuildRequires:  perl
14 Requires:       /bin/mail
15 Requires:       crondaemon
16 Requires:       webserver
17 Requires:       squid
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Sqmgrlog generate reports per user/ip/name from SQUID log file. The
22 reports will be generated in HTML or email.
23
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ą.
28
29 %prep
30 %setup  -q
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
33
34 %build
35 %{__aclocal}
36 %{__autoconf}
37 %configure \
38         --enable-prefix=%{_prefix} \
39         --enable-config=%{_sysconfdir}/squid/
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
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
48
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
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
This page took 1.281349 seconds and 3 git commands to generate.