Ticket #39477: varnish-without-whitespace.diff
File varnish-without-whitespace.diff, 3.1 KB (added by nerdling (Jeremy Lavergne), 10 years ago) |
---|
-
Portfile
1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 … … 3 4 4 5 name varnish 5 epoch 20110709 6 version 3.0.3 7 revision 1 6 version 3.0.4 8 7 categories www 9 license BSD zlib10 8 platforms darwin 11 maintainers wohner.eu:normen 9 maintainers pmq openmaintainer 10 license BSD 12 11 13 12 description Varnish is a state-of-the-art, high-performance HTTP accelerator … … 18 17 homepage http://www.varnish-cache.org 19 18 master_sites http://repo.varnish-cache.org/source/ 20 19 21 checksums rmd160 a911a2637ef26607aad8a1c34a83bc797a15235d\22 sha256 2d37d18d952f58b208ac3a0706d4d3e4c0de304b1fcc9df5019571c75f148ab220 checksums rmd160 ed8aba21af17d5fee225eb03950fd90ad7b07911 \ 21 sha256 4e044ccb5c76222bddf89c808f13ea8f66977972675aecb48a920f6800ad0f79 23 22 24 depends_build port:pkgconfig 23 depends_build port:pkgconfig \ 24 port:py27-docutils 25 25 26 26 depends_lib port:pcre 27 27 28 configure.args-append --with-rst2man=${prefix}/bin/rst2man-2.7.py 29 28 30 startupitem.create yes 31 startupitem.pidfile auto "${prefix}/var/run/${name}/${name}.pid" 29 32 startupitem.start "${prefix}/share/${name}/varnish.init start" 30 33 startupitem.stop "${prefix}/share/${name}/varnish.init stop" 34 startupitem.restart "${prefix}/share/${name}/varnish.init restart" 31 35 32 36 post-destroot { 33 37 # create dir … … 64 68 65 69 livecheck.url ${master_sites} 66 70 livecheck.type regex 67 livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+).tar.gz 68 No newline at end of file 71 livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+).tar.gz -
files/varnish.conf.in
3 3 # 4 4 5 5 VARNISH_CFG="@PREFIX@/etc/varnish/default.vcl" 6 VARNISHD_PID="@PREFIX@/var/run/varnish/varnish.pid"7 6 8 VARNISHD_OPTS="-a 0.0.0.0:80 \ 9 -f $VARNISH_CFG \ 10 -T localhost:6082 \ 11 -P $VARNISHD_PID \ 7 VARNISHD_OPTS="-a 0.0.0.0:80 8 -f $VARNISH_CFG 9 -T localhost:6082 12 10 -s malloc,64M 13 11 -u nobody -g nobody" -
files/varnish.init.in
2 2 3 3 . @PREFIX@/etc/varnish/varnish.conf 4 4 5 VARNISHD_PID="@PREFIX@/var/run/varnish/varnish.pid" 6 5 7 if [[ -r $VARNISHD_PID ]]; then 6 8 read -r PID < "$VARNISHD_PID" 7 9 ps -p $PID &> /dev/null … … 14 16 15 17 case $1 in 16 18 start) 17 @PREFIX@/sbin/varnishd $VARNISHD_OPTS 19 @PREFIX@/sbin/varnishd $VARNISHD_OPTS -P $VARNISHD_PID 18 20 ;; 19 21 stop) 20 22 [[ $PID ]] && kill $PID &>/dev/null