description SOCKS client wrapper for *BSD / Mac OS X
long_description dsocks supports just enough of SOCKS 4 and 5 to allow \
non-SOCKS-aware applications to connect through either \
a local OpenSSH or a local Tor SOCKS proxy.
homepage https://monkey.org/~dugsong/dsocks/
checksums rmd160 cdad2b452b255462b1c06e837f7487babbcb091a \
sha256 dea7f476f15be36c314b9c5b5c580d7e08955e40dc71de51827386a3f7ce9dee
depends_run bin:ssh:openssh
reinplace "s|/usr/local|${prefix}|g" \
${worksrcpath}/dsocks.sh \
${worksrcpath}/dsocks-torify.sh
destroot.post_args DESTDIR=${destroot} LIBDIR=${prefix}/lib STRIP=''
xinstall -m 755 ${worksrcpath}/dsocks.sh ${destroot}${prefix}/bin
variant tor description {Add support for using the TOR anonymising network} {
depends_run-append bin:tor:tor port:py27-dpkt
xinstall -W ${worksrcpath} dsocks.sh dsocks-torify.sh tor-dns-proxy.py ${destroot}${prefix}/bin