www-servers/varnish: add 8.0.0

Closes: https://bugs.gentoo.org/964042
Signed-off-by: Jason Davis <jased2004may@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44420
Closes: https://github.com/gentoo/gentoo/pull/44420
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Jason Davis
2025-11-01 22:27:09 +04:00
committed by Viorel Munteanu
parent 0251e05654
commit d3e287f224
2 changed files with 119 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST varnish-7.5.0.tgz 4033962 BLAKE2B c53500d1b95b4af1b43f3d2ffa5b12592bbd1e446f03d90a8147fe37c4d602af743369629f8a1423455a3c4de6867fb5fe19d6028fd1ea457d35622e85dcbc9c SHA512 ca77abcb21299942b2bfd433e5f964d2e974cdae92d6a8889217fcd81933a3b7bc1e70ba87d7e842a4f90b59d7948242155380054d67ad49aab8dcea343055a2
DIST varnish-7.7.1.tgz 4350220 BLAKE2B 3764ab80de0277f48a94682737099b4abef113f7a6c4bf952de015046aa270d009060456d4c140a50779f1b3e270cb569d78907b6b314b601e9d48d477dd454c SHA512 4a15ff23dc07cb19959031be5070e7da46a2be2d1a1d2e3950966ca593849d3f8be4f41bd35dae75876bbc121bf268345b47aa35764645362aa42b822b634ad9
DIST varnish-7.7.3.tgz 4235804 BLAKE2B 74b9fded0daaae7bc2b36132586f17d1717a0539656a0ce5dbc6f2cb4f9c6c5d6a710e4289f3223cb679f81de214c91ce38f3cb0adce60a9d2bad55b10c710c7 SHA512 2de3f19d24e42ec092076226b629dc36d4d3c9961454502e7f9a8ff1d440cf54104198e2b5302361f093fa221f04f836bb8dda441921d1721b1d05c90c0f1661
DIST varnish-8.0.0.tgz 4385715 BLAKE2B ebc6103ef2375eddf7ce6b89f8cb8b89900c3533dba97916d953bee20935cbccae814340d3a83b0fe1f6be211c950ba0a0d874dd0503621d8baeeb86333e4f23 SHA512 c381928e23deaacb863dcf389a494f30a56d22a4e88fe0c5dc7d4a93828f3dc0595c7ae41837f3549795828aca1a30e08f4456d4a752a6d12c19b61943dd99e9

View File

@@ -0,0 +1,118 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit autotools systemd python-r1
DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator"
HOMEPAGE="https://varnish-cache.org/"
SRC_URI="https://varnish-cache.org/_downloads/${P}.tgz"
LICENSE="BSD-2 GPL-2"
SLOT="0/2"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
# From Fedora:
# Default: Use jemalloc, as adviced by upstream project
IUSE="+jemalloc jit selinux static-libs unwind"
COMMON_DEPEND="
sys-libs/readline:=
dev-libs/libedit
dev-libs/libpcre2[jit?]
sys-libs/ncurses:=
jemalloc? ( dev-libs/jemalloc:= )
unwind? ( sys-libs/libunwind:= )
"
# varnish compiles stuff at run time
RDEPEND="
${PYTHON_DEPS}
${COMMON_DEPEND}
acct-user/varnish
acct-group/varnish
sys-devel/gcc
selinux? ( sec-policy/selinux-varnishd )
"
DEPEND="
${COMMON_DEPEND}
dev-python/docutils
dev-python/sphinx
virtual/pkgconfig
"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
PATCHES=( "${FILESDIR}/${PN}-7.1.2-disable-tests.patch" )
src_prepare() {
default
# Remove -Werror bug #528354
sed -i -e 's/-Werror\([^=]\)/\1/g' configure.ac || die
# Upstream doesn't put varnish.m4 in the m4/ directory
# We link because the Makefiles look for the file in
# the original location
ln -sf ../varnish.m4 m4/varnish.m4 || die
eautoreconf
}
src_configure() {
local myeconfargs=(
--with-contrib
$(use_enable static-libs static)
$(use_enable jit pcre2-jit)
$(use_with jemalloc)
$(use_with unwind)
)
econf "${myeconfargs[@]}"
}
src_test() {
# Times out
rm bin/varnishtest/tests/u00021.vtc || die
default
}
src_install() {
emake DESTDIR="${D}" install
python_replicate_script "${D}/usr/share/varnish/vmodtool.py"
newinitd "${FILESDIR}"/varnishlog.initd varnishlog
newconfd "${FILESDIR}"/varnishlog.confd varnishlog
newinitd "${FILESDIR}"/varnishncsa.initd varnishncsa
newconfd "${FILESDIR}"/varnishncsa.confd varnishncsa
newinitd "${FILESDIR}"/varnishd.initd-r4 varnishd
newconfd "${FILESDIR}"/varnishd.confd-r4 varnishd
insinto /etc/logrotate.d/
newins "${FILESDIR}/varnishd.logrotate-r2" varnishd
diropts -m750
keepdir /var/lib/varnish
keepdir /var/log/varnish
systemd_dounit "${FILESDIR}/${PN}d.service"
insinto /etc/varnish/
doins vmod/vmod_*.vcc
doins etc/example.vcl
dodoc README.rst
dodoc doc/changes.rst
fowners root:varnish /etc/varnish/
fowners varnish:varnish /var/lib/varnish/
fperms 0750 /var/lib/varnish/ /etc/varnish/
find "${ED}" -name "*.la" -delete || die
}