# $Id: Portfile 70707 2010-08-18 04:38:47Z ryandesign@macports.org $

PortSystem              1.0

name                    dante
version                 1.2.1
revision                1
categories              net
platforms               darwin
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                http://www.inet.no/dante/
master_sites            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/

checksums               md5     8faa404af6e42c4bf9b784492c6041d7 \
                        sha1    381803f0e6149c064c679b04dd9abc647cfc76c0 \
                        rmd160  219398c9f87943f382ddf2dc56d3604efa4360ca

patchfiles              patch-configure.diff

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
