|
|
@ -12,77 +12,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
%global __provides_exclude_from ^%{_libdir}/varnish/vmods
|
|
|
|
%global __provides_exclude_from ^%{_libdir}/varnish/vmods
|
|
|
|
|
|
|
|
|
|
|
|
%global abi 17c51b08e037fc8533fb3687a042a867235fc72f
|
|
|
|
%global abi ed1243ca162a7b1d975bc0332f0d66d33f0bc78e
|
|
|
|
%global vrt 13.0
|
|
|
|
%global vrt 20.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 7d90347be31891b338dededb318594cebb668ba7
|
|
|
|
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
|
|
|
|
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Default: Use jemalloc, as adviced by upstream project
|
|
|
|
|
|
|
|
# Change to 1 to use system allocator (ie. glibc)
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
%bcond_without system_allocator
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_with system_allocator
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with system_allocator}
|
|
|
|
|
|
|
|
# use _lto_cflags if present
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%global _lto_cflags %{nil}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Summary: High-performance HTTP accelerator
|
|
|
|
Summary: High-performance HTTP accelerator
|
|
|
|
Name: varnish
|
|
|
|
Name: varnish
|
|
|
|
Version: 6.6.2
|
|
|
|
Version: 7.6.0
|
|
|
|
Release: 4%{?dist}.1
|
|
|
|
Release: 3%{?dist}
|
|
|
|
License: BSD
|
|
|
|
License: BSD-2-Clause AND (BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain AND Zlib)
|
|
|
|
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}.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
|
|
|
|
|
|
|
|
|
|
|
|
# Patches:
|
|
|
|
%if 0%{?fedora} > 29 || 0%{?rhel} > 7
|
|
|
|
# Patch 001: Because of Fedora's libtool no-rpath requirement, it is still
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# on el6. Will not be fixed upstream. Patch grows more stupid
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
#Patch17: varnish-6.2.0_fix_ppc64_for_test_c00057.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch 018: gcc-10.0.1/s390x compilation fix, upstream commit b0af060
|
|
|
|
|
|
|
|
#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: varnish%{_isa} = %{version}-%{release}
|
|
|
|
Provides: varnishd(abi)%{_isa} = %{abi}
|
|
|
|
Provides: varnishd(abi)%{_isa} = %{abi}
|
|
|
|
Provides: varnishd(vrt)%{_isa} = %{vrt}
|
|
|
|
Provides: varnishd(vrt)%{_isa} = %{vrt}
|
|
|
|
|
|
|
|
|
|
|
|
Provides: vmod(blob)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(blob)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(cookie)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(debug)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(directors)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(directors)%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: vmod(h2)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(proxy)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(proxy)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(purge)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(purge)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(std)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(std)%{_isa} = %{version}-%{release}
|
|
|
@ -90,46 +60,53 @@ Provides: vmod(unix)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(vtc)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(vtc)%{_isa} = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Obsoletes: varnish-libs < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
BuildRequires: python34 python34-sphinx python34-docutils
|
|
|
|
BuildRequires: python34 python34-sphinx python34-docutils
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
BuildRequires: python3, python3-sphinx, python3-docutils
|
|
|
|
BuildRequires: python3, python3-sphinx, python3-docutils
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# Drop jemalloc dependency in RHEL-9
|
|
|
|
BuildRequires: gcc
|
|
|
|
# BuildRequires: jemalloc-devel
|
|
|
|
%if %{with system_allocator}
|
|
|
|
|
|
|
|
# use glibc
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%ifnarch aarch64
|
|
|
|
|
|
|
|
BuildRequires: jemalloc-devel
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: pcre2-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Extra requirements for the build suite
|
|
|
|
# Extra requirements for the build suite
|
|
|
|
|
|
|
|
# needs haproxy2
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 30 || 0%{?rhel} > 8
|
|
|
|
|
|
|
|
BuildRequires: haproxy
|
|
|
|
|
|
|
|
%endif
|
|
|
|
BuildRequires: nghttp2
|
|
|
|
BuildRequires: nghttp2
|
|
|
|
|
|
|
|
|
|
|
|
# haproxy is broken in rawhide now
|
|
|
|
# Varnish actually needs gcc installed to work. It uses the C compiler
|
|
|
|
#if 0#{?fedora} || 0#{?rhel} >= 8
|
|
|
|
# at runtime to compile the VCL configuration files. This is by design.
|
|
|
|
#BuildRequires: haproxy
|
|
|
|
Requires: gcc
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: logrotate
|
|
|
|
Requires: logrotate
|
|
|
|
Requires: ncurses
|
|
|
|
Requires: ncurses
|
|
|
|
Requires: pcre
|
|
|
|
Requires: pcre2
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# at runtime to compile the VCL configuration files. This is by design.
|
|
|
|
|
|
|
|
Requires: gcc
|
|
|
|
|
|
|
|
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
|
|
|
|
%if %{with system_allocator}
|
|
|
|
|
|
|
|
# use glibc
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
Requires: jemalloc
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
This is Varnish Cache, a high-performance HTTP accelerator.
|
|
|
|
This is Varnish Cache, a high-performance HTTP accelerator.
|
|
|
@ -154,6 +131,7 @@ 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
|
|
|
|
|
|
|
|
|
|
|
@ -168,23 +146,29 @@ 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
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
%patch100 -p1 -b .CVE-2022-45060
|
|
|
|
|
|
|
|
%patch101 -p1 -b .CVE-2023-44487
|
|
|
|
|
|
|
|
%patch102 -p1 -b .CVE-2023-44487-vcl
|
|
|
|
|
|
|
|
%patch103 -p1 -b .CVE-2024-30156
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if %{with system_allocator}
|
|
|
|
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
# nilled _lto_cflags above because they remove the deps on jemalloc.
|
|
|
|
|
|
|
|
# On the fedoras, _lto_cflags is -flto=auto and -ffat-lto-objects. The latter is OK.
|
|
|
|
|
|
|
|
export CFLAGS="%{optflags} -ffat-lto-objects"
|
|
|
|
|
|
|
|
%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="$CFLAGS -ffloat-store -fexcess-precision=standard"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch s390x
|
|
|
|
%ifarch s390x
|
|
|
|
export CFLAGS="%{optflags} -Wno-error=free-nonheap-object"
|
|
|
|
export CFLAGS="$CFLAGS -Wno-error=free-nonheap-object"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# What platform is this
|
|
|
|
|
|
|
|
uname -a
|
|
|
|
|
|
|
|
|
|
|
|
# What gcc version is this?
|
|
|
|
# What gcc version is this?
|
|
|
|
gcc --version
|
|
|
|
gcc --version
|
|
|
|
|
|
|
|
|
|
|
@ -199,11 +183,18 @@ export PYTHON=%{__python}
|
|
|
|
%configure LT_SYS_LIBRARY_PATH=%_libdir \
|
|
|
|
%configure LT_SYS_LIBRARY_PATH=%_libdir \
|
|
|
|
--disable-static \
|
|
|
|
--disable-static \
|
|
|
|
--localstatedir=/var/lib \
|
|
|
|
--localstatedir=/var/lib \
|
|
|
|
|
|
|
|
--with-contrib \
|
|
|
|
--docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
|
|
|
|
--docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
|
|
|
|
--without-jemalloc \
|
|
|
|
%ifarch %ix86
|
|
|
|
# --disable-pcre-jit \
|
|
|
|
%if 0%{?fedora} <= 37
|
|
|
|
|
|
|
|
--enable-pcre2-jit=no \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with system_allocator}
|
|
|
|
|
|
|
|
--with-jemalloc=no \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
@ -213,16 +204,18 @@ rm -rf doc/html/_sources
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
|
|
# Remove this for now. Hard to get the size and timing right
|
|
|
|
# Up the stack size in tests, necessary on secondary arches
|
|
|
|
%ifarch s390 s390x aarch64
|
|
|
|
sed -i 's/thread_pool_stack 80k/thread_pool_stack 128k/g;' bin/varnishtest/tests/*.vtc
|
|
|
|
rm bin/varnishtest/tests/o00005.vtc
|
|
|
|
sed -i 's/file,2M/file,8M/' bin/varnishtest/tests/r04036.vtc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# disable test because of CVE-2023-44487 fix
|
|
|
|
|
|
|
|
# https://github.com/varnishcache/varnish-cache/pull/3998#issuecomment-1764649216
|
|
|
|
|
|
|
|
rm bin/varnishtest/tests/t02014.vtc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} check VERBOSE=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Just a hack to avoid too high load on secondary arch builders
|
|
|
|
|
|
|
|
%ifarch s390x ppc64le
|
|
|
|
|
|
|
|
# This works when ran alone, but not in the whole suite. Load and/or timing issues
|
|
|
|
|
|
|
|
rm bin/varnishtest/tests/t02014.vtc
|
|
|
|
|
|
|
|
make -j2 check
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
#make_build check
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
@ -251,7 +244,7 @@ install -D -m 0644 redhat/varnish.service %{buildroot}%{_unitdir}/varnish.servic
|
|
|
|
install -D -m 0644 redhat/varnishncsa.service %{buildroot}%{_unitdir}/varnishncsa.service
|
|
|
|
install -D -m 0644 redhat/varnishncsa.service %{buildroot}%{_unitdir}/varnishncsa.service
|
|
|
|
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/%{name}-%{_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}
|
|
|
|
%if 0%{debug_package}
|
|
|
@ -259,12 +252,11 @@ chmod 644 lib/libvmod_*/*.c
|
|
|
|
chmod 644 lib/libvmod_*/*.h
|
|
|
|
chmod 644 lib/libvmod_*/*.h
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/varnish
|
|
|
|
%{_libdir}/%{name}
|
|
|
|
%{_var}/lib/varnish
|
|
|
|
%{_var}/lib/varnish
|
|
|
|
%attr(0700,varnish,varnish) %dir %{_var}/log/varnish
|
|
|
|
%attr(0700,varnish,varnish) %dir %{_var}/log/varnish
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
@ -276,7 +268,7 @@ chmod 644 lib/libvmod_*/*.h
|
|
|
|
%dir %{_sysconfdir}/varnish/
|
|
|
|
%dir %{_sysconfdir}/varnish/
|
|
|
|
%config(noreplace) %{_sysconfdir}/varnish/default.vcl
|
|
|
|
%config(noreplace) %{_sysconfdir}/varnish/default.vcl
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/varnish
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/varnish
|
|
|
|
%config %{_sysconfdir}/ld.so.conf.d/varnish-%{_arch}.conf
|
|
|
|
%config %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{_unitdir}/varnish.service
|
|
|
|
%{_unitdir}/varnish.service
|
|
|
@ -298,10 +290,11 @@ chmod 644 lib/libvmod_*/*.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
getent group varnish >/dev/null || groupadd -r varnish
|
|
|
|
getent group varnish >/dev/null ||
|
|
|
|
getent passwd varnish >/dev/null || \
|
|
|
|
groupadd -r varnish
|
|
|
|
useradd -r -g varnish -d /var/lib/varnish -s /sbin/nologin \
|
|
|
|
getent passwd varnish >/dev/null ||
|
|
|
|
-c "Varnish Cache" varnish
|
|
|
|
useradd -r -g varnish -d /var/lib/varnish -s /sbin/nologin \
|
|
|
|
|
|
|
|
-c "Varnish Cache" varnish
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -320,36 +313,123 @@ test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Sat Mar 30 2024 Luboš Uhliarik <luhliari@redhat.com> - 6.6.2-4.1
|
|
|
|
* Tue Nov 19 2024 Luboš Uhliarik <luhliari@redhat.com> - 7.6.0-3
|
|
|
|
- Resolves: RHEL-30387 - varnish: HTTP/2 Broken Window Attack may result
|
|
|
|
- Resolves: RHEL-59267 - varnish rebase to 7.6.0
|
|
|
|
in denial of service (CVE-2024-30156)
|
|
|
|
- Resolves: RHEL-30333 CVE-2024-30156 varnish: HTTP/2 Broken Window
|
|
|
|
|
|
|
|
Attack may result in denial of service
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 19 2023 Tomas Korbar <tkorbar@redhat.com> - 6.6.2-4
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 7.4.2-5
|
|
|
|
- Add parameters h2_rst_allowance and h2_rst_allowance_period to mitigate CVE-2023-44487
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
- Resolves: RHEL-12817
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 05 2022 Luboš Uhliarik <luhliari@redhat.com> - 6.6.2-3
|
|
|
|
* Tue Jul 16 2024 Joe Orton <jorton@redhat.com> - 7.4.2-4
|
|
|
|
- Resolves: #2142096 - CVE-2022-45060 varnish: Request Forgery Vulnerability
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 17 2022 Luboš Uhliarik <luhliari@redhat.com> - 6.6.2-2
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 7.4.2-3
|
|
|
|
- new version 6.6.2
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
- Resolves: #2007641 - rebase Varnish to 6.6.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 6.5.2-2
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.4.2-2
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 08 2023 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.4.2-1
|
|
|
|
|
|
|
|
- New upstream release. A security release
|
|
|
|
|
|
|
|
- Includes fix for CVE-2023-44487 aka VSV00013, rhbz#2243328, HTTP/2 Rapid Reset Attack
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 12 2023 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.4.1-1
|
|
|
|
|
|
|
|
- New upstream release. A bugfix release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 11 2023 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.4.0-0
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 14 2023 Luboš Uhliarik <luhliari@redhat.com> - 7.3.0-5
|
|
|
|
|
|
|
|
- SPDX migration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.0-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 23 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 7.3.0-3
|
|
|
|
|
|
|
|
- Enable system_allocator in RHEL/ELN builds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 20 2023 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.3.0-2
|
|
|
|
|
|
|
|
- Switched from bcond to bcond_with for compatibility with el8 and el9
|
|
|
|
|
|
|
|
- haproxy builddep on systems with haproxy2
|
|
|
|
|
|
|
|
- Disable pcre2-jit only for fedora <= 37 on 32bit x86
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 16 2023 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.3.0-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
- Added a bcond system_allocator for skipping jemalloc, bz#1917697
|
|
|
|
|
|
|
|
- nil _lto_cflags macro to link to jemalloc again
|
|
|
|
|
|
|
|
- disable pcre2-jit on 32bit x86 for now
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 21 2021 Luboš Uhliarik <luhliari@redhat.com> - 6.5.2-1
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.1-2
|
|
|
|
- new version 6.5.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
- 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
|
|
|
|
* Wed Nov 09 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.2.1-1
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- New upstream release: A security release
|
|
|
|
|
|
|
|
- Includes fix for VSV00011
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 16 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.2.0-1
|
|
|
|
|
|
|
|
- New upstream release. The regular bi-annual "fresh" release
|
|
|
|
|
|
|
|
- Removed list of patches from comments
|
|
|
|
|
|
|
|
- Cosmetical changes to specfile from upstream
|
|
|
|
|
|
|
|
- Now build with --with-contrib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 12 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.1.1-1
|
|
|
|
|
|
|
|
- New upstream release. A security release
|
|
|
|
|
|
|
|
- Includes fix for VSV00009 aka CVE-2022-38150
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 29 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.1.0-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
- Includes updated snapshot of pkg-varnish
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 21 2022 Luboš Uhliarik <luhliari@redhat.com> - 7.0.2-2
|
|
|
|
|
|
|
|
- Fix Provides directive for varnish-devel package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 26 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.0.2-1
|
|
|
|
|
|
|
|
- New upstream release. A security release
|
|
|
|
|
|
|
|
- Includes fix for CVE-2022-23959 aka VSV00008, rhbz#2045033
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 13 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.0.1-2
|
|
|
|
|
|
|
|
- Update ABI string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 13 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.0.1-1
|
|
|
|
|
|
|
|
- New upstream release. A maintenance and stability release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 02 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.0.0-2
|
|
|
|
|
|
|
|
- upstream switched to pcre2 a while ago
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 16 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.0.0-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
- Updated pkg-varnish checkout from the 7.0 branch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 17 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> 6.6.1-2
|
|
|
|
|
|
|
|
- Bumped abi and vrt versions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 17 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> 6.6.1-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
- Includes fix for CVE-2021-36740 aka VSV00007, bz#1982413
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 18 2021 Timm Bäder <tbaeder@redhat.com> - 6.6.0-2
|
|
|
|
|
|
|
|
- Use make macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 15 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> - 6.6.0-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
- Now provides vmod_purge
|
|
|
|
|
|
|
|
- Uses haproxy in the test suite on el8
|
|
|
|
|
|
|
|
- Skipped obsoleting varnish-libs. That was many years ago now.
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 24 2021 Lubos Uhliarik <luhliari@redhat.com> - 6.5.1-4
|
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 6.5.1-4
|
|
|
|
- Resolves: #1918406 - Drop jemalloc dependency in RHEL 9
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.1-3
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|