| 26 | |
| 27 | startupitem.create yes |
| 28 | startupitem.executable ${prefix}/sbin/varnishd -a :80 \ |
| 29 | -f ${prefix}/etc/varnish/default.vcl \ |
| 30 | -T localhost:6082 \ |
| 31 | -s malloc,64M \ |
| 32 | -u nobody -g nobody \ |
| 33 | -P ${prefix}/var/run/${name}.pid |
| 34 | |
| 35 | post-destroot { |
| 36 | move ${destroot}${prefix}/etc/varnish/default.vcl ${destroot}${prefix}/etc/varnish/default.vcl.default |
| 37 | } |
| 38 | |
| 39 | post-activate { |
| 40 | if {![file exists ${prefix}/etc/varnish/default.vcl]} { |
| 41 | file copy ${prefix}/etc/varnish/default.vcl.default \http://www.fadingred.com/koku/support/ |
| 42 | ${prefix}/etc/varnish/default.vcl |
| 43 | } |
| 44 | xinstall -m 755 -d ${prefix}/var/varnish/ |
| 45 | } |
| 46 | |
| 47 | livecheck.url ${master_sites} |
| 48 | livecheck.type regex |
| 49 | livecheck.regex varnish-(\\d+\\.\\d+\\.\\d+).tar.gz |