# $Id: Portfile 53268 2009-07-02 05:38:21Z boeyms@macports.org $

PortSystem 1.0

name             tor
version          0.2.0.35
categories       security
maintainers      boeyms openmaintainer
description      anonymizing overlay network for TCP
long_description \
	Tor provides a distributed network of servers \
	(onion routers). Users bounce their TCP streams \
	(web traffic, FTP, SSH, etc.) around the \
	routers. This makes it hard for recipients, \
	observers, and even the onion routers \
	themselves to track the source of the stream.
homepage         http://www.torproject.org/
platforms        darwin
master_sites     ${homepage}dist/
checksums        md5 d4841e1b4d54866495fd373e865b2d44 \
                 sha1 6216887e0575c4a18f46e53faea1ebdb04bf7905 \
                 rmd160 ecc98c602b5c153a8aa8f6e651166705bc05c972
depends_lib      port:libevent port:openssl port:zlib
configure.args   --mandir=${prefix}/share/man --enable-eventdns

test.run         yes
test.target      check
livecheck.check  regex
livecheck.url    ${master_sites}?C=M\;O=D
livecheck.regex  [suffix tor-(\\d+\\.\\d+\\.\\d+\\.\\d+)]
