]>
Commit | Line | Data |
---|---|---|
d836d25d | 1 | # TODO: |
daa82ad8 | 2 | # - think about default directory for calamaris output (somwhere in /var) so |
d836d25d JK |
3 | # it works out-of-the-box |
4 | # | |
daa82ad8 | 5 | %include /usr/lib/rpm/macros.perl |
4c32cf08 | 6 | Summary: Squid and NetCache log parser and report generator |
d2b1e78e | 7 | Summary(pl.UTF-8): Generator raportów dla Squida i NetCache |
4c32cf08 | 8 | Name: calamaris |
4437ae52 | 9 | Version: 2.99.4.0 |
69c2f3fb | 10 | Release: 2 |
db55c351 | 11 | License: GPL |
4c32cf08 | 12 | Group: Networking/Utilities |
4437ae52 | 13 | Source0: http://cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 61d4fe8b4c00550b58dff09b643aff10 | |
bc1ed889 | 15 | Source1: %{name}.crontab |
16 | Source2: %{name}.sysconfig | |
17 | Source3: %{name}-croniface | |
c963d7fd | 18 | URL: http://cord.de/tools/squid/calamaris/Welcome.html |
4bbfcf42 | 19 | BuildRequires: sed >= 4.0 |
4393849a | 20 | Requires: /bin/zcat |
4c32cf08 | 21 | Requires: /etc/cron.d |
22 | Requires: crontabs | |
d836d25d | 23 | Requires: setup >= 2.4.6 |
d836d25d | 24 | Conflicts: logrotate < 3.7-3 |
4bbfcf42 | 25 | Conflicts: squid < 7:2.5.STABLE7-5 |
d2b1e78e | 26 | BuildArch: noarch |
087d0757 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4c32cf08 | 28 | |
29 | %description | |
56081607 | 30 | Calamaris is statistical info generator for Squid and NetCache based |
31 | on log parsing. It can create both plain-text and HTML reports. A | |
32 | must-have for Squid/NetCache administrators. | |
4c32cf08 | 33 | |
983a603f | 34 | %description -l pl.UTF-8 |
52bd3e7f | 35 | Calamaris generuje informacje statystyczne o pracy Squida i NetCache w |
983a603f JR |
36 | oparciu o ich logi. Potrafi tworzyć raporty w postaci czystego tekstu |
37 | jak i HTML-a. Niezbędny dla administratorów Squida i NetCache. | |
4c32cf08 | 38 | |
39 | %prep | |
491907e7 | 40 | %setup -q |
4bbfcf42 | 41 | %{__sed} -i -e 's/use ident/use the ident/' calamaris calamaris.conf |
4c32cf08 | 42 | |
4c32cf08 | 43 | %install |
44 | rm -rf $RPM_BUILD_ROOT | |
59f4082a | 45 | |
4c32cf08 | 46 | install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1} |
bc1ed889 | 47 | |
4c32cf08 | 48 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris |
49 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/calamaris | |
50 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir} | |
51 | install calamaris $RPM_BUILD_ROOT%{_bindir} | |
52 | install calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
53 | ||
4c32cf08 | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
53f8a353 | 59 | %doc CHANGES EXAMPLES README |
78031f06 | 60 | %config(noreplace) /etc/cron.d/calamaris |
69c2f3fb | 61 | %attr(640,root,stats) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/calamaris |
5d8ede9b | 62 | %attr(755,root,root) %{_bindir}/* |
63 | %attr(755,root,root) %{_sbindir}/* | |
64 | %{_mandir}/*/* |