varnish: update to 5.2.1
The 3.0.7 version had seen EOL in 2015. Unfortunately the musl build is broken: varnishd segfaults when run during the build.
This commit is contained in:
parent
6017836dd3
commit
6348755de1
2 changed files with 37 additions and 6 deletions
22
srcpkgs/varnish/patches/musl.patch
Normal file
22
srcpkgs/varnish/patches/musl.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- include/vpf.h 2016-03-03 14:40:01.000000000 +0100
|
||||
+++ include/vpf.h 2018-01-11 11:45:26.521900821 +0100
|
||||
@@ -30,6 +30,8 @@
|
||||
#ifndef VPF_H_INCLUDED
|
||||
#define VPF_H_INCLUDED
|
||||
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
struct vpf_fh;
|
||||
|
||||
struct vpf_fh *VPF_Open(const char *path, mode_t mode, pid_t *pidptr);
|
||||
--- include/vsb.h 2017-11-14 14:39:22.000000000 +0100
|
||||
+++ include/vsb.h 2018-01-11 11:48:15.505912873 +0100
|
||||
@@ -31,6 +31,8 @@
|
||||
#ifndef VSB_H_INCLUDED
|
||||
#define VSB_H_INCLUDED
|
||||
|
||||
+#include <sys/types.h>
|
||||
+
|
||||
/*
|
||||
* Structure definition
|
||||
*/
|
|
@ -1,22 +1,31 @@
|
|||
# Template file for 'varnish'
|
||||
pkgname=varnish
|
||||
version=3.0.7
|
||||
revision=6
|
||||
version=5.2.1
|
||||
revision=1
|
||||
lib32disabled=yes
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static --sbindir=/usr/bin"
|
||||
hostmakedepends="pkg-config python"
|
||||
hostmakedepends="pkg-config python python-docutils"
|
||||
makedepends="pcre-devel readline-devel jemalloc-devel"
|
||||
conf_files="/etc/varnish/default.vcl"
|
||||
make_dirs="/var/varnish 750 nobody nogroup"
|
||||
short_desc="A fast caching HTTP reverse proxy"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
license="Simplified BSD"
|
||||
homepage="https://www.varnish-cache.org/"
|
||||
distfiles="http://repo.varnish-cache.org/source/${pkgname}-${version}.tar.gz"
|
||||
checksum=a27e9f11391617fab27cc6edc31d3c8681b8d6975f8c2cd07f6e081bc54c24ce
|
||||
homepage="https://varnish-cache.org/"
|
||||
distfiles="http://varnish-cache.org/_downloads/${pkgname}-${version}.tgz"
|
||||
checksum=b8452c9d78c16f78c8cfd1c1a1e696523bf64b7721c330150dcc0852459014b3
|
||||
|
||||
nocross="Cannot run test program when cross compiling (PCRE_JIT)"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) makedepends+=" libexecinfo-devel"
|
||||
broken="Segfaults when running ../../bin/varnishd/varnishd -x cli > include/cli.rst"
|
||||
;;
|
||||
esac
|
||||
|
||||
post_install() {
|
||||
vinstall etc/example.vcl 644 etc/varnish default.vcl
|
||||
vsv varnishd
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue