43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# Template file for 'varnish'
|
|
pkgname=varnish
|
|
version=3.0.5
|
|
revision=1
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="pkg-config python"
|
|
makedepends="pcre-devel readline-devel"
|
|
conf_files="/etc/varnish/default.vcl"
|
|
systemd_services="varnish.service on"
|
|
make_dirs="/var/varnish 750 nobody nogroup"
|
|
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"
|
|
checksum=302fd6afc771524ca3912f5d945ab197a55762385c012b2054df7d86bf7ae2b7
|
|
|
|
post_install() {
|
|
# systemd reload helper
|
|
vinstall ${FILESDIR}/varnish-vcl-reload 755 usr/sbin
|
|
# systemd service
|
|
vinstall ${FILESDIR}/varnish.service 644 usr/lib/systemd/system
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|