]> git.pld-linux.org Git - packages/analog.git/commitdiff
- started moving to webapps
authorPaweł Gołaszewski <blues@pld-linux.org>
Thu, 9 Jul 2009 09:55:54 +0000 (09:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    TODO -> 1.1
    analog.spec -> 1.50

TODO [new file with mode: 0644]
analog.spec

diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..2312ff3
--- /dev/null
+++ b/TODO
@@ -0,0 +1,3 @@
+# TODO:
+- /home/services/httpd ? Is it right place?
+- support for webapps
index b41bec6664a1736950f47ea1373e5289e7e07b89..af8ca7f0faf99ab692bcea0fdd082a733ea9d22a 100644 (file)
@@ -1,10 +1,8 @@
-# TODO:
-# - /home/services/httpd ? Is it right place?
 Summary:       WWW server logfile analysis program
 Summary(pl.UTF-8):     Analizator logów serwera WWW
 Name:          analog
 Version:       6.0
-Release:       2
+Release:       2.1
 License:       GPL v2
 Group:         Networking/Utilities
 #Source0Download:      http://www.analog.cx/download.html
@@ -15,7 +13,10 @@ Requires:    webserver
 URL:           http://www.analog.cx/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                httpdir /home/services/httpd
+%define         _appdir         %{_datadir}/%{name}
+%define         _webapps        /etc/webapps
+%define         _webapp         %{name}
+%define         _sysconfdir     %{_webapps}/%{_webapp}
 
 %description
 WWW server logfile analysis program with lots of features.
@@ -32,14 +33,14 @@ Requires:   %{name} = %{version}-%{release}
 %description form
 Form interface to the analog httpd log analysis program. You should
 regenerate the form file to customize it for your server by running
-'analog -form +O%{httpdir}/html/anlgform.html'
+'analog -form +O%{_appdir}/html/anlgform.html'
 after you have modified /etc/analog.cfg.
 
 %description form -l pl.UTF-8
 Interfejs w postaci formularza do programu analog. Powinieneś
 wygenerować nowy plik formularza po ustawieniu odpowiednich opcji w
 /etc/analog.cfg poprzez wykonanie polecenia:
-'analog -form +O%{httpdir}/html/anlgform.html'
+'analog -form +O%{_appdir}/html/anlgform.html'
 
 %prep
 %setup  -q
@@ -53,20 +54,20 @@ wygenerować nowy plik formularza po ustawieniu odpowiednich opcji w
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{httpdir}/{icons,cgi-bin,html/usage} \
-       $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_datadir}/%{name}/lang} \
-       $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT%{_appdir}/{icons,cgi-bin,html/usage,lang} \
+       $RPM_BUILD_ROOT{%{_var}/lib/%{name},%{_bindir},%{_sysconfdir}} \
+       $RPM_BUILD_ROOT%{_mandir}/man1
 
 install analog $RPM_BUILD_ROOT%{_bindir}
 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
-install lang/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lang
+install lang/* $RPM_BUILD_ROOT%{_appdir}/lang
 install analog.cfg $RPM_BUILD_ROOT%{_sysconfdir}
-install images/* $RPM_BUILD_ROOT%{httpdir}/icons
-install anlgform.html $RPM_BUILD_ROOT%{httpdir}/html/usage
-install anlgform.pl $RPM_BUILD_ROOT%{httpdir}/cgi-bin
+install images/* $RPM_BUILD_ROOT%{_appdir}/icons
+install anlgform.html $RPM_BUILD_ROOT%{_appdir}/html/usage
+install anlgform.pl $RPM_BUILD_ROOT%{_appdir}/cgi-bin
 install analog.man $RPM_BUILD_ROOT%{_mandir}/man1/analog.1
 
-touch $RPM_BUILD_ROOT%{httpdir}/html/usage/analog.html
+touch $RPM_BUILD_ROOT%{_appdir}/html/usage/analog.html
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -74,19 +75,19 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc docs/* lang/* examples how-to
-%attr(755,root,root) %dir %{_datadir}/analog/lang
-%attr(755,root,root) %dir %{_datadir}/analog
-%attr(775,root,http) %dir /var/lib/analog
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/analog.cfg
+%attr(755,root,root) %dir %{_appdir}/lang
+%attr(755,root,root) %dir %{_appdir}
+%attr(775,root,http) %dir %{_var}/lib/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
 %attr(755,root,root) %{_bindir}/analog
-%{_datadir}/analog/lang/*.*
-%{httpdir}/icons/*.gif
-%{httpdir}/icons/*.png
-%attr(755,root,root) %dir %{httpdir}/html/usage
-%verify(not md5 mtime size) %{httpdir}/html/usage/analog.html
+%{_appdir}/lang/*.*
+%{_appdir}/icons/*.gif
+%{_appdir}/icons/*.png
+%attr(755,root,root) %dir %{_appdir}/html/usage
+%verify(not md5 mtime size) %{_appdir}/html/usage/analog.html
 %{_mandir}/man1/*.1*
 
 %files form
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{httpdir}/html/usage/anlgform.html
-%attr(755,root,root) %{httpdir}/cgi-bin/anlgform.pl
+%config(noreplace) %verify(not md5 mtime size) %{_appdir}/html/usage/anlgform.html
+%attr(755,root,root) %{_appdir}/cgi-bin/anlgform.pl
This page took 0.060077 seconds and 4 git commands to generate.