# -*- 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
set major [lindex [split ${version} .] 0]
maintainers {mps @Schamschula} openmaintainer
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 https://www.stunnel.org/downloads/archive/${major}.x/ \
http://www.usenix.org.uk/mirrors/stunnel/archive/${major}.x/ \
http://ftp.nluug.nl/pub/networking/stunnel/archive/${major}.x/ \
http://stunnel.cybermirror.org/archive/${major}.x/
checksums rmd160 6934239db636aadffe5d6559164f07efb8b2e7aa \
sha256 7384bfb356b9a89ddfee70b5ca494d187605bb516b4fff597e167f97e2236b22 \
depends_lib path:lib/libssl.dylib:openssl
patchfiles patch-configure \
patch-tools-Makefile.in.diff \
patch-tools-openssl.cnf.diff
configure.args --disable-libwrap \
destroot.keepdirs ${destroot}${prefix}/var/lib/stunnel
xinstall -d -m 770 -o nobody ${destroot}${prefix}/var/lib/stunnel/
xinstall -b -m 600 ${worksrcpath}/tools/stunnel.pem ${destroot}${prefix}/etc/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
if {${os.arch} ne "powerpc"} {
default_variants +libwrap
# Tell the user about the stupid fake certificate that we provide.
A fake certificate has been installed as ${prefix}/etc/stunnel/stunnel.pem