48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'varnish'
|
|
pkgname=varnish
|
|
version=6.0.1
|
|
revision=1
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --sbindir=/usr/bin"
|
|
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="BSD-2-Clause"
|
|
homepage="https://varnish-cache.org/"
|
|
distfiles="https://varnish-cache.org/_downloads/${pkgname}-${version}.tgz"
|
|
checksum=47f28e4da9d46f0e48fbe6067de734a01786081cda681bf2764f87914339f3b8
|
|
|
|
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
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libvarnishapi_package() {
|
|
short_desc+=" - API runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
libvarnishapi-devel_package() {
|
|
depends="libvarnishapi>=${version}_${revision}"
|
|
short_desc+=" - API development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|