PortSystem              1.0

name                    dante
version                 1.4.2
revision                1
categories              net
platforms               darwin
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/ \
                        http://sorcerer.mirrors.pair.com/mirror/ \
                        http://dbg.download.sourcemage.org/mirror/

dist_subdir             ${name}/${version}_1
checksums               rmd160 d2e01bf899b0df74ef441926c497385ab8040a7c \
                        sha256 4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7

configure.args          --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           [lindex ${master_sites} 0]
livecheck.regex         ${name}-(\[0-9.\]+)\\.tar