|
|
@ -1,135 +1,87 @@
|
|
|
|
%global _hardened_build 0
|
|
|
|
%global _hardened_build 1
|
|
|
|
# https://github.com/varnishcache/varnish-cache/issues/2269
|
|
|
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
# https://github.com/varnishcache/varnish-cache/issues/2269
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
|
|
|
%global _use_internal_dependency_generator 0
|
|
|
|
%global _use_internal_dependency_generator 0
|
|
|
|
%global __find_provides %{_builddir}/%{name}-%{version}/find-provides %__find_provides
|
|
|
|
%global __find_provides %{_builddir}/%{name}-%{version}/find-provides %__find_provides
|
|
|
|
%global __python /usr/bin/python3.4
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%global __python %{__python3}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global __provides_exclude_from ^%{_libdir}/varnish/vmods
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global abi 17c51b08e037fc8533fb3687a042a867235fc72f
|
|
|
|
|
|
|
|
%global vrt 13.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Package scripts are now external
|
|
|
|
# Package scripts are now external
|
|
|
|
# https://github.com/varnishcache/pkg-varnish-cache
|
|
|
|
# https://github.com/varnishcache/pkg-varnish-cache
|
|
|
|
%global commit1 ec7ad9e6c6dd7c9b4f4ba60c5b223376908c3ca6
|
|
|
|
%global commit1 0ad2f22629c4a368959c423a19e352c9c6c79682
|
|
|
|
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
|
|
|
|
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2} == %{with python3}
|
|
|
|
|
|
|
|
%error Pick exactly one Python version
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Summary: High-performance HTTP accelerator
|
|
|
|
Summary: High-performance HTTP accelerator
|
|
|
|
Name: varnish
|
|
|
|
Name: varnish
|
|
|
|
Version: 6.6.2
|
|
|
|
Version: 6.0.13
|
|
|
|
Release: 4%{?dist}.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
URL: https://www.varnish-cache.org/
|
|
|
|
URL: https://www.varnish-cache.org/
|
|
|
|
Source0: http://varnish-cache.org/_downloads/%{name}-%{version}.tgz
|
|
|
|
Source0: http://varnish-cache.org/_downloads/%{name}-%{version}%{?vd_rc}.tgz
|
|
|
|
Source1: https://github.com/varnishcache/pkg-varnish-cache/archive/%{commit1}.tar.gz#/pkg-varnish-cache-%{shortcommit1}.tar.gz
|
|
|
|
Source1: https://github.com/varnishcache/pkg-varnish-cache/archive/%{commit1}.tar.gz#/pkg-varnish-cache-%{shortcommit1}.tar.gz
|
|
|
|
|
|
|
|
Patch1: varnish-5.1.1.fix_ld_library_path_in_doc_build.patch
|
|
|
|
|
|
|
|
Patch4: varnish-4.0.3_fix_varnish4_selinux.el6.patch
|
|
|
|
|
|
|
|
Patch9: varnish-5.1.1.fix_python_version.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Patches:
|
|
|
|
# https://github.com/varnishcache/varnish-cache/commit/5220c394232c25bb7a807a35e7394059ecefa821#diff-2279587378a4426edde05f42e1acca5e
|
|
|
|
# Patch 001: Because of Fedora's libtool no-rpath requirement, it is still
|
|
|
|
Patch11: varnish-6.0.0.fix_el6_fortify_source.patch
|
|
|
|
# necessary to add LD_LIBRARY_PATH when building the documentation
|
|
|
|
|
|
|
|
# (Fixed by using LT_SYS_LIBRARY_PATH)
|
|
|
|
|
|
|
|
#Patch1: varnish-6.1.1_fix_ld_library_path_in_doc_build.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 004: varnish selinux support for el6
|
|
|
|
|
|
|
|
#Patch4: varnish-4.0.3_fix_varnish4_selinux.el6.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 009: Hard code older python support in configure for older el releases
|
|
|
|
|
|
|
|
#Patch9: varnish-5.1.1.fix_python_version.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 012: Fix test for variants of ncurses, based on upstream commit 9bdc5f75, upstream issue #2668
|
|
|
|
|
|
|
|
#Patch12: varnish-6.0.1_fix_bug2668.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 013: Just a simple format error
|
|
|
|
|
|
|
|
#Patch13: varnish-6.1.0_fix_testu00008.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 014: Another formatting error fixed upstream, issue 2879
|
|
|
|
|
|
|
|
#Patch14: varnish-6.1.1_fix_upstrbug_2879.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 015: pcre-jit fixed upstream, issue #2912
|
|
|
|
|
|
|
|
#Patch15: varnish-6.1.1_fix_issue_2912.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 016: Fix some warnings that prohibited clean -Werror compilation
|
|
|
|
# Security patches ...
|
|
|
|
# on el6. Will not be fixed upstream. Patch grows more stupid
|
|
|
|
# Patch100: varnish-6.0.13.CVE-.....patch
|
|
|
|
# for each iteration :-(
|
|
|
|
|
|
|
|
#Patch16: varnish-6.5.0_el6_fix_warning_from_old_gcc.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 017: Fix stack size on ppc64 in test c_00057, upstream commit 88948d9
|
|
|
|
Obsoletes: varnish-libs
|
|
|
|
#Patch17: varnish-6.2.0_fix_ppc64_for_test_c00057.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 018: gcc-10.0.1/s390x compilation fix, upstream commit b0af060
|
|
|
|
%if %{with python3}
|
|
|
|
#Patch18: varnish-6.3.2_fix_s390x.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2141844
|
|
|
|
|
|
|
|
Patch100: varnish-6.6.2-CVE-2022-45060.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://issues.redhat.com/browse/RHEL-12817
|
|
|
|
|
|
|
|
Patch101: varnish-6.6.2-CVE-2023-44487-rate_limit.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://issues.redhat.com/browse/RHEL-12817
|
|
|
|
|
|
|
|
Patch102: varnish-6.6.2-CVE-2023-44487-vcl_vrt.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2271486
|
|
|
|
|
|
|
|
Patch103: varnish-6.6.2-CVE-2024-30156.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 29
|
|
|
|
|
|
|
|
Provides: varnish%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: varnishd(abi)%{_isa} = %{abi}
|
|
|
|
|
|
|
|
Provides: varnishd(vrt)%{_isa} = %{vrt}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides: vmod(blob)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(directors)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(proxy)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(purge)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(std)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(unix)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(vtc)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Obsoletes: varnish-libs < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
|
|
|
BuildRequires: python34 python34-sphinx python34-docutils
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: python3, python3-sphinx, python3-docutils
|
|
|
|
BuildRequires: python3, python3-sphinx, python3-docutils
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: python-docutils
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# Drop jemalloc dependency in RHEL-9
|
|
|
|
|
|
|
|
# BuildRequires: jemalloc-devel
|
|
|
|
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: graphviz
|
|
|
|
# Extra requirements for the build suite
|
|
|
|
|
|
|
|
BuildRequires: nghttp2
|
|
|
|
BuildRequires: nghttp2
|
|
|
|
|
|
|
|
|
|
|
|
# haproxy is broken in rawhide now
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
#if 0#{?fedora} || 0#{?rhel} >= 8
|
|
|
|
BuildRequires: selinux-policy
|
|
|
|
#BuildRequires: haproxy
|
|
|
|
%endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: logrotate
|
|
|
|
Requires: logrotate
|
|
|
|
Requires: ncurses
|
|
|
|
Requires: ncurses
|
|
|
|
Requires: pcre
|
|
|
|
Requires: pcre
|
|
|
|
# Drop jemalloc dependency in RHEL-9
|
|
|
|
|
|
|
|
# Requires: jemalloc
|
|
|
|
|
|
|
|
Requires: redhat-rpm-config
|
|
|
|
Requires: redhat-rpm-config
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
Requires(post): /usr/bin/uuidgen
|
|
|
|
Requires(post): /usr/bin/uuidgen
|
|
|
|
# Varnish actually needs gcc installed to work. It uses the C compiler
|
|
|
|
# Varnish actually needs gcc installed to work. It uses the C compiler
|
|
|
|
# at runtime to compile the VCL configuration files. This is by design.
|
|
|
|
# at runtime to compile the VCL configuration files. This is by design.
|
|
|
|
Requires: gcc
|
|
|
|
Requires: gcc
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(post): systemd-sysv
|
|
|
|
Requires(post): systemd-sysv
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
|
|
|
|
Requires: %{name}-selinux
|
|
|
|
|
|
|
|
Requires(post): policycoreutils,
|
|
|
|
|
|
|
|
Requires(preun): policycoreutils
|
|
|
|
|
|
|
|
Requires(postun): policycoreutils
|
|
|
|
|
|
|
|
Requires(post): /sbin/chkconfig
|
|
|
|
|
|
|
|
Requires(preun): /sbin/chkconfig
|
|
|
|
|
|
|
|
Requires(preun): /sbin/service
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
This is Varnish Cache, a high-performance HTTP accelerator.
|
|
|
|
This is Varnish Cache, a high-performance HTTP accelerator.
|
|
|
@ -144,95 +96,121 @@ available on: https://www.varnish-cache.org/
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
#BuildRequires: ncurses-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Provides: varnish-libs-devel%{?isa} = %{version}-%{release}
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
Provides: varnish-libs-devel = %{version}-%{release}
|
|
|
|
Provides: varnish-libs-devel = %{version}-%{release}
|
|
|
|
Obsoletes: varnish-libs-devel < %{version}-%{release}
|
|
|
|
Obsoletes: varnish-libs-devel
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
Requires: python
|
|
|
|
|
|
|
|
%endif
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
Development files for %{name}
|
|
|
|
Development files for %{name}
|
|
|
|
Varnish Cache is a high-performance HTTP accelerator
|
|
|
|
Varnish Cache is a high-performance HTTP accelerator
|
|
|
|
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
%package docs
|
|
|
|
Summary: Documentation files for %name
|
|
|
|
Summary: Documentation files for %name
|
|
|
|
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
|
|
|
|
%description docs
|
|
|
|
%description docs
|
|
|
|
Documentation files for %name
|
|
|
|
Documentation files for %name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
|
|
|
|
%package selinux
|
|
|
|
|
|
|
|
Summary: Minimal selinux policy for running varnish
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description selinux
|
|
|
|
|
|
|
|
Minimal selinux policy for running varnish4
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q -n varnish-%{version}%{?vd_rc}
|
|
|
|
tar xzf %SOURCE1
|
|
|
|
tar xzf %SOURCE1
|
|
|
|
ln -s pkg-varnish-cache-%{commit1}/redhat redhat
|
|
|
|
ln -s pkg-varnish-cache-%{commit1}/redhat redhat
|
|
|
|
ln -s pkg-varnish-cache-%{commit1}/debian debian
|
|
|
|
ln -s pkg-varnish-cache-%{commit1}/debian debian
|
|
|
|
cp redhat/find-provides .
|
|
|
|
cp redhat/find-provides .
|
|
|
|
sed -i 's,rst2man-3.6,rst2man-3.4,g; s,rst2html-3.6,rst2html-3.4,g; s,phinx-build-3.6,phinx-build-3.4,g' configure
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
|
|
|
|
cp pkg-varnish-cache-%{commit1}/sysv/redhat/* redhat/
|
|
|
|
|
|
|
|
sed -i '8 i\RPM_BUILD_ROOT=%{buildroot}' find-provides
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%patch100 -p1 -b .CVE-2022-45060
|
|
|
|
%patch1 -p1
|
|
|
|
%patch101 -p1 -b .CVE-2023-44487
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
%patch102 -p1 -b .CVE-2023-44487-vcl
|
|
|
|
%patch4 -p0
|
|
|
|
%patch103 -p1 -b .CVE-2024-30156
|
|
|
|
%patch9 -p0
|
|
|
|
|
|
|
|
%patch11 -p0
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
|
|
|
|
export CFLAGS="%{optflags} -fPIC"
|
|
|
|
|
|
|
|
export LDFLAGS=" -pie"
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# https://gcc.gnu.org/wiki/FAQ#PR323
|
|
|
|
# https://gcc.gnu.org/wiki/FAQ#PR323
|
|
|
|
%ifarch %ix86
|
|
|
|
%ifarch %ix86
|
|
|
|
%if 0%{?fedora} > 21
|
|
|
|
%if 0%{?fedora} > 21
|
|
|
|
export CFLAGS="%{optflags} -ffloat-store -fexcess-precision=standard"
|
|
|
|
export CFLAGS="%{optflags} -ffloat-store -fexcess-precision=standard"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
|
|
|
|
export CFLAGS="%{optflags} -fPIC -ffloat-store"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
|
|
|
export CFLAGS="%{optflags} -Wno-error=free-nonheap-object"
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# What gcc version is this?
|
|
|
|
|
|
|
|
gcc --version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# What is the page size
|
|
|
|
|
|
|
|
getconf PAGESIZE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Man pages are prebuilt. No need to regenerate them.
|
|
|
|
# Man pages are prebuilt. No need to regenerate them.
|
|
|
|
export RST2MAN=/bin/true
|
|
|
|
export RST2MAN=/bin/true
|
|
|
|
# Explicit python, please
|
|
|
|
|
|
|
|
export PYTHON=%{__python}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%configure LT_SYS_LIBRARY_PATH=%_libdir \
|
|
|
|
%configure --disable-static \
|
|
|
|
--disable-static \
|
|
|
|
--with-jemalloc=no \
|
|
|
|
--localstatedir=/var/lib \
|
|
|
|
--localstatedir=/var/lib \
|
|
|
|
--docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
|
|
|
|
--docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
|
|
|
--without-jemalloc \
|
|
|
|
#ifarch x86_64 #arm
|
|
|
|
# --disable-pcre-jit \
|
|
|
|
# --disable-pcre-jit \
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# We have to remove rpath - not allowed in Fedora
|
|
|
|
|
|
|
|
# (This problem only visible on 64 bit arches)
|
|
|
|
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g;
|
|
|
|
|
|
|
|
s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# I'll never understand libtool
|
|
|
|
|
|
|
|
mkdir lib/libvarnishapi/.libs
|
|
|
|
|
|
|
|
pushd lib/libvarnishapi/.libs
|
|
|
|
|
|
|
|
ln -s libvarnishapi.so libvarnishapi.so.1
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream github issue #2265
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
|
|
|
|
sed -i 's/-Werror$//g;' bin/varnishd/Makefile
|
|
|
|
|
|
|
|
sed -i 's/-Werror$//g;' lib/libvarnishapi/Makefile
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
|
|
# One varnish user is enough
|
|
|
|
# One varnish user is enough
|
|
|
|
sed -i 's,User=varnishlog,User=varnish,g;' redhat/varnishncsa.service
|
|
|
|
sed -i 's,User=varnishlog,User=varnish,g;' redhat/varnishncsa.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Explicit python, please
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
sed -i 's/env python3/python2/g;' lib/libvcc/vmodtool.py lib/libvcc/vsctool.py
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
sed -i 's/env python3/python3/g;' lib/libvcc/vmodtool.py lib/libvcc/vsctool.py
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Clean up the html documentation
|
|
|
|
# Clean up the html documentation
|
|
|
|
rm -rf doc/html/_sources
|
|
|
|
rm -rf doc/html/_sources
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
|
|
|
|
%ifarch ppc64 ppc64le aarch64
|
|
|
|
# Remove this for now. Hard to get the size and timing right
|
|
|
|
sed -i 's/48/128/g;' bin/varnishtest/tests/c00057.vtc
|
|
|
|
%ifarch s390 s390x aarch64
|
|
|
|
|
|
|
|
rm bin/varnishtest/tests/o00005.vtc
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# disable test because of CVE-2023-44487 fix
|
|
|
|
#make %{?_smp_mflags} check LD_LIBRARY_PATH="%{buildroot}%{_libdir}:%{buildroot}%{_libdir}/%{name}" VERBOSE=1
|
|
|
|
# https://github.com/varnishcache/varnish-cache/pull/3998#issuecomment-1764649216
|
|
|
|
|
|
|
|
rm bin/varnishtest/tests/t02014.vtc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} check VERBOSE=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|
|
|
# mock el7 defaults to LANG=C, which makes python3 fail when parsing utf8 text
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{make_install}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# None of these for fedora
|
|
|
|
# None of these for fedora
|
|
|
|
find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';'
|
|
|
|
find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';'
|
|
|
@ -246,19 +224,32 @@ install -D -m 0644 redhat/varnish.logrotate %{buildroot}%{_sysconfdir}/logrotate
|
|
|
|
install -D -m 0644 include/vcs_version.h %{buildroot}%{_includedir}/varnish
|
|
|
|
install -D -m 0644 include/vcs_version.h %{buildroot}%{_includedir}/varnish
|
|
|
|
install -D -m 0644 include/vrt.h %{buildroot}%{_includedir}/varnish
|
|
|
|
install -D -m 0644 include/vrt.h %{buildroot}%{_includedir}/varnish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# systemd support
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -D -m 0644 redhat/varnish.service %{buildroot}%{_unitdir}/varnish.service
|
|
|
|
install -D -m 0644 redhat/varnish.service %{buildroot}%{_unitdir}/varnish.service
|
|
|
|
install -D -m 0644 redhat/varnishncsa.service %{buildroot}%{_unitdir}/varnishncsa.service
|
|
|
|
install -D -m 0644 redhat/varnishncsa.service %{buildroot}%{_unitdir}/varnishncsa.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# default is standard sysvinit
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
install -D -m 0644 redhat/varnish.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/varnish
|
|
|
|
|
|
|
|
install -D -m 0755 redhat/varnish.initrc %{buildroot}%{_initrddir}/varnish
|
|
|
|
|
|
|
|
install -D -m 0755 redhat/varnishncsa.initrc %{buildroot}%{_initrddir}/varnishncsa
|
|
|
|
|
|
|
|
%endif
|
|
|
|
install -D -m 0755 redhat/varnishreload %{buildroot}%{_sbindir}/varnishreload
|
|
|
|
install -D -m 0755 redhat/varnishreload %{buildroot}%{_sbindir}/varnishreload
|
|
|
|
|
|
|
|
|
|
|
|
echo %{_libdir}/varnish > %{buildroot}%{_sysconfdir}/ld.so.conf.d/varnish-%{_arch}.conf
|
|
|
|
echo %{_libdir}/varnish > %{buildroot}%{_sysconfdir}/ld.so.conf.d/varnish-%{_arch}.conf
|
|
|
|
|
|
|
|
|
|
|
|
# No idea why these ends up with mode 600 in the debug package
|
|
|
|
# No idea why these ends up with mode 600 in the debug package
|
|
|
|
%if 0%{debug_package}
|
|
|
|
|
|
|
|
chmod 644 lib/libvmod_*/*.c
|
|
|
|
chmod 644 lib/libvmod_*/*.c
|
|
|
|
chmod 644 lib/libvmod_*/*.h
|
|
|
|
chmod 644 lib/libvmod_*/*.h
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# selinux module for el6
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
|
|
|
|
cd selinux
|
|
|
|
|
|
|
|
make -f %{_datadir}/selinux/devel/Makefile
|
|
|
|
|
|
|
|
install -p -m 644 -D varnish4.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/varnish4.pp
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_sbindir}/*
|
|
|
@ -279,9 +270,18 @@ chmod 644 lib/libvmod_*/*.h
|
|
|
|
%config %{_sysconfdir}/ld.so.conf.d/varnish-%{_arch}.conf
|
|
|
|
%config %{_sysconfdir}/ld.so.conf.d/varnish-%{_arch}.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# systemd from fedora 17 and rhel 7
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
|
|
|
%{_unitdir}/varnish.service
|
|
|
|
%{_unitdir}/varnish.service
|
|
|
|
%{_unitdir}/varnishncsa.service
|
|
|
|
%{_unitdir}/varnishncsa.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# default is standard sysvinit
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/varnish
|
|
|
|
|
|
|
|
%{_initrddir}/varnish
|
|
|
|
|
|
|
|
%{_initrddir}/varnishncsa
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
@ -296,6 +296,10 @@ chmod 644 lib/libvmod_*/*.h
|
|
|
|
%doc doc/html
|
|
|
|
%doc doc/html
|
|
|
|
%doc doc/changes*.html
|
|
|
|
%doc doc/changes*.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
|
|
|
|
%files selinux
|
|
|
|
|
|
|
|
%{_datadir}/selinux/packages/%{name}/varnish4.pp
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
getent group varnish >/dev/null || groupadd -r varnish
|
|
|
|
getent group varnish >/dev/null || groupadd -r varnish
|
|
|
@ -304,180 +308,99 @@ getent passwd varnish >/dev/null || \
|
|
|
|
-c "Varnish Cache" varnish
|
|
|
|
-c "Varnish Cache" varnish
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
%systemd_post varnish varnishncsa
|
|
|
|
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
|
|
|
/sbin/ldconfig
|
|
|
|
%systemd_post varnish.service
|
|
|
|
test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc/varnish/secret)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%systemd_postun_with_restart varnish varnishncsa
|
|
|
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
%systemd_preun varnish varnishncsa
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Mar 30 2024 Luboš Uhliarik <luhliari@redhat.com> - 6.6.2-4.1
|
|
|
|
|
|
|
|
- Resolves: RHEL-30387 - varnish: HTTP/2 Broken Window Attack may result
|
|
|
|
|
|
|
|
in denial of service (CVE-2024-30156)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 19 2023 Tomas Korbar <tkorbar@redhat.com> - 6.6.2-4
|
|
|
|
|
|
|
|
- Add parameters h2_rst_allowance and h2_rst_allowance_period to mitigate CVE-2023-44487
|
|
|
|
|
|
|
|
- Resolves: RHEL-12817
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 05 2022 Luboš Uhliarik <luhliari@redhat.com> - 6.6.2-3
|
|
|
|
|
|
|
|
- Resolves: #2142096 - CVE-2022-45060 varnish: Request Forgery Vulnerability
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 17 2022 Luboš Uhliarik <luhliari@redhat.com> - 6.6.2-2
|
|
|
|
|
|
|
|
- new version 6.6.2
|
|
|
|
|
|
|
|
- Resolves: #2007641 - rebase Varnish to 6.6.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 6.5.2-2
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 21 2021 Luboš Uhliarik <luhliari@redhat.com> - 6.5.2-1
|
|
|
|
|
|
|
|
- new version 6.5.2
|
|
|
|
|
|
|
|
- Resolves: #1984185 - Rebase varnish to 6.5.2
|
|
|
|
|
|
|
|
- Resolves: #1982858 - CVE-2021-36740 varnish: HTTP/2 request smuggling attack
|
|
|
|
|
|
|
|
via a large Content-Length header for a POST request
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.5.1-5
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 24 2021 Lubos Uhliarik <luhliari@redhat.com> - 6.5.1-4
|
|
|
|
|
|
|
|
- Resolves: #1918406 - Drop jemalloc dependency in RHEL 9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 21 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> 6.5.1-2
|
|
|
|
|
|
|
|
- Pulled support for el6
|
|
|
|
|
|
|
|
- Pulled support for sysvinit
|
|
|
|
|
|
|
|
- aarch64 builds now with jemalloc again on el7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 25 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> 6.5.1-1
|
|
|
|
|
|
|
|
- New upstream release varnish-6.5.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 16 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> 6.5.0-1
|
|
|
|
|
|
|
|
- New upstream release varnish-6.5.0
|
|
|
|
|
|
|
|
- Respun silly patch to get rid of compiler warnings on el6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 04 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> 6.4.0-4
|
|
|
|
|
|
|
|
- Added -Wno-error=free-nonheap-object to CFLAGS to build on s390x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.0-3
|
|
|
|
# Other distros: Use chkconfig
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
%else
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
/sbin/chkconfig --add varnish
|
|
|
|
|
|
|
|
/sbin/chkconfig --add varnishncsa
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.4.0-2
|
|
|
|
%endif
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 16 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.4.0-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
- Respin patches for 6.4.0
|
|
|
|
|
|
|
|
- Removed patches merged upstream
|
|
|
|
|
|
|
|
- Deactivated a test on s390*. Too hard to get size and timing right
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 12 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.2-3
|
|
|
|
|
|
|
|
- Got corrected compilation fix patch from upstream
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 11 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.2-2
|
|
|
|
|
|
|
|
- Added simple compilation fix for gcc-10.0.1/s390x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 11 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.2-1
|
|
|
|
|
|
|
|
- New upstream release, a security release. Includes fix for VSV00005
|
|
|
|
|
|
|
|
- Added new checkout of pkg-varnish
|
|
|
|
|
|
|
|
- Temporarily disable haproxy unit tests, as haproxy seems broken in rawhide
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 10 2020 Joe Orton <jorton@redhat.com> - 6.3.1-3
|
|
|
|
|
|
|
|
- drop buildreq on (retired) vttest (#1800232)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.3.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 22 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.1-1
|
|
|
|
|
|
|
|
- New upstream release. A security release. Includes fix for VSV00004
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 20 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.0-2
|
|
|
|
|
|
|
|
- Respin patch for el6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 16 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.3.0-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 04 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.2.1-4
|
|
|
|
|
|
|
|
- New upstream release. A security release. Includes fix for CVE-2019-15892
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.2.0-4
|
|
|
|
|
|
|
|
- Pull in extra requirements to the build requirements to run more
|
|
|
|
|
|
|
|
tests (on fedora: haproxy, vttest)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.0-3
|
|
|
|
/sbin/ldconfig
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 04 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.2.0-2
|
|
|
|
# Previous versions had varnishlog and varnishncsa running as root
|
|
|
|
- Run configure with LT_SYS_LIBRARY_PATH, removing the need for
|
|
|
|
chown varnish:varnish /var/log/varnish/varnishncsa.log 2>/dev/null || true
|
|
|
|
killing RPATH in libtool with sed and scattering LD_LIBRARY_PATH around
|
|
|
|
|
|
|
|
with patches
|
|
|
|
|
|
|
|
- Some explicit python version fixes needed for el7 python34 vs python36
|
|
|
|
|
|
|
|
- aarch64 now builds with jemalloc again on fedora
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 15 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.2.0-1
|
|
|
|
test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc/varnish/secret)
|
|
|
|
- New upstream release varnish-6.2
|
|
|
|
|
|
|
|
- Removed patches merged upstream
|
|
|
|
|
|
|
|
- Remove misc sed hacks for bugs that are fixed upstream
|
|
|
|
|
|
|
|
- Added a patch for gcc-4.4 -Werror support on el6
|
|
|
|
|
|
|
|
- Added a patch from upstream to fix too small thread pool stack in a test
|
|
|
|
|
|
|
|
- Override macro __python to make brp-python-bytecompile choose python3
|
|
|
|
|
|
|
|
- Explicitly use python-3.4
|
|
|
|
|
|
|
|
- Switch to make_install macro
|
|
|
|
|
|
|
|
- Better documentation of patches
|
|
|
|
|
|
|
|
- Updated checkout of pkg-varnish-cache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 07 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.1.1-5
|
|
|
|
# selinux module for el6
|
|
|
|
- Adding a patch based on upstream commits, fixing pcre-jit, see
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
upstream bug 2912
|
|
|
|
%post selinux
|
|
|
|
|
|
|
|
if [ "$1" -le "1" ] ; then # First install
|
|
|
|
|
|
|
|
semodule -i %{_datadir}/selinux/packages/%{name}/varnish4.pp 2>/dev/null || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 14 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.1.1-4
|
|
|
|
%preun selinux
|
|
|
|
- Adding a patch from upstream fixing a simple formatting bug on gcc-9
|
|
|
|
if [ "$1" -lt "1" ] ; then # Final removal
|
|
|
|
|
|
|
|
semodule -r varnish4 2>/dev/null || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.1-3
|
|
|
|
%postun
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
|
|
|
|
|
|
|
%systemd_postun_with_restart varnish.service
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 07 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.1.1-2
|
|
|
|
|
|
|
|
- Respun ld_library_path patch for varnish-6.1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 07 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.1.1-1
|
|
|
|
%postun selinux
|
|
|
|
- New upstream release
|
|
|
|
if [ "$1" -ge "1" ] ; then # Upgrade
|
|
|
|
|
|
|
|
semodule -i %{_datadir}/selinux/packages/%{name}/varnish4.pp 2>/dev/null || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 06 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.1.0-3
|
|
|
|
%endif
|
|
|
|
- Dropped the depricated external dependency generator in Fedora
|
|
|
|
|
|
|
|
- Hard coded vmod, abi and vrt provides
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 02 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.1.0-2
|
|
|
|
%preun
|
|
|
|
- Added a patch to fix a failing test in the testsuite
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 02 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.1.0-1
|
|
|
|
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
|
|
|
- New upstream release
|
|
|
|
%systemd_preun varnish.service
|
|
|
|
- Respin patches for 6.1.0
|
|
|
|
%else
|
|
|
|
- Disable pcre-jit for now, ref upstream bug #2817
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 09 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.0.1-3
|
|
|
|
if [ $1 -lt 1 ]; then
|
|
|
|
- Explicitly using utf8 under install on el6 and el7 for python quirks
|
|
|
|
# Package removal, not upgrade
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
|
|
|
|
|
|
|
/bin/systemctl --no-reload disable varnish.service > /dev/null 2>&1 || :
|
|
|
|
|
|
|
|
/bin/systemctl stop varnish.service > /dev/null 2>&1 || :
|
|
|
|
|
|
|
|
/bin/systemctl stop varnishncsa.service > /dev/null 2>&1 || :
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
/sbin/service varnish stop > /dev/null 2>&1
|
|
|
|
|
|
|
|
/sbin/service varnishncsa stop > /dev/null 2>%1
|
|
|
|
|
|
|
|
/sbin/chkconfig --del varnish
|
|
|
|
|
|
|
|
/sbin/chkconfig --del varnishncsa
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 09 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.0.1-2
|
|
|
|
|
|
|
|
- Explicitly using python3 on all targets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 27 2018 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.0.1-1
|
|
|
|
%changelog
|
|
|
|
- New upstream release
|
|
|
|
* Thu Mar 28 2024 Luboš Uhliarik <luhliari@redhat.com> - 6.0.13-1
|
|
|
|
- Removed graphciz from BuildRequires. It is not used
|
|
|
|
- new version 6.0.13
|
|
|
|
- Removed patch for fortify_source on el6. It is merged upstream
|
|
|
|
- Resolves: RHEL-30378 - varnish:6/varnish: HTTP/2 Broken Window Attack may
|
|
|
|
- Small workaround for test suite problem with old readline/curses on el6
|
|
|
|
result in denial of service (CVE-2024-30156)
|
|
|
|
- Supports bcond_with python3, for simpler future deprication of python2
|
|
|
|
|
|
|
|
- Added -fno-exceptions to CFLAGS on el6, see upstream issue #2793
|
|
|
|
* Tue Feb 01 2022 Luboš Uhliarik <luhliari@redhat.com> - 6.0.8-1.1
|
|
|
|
|
|
|
|
- Resolves: #2047648 - CVE-2022-23959 varnish:6/varnish: Varnish HTTP/1 Request
|
|
|
|
|
|
|
|
Smuggling Vulnerability
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Luboš Uhliarik <luhliari@redhat.com> - 6.0.8-1
|
|
|
|
|
|
|
|
- new version 6.0.8
|
|
|
|
|
|
|
|
- Resolves: #1982862 - CVE-2021-36740 varnish:6/varnish: HTTP/2 request
|
|
|
|
|
|
|
|
smuggling attack via a large Content-Length header for a POST request
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 14 2020 Lubos Uhliarik <luhliari@redhat.com> - 6.0.6-2
|
|
|
|
|
|
|
|
- new version 6.0.6
|
|
|
|
|
|
|
|
- Resolves: #1795673 - RFE: rebase varnish:6 to latest 6.0.x LTS
|
|
|
|
|
|
|
|
- Resolves: #1790907 - CVE-2019-20637 varnish: not clearing pointer between two
|
|
|
|
|
|
|
|
client requests leads to information disclosure
|
|
|
|
|
|
|
|
- Resolves: #1763958 - CVE-2019-15892 varnish:6/varnish: denial of service
|
|
|
|
|
|
|
|
handling certain crafted HTTP/1 requests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 08 2018 Lubos Uhliarik <luhliari@redhat.com> - 6.0.2-1
|
|
|
|
|
|
|
|
- new version 6.0.2 (#1633338)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 01 2018 Luboš Uhliarik <luhliari@redhat.com> - 6.0.0-3
|
|
|
|
|
|
|
|
- Resolves: #1591765 - varnish: Remove dependency on jemalloc
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-2
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|