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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name stunnel |
---|
6 | version 5.42 |
---|
7 | set major [lindex [split ${version} .] 0] |
---|
8 | categories security net |
---|
9 | platforms darwin |
---|
10 | maintainers {mps @Schamschula} openmaintainer |
---|
11 | license GPL-2+ |
---|
12 | |
---|
13 | description SSL tunneling program |
---|
14 | |
---|
15 | long_description Stunnel is a program that allows you to encrypt arbitrary \ |
---|
16 | TCP connections inside SSL (Secure Sockets Layer) available \ |
---|
17 | on both Unix and Windows. Stunnel can allow you to secure \ |
---|
18 | non-SSL aware daemons and protocols (like POP, IMAP, LDAP, \ |
---|
19 | etc) by having Stunnel provide the encryption, requiring no \ |
---|
20 | changes to the daemon's code. |
---|
21 | |
---|
22 | homepage http://www.stunnel.org/ |
---|
23 | master_sites https://www.stunnel.org/downloads/ \ |
---|
24 | http://www.usenix.org.uk/mirrors/stunnel/ \ |
---|
25 | http://ftp.nluug.nl/pub/networking/stunnel/ \ |
---|
26 | http://stunnel.cybermirror.org/ |
---|
27 | |
---|
28 | checksums rmd160 c40db532d1121681b9ddecfe56bff3e5b8152f54 \ |
---|
29 | sha256 1b6a7aea5ca223990bc8bd621fb0846baa4278e1b3e00ff6eee279cb8e540fab |
---|
30 | |
---|
31 | depends_lib path:lib/libssl.dylib:openssl |
---|
32 | |
---|
33 | patchfiles patch-configure \ |
---|
34 | patch-tools-openssl.cnf.diff |
---|
35 | |
---|
36 | configure.args --disable-libwrap \ |
---|
37 | --with-ssl=${prefix} |
---|
38 | |
---|
39 | destroot.keepdirs ${destroot}${prefix}/var/lib/stunnel |
---|
40 | post-destroot { |
---|
41 | xinstall -d -m 770 -o nobody ${destroot}${prefix}/var/lib/stunnel/ |
---|
42 | } |
---|
43 | |
---|
44 | # libwrap has been reported to introduce some problems with stunnel 4.18. |
---|
45 | # See: https://trac.macports.org/ticket/11028 |
---|
46 | variant libwrap description {Include libwrap support} { |
---|
47 | depends_lib-append port:tcp_wrappers |
---|
48 | configure.args-delete --disable-libwrap |
---|
49 | } |
---|
50 | |
---|
51 | default_variants +libwrap |
---|
52 | |
---|
53 | # Tell the user about the stupid fake certificate that we provide. |
---|
54 | notes " |
---|
55 | A fake certificate has been installed as ${prefix}/etc/stunnel/stunnel.pem |
---|
56 | " |
---|
57 | |
---|
58 | livecheck.type regex |
---|
59 | livecheck.url ${homepage}downloads.html |
---|
60 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix} |
---|