Ticket #11404: dsocks-1.6.diff

File dsocks-1.6.diff, 3.3 KB (added by boeyms@…, 18 years ago)
  • net/dsocks/Portfile

    diff -Naur dports/net/dsocks/Portfile dports-devel/net/dsocks/Portfile
    old new  
     1# $Id$
     2
     3PortSystem 1.0
     4name                    dsocks
     5version                 1.6
     6revision                0
     7categories              net
     8maintainers             boeyms@fastmail.fm openmaintainer@macports.org
     9description             SOCKS client wrapper for *BSD / MacOS X
     10long_description        dsocks supports just enough of SOCKS 4 and 5 to allow \
     11                        non-SOCKS-aware applications to connect through either \
     12                        a local OpenSSH or a local Tor SOCKS proxy.
     13platforms               darwin freebsd
     14
     15homepage                http://monkey.org/~dugsong/dsocks/
     16master_sites            ${homepage}
     17checksums               md5    3879ecbdccedbee8fcb0713492274c02 \
     18                        sha1   d2f917b831786cdf0b80f662f6e8b9e283929c92 \
     19                        rmd160 7a36c11e80a099bd595dfa9ed2cde654ef22aefe
     20
     21depends_run             bin:ssh:openssh
     22
     23platform darwin {
     24        patchfiles-append       patch-dsocks.sh patch-dsocks-torify.sh
     25}
     26
     27post-patch      {
     28        reinplace "s|/usr/local|${prefix}|g" \
     29                ${worksrcpath}/dsocks.sh \
     30                ${worksrcpath}/dsocks-torify.sh
     31}
     32
     33use_configure           no
     34build.type              bsd
     35destroot.post_args      DESTDIR=${destroot} LIBDIR=${prefix}/lib
     36
     37post-destroot {
     38        xinstall -m 755 -d ${destroot}${prefix}/bin
     39        xinstall -m 755 ${worksrcpath}/dsocks.sh ${destroot}${prefix}/bin
     40}
     41
     42variant tor {
     43        depends_run-append      bin:tor:tor port:py-dpkt
     44        post-destroot {
     45                xinstall -m 755 -d ${destroot}${prefix}/bin
     46                xinstall -m 755 ${worksrcpath}/dsocks.sh \
     47                        ${destroot}${prefix}/bin
     48                xinstall -m 755 ${worksrcpath}/dsocks-torify.sh \
     49                        ${destroot}${prefix}/bin
     50                xinstall -m 755 ${worksrcpath}/tor-dns-proxy.py \
     51                        ${destroot}${prefix}/bin
     52        }
     53}
  • net/dsocks/files/patch-dsocks-torify.sh

    diff -Naur dports/net/dsocks/files/patch-dsocks-torify.sh dports-devel/net/dsocks/files/patch-dsocks-torify.sh
    old new  
     1--- dsocks-torify.sh    2006-10-12 04:13:58.000000000 +0000
     2+++ dsocks-torify.sh.darwin     2007-02-14 13:11:57.000000000 +0000
     3@@ -7,8 +7,5 @@
     4 # you probably want to run tor-dns-proxy.py also...
     5 
     6 # for MacOS X...
     7-#LIBDSOCKS=/usr/local/lib/libdsocks.dylib
     8-#DYLD_INSERT_LIBRARIES=$LIBDSOCKS DYLD_FORCE_FLAT_NAMESPACE=1 exec "$@"
     9-
     10-LIBDSOCKS=/usr/local/lib/libdsocks.so.1.0
     11-LD_PRELOAD=$LIBDSOCKS exec "$@"
     12+LIBDSOCKS=/usr/local/lib/libdsocks.dylib
     13+DYLD_INSERT_LIBRARIES=$LIBDSOCKS DYLD_FORCE_FLAT_NAMESPACE=1 exec "$@"
  • net/dsocks/files/patch-dsocks.sh

    diff -Naur dports/net/dsocks/files/patch-dsocks.sh dports-devel/net/dsocks/files/patch-dsocks.sh
    old new  
     1--- dsocks.sh   2006-10-12 04:13:58.000000000 +0000
     2+++ dsocks.sh.darwin    2007-02-14 13:11:57.000000000 +0000
     3@@ -8,8 +8,5 @@
     4 #export LOCALDOMAIN="int.example.com"
     5 
     6 # for MacOS X...
     7-#LIBDSOCKS=/usr/local/lib/libdsocks.dylib
     8-#DYLD_INSERT_LIBRARIES=$LIBDSOCKS DYLD_FORCE_FLAT_NAMESPACE=1 exec "$@"
     9-
     10-LIBDSOCKS=/usr/local/lib/libdsocks.so.1.0
     11-LD_PRELOAD=$LIBDSOCKS exec "$@"
     12+LIBDSOCKS=/usr/local/lib/libdsocks.dylib
     13+DYLD_INSERT_LIBRARIES=$LIBDSOCKS DYLD_FORCE_FLAT_NAMESPACE=1 exec "$@"