Name: awstats Version: 7.9 Release: %mkrel 1 Summary: Advanced Web Statistics License: GPLv2 Group: Networking/WWW URL: https://www.awstats.org/ Source0: https://prdownloads.sourceforge.net/awstats/%{name}-%{version}.tar.gz Requires: webserver BuildArch: noarch %description Advanced Web Statistics is a powerful and featureful tool that 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. This program can measure visits, unique visitors, authenticated users, pages, domains/countries, OS busiest times, robot visits, type of files, search engines/keywords used, visits duration, HTTP errors and more... Statistics can be updated from a browser or your scheduler. The program also supports virtual servers, plugins and a lot of features. %prep %autosetup -p1 # fix perms find . -type f -exec chmod 644 {} \; find . -name *.pl -exec chmod 755 {} \; rm -f wwwroot/cgi-bin/plugins/.#geoip_city_maxmind.pm.1.8 %build %install # apache configuration install -d -m 755 %{buildroot}%{_webappconfdir} cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF # Awstats configuration Alias /awstats %{_datadir}/%{name}/www <Directory %{_datadir}/%{name}/www> Require all granted Options ExecCGI AddHandler cgi-script .pl DirectoryIndex awstats.pl </Directory> SetEnv PERL5LIB %{_datadir}/%{name}/lib:%{_datadir}/%{name}/plugins EOF # cron task install -d -m 755 %{buildroot}%{_sysconfdir}/cron.daily cat > %{buildroot}%{_sysconfdir}/cron.daily/%{name} <<EOF #!/bin/sh %{_datadir}/%{name}/www/awstats.pl -config=awstats.conf -update > /dev/null EOF chmod 755 %{buildroot}%{_sysconfdir}/cron.daily/%{name} install -d -m 755 %{buildroot}%{_sysconfdir}/%{name} install -m 644 wwwroot/cgi-bin/awstats.model.conf \ %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf perl -pi \ -e 's|^LogFile=.*|LogFile="/var/log/httpd/access_log"|;' \ -e 's|^DirData=.*|DirData="/var/lib/awstats"|;' \ -e 's|^DirCgi=.*|DirCgi="/awstats"|;' \ -e 's|^DirIcons=.*|DirIcons="/awstats/icon"|;' \ -e 's|^MiscTrackerUrl=.*|MiscTrackerUrl="/awstats/js/awstats_misc_tracker.js"|;' \ %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf install -d -m 755 %{buildroot}%{_datadir}/%{name} install -d -m 755 %{buildroot}%{_datadir}/%{name}/www install -m 755 wwwroot/cgi-bin/awstats.pl %{buildroot}%{_datadir}/%{name}/www cp -r wwwroot/icon %{buildroot}%{_datadir}/%{name}/www cp -r wwwroot/css %{buildroot}%{_datadir}/%{name}/www cp -r wwwroot/js %{buildroot}%{_datadir}/%{name}/www cp -r tools %{buildroot}%{_datadir}/%{name} cp -r wwwroot/cgi-bin/lang %{buildroot}%{_datadir}/%{name} cp -r wwwroot/cgi-bin/lib %{buildroot}%{_datadir}/%{name} cp -r wwwroot/cgi-bin/plugins %{buildroot}%{_datadir}/%{name} install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name} %post if [ $1 -eq 1 ]; then perl -pi \ -e 's/SiteDomain=""/SiteDomain="'`hostname`'"/' \ %{_sysconfdir}/%{name}/%{name}.conf fi %files %doc README.md docs/* %config(noreplace) %{_webappconfdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/cron.daily/%{name} %{_datadir}/%{name} %{_localstatedir}/lib/%{name} %changelog * Sat Feb 11 2023 mrambo3501 <mrambo3501> 7.9-1.mga9 + Revision: 1940738 - version 7.9 - delete upstreamed patches 0 and 1 * Wed Dec 07 2022 ns80 <ns80> 7.8-4.mga9 + Revision: 1918896 - add a patch from Debian for CVE-2022-46391 (mga#31230) * Mon Mar 21 2022 umeabot <umeabot> 7.8-3.mga9 + Revision: 1813808 - Mageia 9 Mass Rebuild * Sun Dec 27 2020 luigiwalser <luigiwalser> 7.8-2.mga8 + Revision: 1664308 - add patch from debian to fix CVE-2020-35176 * Thu May 21 2020 shlomif <shlomif> 7.8-1.mga8 + Revision: 1586601 - New version 7.8 * Fri Feb 14 2020 umeabot <umeabot> 7.7-2.mga8 + Revision: 1520459 - Mageia 8 Mass Rebuild * Thu Nov 22 2018 kekepower <kekepower> 7.7-1.mga7 + Revision: 1333277 - Update to version 7.7 - Removed merged patches * Thu Sep 20 2018 umeabot <umeabot> 7.6-2.mga7 + Revision: 1277626 - Mageia 7 Mass Rebuild * Thu Dec 28 2017 shlomif <shlomif> 7.6-1.mga7 + Revision: 1186213 - New version 7.6 + fix mga#22275 * Tue Sep 06 2016 shlomif <shlomif> 7.5-1.mga6 + Revision: 1050269 - New version 7.5 - fixes perl warnings ( MGA#19299 ). + umeabot <umeabot> - Mageia 6 Mass Rebuild * Sun Nov 29 2015 shlomif <shlomif> 7.4-1.mga6 + Revision: 907053 - New version 7.4 * Wed Oct 15 2014 umeabot <umeabot> 7.3-3.mga5 + Revision: 744832 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 7.3-2.mga5 + Revision: 678084 - Mageia 5 Mass Rebuild * Mon Apr 28 2014 shlomif <shlomif> 7.3-1.mga5 + Revision: 618563 - New version 7.3 * Fri Oct 18 2013 umeabot <umeabot> 7.1-3.mga4 + Revision: 502983 - Mageia 4 Mass Rebuild * Fri Jan 11 2013 umeabot <umeabot> 7.1-2.mga3 + Revision: 346747 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Oct 25 2012 guillomovitch <guillomovitch> 7.1-1.mga3 + Revision: 310089 - newx version * Fri Aug 24 2012 guillomovitch <guillomovitch> 7.0-3.mga3 + Revision: 283667 - make webapp configuration file compliant with apache 2.4 * Tue Aug 14 2012 luigiwalser <luigiwalser> 7.0-2.mga3 + Revision: 281352 - rebuild for new webappconfdir location - add patch from fedora to fix various security flaws in awredir.pl (rh#740926) * Sun Feb 20 2011 dmorgan <dmorgan> 7.0-1.mga1 + Revision: 54626 - Remove mdv macros - Remove mdv macros - imported package awstats * Thu Dec 09 2010 Oden Eriksson <oeriksson@mandriva.com> 7.0-1mdv2011.0 + Revision: 617791 - 7.0 * Sun Dec 05 2010 Oden Eriksson <oeriksson@mandriva.com> 6.95-5mdv2011.0 + Revision: 610013 - rebuild * Mon Mar 01 2010 Guillaume Rousse <guillomovitch@mandriva.org> 6.95-4mdv2010.1 + Revision: 513156 - fix install dependencies * Thu Feb 04 2010 Guillaume Rousse <guillomovitch@mandriva.org> 6.95-3mdv2010.1 + Revision: 500979 - rely on filetrigger for reloading apache configuration begining with 2010.1, rpm-helper macros otherwise * Fri Dec 04 2009 Guillaume Rousse <guillomovitch@mandriva.org> 6.95-2mdv2010.1 + Revision: 473508 - install all files under %%{_datadir}/name - enforce new default access policy * Wed Nov 11 2009 Frederik Himpe <fhimpe@mandriva.org> 6.95-1mdv2010.1 + Revision: 464851 - update to new version 6.95 * Thu Sep 10 2009 Thierry Vignaud <tv@mandriva.org> 6.9-2mdv2010.0 + Revision: 436734 - rebuild * Mon Dec 29 2008 Frederik Himpe <fhimpe@mandriva.org> 6.9-1mdv2009.1 + Revision: 321199 - Update to new version 6.9 (fixes XSS vulnerability CVE-2008-3714) - Rediff configuration patch and fix a typo * Sat Aug 16 2008 Guillaume Rousse <guillomovitch@mandriva.org> 6.8-1mdv2009.0 + Revision: 272819 - new version * Wed Jul 23 2008 Thierry Vignaud <tv@mandriva.org> 6.7-3mdv2009.0 + Revision: 243097 - rebuild + Pixel <pixel@mandriva.com> - adapt to %%_localstatedir now being /var instead of /var/lib (#22312) * Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 6.7-1mdv2008.1 + Revision: 135826 - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Sat Aug 18 2007 Guillaume Rousse <guillomovitch@mandriva.org> 6.7-1mdv2008.0 + Revision: 65428 - drop eol fixing, now handled by spec-helper - new version * Wed Feb 14 2007 Guillaume Rousse <guillomovitch@mandriva.org> 6.6-1mdv2007.0 + Revision: 120982 - ooops, forgotten new sources - new version * Mon Jan 08 2007 Oden Eriksson <oeriksson@mandriva.com> 6.5-10mdv2007.1 + Revision: 106018 - make it backportable (dacapo) * Sun Jan 07 2007 Oden Eriksson <oeriksson@mandriva.com> 6.5-9mdv2007.1 + Revision: 105363 - make it backportable * Sun Jan 07 2007 Oden Eriksson <oeriksson@mandriva.com> 6.5-8mdv2007.1 + Revision: 105347 - Import awstats * Tue Sep 05 2006 Oden Eriksson <oeriksson@mandrakesoft.com> 6.5-8mdv2007.0 - revert last change, the correct fix is needed for the 2006 package * Tue Sep 05 2006 Oden Eriksson <oeriksson@mandrakesoft.com> 6.5-7mdv2007.0 - don't trash the pdf files (#22889) * Tue Sep 05 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-6mdv2007.0 - make cron task as configuration (#15701) * Thu Jul 27 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-5mdv2007.0 - fix cron task (fix #23657) * Sat Jul 01 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-4mdv2007.0 - relax buildrequires versionning * Tue Jun 27 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-3mdv2007.0 - new webapps macros - fix doc (fix #22927) - change access URL to /awstats, instead of /cgi-bin/awstats.pl - update conf patch - decompress patches * Tue May 23 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-2mdk - sanitize parameters (security fix from 6.6) - backport compatible apache configuration file * Wed Jan 11 2006 Guillaume Rousse <guillomovitch@mandriva.org> 6.5-1mdk - new version - %%mkrel * Tue Jul 05 2005 Guillaume Rousse <guillomovitch@mandriva.org> 6.4-4mdk - better fix encoding - use new apache rpm macros - fix cron task perms * Thu Jun 23 2005 Guillaume Rousse <guillomovitch@mandriva.org> 6.4-3mdk - new apache setup * Sat Mar 19 2005 Guillaume Rousse <guillomovitch@mandrake.org> 6.4-2mdk - incluse missing web files (fix bug #14788) - rediff configuration patch - fix files encoding - fix cron task shellbang * Sun Mar 06 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 6.4-1mdk - Release 6.4 - SECURITY FIX - UPGRADE IS HIGHLY RECOMMANDED * Fri Feb 18 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 6.3-2mdk - spec file cleanups, remove the ADVX-build stuff * Thu Jan 27 2005 Guillaume Rousse <guillomovitch@mandrake.org> 6.3-1mdk - new version (fix remote vulnerability) - herein document whenever possible - no more order for apache configuration - reload apache instead of restart it - don't tag executables in /etc as executables * Tue Dec 21 2004 Erwan Velu <velu@seanodes.com> 6.2-1mdk - 6.2 * Wed Jul 14 2004 Guillaume Rousse <guillomovitch@mandrake.org> 6.1-1mdk - new version - apache config file in /etc/httpd/webapps.d * Sat Jul 03 2004 Guillaume Rousse <guillomovitch@mandrake.org> 6.0-3mdk - fix perms * Sat Jul 03 2004 Guillaume Rousse <guillomovitch@mandrake.org> 6.0-2mdk - remove useless provide * Thu Feb 26 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 6.0-1mdk - Release 6.0 - Regenerate patch0 - Ensure cron file is executable