avatar
Rosa has added ed4d0bac13
Automatic import for version 7.0
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "awstats-7.0.tar.gz": 733fa7d6a540f4a54f52c69a5f271c789472b0b7
view file @ ed4d0bac13
... ... --- /dev/null
... ... +++ b/awstats-6.9-better-configuration.patch
... ... @@ -0,0 +1,47 @@
1
--- awstats-6.9-orig/wwwroot/cgi-bin/awstats.model.conf	2008-10-05 13:01:32.000000000 +0200
2
+++ awstats-6.9/wwwroot/cgi-bin/awstats.model.conf	2008-12-29 20:50:47.000000000 +0100
3
@@ -48,7 +48,7 @@
4
 # If there are several log files from load balancing servers :
5
 # Example: "/pathtotools/logresolvemerge.pl *.log |"
6
 #
7
-LogFile="/var/log/httpd/mylog.log"
8
+LogFile="/var/log/httpd/access_log"
9
 
10
 
11
 # Enter the log file type you want to analyze.
12
@@ -200,7 +200,7 @@
13
 # Example: "C:/awstats_data_dir"
14
 # Default: "."          (means same directory as awstats.pl)
15
 #
16
-DirData="."
17
+DirData="/var/lib/awstats"
18
 
19
 
20
 # Relative or absolute web URL of your awstats cgi-bin directory.
21
@@ -209,7 +209,7 @@
22
 # Example: "/awstats"
23
 # Default: "/cgi-bin"   (means awstats.pl is in "/yourwwwroot/cgi-bin")
24
 #
25
-DirCgi="/cgi-bin"
26
+DirCgi="/awstats"
27
 
28
 
29
 # Relative or absolute web URL of your awstats icon directory.
30
@@ -219,7 +219,7 @@
31
 # Example: "../icon"
32
 # Default: "/icon" (means you must copy icon directories in "/mywwwroot/icon")
33
 #
34
-DirIcons="/icon"
35
+DirIcons="/awstats/icon"
36
 
37
 
38
 # When this parameter is set to 1, AWStats adds a button on report page to
39
@@ -807,7 +807,7 @@
40
 # Possible value: URL of javascript tracker file added in your HTML code.
41
 # Default: "/js/awstats_misc_tracker.js"
42
 #
43
-MiscTrackerUrl="/js/awstats_misc_tracker.js"
44
+MiscTrackerUrl="/awstats/js/awstats_misc_tracker.js"
45
 
46
 
47
 
... ... --- /dev/null
... ... +++ b/awstats.spec
... ... @@ -0,0 +1,264 @@
1
Name:		awstats
2
Version:	7.0
3
Release:	%mkrel 1
4
Summary:	Advanced Web Statistics
5
License:	GPLv2
6
Group:		Networking/WWW
7
URL:		http://awstats.sourceforge.net
8
Source0:	http://prdownloads.sourceforge.net/awstats/%{name}-%{version}.tar.gz
9
Patch0:		awstats-6.9-better-configuration.patch
10
Requires:	webserver
11
%if %mdkversion < 201010
12
Requires(post):   rpm-helper
13
Requires(postun):   rpm-helper
14
%endif
15
BuildArch:	noarch
16
BuildRoot:	%{_tmppath}/%{name}-%{version}
17
18
%description
19
Advanced Web Statistics is a powerful and featureful tool that generates
20
advanced web server graphic statistics. This server log analyzer works
21
from command line or as a CGI and shows you all information your log contains,
22
in graphical web pages. It can analyze a lot of web/wap/proxy servers like
23
Apache, IIS, Weblogic, Webstar, Squid, ... but also mail or ftp servers.
24
25
This program can measure visits, unique vistors, authenticated users, pages,
26
domains/countries, OS busiest times, robot visits, type of files, search
27
engines/keywords used, visits duration, HTTP errors and more...
28
Statistics can be updated from a browser or your scheduler.
29
The program also supports virtual servers, plugins and a lot of features.
30
31
%prep
32
%setup -q
33
%patch0 -p 1 -b .defaultconf
34
# fix perms
35
find . -type f -exec chmod 644 {} \;
36
find . -name *.pl -exec chmod 755 {} \;
37
rm -f  wwwroot/cgi-bin/plugins/.#geoip_city_maxmind.pm.1.8
38
39
%build
40
41
%install
42
rm -rf %{buildroot}
43
44
# apache configuration
45
install -d -m 755 %{buildroot}%{_webappconfdir}
46
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
47
# Awstats configuration
48
49
Alias /awstats %{_datadir}/%{name}/www
50
<Directory %{_datadir}/%{name}/www>
51
    Order allow,deny
52
    Allow from all
53
54
    Options ExecCGI
55
    AddHandler cgi-script .pl
56
    DirectoryIndex awstats.pl
57
</Directory>
58
59
SetEnv PERL5LIB %{_datadir}/%{name}/lib:%{_datadir}/%{name}/plugins
60
EOF
61
62
# cron task
63
install -d -m 755 %{buildroot}%{_sysconfdir}/cron.daily
64
cat > %{buildroot}%{_sysconfdir}/cron.daily/%{name} <<EOF
65
#!/bin/sh
66
%{_datadir}/%{name}/www/awstats.pl -config=awstats.conf -update > /dev/null
67
EOF
68
chmod 755 %{buildroot}%{_sysconfdir}/cron.daily/%{name}
69
70
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
71
install -m 644 wwwroot/cgi-bin/awstats.model.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
72
73
74
install -d -m 755 %{buildroot}%{_datadir}/%{name}
75
install -d -m 755 %{buildroot}%{_datadir}/%{name}/www
76
install -m 755 wwwroot/cgi-bin/awstats.pl %{buildroot}%{_datadir}/%{name}/www
77
cp -r wwwroot/icon %{buildroot}%{_datadir}/%{name}/www
78
cp -r wwwroot/css %{buildroot}%{_datadir}/%{name}/www
79
cp -r wwwroot/js %{buildroot}%{_datadir}/%{name}/www
80
81
cp -r tools %{buildroot}%{_datadir}/%{name}
82
cp -r wwwroot/cgi-bin/lang %{buildroot}%{_datadir}/%{name}
83
cp -r wwwroot/cgi-bin/lib %{buildroot}%{_datadir}/%{name}
84
cp -r wwwroot/cgi-bin/plugins %{buildroot}%{_datadir}/%{name}
85
86
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
87
88
%clean
89
rm -rf %{buildroot}
90
91
%post
92
if [ $1 -eq 1 ]; then
93
	perl -pi -e 's/SiteDomain=""/SiteDomain="'`hostname`'"/' %{_sysconfdir}/%{name}/%{name}.conf
94
fi
95
%if %mdkversion < 201000
96
%_post_webapp
97
%endif
98
99
%postun
100
%if %mdkversion < 201000
101
%_postun_webapp
102
%endif
103
104
%files
105
%defattr(-,root,root)
106
%doc README.TXT docs/*
107
%config(noreplace) %{_webappconfdir}/%{name}.conf
108
%config(noreplace) %{_sysconfdir}/%{name}
109
%config(noreplace) %{_sysconfdir}/cron.daily/%{name}
110
%{_datadir}/%{name}
111
%{_localstatedir}/lib/%{name}
112
113
114
%changelog
115
* Thu Dec 09 2010 Oden Eriksson <oeriksson@mandriva.com> 7.0-1mdv2011.0
116
+ Revision: 617791
117
- 7.0
118
119
* Sun Dec 05 2010 Oden Eriksson <oeriksson@mandriva.com> 6.95-5mdv2011.0
120
+ Revision: 610013
121
- rebuild
122
123
* Mon Mar 01 2010 Guillaume Rousse <guillomovitch@mandriva.org> 6.95-4mdv2010.1
124
+ Revision: 513156
125
- fix install dependencies
126
127
* Thu Feb 04 2010 Guillaume Rousse <guillomovitch@mandriva.org> 6.95-3mdv2010.1
128
+ Revision: 500979
129
- rely on filetrigger for reloading apache configuration begining with 2010.1, rpm-helper macros otherwise
130
131
* Fri Dec 04 2009 Guillaume Rousse <guillomovitch@mandriva.org> 6.95-2mdv2010.1
132
+ Revision: 473508
133
- install all files under %%{_datadir}/name
134
- enforce new default access policy
135
136
* Wed Nov 11 2009 Frederik Himpe <fhimpe@mandriva.org> 6.95-1mdv2010.1
137
+ Revision: 464851
138
- update to new version 6.95
139
140
* Thu Sep 10 2009 Thierry Vignaud <tv@mandriva.org> 6.9-2mdv2010.0
141
+ Revision: 436734
142
- rebuild
143
144
* Mon Dec 29 2008 Frederik Himpe <fhimpe@mandriva.org> 6.9-1mdv2009.1
145
+ Revision: 321199
146
- Update to new version 6.9 (fixes XSS vulnerability CVE-2008-3714)
147
- Rediff configuration patch and fix a typo
148
149
* Sat Aug 16 2008 Guillaume Rousse <guillomovitch@mandriva.org> 6.8-1mdv2009.0
150
+ Revision: 272819
151
- new version
152
153
* Wed Jul 23 2008 Thierry Vignaud <tv@mandriva.org> 6.7-3mdv2009.0
154
+ Revision: 243097
155
- rebuild
156
157
  + Pixel <pixel@mandriva.com>
158
    - adapt to %%_localstatedir now being /var instead of /var/lib (#22312)
159
160
* Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 6.7-1mdv2008.1
161
+ Revision: 135826
162
- restore BuildRoot
163
164
  + Thierry Vignaud <tv@mandriva.org>
165
    - kill re-definition of %%buildroot on Pixel's request
166
167
* Sat Aug 18 2007 Guillaume Rousse <guillomovitch@mandriva.org> 6.7-1mdv2008.0
168
+ Revision: 65428
169
- drop eol fixing, now handled by spec-helper
170
- new version
171
172
173
* Wed Feb 14 2007 Guillaume Rousse <guillomovitch@mandriva.org> 6.6-1mdv2007.0
174
+ Revision: 120982
175
- ooops, forgotten new sources
176
- new version
177
178
* Mon Jan 08 2007 Oden Eriksson <oeriksson@mandriva.com> 6.5-10mdv2007.1
179
+ Revision: 106018
180
- make it backportable (dacapo)
181
182
* Sun Jan 07 2007 Oden Eriksson <oeriksson@mandriva.com> 6.5-9mdv2007.1
183
+ Revision: 105363
184
- make it backportable
185
186
* Sun Jan 07 2007 Oden Eriksson <oeriksson@mandriva.com> 6.5-8mdv2007.1
187
+ Revision: 105347
188
- Import awstats
189
190
* Tue Sep 05 2006 Oden Eriksson <oeriksson@mandrakesoft.com> 6.5-8mdv2007.0
191
- revert last change, the correct fix is needed for the 2006 package
192
193
* Tue Sep 05 2006 Oden Eriksson <oeriksson@mandrakesoft.com> 6.5-7mdv2007.0
194
- don't trash the pdf files (#22889)
195
196
* Tue Sep 05 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-6mdv2007.0
197
- make cron task as configuration (#15701)
198
199
* Thu Jul 27 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-5mdv2007.0
200
- fix cron task (fix #23657)
201
202
* Sat Jul 01 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-4mdv2007.0
203
- relax buildrequires versionning
204
205
* Tue Jun 27 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-3mdv2007.0
206
- new webapps macros
207
- fix doc (fix #22927)
208
- change access URL to /awstats, instead of /cgi-bin/awstats.pl
209
- update conf patch
210
- decompress patches
211
212
* Tue May 23 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-2mdk
213
- sanitize parameters (security fix from 6.6)
214
- backport compatible apache configuration file
215
216
* Wed Jan 11 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-1mdk
217
- new version
218
- %%mkrel
219
220
* Tue Jul 05 2005 Guillaume Rousse <guillomovitch@mandriva.org> 6.4-4mdk 
221
- better fix encoding
222
- use new apache rpm macros
223
- fix cron task perms
224
225
* Thu Jun 23 2005 Guillaume Rousse <guillomovitch@mandriva.org> 6.4-3mdk 
226
- new apache setup
227
228
* Sat Mar 19 2005 Guillaume Rousse <guillomovitch@mandrake.org> 6.4-2mdk 
229
- incluse missing web files (fix bug #14788)
230
- rediff configuration patch
231
- fix files encoding
232
- fix cron task shellbang
233
234
* Sun Mar 06 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 6.4-1mdk 
235
- Release 6.4 - SECURITY FIX - UPGRADE IS HIGHLY RECOMMANDED
236
237
* Fri Feb 18 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 6.3-2mdk
238
- spec file cleanups, remove the ADVX-build stuff
239
240
* Thu Jan 27 2005 Guillaume Rousse <guillomovitch@mandrake.org> 6.3-1mdk 
241
- new version (fix remote vulnerability)
242
- herein document whenever possible
243
- no more order for apache configuration
244
- reload apache instead of restart it
245
- don't tag executables in /etc as executables
246
247
* Tue Dec 21 2004 Erwan Velu <velu@seanodes.com> 6.2-1mdk 
248
- 6.2
249
250
* Wed Jul 14 2004 Guillaume Rousse <guillomovitch@mandrake.org> 6.1-1mdk 
251
- new version
252
- apache config file in /etc/httpd/webapps.d
253
254
* Sat Jul 03 2004 Guillaume Rousse <guillomovitch@mandrake.org> 6.0-3mdk 
255
- fix perms
256
257
* Sat Jul 03 2004 Guillaume Rousse <guillomovitch@mandrake.org> 6.0-2mdk 
258
- remove useless provide
259
260
* Thu Feb 26 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 6.0-1mdk
261
- Release 6.0
262
- Regenerate patch0
263
- Ensure cron file is executable
264

Comments