mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
for pf in */*/Portfile
do
ed -s "$pf" <<-'EOF'
1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
1g/^[[:space:]]*$/d
w
q
EOF
done
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
PortSystem 1.0
|
|
|
|
name dsocks
|
|
version 1.7
|
|
categories net
|
|
license GPL-2
|
|
maintainers nomaintainer
|
|
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.
|
|
platforms darwin freebsd
|
|
|
|
homepage https://monkey.org/~dugsong/dsocks/
|
|
master_sites googlecode
|
|
|
|
checksums rmd160 cdad2b452b255462b1c06e837f7487babbcb091a \
|
|
sha256 dea7f476f15be36c314b9c5b5c580d7e08955e40dc71de51827386a3f7ce9dee
|
|
|
|
depends_run bin:ssh:openssh
|
|
|
|
post-patch {
|
|
reinplace "s|/usr/local|${prefix}|g" \
|
|
${worksrcpath}/dsocks.sh \
|
|
${worksrcpath}/dsocks-torify.sh
|
|
}
|
|
|
|
use_configure no
|
|
|
|
build.type bsd
|
|
|
|
destroot.post_args DESTDIR=${destroot} LIBDIR=${prefix}/lib STRIP=''
|
|
|
|
post-destroot {
|
|
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
|
|
|
|
post-destroot {
|
|
xinstall -W ${worksrcpath} dsocks.sh dsocks-torify.sh tor-dns-proxy.py ${destroot}${prefix}/bin
|
|
}
|
|
}
|