varnish: added runit service.
This commit is contained in:
parent
5d961943a9
commit
5692c36470
2
srcpkgs/varnish/files/varnishd/run
Executable file
2
srcpkgs/varnish/files/varnishd/run
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec varnishd -a 0.0.0.0:80 -f /etc/varnish/default.vcl -T localhost:6082 -s malloc,64M -u nobody -g nogroup -F
|
||||||
@ -1,14 +1,15 @@
|
|||||||
# Template file for 'varnish'
|
# Template file for 'varnish'
|
||||||
pkgname=varnish
|
pkgname=varnish
|
||||||
version=3.0.5
|
version=3.0.5
|
||||||
revision=1
|
revision=2
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
|
replaces="runit-void<20141013_2"
|
||||||
|
build_options="systemd"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
hostmakedepends="pkg-config python"
|
hostmakedepends="pkg-config python"
|
||||||
makedepends="pcre-devel readline-devel"
|
makedepends="pcre-devel readline-devel"
|
||||||
conf_files="/etc/varnish/default.vcl"
|
conf_files="/etc/varnish/default.vcl"
|
||||||
systemd_services="varnish.service on"
|
|
||||||
make_dirs="/var/varnish 750 nobody nogroup"
|
make_dirs="/var/varnish 750 nobody nogroup"
|
||||||
short_desc="A fast caching HTTP reverse proxy"
|
short_desc="A fast caching HTTP reverse proxy"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
@ -18,10 +19,13 @@ distfiles="http://repo.varnish-cache.org/source/${pkgname}-${version}.tar.gz"
|
|||||||
checksum=302fd6afc771524ca3912f5d945ab197a55762385c012b2054df7d86bf7ae2b7
|
checksum=302fd6afc771524ca3912f5d945ab197a55762385c012b2054df7d86bf7ae2b7
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# systemd reload helper
|
|
||||||
vinstall ${FILESDIR}/varnish-vcl-reload 755 usr/sbin
|
|
||||||
# systemd service
|
# systemd service
|
||||||
vinstall ${FILESDIR}/varnish.service 644 usr/lib/systemd/system
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
libvarnishapi_package() {
|
libvarnishapi_package() {
|
||||||
@ -30,7 +34,6 @@ libvarnishapi_package() {
|
|||||||
vmove "usr/lib/*.so.*"
|
vmove "usr/lib/*.so.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libvarnishapi-devel_package() {
|
libvarnishapi-devel_package() {
|
||||||
depends="libvarnishapi>=${version}_${revision}"
|
depends="libvarnishapi>=${version}_${revision}"
|
||||||
short_desc+=" - API development files"
|
short_desc+=" - API development files"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user