]>
Commit | Line | Data |
---|---|---|
6ea78620 PG |
1 | # TODO: |
2 | # - /home/services/httpd ? Is it right place? | |
e52bcb7f | 3 | Summary: WWW server logfile analysis program |
26042930 | 4 | Summary(pl.UTF-8): Analizator logów serwera WWW |
e52bcb7f | 5 | Name: analog |
b2abf420 | 6 | Version: 6.0 |
6ea78620 PG |
7 | Release: 2 |
8 | License: GPL v2 | |
5631abdc | 9 | Group: Networking/Utilities |
5f7055bf | 10 | #Source0Download: http://www.analog.cx/download.html |
102c7ee2 | 11 | Source0: http://www.analog.cx/%{name}-%{version}.tar.gz |
b2abf420 | 12 | # Source0-md5: 743d03a16eb8c8488205ae63cdb671cd |
5631abdc | 13 | Patch0: %{name}-config.patch |
31d968d9 | 14 | Requires: webserver |
951d6c09 | 15 | URL: http://www.analog.cx/ |
50fdd08d | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e52bcb7f | 17 | |
4f9c355e | 18 | %define httpdir /home/services/httpd |
19 | ||
e52bcb7f AM |
20 | %description |
21 | WWW server logfile analysis program with lots of features. | |
22 | ||
da20e503 JR |
23 | %description -l pl.UTF-8 |
24 | Analizator logów serwera WWW z wieloma opcjami. | |
e52bcb7f AM |
25 | |
26 | %package form | |
27 | Summary: Form interface to analog | |
26042930 | 28 | Summary(pl.UTF-8): Interfejs w postaci formularza do analoga |
5631abdc | 29 | Group: Networking/Utilities |
4f9c355e | 30 | Requires: %{name} = %{version}-%{release} |
e52bcb7f AM |
31 | |
32 | %description form | |
50aea922 | 33 | Form interface to the analog httpd log analysis program. You should |
e52bcb7f | 34 | regenerate the form file to customize it for your server by running |
b9c85bcd | 35 | 'analog -form +O%{httpdir}/html/anlgform.html' |
6ea78620 | 36 | after you have modified /etc/analog.cfg. |
e52bcb7f | 37 | |
da20e503 JR |
38 | %description form -l pl.UTF-8 |
39 | Interfejs w postaci formularza do programu analog. Powinieneś | |
40 | wygenerować nowy plik formularza po ustawieniu odpowiednich opcji w | |
6ea78620 | 41 | /etc/analog.cfg poprzez wykonanie polecenia: |
b9c85bcd | 42 | 'analog -form +O%{httpdir}/html/anlgform.html' |
e52bcb7f AM |
43 | |
44 | %prep | |
42263ca7 | 45 | %setup -q |
bf5d9ba8 | 46 | %patch0 -p1 |
e52bcb7f AM |
47 | |
48 | %build | |
40fc916e | 49 | %{__make} %{name} \ |
08952047 | 50 | CC="%{__cc}" \ |
40fc916e PG |
51 | CFLAGS="%{rpmcflags}" \ |
52 | CEXTRAFLAGS="%{rpmcflags}" | |
e52bcb7f AM |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
4f9c355e | 56 | install -d $RPM_BUILD_ROOT%{httpdir}/{icons,cgi-bin,html/usage} \ |
50aea922 | 57 | $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_datadir}/%{name}/lang} \ |
6ea78620 | 58 | $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man1} |
e52bcb7f | 59 | |
5631abdc | 60 | install analog $RPM_BUILD_ROOT%{_bindir} |
50aea922 | 61 | install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg |
62 | install lang/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lang | |
63 | install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir} | |
4f9c355e | 64 | install images/* $RPM_BUILD_ROOT%{httpdir}/icons |
65 | install anlgform.html $RPM_BUILD_ROOT%{httpdir}/html/usage | |
66 | install anlgform.pl $RPM_BUILD_ROOT%{httpdir}/cgi-bin | |
6ea78620 | 67 | install analog.man $RPM_BUILD_ROOT%{_mandir}/man1/analog.1 |
e52bcb7f | 68 | |
4f9c355e | 69 | touch $RPM_BUILD_ROOT%{httpdir}/html/usage/analog.html |
e52bcb7f | 70 | |
e52bcb7f AM |
71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
6ea78620 | 76 | %doc docs/* lang/* examples how-to |
e52bcb7f AM |
77 | %attr(755,root,root) %dir %{_datadir}/analog/lang |
78 | %attr(755,root,root) %dir %{_datadir}/analog | |
91ae0950 | 79 | %attr(775,root,http) %dir /var/lib/analog |
16287192 | 80 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/analog.cfg |
fa7cd8f2 | 81 | %attr(755,root,root) %{_bindir}/analog |
da2dfa19 | 82 | %{_datadir}/analog/lang/*.* |
4f9c355e | 83 | %{httpdir}/icons/*.gif |
84 | %{httpdir}/icons/*.png | |
85 | %attr(755,root,root) %dir %{httpdir}/html/usage | |
16287192 | 86 | %verify(not md5 mtime size) %{httpdir}/html/usage/analog.html |
6ea78620 | 87 | %{_mandir}/man1/*.1* |
e52bcb7f | 88 | |
8f92d056 | 89 | %files form |
90 | %defattr(644,root,root,755) | |
16287192 | 91 | %config(noreplace) %verify(not md5 mtime size) %{httpdir}/html/usage/anlgform.html |
4f9c355e | 92 | %attr(755,root,root) %{httpdir}/cgi-bin/anlgform.pl |