void-packages/srcpkgs/varnish/template

48 lines
1.3 KiB
Bash

# Template file for 'varnish'
pkgname=varnish
version=5.2.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="Simplified BSD"
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
}
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
}
}