2 # - /home/services/httpd ? Is it right place?
3 # - support for webapps
4 Summary: WWW server logfile analysis program
5 Summary(pl.UTF-8): Analizator logów serwera WWW
10 Group: Networking/Utilities
11 #Source0Download: http://www.analog.cx/download.html
12 Source0: http://www.analog.cx/%{name}-%{version}.tar.gz
13 # Source0-md5: 743d03a16eb8c8488205ae63cdb671cd
14 Patch0: %{name}-config.patch
16 URL: http://www.analog.cx/
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _appdir %{_datadir}/%{name}
20 %define _webapps /etc/webapps
21 %define _webapp %{name}
22 %define _sysconfdir %{_webapps}/%{_webapp}
25 WWW server logfile analysis program with lots of features.
27 %description -l pl.UTF-8
28 Analizator logów serwera WWW z wieloma opcjami.
31 Summary: Form interface to analog
32 Summary(pl.UTF-8): Interfejs w postaci formularza do analoga
33 Group: Networking/Utilities
34 Requires: %{name} = %{version}-%{release}
37 Form interface to the analog httpd log analysis program. You should
38 regenerate the form file to customize it for your server by running
39 'analog -form +O%{_appdir}/html/anlgform.html'
40 after you have modified /etc/analog.cfg.
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
45 /etc/analog.cfg poprzez wykonanie polecenia:
46 'analog -form +O%{_appdir}/html/anlgform.html'
55 CFLAGS="%{rpmcflags}" \
56 CEXTRAFLAGS="%{rpmcflags}"
59 rm -rf $RPM_BUILD_ROOT
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
64 install analog $RPM_BUILD_ROOT%{_bindir}
65 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
66 install lang/* $RPM_BUILD_ROOT%{_appdir}/lang
67 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
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
71 install analog.man $RPM_BUILD_ROOT%{_mandir}/man1/analog.1
73 touch $RPM_BUILD_ROOT%{_appdir}/html/usage/analog.html
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc docs/* lang/* examples how-to
81 %attr(755,root,root) %dir %{_appdir}/lang
82 %attr(755,root,root) %dir %{_appdir}
83 %attr(775,root,http) %dir %{_var}/lib/%{name}
85 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
86 %attr(755,root,root) %{_bindir}/analog
90 %{_appdir}/icons/*.gif
91 %{_appdir}/icons/*.png
93 %attr(755,root,root) %dir %{_appdir}/html/usage
94 %verify(not md5 mtime size) %{_appdir}/html/usage/analog.html
98 %defattr(644,root,root,755)
99 %config(noreplace) %verify(not md5 mtime size) %{_appdir}/html/usage/anlgform.html
100 %dir %{_appdir}/cgi-bin
101 %attr(755,root,root) %{_appdir}/cgi-bin/anlgform.pl