void-packages/srcpkgs/varnish/template

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-12-11 15:43:20 +01:00
# Template file for 'varnish'
pkgname=varnish
2014-04-01 16:12:56 +02:00
version=3.0.5
2014-10-13 14:18:08 +02:00
revision=2
2014-04-01 16:12:56 +02:00
lib32disabled=yes
2014-10-13 14:18:08 +02:00
replaces="runit-void<20141013_2"
build_options="systemd"
2012-12-11 15:43:20 +01:00
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config python"
makedepends="pcre-devel readline-devel"
conf_files="/etc/varnish/default.vcl"
make_dirs="/var/varnish 750 nobody nogroup"
2012-12-11 15:43:20 +01:00
short_desc="A fast caching HTTP reverse proxy"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Simplified BSD"
homepage="https://www.varnish-cache.org/"
distfiles="http://repo.varnish-cache.org/source/${pkgname}-${version}.tar.gz"
2014-04-01 16:12:56 +02:00
checksum=302fd6afc771524ca3912f5d945ab197a55762385c012b2054df7d86bf7ae2b7
2012-12-11 15:43:20 +01:00
post_install() {
# systemd service
2014-10-13 14:18:08 +02:00
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/varnish.service 644 usr/lib/systemd/system
# systemd reload helper
vinstall ${FILESDIR}/varnish-vcl-reload 755 usr/sbin
fi
vsv varnishd
2012-12-11 15:43:20 +01:00
}
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
}
}