diff --git a/.gitignore b/.gitignore index ed55366..f81cfd7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ awstats-7.0.tar.gz /awstats-7.4.tar.gz /awstats-7.6.tar.gz /awstats-7.7.tar.gz +/awstats-7.8.tar.gz diff --git a/awstats.spec b/awstats.spec index 2a64c1f..379aa2c 100644 --- a/awstats.spec +++ b/awstats.spec @@ -1,21 +1,19 @@ Name: awstats -Version: 7.7 -Release: 1.1%{?dist} +Version: 7.8 +Release: 1%{?dist} Summary: Advanced Web Statistics License: GPLv3+ -Group: Applications/Internet URL: http://awstats.sourceforge.net Source0: http://downloads.sourceforge.net/project/awstats/AWStats/%{version}/awstats-%{version}.tar.gz Source1: %{name}.cron Patch0: awstats-awredir.pl-sanitize-parameters.patch -%if 0%{?rhel} == 7 || 0%{?fedora} + +%if 0%{?rhel} >= 7 || 0%{?fedora} # fix configuration for httpd 2.4 (#871366) Patch1: awstats-7.0-httpd-2.4.patch %endif -Patch2: awstats-awstats_path.patch - # distribution specific definitions %define use_systemd (0%{?fedora} || 0%{?rhel} >= 7) @@ -27,7 +25,7 @@ BuildRequires: perl BuildRequires: perl-generators BuildRequires: recode Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -Requires: perl-Net-IP, perl-Net-DNS +Requires: perl-Net-IP, perl-Net-DNS, perl-Geo-IP Requires: crontabs Requires(post): perl @@ -45,15 +43,15 @@ Provides: awstats-selinux = %{version}-%{release} %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. +Advanced Web Statistics is a powerful and full-featured tool that generates +advanced web server graphical statistics. This server log analyzer works +from the command line or as a CGI and shows all information your log contains, +in graphical web pages. It can analyze a lot of web/wap/proxy servers such as +Apache, IIS, Weblogic, Webstar, Squid, ... but also mail or FTP servers. -This program can measure visits, unique vistors, authenticated users, pages, +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... +engines/keywords used, visit 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. @@ -64,10 +62,9 @@ http://localhost/awstats/awstats.pl %prep %setup -q %patch0 -p 1 -%if 0%{?rhel} == 7 || 0%{?fedora} +%if 0%{?rhel} >= 7 || 0%{?fedora} %patch1 -p 1 %endif -%patch2 -p 1 # Fix style sheets. perl -pi -e 's,/icon,/awstatsicons,g' wwwroot/css/* @@ -78,7 +75,8 @@ find tools/xslt -type f | xargs chmod -x perl -pi -e 's/\r//g' docs/COPYING.TXT docs/LICENSE.TXT docs/pad_awstats.xml docs/awstats_changelog.txt docs/styles.css tools/httpd_conf tools/logresolvemerge.pl tools/awstats_exportlib.pl tools/awstats_buildstaticpages.pl tools/maillogconvert.pl tools/urlaliasbuilder.pl wwwroot/cgi-bin/awredir.pl # Encoding recode ISO-8859-1..UTF-8 docs/awstats_changelog.txt - +# Stray version control file +rm -f tools/webmin/.gitignore %install rm -rf $RPM_BUILD_ROOT @@ -118,9 +116,9 @@ perl -pi -e ' ' $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/%{name}.model.conf install -p -m 644 $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/%{name}.{model,localhost.localdomain}.conf -# Fix scripts +# Fix AWStats path in scripts perl -pi -e 's|/usr/local/awstats|%{_datadir}/awstats|g' \ - $RPM_BUILD_ROOT%{_datadir}/%{name}/tools/{*.pl} + $RPM_BUILD_ROOT%{_datadir}/%{name}/tools/*.pl # Apache configuration install -p -m 644 tools/httpd_conf $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/%{name}.conf @@ -132,13 +130,10 @@ install -m 0750 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/%{name} # https://bugzilla.redhat.com/show_bug.cgi?id=1196549 cd $RPM_BUILD_ROOT%{_datadir}/%{name}/wwwroot/icon for i in browser/adobe.png browser/seamonkey.png os/win*.png os/macos*.png cpu/intel.png cpu/ibm.png; do - cp -v os/unknown.png $i + cp -v os/unknown.png $i done cd - -%clean -rm -rf $RPM_BUILD_ROOT - %post if [ $1 -eq 1 ]; then @@ -161,7 +156,6 @@ fi %files -%defattr(-,root,root,755) # Apache configuration file %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %config(noreplace) %attr(750,root,root) %{_sysconfdir}/cron.hourly/%{name} @@ -184,6 +178,9 @@ fi %changelog +* Fri Aug 07 2020 Tim Jackson - 7.8-1 +- Version 7.8 + * Mon Aug 26 2019 Petr Lautrbach - 7.7-1.1 - version 7.7 diff --git a/sources b/sources index a8fba76..318d463 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (awstats-7.7.tar.gz) = 8bf32b0650ef0cc900a16eead866da3847d81c2696e7a90fb49833679c958768833d781e5b4becd9b4f6748c7266e2887ff7ff33d98293ce3a0296a810fbe899 +SHA512 (awstats-7.8.tar.gz) = b532f74a8b420841b1ae7eea73fd341049925af01688a06114f53807c14c6a4edc4ca4f671b2b9c1aee8024ba25ccf69b6eae391250e5722d2fd719de4cf87e2