aboutsummaryrefslogtreecommitdiffstats
path: root/main/varnish/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/varnish/APKBUILD')
-rw-r--r--main/varnish/APKBUILD21
1 files changed, 16 insertions, 5 deletions
diff --git a/main/varnish/APKBUILD b/main/varnish/APKBUILD
index f402c509ed..e6c2e43224 100644
--- a/main/varnish/APKBUILD
+++ b/main/varnish/APKBUILD
@@ -3,7 +3,7 @@
# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=varnish
-pkgver=6.5.1
+pkgver=6.6.0
pkgrel=0
pkgdesc="High-performance HTTP accelerator"
url="https://www.varnish-cache.org/"
@@ -12,7 +12,7 @@ license="BSD-2-Clause"
options="!check" # tests fail
depends="gcc libc-dev libgcc"
makedepends="pcre-dev ncurses-dev libedit-dev py3-docutils
- linux-headers libunwind-dev py3-sphinx"
+ linux-headers py3-sphinx"
install="$pkgname.pre-install"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-libs $pkgname-geoip::noarch $pkgname-openrc"
pkgusers="varnish"
@@ -38,6 +38,17 @@ source="https://varnish-cache.org/_downloads/varnish-$pkgver.tgz
# 5.1.3-r0:
# - CVE-2017-12425
+prepare() {
+ default_prepare
+ update_config_sub
+}
+
+# libunwind is not available on riscv64
+case "$CARCH" in
+ riscv64) makedepends="$makedepends libexecinfo-dev" ;;
+ *) makedepends="$makedepends libunwind-dev"
+ _configure="--with-unwind" ;;
+esac
build() {
./configure \
@@ -48,8 +59,8 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var/lib \
- --with-unwind \
- --without-jemalloc
+ --without-jemalloc \
+ $_configure
make
}
@@ -95,7 +106,7 @@ geoip() {
"$subpkgdir"/usr/lib/varnish/plugins/maxminddb.vcl
}
-sha512sums="0f34f2c6fe68bfcdba488cda40cc387b3c10343923a75a6a1791c890d20e79c64069697c45720cd5f0cba666d506d3ab6bb814ef4f9120cf0c8519a01144844f varnish-6.5.1.tgz
+sha512sums="0f52e94dd866a7cf141f9333a9169b396627f169907acb2d64f18dcac3188f9d9f1e72ea9eb9f2c0c19a5f53df0c90446041eb2b1e52f4756ea257efb329d0d1 varnish-6.6.0.tgz
2123668169b055f2d88f9b5b8e0877ca8b3cbfcd61e03d91fd7d0513b3267e4ef01a4d858cc6a3298cca0a49aaea2f92ff4fd9c0baf52a6c67b452a53f7e54d0 musl-include-vpf.patch
c51c8964880990c2b01807b2a38d886b146736a918bda9ea2e032c50085bf6745cab3cccb4ee4c561ab936a8b7cfb278cfcb758543ea6c605c15b8973c9f10ce musl-include-vsb.patch
5ac7867e85cbd721f903c524ed4b524423d9dada4acfeefb0e543214a208828df5cc4efe2f012991bea6b38c2b223c24b17d3890ec4ed2c57d2b441b8e5a6900 varnishd.initd