# -*- 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 # $Id: Portfile 139971 2015-09-04 19:35:32Z ionic@macports.org $ PortSystem 1.0 name stunnel version 5.23 set major [lindex [split ${version} .] 0] categories security net platforms darwin maintainers gmail.com:mschamschula openmaintainer license GPL-2+ description SSL tunneling program long_description Stunnel is a program that allows you to encrypt arbitrary \ TCP connections inside SSL (Secure Sockets Layer) available \ on both Unix and Windows. Stunnel can allow you to secure \ non-SSL aware daemons and protocols (like POP, IMAP, LDAP, \ etc) by having Stunnel provide the encryption, requiring no \ changes to the daemon's code. homepage http://www.stunnel.org/ master_sites http://mirrors.zerg.biz/stunnel/ \ http://mirrors.zerg.biz/stunnel/archive/${major}.x/ \ ftp://ftp.stunnel.org/stunnel/ checksums rmd160 7eef7bfe5f4bcabc3f97295a60c466b52d27077f \ sha256 0fc4a702afd2e857bae8ad1f39c51546eb282c3d0ff4f4d55d62aece7328ddea depends_lib path:lib/libssl.dylib:openssl patchfiles patch-configure \ patch-tools-openssl.cnf.diff configure.args --disable-libwrap \ --with-ssl=${prefix} destroot.keepdirs ${destroot}${prefix}/var/lib/stunnel post-destroot { xinstall -d -m 770 -o nobody ${destroot}${prefix}/var/lib/stunnel/ } # libwrap has been reported to introduce some problems with stunnel 4.18. # See: https://trac.macports.org/ticket/11028 variant libwrap description {Include libwrap support} { depends_lib-append port:tcp_wrappers configure.args-delete --disable-libwrap } default_variants +libwrap # Tell the user about the stupid fake certificate that we provide. notes " A fake certificate has been installed as ${prefix}/etc/stunnel/stunnel.pem " livecheck.type regex livecheck.url ${homepage}downloads.html livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}