# -*- 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 PortSystem 1.0 PortGroup github 1.0 PortGroup legacysupport 1.1 github.setup varnishcache varnish-cache 7.4.2 varnish- github.tarball_from archive name varnish epoch 20110709 revision 0 categories www platforms darwin maintainers {wohner.eu:normen @Gminfly} {@catap korins.ky:kirill} openmaintainer license BSD description Varnish is a state-of-the-art, high-performance HTTP accelerator long_description Varnish was written from the ground up to be a high \ performance caching reverse proxy. homepage https://varnish-cache.org/ checksums rmd160 d4723c28109c39b681921086d2a47bfab02003a1 \ sha256 207f81bb84b4b37004986de11168a1c0b0a7564698bf49f8aed11e61b1e6722b \ size 2042569 set python_branch 3.11 set python_version [string map {. {}} ${python_branch}] depends_build port:pkgconfig \ port:py${python_version}-docutils \ port:py${python_version}-sphinx depends_lib port:pcre2 use_autoreconf yes autoreconf.args -fi # needs MAP_ANONYMOUS legacysupport.newest_darwin_requires_legacy 14 configure.args-append --with-rst2man=${prefix}/bin/rst2man-${python_branch} \ --with-rst2html=${prefix}/bin/rst2html-${python_branch} \ --with-sphinx-build=${prefix}/bin/sphinx-build-${python_branch} \ PYTHON=${prefix}/bin/python${python_branch} startupitem.create yes startupitem.pidfile auto "${prefix}/var/run/${name}/${name}.pid" startupitem.start "${prefix}/share/${name}/varnish.init start" startupitem.stop "${prefix}/share/${name}/varnish.init stop" startupitem.restart "${prefix}/share/${name}/varnish.init restart" post-destroot { # create dir xinstall -d -m 755 ${destroot}${prefix}/etc/${name} # copy files xinstall -m 644 ${filespath}/varnish.conf.in ${destroot}${prefix}/etc/${name}/varnish.conf.default xinstall -m 755 ${filespath}/varnish.init.in ${destroot}${prefix}/share/${name}/${name}.init xinstall -m 755 ${filespath}/varnish-vcl-reload.in ${destroot}${prefix}/sbin/varnish-vcl-reload # replace @PREFIX@ to ${prefix} reinplace "s|@PREFIX@|${prefix}|g" \ ${destroot}${prefix}/etc/${name}/varnish.conf.default \ ${destroot}${prefix}/share/${name}/${name}.init \ ${destroot}${prefix}/sbin/varnish-vcl-reload copy ${destroot}${prefix}/share/doc/${name}/example.vcl ${destroot}${prefix}/etc/${name}/default.vcl.default } post-activate { if {![file exists ${prefix}/etc/${name}/default.vcl]} { file copy ${prefix}/etc/${name}/default.vcl.default \ ${prefix}/etc/${name}/default.vcl } if {![file exists ${prefix}/etc/${name}/varnish.conf]} { file copy ${prefix}/etc/${name}/varnish.conf.default \ ${prefix}/etc/${name}/varnish.conf } # dirs nedded to run varnish xinstall -d -m 755 -o nobody -g nobody ${prefix}/var/${name} xinstall -d -m 755 -o nobody -g nobody ${prefix}/var/run/${name} }