Ticket #54494: Portfile

File Portfile, 2.3 KB (added by Serge3leo (Serguei E. Leontiev), 7 years ago)

Portfile for actual version 5.42

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
3PortSystem          1.0
4
5name                stunnel
6version             5.42
7set major           [lindex [split ${version} .] 0]
8categories          security net
9platforms           darwin
10maintainers         {mps @Schamschula} openmaintainer
11license             GPL-2+
12
13description         SSL tunneling program
14
15long_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
22homepage            http://www.stunnel.org/
23master_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
28checksums           rmd160  c40db532d1121681b9ddecfe56bff3e5b8152f54 \
29                    sha256  1b6a7aea5ca223990bc8bd621fb0846baa4278e1b3e00ff6eee279cb8e540fab
30
31depends_lib         path:lib/libssl.dylib:openssl
32
33patchfiles          patch-configure \
34                    patch-tools-openssl.cnf.diff
35
36configure.args      --disable-libwrap \
37                    --with-ssl=${prefix}
38
39destroot.keepdirs   ${destroot}${prefix}/var/lib/stunnel
40post-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
46variant libwrap description {Include libwrap support} {
47    depends_lib-append      port:tcp_wrappers
48    configure.args-delete   --disable-libwrap
49}
50
51default_variants    +libwrap
52
53# Tell the user about the stupid fake certificate that we provide.
54notes "
55A fake certificate has been installed as ${prefix}/etc/stunnel/stunnel.pem
56"
57
58livecheck.type      regex
59livecheck.url       ${homepage}downloads.html
60livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}