# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name torsocks
version 2.2.0
categories net security
license GPL-2+
platforms darwin
maintainers yopmail.com:sami.laine
description A transparent socks proxy for use with tor
long_description Torsocks is an application for Linux, BSD and \
OS X that allows you to use network applications \
such as ssh and irssi with Tor. Torsocks allows you \
to use most socks-friendly applications in a safe \
way with Tor. It ensures that DNS requests are \
handled safely and explicitly rejects UDP traffic \
from the application you are using.
homepage https://git.torproject.org/torsocks.git
master_sites https://people.torproject.org/~dgoulet/torsocks/
use_xz yes
checksums rmd160 a16adc2120da9c846d4801ece60a43758a25f2e6 \
sha256 29e8c8cefa677dfb493ea6f2449576a7a9abebd221547037f9381d9ed44bd92f
depends_build port:coreutils
post-destroot {
move ${destroot}${prefix}/etc/tor/torsocks.conf \
${destroot}${prefix}/etc/torsocks.conf.default
}
post-activate {
if {![file exists ${prefix}/etc/torsocks.conf]} {
file copy ${prefix}/etc/torsocks.conf.default \
${prefix}/etc/torsocks.conf
}
}
test.run yes
test.target check