# -*- 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               legacysupport 1.1

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

name                    dante
version                 1.4.4
revision                0
categories              net
license                 BSD
maintainers             nomaintainer

description             A circuit-level firewall/proxy

long_description        Dante is a circuit-level firewall/proxy (socks \
                        implemented) that can be used to provide convenient \
                        and secure network connectivity to a wide range of \
                        hosts while requiring only the server Dante runs on \
                        to have external network connectivity. Once installed, \
                        Dante can in most cases be made transparent to the \
                        clients while offering detailed access control and \
                        logging facilities to the server administrator.

homepage                https://www.inet.no/dante/
master_sites            ${homepage}files/ \
                        ftp://ftp.inet.no/pub/socks/ \
                        ftp://ftp.inet.no/pub/socks/old/

checksums               rmd160  ef9cee6b5267e174dfc91571dedf79c151a4ff32 \
                        sha256  1973c7732f1f9f0a4c0ccf2c1ce462c7c25060b25643ea90f9b98f53a813faec \
                        size    1378352

configure.args-append   --mandir=${prefix}/share/man \
                        --without-gssapi \
                        --with-socks-conf=${prefix}/etc/dante/socks.conf \
                        --with-sockd-conf=${prefix}/etc/dante/sockd.conf \
                        --with-pidfile=${prefix}/var/run/dante/dante.pid

destroot.keepdirs       ${destroot}${prefix}/var/run/dante/
post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/etc/dante/
    xinstall -m 644 ${worksrcpath}/example/socks.conf \
        ${destroot}${prefix}/etc/dante/socks.conf.sample
}

livecheck.type          regex
livecheck.url           ${homepage}download.html
livecheck.regex         ${name}-(\[0-9.\]+)\\.tar.gz
