]> git.pld-linux.org Git - packages/calamaris.git/blob - calamaris.spec
6b5f4037162d4f5c84ae981b49ed7c1564dc98d4
[packages/calamaris.git] / calamaris.spec
1 Summary:        Squid and NetCache log parser and report generator
2 Summary(pl):    Generator raportów dla Squid'a i NetCache
3 Name:           calamaris
4 Version:        2.35
5 Release:        2
6 License:        GPL
7 Group:          Networking/Utilities
8 Group(de):      Netzwerkwesen/Werkzeuge
9 Group(pl):      Sieciowe/Narzêdzia
10 Source0:        http://Cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz
11 Source1:        %{name}.crontab
12 Source2:        %{name}.sysconfig
13 Source3:        %{name}-croniface
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Prereq:         /sbin/chkconfig
16 Requires:       /etc/cron.d
17 Requires:       crontabs
18 Requires:       /bin/zcat
19
20 %description
21 Calamaris is statistical info generator for Squid and NetCache based
22 on log parsing. It can create both plain-text and HTML reports. A
23 must-have for Squid/NetCache administrators.
24
25 %description -l pl
26 Calamaris generuje informacje statystyczne o pracy Squid'a i NetCache
27 w oparciu o ich logi. Potrafi tworzyæ raporty w postaci czystego
28 tekstu jak i HTML. Niezbêdny dla administratorów Squid'a i NetCache.
29
30 %prep
31 %setup -q -a 0
32
33 %build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1}
38
39 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris
40 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/calamaris
41 install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
42 install calamaris $RPM_BUILD_ROOT%{_bindir}
43 install calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1
44
45 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/*/* \
46         CHANGES COPYRIGHT EXAMPLES README
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc *.gz
54 %attr(750,root,root) /etc/cron.d/calamaris
55 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/calamaris
56 %attr(755,root,root) %{_bindir}/*
57 %attr(755,root,root) %{_sbindir}/*
58 %{_mandir}/*/*
This page took 0.028479 seconds and 2 git commands to generate.