# -*- 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               openssl 1.0
PortGroup               cmake 1.1

github.setup            3proxy 3proxy 0.9.8
github.tarball_from     archive
revision                0
categories              net
license                 BSD GPL-2+ LGPL-2.1+ Apache
maintainers             {mail.ru:nano103 @nano103} openmaintainer

description             tiny free proxy server

long_description        3proxy is a universal proxy server. It can be used \
                        to provide internal users with fully controllable \
                        access to external resources or to provide external \
                        users with access to internal resources.

homepage                https://3proxy.ru/

checksums               rmd160  3c59086734cf7bd53dcf40bdba37841ee9b96fe3 \
                        sha256  9f65f6d112560040bac075071703b059bfc7df57db8f4aa81e5f139898e628db \
                        size    443370

depends_lib-append      port:pcre2

configure.args-append   -DCMAKE_INSTALL_SYSCONFDIR=${prefix}/etc

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} copying README.md \
        ${destroot}${prefix}/share/doc/${name}
}

github.livecheck.regex  {(\d+(?:.\d+)*)}
