update to 2.23.08 [release 2.23.08-1mamba;Sun Mar 28 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 19:12:20 +01:00
parent ad66240bcf
commit ec9709c636
2 changed files with 46 additions and 11 deletions

View File

@ -0,0 +1,33 @@
diff -u new/dns_resolv.c new.1/dns_resolv.c
--- new/dns_resolv.c 2013-02-26 05:37:27.000000000 +0000
+++ new.1/dns_resolv.c 2016-04-05 06:57:30.827715718 +0000
@@ -886,7 +886,7 @@
/* kludge for IPv6 6to4 (RFC3056) */
if (addr[0]==0x20 && addr[1]==0x02)
{
- memcpy(&addr[12],&addr[2],4);
+ memmove(&addr[12],&addr[2],4);
memset(&addr,0,12);
}
diff -u new/preserve.c new.1/preserve.c
--- new/preserve.c 2013-02-26 05:37:27.000000000 +0000
+++ new.1/preserve.c 2016-04-05 06:56:39.023080706 +0000
@@ -109,7 +109,7 @@
yr = hist[i].year;
mth= hist[i].month+1;
if (mth>12) { mth=1; yr++; }
- memcpy(&hist[0], &hist[1], sizeof(hist[0])*i);
+ memmove(&hist[0], &hist[1], sizeof(hist[0])*i);
memset(&hist[i], 0, sizeof(struct hist_rec));
hist[i].year=yr; hist[i].month=mth; n--;
}
@@ -277,7 +277,7 @@
yr = hist[i].year;
mth= hist[i].month+1;
if (mth>12) { mth=1; yr++; }
- memcpy(&hist[0],&hist[1],sizeof(hist[0])*i);
+ memmove(&hist[0],&hist[1],sizeof(hist[0])*i);
memset(&hist[i], 0, sizeof(struct hist_rec));
hist[i].year=yr; hist[i].month=mth; n--;
}

View File

@ -1,39 +1,37 @@
%define pkgmajver %(echo %version | cut -d. -f1-2)
%define pkgminver %(echo %version | cut -d. -f3)
Name: webalizer
Version: 2.23.05
Version: 2.23.08
Release: 1mamba
Summary: A fast, free web server log file analysis program.
Summary: A fast, free web server log file analysis program
Group: Applications/Web
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://webalizer.miscellaneousmirror.org/
Source: http://archive.mgm51.com/mirrors/webalizer-files/webalizer-%{pkgmajver}-%{pkgminver}-src.tar.bz2
URL: http://www.webalizer.org/
Source: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{pkgmajver}-%{pkgminver}-src.tgz
Source1: webalizer-conf
Source2: webalizer-crond
Patch0: webalizer-2.23.08-memmove.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: apache-devel
BuildRequires: glibc-devel
BuildRequires: libdb47-devel
BuildRequires: libdb53-devel
BuildRequires: libgd-devel
BuildRequires: libpng-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The Webalizer is a fast, free web server log file analysis program.
It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser.
%prep
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%setup -q -n webalizer-%{pkgmajver}-%{pkgminver}
%patch0 -p1
%build
./configure \
--bindir=%{_bindir} \
--mandir=%{_mandir}/man1 \
@ -41,8 +39,9 @@ It produces highly detailed, easily configurable usage reports in HTML format, f
--with-etcdir=%{_sysconfdir}/httpd \
--with-languare=italian \
--enable-dns \
--with-dblib=/usr/lib/ \
--with-db=/usr/include
--with-dblib=%{_libdir} \
--with-db=/usr/include/db53 \
CFLAGS="%{optflags} -fcommon"
make
@ -75,6 +74,9 @@ ln -s webalizer %{buildroot}%{_bindir}/webazolver
%dir %{_localstatedir}/www/html/webalizer
%changelog
* Sun Mar 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.23.08-1mamba
- update to 2.23.08
* Tue Apr 10 2012 Automatic Build System <autodist@mambasoft.it> 2.23.05-1mamba
- update to 2.23.05