source: trunk/dports/net/tsocks/Portfile

Last change on this file was 136566, checked in by ryandesign@…, 2 years ago

tsocks: use expand operator instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- 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
2# $Id: Portfile 136566 2015-05-21 21:40:24Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    tsocks
7epoch                   1
8version                 1.8.4
9revision                2
10categories              net
11platforms               darwin
12maintainers             nomaintainer
13license                 GPL-2+
14
15description             Transparent SOCKS proxying library
16
17long_description        tsocks allows non SOCKS aware applications (e.g \
18                        telnet, ssh, ftp etc) to use SOCKS without any \
19                        modification. It does this by intercepting the \
20                        calls that applications make to establish \
21                        network connections and negotating them through \
22                        a SOCKS server as necessary.
23
24homepage                http://ima.udg.edu/~rgarcia/tsocks/
25master_sites            ${homepage}
26use_bzip2               yes
27
28checksums               md5     dccf57d632136b62dbe7ec7970b6c3e3 \
29                        rmd160  4d0fc09ed1815cf66d067e9663061b596171d668 \
30                        sha256  a73ec8dc9ff74b1d3261afd6c5a6f7af8e129e470deddb1adde01adefac137c8
31
32patchfiles              patch-Makefile.in \
33                        patch-configure.in \
34                        patch-dead_pool.c \
35                        patch-tsocks.c \
36                        patch-tsocks.h \
37                        patch-tsocks.in
38
39post-extract {
40    reinplace "s|/etc/tsocks.conf|${prefix}/etc/tsocks.conf|g" ${worksrcpath}/tsocks.8
41}
42
43use_autoconf            yes
44
45configure.args          --with-conf=${prefix}/etc/tsocks.conf \
46                        --libdir=${prefix}/lib \
47                        --mandir=${prefix}/share/man
48
49configure.universal_args-delete --disable-dependency-tracking
50
51post-destroot {
52    xinstall -m 755 -W ${worksrcpath} inspectsocks validateconf ${destroot}${prefix}/bin
53    xinstall -m 644 ${worksrcpath}/tsocks.conf.simple.example ${destroot}${prefix}/etc/tsocks.conf.sample
54   
55    xinstall -m 755 -d ${destroot}${prefix}/share/examples/tsocks
56    xinstall -m 644 {*}[glob ${worksrcpath}/*.example] ${destroot}${prefix}/share/examples/tsocks
57   
58    xinstall -m 755 -d ${destroot}${prefix}/share/doc/tsocks
59    xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog FAQ INSTALL TODO ${destroot}${prefix}/share/doc/tsocks
60}
61
62notes "
63The tsocks.conf.sample file is in ${prefix}/etc.\
64Copy it to tsocks.conf to use it.\
65You should set tordns_enable to false if you're not using Tor.
66"
Note: See TracBrowser for help on using the repository browser.