]>
Commit | Line | Data |
---|---|---|
41124ea0 | 1 | |
2 | Summary: Advanced Web Statistics is a free powerful and featureful server log file analyzer. | |
3 | Summary(pl): Zaawansowany Analizer logow | |
4 | Name: awstats | |
5 | Version: 5.4 | |
6 | Release: 1 | |
7 | License: GPL | |
8 | Group: Applications/Internet | |
9 | ###### Unknown group! | |
10 | Source0: http://prdownloads.sourceforge.net/awstats/%{name}-%{version}.tgz | |
11 | Source1: %{name}-cron | |
12 | Patch0: %{name}_conf.patch | |
13 | URL: http://awstats.sourceforge.net | |
14 | Requires: perl | |
15 | Requires: perl-GeoIP | |
16 | Requires: perl-Time-HiRes | |
17 | Requires: perl-Storable | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | ||
22 | %define wwwdir /home/services/httpd/html | |
23 | ||
24 | %description | |
25 | Advanced Web Statistics is a powerful and featureful tool that | |
26 | generates advanced web server graphic statistics. This server log | |
27 | analyzer works from command line or as a CGI and shows you all | |
28 | information your log contains, in graphical web pages. It can analyze | |
29 | a lot of web/wap/proxy servers like Apache, IIS, Weblogic, Webstar, | |
30 | Squid, ... but also mail or ftp servers. | |
31 | ||
32 | This program can measure visits, unique vistors, authenticated users, | |
33 | pages, domains/countries, OS busiest times, robot visits, type of | |
34 | files, search engines/keywords used, visits duration, HTTP errors and | |
35 | more... Statistics can be updated from a browser or your scheduler. | |
36 | The program also supports virtual servers, plugins and a lot of | |
37 | features. | |
38 | ||
39 | %prep | |
40 | %setup -q | |
41 | %patch -p1 | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly | |
46 | install -d $RPM_BUILD_ROOT%{_bindir} | |
47 | install -d $RPM_BUILD_ROOT%{_datadir}/awstats/lang | |
48 | install -d $RPM_BUILD_ROOT%{_datadir}/awstats/lib | |
49 | install -d $RPM_BUILD_ROOT%{_datadir}/awstats/plugins/example | |
50 | install -d $RPM_BUILD_ROOT%{wwwdir}/cgi-bin | |
51 | install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/browser | |
52 | install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/clock | |
53 | install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/cpu | |
54 | install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/flags | |
55 | install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/os | |
56 | install -d $RPM_BUILD_ROOT%{wwwdir}/html/icon/other | |
57 | #mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/awstats | |
58 | ||
59 | install -m 755 tools/logresolvemerge.pl $RPM_BUILD_ROOT%{_bindir}/logresolvemerge.pl | |
60 | install -m 755 tools/awstats_buildstaticpages.pl $RPM_BUILD_ROOT%{_bindir}/awstats_buildstaticpages.pl | |
61 | install -m 755 tools/awstats_exportlib.pl $RPM_BUILD_ROOT%{_bindir}/awstats_exportlib.pl | |
62 | install -m 755 tools/awstats_updateall.pl $RPM_BUILD_ROOT%{_bindir}/awstats_updateall.pl | |
63 | install -m 755 wwwroot/cgi-bin/awstats.pl $RPM_BUILD_ROOT%{wwwdir}/cgi-bin/awstats.pl | |
64 | install -m 755 wwwroot/cgi-bin/lib/* $RPM_BUILD_ROOT%{_datadir}/awstats/lib | |
65 | install -m 755 wwwroot/cgi-bin/plugins/*.pm $RPM_BUILD_ROOT%{_datadir}/awstats/plugins | |
66 | install -m 755 wwwroot/cgi-bin/plugins/example/* $RPM_BUILD_ROOT%{_datadir}/awstats/plugins/example | |
67 | install wwwroot/cgi-bin/awstats.model.conf $RPM_BUILD_ROOT%{_sysconfdir}/awstats.conf | |
68 | install -m 444 wwwroot/icon/browser/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/browser | |
69 | install -m 444 wwwroot/icon/clock/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/clock | |
70 | install -m 444 wwwroot/icon/cpu/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/cpu | |
71 | install -m 444 wwwroot/icon/flags/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/flags | |
72 | install -m 444 wwwroot/icon/os/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/os | |
73 | install -m 444 wwwroot/icon/other/* $RPM_BUILD_ROOT%{wwwdir}/html/icon/other | |
74 | install -m 444 wwwroot/cgi-bin/lang/* $RPM_BUILD_ROOT%{_datadir}/awstats/lang | |
75 | install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/00awstats | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc README.TXT docs/* | |
83 | %config %{_sysconfdir}/awstats.conf | |
84 | %{_sysconfdir}/cron.hourly/00awstats | |
85 | %attr(755,root,root) %{_bindir}/* | |
86 | %{_datadir}/* | |
87 | %{wwwdir}/cgi-bin/* | |
88 | %{wwwdir}/html/* |