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