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

PortSystem 1.0

name             tor-devel
version          0.2.1.16-rc
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/
distname         tor-${version}

checksums        md5    9000ffdfda2835b7acefeeef8e6b6280 \
                 sha1   54c333d8344ee7ce1c3f1f954a5871870f4068d1 \
                 rmd160 d5efa68f7e569c7a36b67ef8eabf7551b51fcc16

depends_lib      port:libevent port:openssl port:zlib
configure.args   --with-libevent-dir=${prefix} \
                 --with-openssl-dir=${prefix} \
                 --with-zlib-dir=${prefix}

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+(-alpha|-beta|-rc)?)]
