38 lines
1 KiB
Bash
38 lines
1 KiB
Bash
# Template file for 'varnish'
|
|
pkgname=varnish
|
|
version=3.0.7
|
|
revision=6
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --sbindir=/usr/bin"
|
|
hostmakedepends="pkg-config python"
|
|
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
|
|
|
|
post_install() {
|
|
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
|
|
}
|
|
}
|