49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Template file for 'varnish'
|
|
pkgname=varnish
|
|
version=6.1.1
|
|
revision=1
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="pkg-config python python-docutils python-Sphinx"
|
|
makedepends="pcre-devel readline-devel jemalloc-devel"
|
|
short_desc="A fast caching HTTP reverse proxy"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://varnish-cache.org/"
|
|
distfiles="https://varnish-cache.org/_downloads/${pkgname}-${version}.tgz"
|
|
checksum=e0ee7c88a8149d8890b26fd9e1d909859ea895a39ca188d76a96869cff87c93d
|
|
|
|
conf_files="/etc/varnish/default.vcl"
|
|
make_dirs="/var/varnish 750 nobody nogroup"
|
|
|
|
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
|
|
}
|
|
}
|