]> git.pld-linux.org Git - packages/calamaris.git/blob - calamaris.spec
replace R /etc/cron.d with crondaemon
[packages/calamaris.git] / calamaris.spec
1 # TODO:
2 # - think about default directory for calamaris output (somwhere in /var) so
3 #   it works out-of-the-box
4 #
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        Squid and NetCache log parser and report generator
7 Summary(pl.UTF-8):      Generator raportów dla Squida i NetCache
8 Name:           calamaris
9 Version:        2.99.4.0
10 Release:        3
11 License:        GPL
12 Group:          Networking/Utilities
13 Source0:        http://cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz
14 # Source0-md5:  61d4fe8b4c00550b58dff09b643aff10
15 Source1:        %{name}.crontab
16 Source2:        %{name}.sysconfig
17 Source3:        %{name}-croniface
18 URL:            http://cord.de/tools/squid/calamaris/Welcome.html
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  sed >= 4.0
21 Requires:       /bin/zcat
22 Requires:       crondaemon
23 Requires:       setup >= 2.4.6
24 Conflicts:      logrotate < 3.7-3
25 Conflicts:      squid < 7:2.5.STABLE7-5
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
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.
33
34 %description -l pl.UTF-8
35 Calamaris generuje informacje statystyczne o pracy Squida i NetCache w
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.
38
39 %prep
40 %setup -q
41 %{__sed} -i -e 's/use ident/use the ident/' calamaris calamaris.conf
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1}
46
47 install -p %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
48 install -p calamaris $RPM_BUILD_ROOT%{_bindir}
49 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris
50 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/calamaris
51 cp -p calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc CHANGES EXAMPLES README
59 %config(noreplace) /etc/cron.d/calamaris
60 %attr(640,root,stats) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/calamaris
61 %attr(755,root,root) %{_bindir}/*
62 %attr(755,root,root) %{_sbindir}/*
63 %{_mandir}/*/*
This page took 0.0387110000000001 seconds and 3 git commands to generate.