]> git.pld-linux.org Git - packages/awstats.git/blobdiff - awstats.spec
- Apache configuration for awstats
[packages/awstats.git] / awstats.spec
index 6b5e3015d5344459605d69d9af5cb9a1270472ed..ec289b6ed26ddc5d661ae7b0c7dac24f5421ff60 100644 (file)
@@ -1,23 +1,24 @@
-
-Summary:       Advanced Web Statistics is a free powerful and featureful server log file analyzer.
-Summary(pl):   Zaawansowany Analizer logow
+%include       /usr/lib/rpm/macros.perl
+Summary:       Advanced Web Statistics is a free powerful server log file analyzer
+Summary(pl):   Zaawansowany program do analizowania logów serwera
 Name:          awstats
-Version:       5.4
+Version:       6.5
 Release:       1
 License:       GPL
 Group:         Applications/Networking
-Source0:       http://dl.sourceforge.net/awstats/%{name}-%{version}.tgz
+Source0:       http://awstats.sourceforge.net/files/%{name}-%{version}.tgz
+# Source0-md5: 8a4a5f1ad25c45c324182ba369893a5a
 Source1:       %{name}-cron
 Patch0:                %{name}_conf.patch
 URL:           http://awstats.sourceforge.net/
-Requires:      perl
-Requires:      perl-GeoIP
+BuildRequires: rpm-perlprov
+Requires:      perl-Geo-IP
 Requires:      perl-Time-HiRes
 Requires:      perl-Storable
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define wwwdir /home/services/httpd/html
+%define                wwwdir  /home/services/httpd
 
 %description
 Advanced Web Statistics is a powerful and featureful tool that
@@ -25,7 +26,7 @@ generates advanced web server graphic statistics. This server log
 analyzer works from command line or as a CGI and shows you all
 information your log contains, in graphical web pages. It can analyze
 a lot of web/wap/proxy servers like Apache, IIS, Weblogic, Webstar,
-Squid, ... but also mail or ftp servers.
+Squid, ... but also mail or FTP servers.
 
 This program can measure visits, unique vistors, authenticated users,
 pages, domains/countries, OS busiest times, robot visits, type of
@@ -34,43 +35,51 @@ more... Statistics can be updated from a browser or your scheduler.
 The program also supports virtual servers, plugins and a lot of
 features.
 
+%description -l pl
+awstats (Advanced Web Statistics - zaawansowane statystyki WWW) to
+potê¿ne i bogate w mo¿liwo¶ci narzêdzie generuj±ce zaawansowane
+graficzne statystyki serwera WWW. Ten analizator logów serwera
+dzia³a z linii poleceñ lub jako CGI i pokazuje wszystkie informacje
+zawarte w logu w postaci graficznych stron WWW. Mo¿e analizowaæ logi
+wielu serwerów WWW/WAP/proxy, takich jak Apache, IIS, Weblogic,
+Webstar, Squid... ale tak¿e serwerów pocztowych lub FTP.
+
+Ten program mo¿e mierzyæ odwiedziny, odwiedzaj±cych, uwierzytelnionych
+u¿ytkowników, strony, domeny/kraje, najbardziej zajête godziny,
+odwiedziny robotów, rodzaje plików, u¿ywane wyszukiwarki i s³owa
+kluczowe, czasy trwania odwiedzin, b³êdy HTTP... a nawet wiêcej.
+Statystyki mog± byæ uaktualniane z przegl±darki lub schedulera.
+Program obs³uguje tak¿e serwery wirtualne, wtyczki i wiele innych
+rzeczy.
+
 %prep
 %setup -q
-%patch -p1
+%patch -p0
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT%{_datadir}/awstats/lang
-install -d $RPM_BUILD_ROOT%{_datadir}/awstats/lib
-install -d $RPM_BUILD_ROOT%{_datadir}/awstats/plugins/example
-install -d $RPM_BUILD_ROOT%{wwwdir}/cgi-bin
-install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/browser
-install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/clock
-install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/cpu
-install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/flags
-install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/os
-install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/other
-#mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/awstats
+install -d $RPM_BUILD_ROOT{/etc/cron.hourly,%{_bindir}} \
+       $RPM_BUILD_ROOT%{_datadir}/awstats/{lang,lib,plugins/example} \
+       $RPM_BUILD_ROOT%{wwwdir}/{cgi-bin,html/icon/{browser,clock,cpu,flags,mime,os,other}}
 
-install -m 755 tools/logresolvemerge.pl $RPM_BUILD_ROOT%{_bindir}/logresolvemerge.pl
-install -m 755 tools/awstats_buildstaticpages.pl $RPM_BUILD_ROOT%{_bindir}/awstats_buildstaticpages.pl
-install -m 755 tools/awstats_exportlib.pl $RPM_BUILD_ROOT%{_bindir}/awstats_exportlib.pl
-install -m 755 tools/awstats_updateall.pl $RPM_BUILD_ROOT%{_bindir}/awstats_updateall.pl
-install -m 755 wwwroot/cgi-bin/awstats.pl $RPM_BUILD_ROOT%{wwwdir}/cgi-bin/awstats.pl
-install -m 755 wwwroot/cgi-bin/lib/* $RPM_BUILD_ROOT%{_datadir}/awstats/lib
-install -m 755 wwwroot/cgi-bin/plugins/*.pm $RPM_BUILD_ROOT%{_datadir}/awstats/plugins
-install -m 755 wwwroot/cgi-bin/plugins/example/* $RPM_BUILD_ROOT%{_datadir}/awstats/plugins/example
+install tools/logresolvemerge.pl $RPM_BUILD_ROOT%{_bindir}/logresolvemerge.pl
+install tools/awstats_buildstaticpages.pl $RPM_BUILD_ROOT%{_bindir}/awstats_buildstaticpages.pl
+install tools/awstats_exportlib.pl $RPM_BUILD_ROOT%{_bindir}/awstats_exportlib.pl
+install tools/awstats_updateall.pl $RPM_BUILD_ROOT%{_bindir}/awstats_updateall.pl
+install wwwroot/cgi-bin/awstats.pl $RPM_BUILD_ROOT%{wwwdir}/cgi-bin/awstats.pl
+install wwwroot/cgi-bin/lib/* $RPM_BUILD_ROOT%{_datadir}/awstats/lib
+install wwwroot/cgi-bin/plugins/*.pm $RPM_BUILD_ROOT%{_datadir}/awstats/plugins
+install wwwroot/cgi-bin/plugins/example/* $RPM_BUILD_ROOT%{_datadir}/awstats/plugins/example
 install wwwroot/cgi-bin/awstats.model.conf $RPM_BUILD_ROOT%{_sysconfdir}/awstats.conf
-install -m 444 wwwroot/icon/browser/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/browser
-install -m 444 wwwroot/icon/clock/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/clock
-install -m 444 wwwroot/icon/cpu/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/cpu
-install -m 444 wwwroot/icon/flags/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/flags
-install -m 444 wwwroot/icon/os/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/os
-install -m 444 wwwroot/icon/other/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/other
-install -m 444 wwwroot/cgi-bin/lang/* $RPM_BUILD_ROOT%{_datadir}/awstats/lang
-install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/00awstats
+install wwwroot/icon/browser/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/browser
+install wwwroot/icon/clock/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/clock
+install wwwroot/icon/cpu/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/cpu
+install wwwroot/icon/flags/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/flags
+install wwwroot/icon/mime/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/mime
+install wwwroot/icon/os/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/os
+install wwwroot/icon/other/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/other
+cp -a wwwroot/cgi-bin/lang/* $RPM_BUILD_ROOT%{_datadir}/awstats/lang
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.hourly/00awstats
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -78,9 +87,9 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.TXT docs/*
-%config %{_sysconfdir}/awstats.conf
-%{_sysconfdir}/cron.hourly/00awstats
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/awstats.conf
+%attr(750,root,root) /etc/cron.hourly/00awstats
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/*
-%{wwwdir}/cgi-bin/*
+%{_datadir}/%{name}
+%attr(750,root,http) %{wwwdir}/cgi-bin/*
 %{wwwdir}/html/*
This page took 0.075017 seconds and 4 git commands to generate.