# $Id: Portfile 33297 2008-01-23 09:32:47Z ryandesign@macports.org $

PortSystem 1.0

name			dante
version			1.1.19
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/ freebsd
checksums		sha1 e366a60a880ceff6205f7cd87249c7322b844d3c

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

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