2012-12-11 14:43:20 +00:00
|
|
|
# Template file for 'varnish'
|
|
|
|
pkgname=varnish
|
|
|
|
version=3.0.3
|
2014-02-16 10:21:41 +00:00
|
|
|
revision=4
|
2012-12-11 14:43:20 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--disable-static"
|
2014-02-16 10:21:41 +00:00
|
|
|
hostmakedepends="pkg-config python"
|
|
|
|
makedepends="pcre-devel readline-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/varnish/default.vcl"
|
|
|
|
systemd_services="varnish.service on"
|
|
|
|
make_dirs="/var/varnish 750 nobody nogroup"
|
2012-12-11 14:43:20 +00: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"
|
|
|
|
checksum=2d37d18d952f58b208ac3a0706d4d3e4c0de304b1fcc9df5019571c75f148ab2
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# systemd reload helper
|
|
|
|
vinstall ${FILESDIR}/varnish-vcl-reload 755 usr/sbin
|
|
|
|
# systemd service
|
|
|
|
vinstall ${FILESDIR}/varnish.service 644 usr/lib/systemd/system
|
|
|
|
}
|
2013-04-14 14:51:01 +00:00
|
|
|
|
|
|
|
libvarnishapi_package() {
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - API runtime library"
|
2013-04-14 14:51:01 +00:00
|
|
|
pkg_install() {
|
2014-02-16 10:21:41 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-14 14:51:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libvarnishapi-devel_package() {
|
2014-02-16 10:21:41 +00:00
|
|
|
depends="libvarnishapi>=${version}_${revision}"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - API development files"
|
2013-04-14 14:51:01 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-16 10:21:41 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 14:51:01 +00:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|