a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20865 2006-12-06 01:22:43Z yeled@macports.org $
PortSystem 1.0
name stunnel
version 4.20
categories security net
maintainers pguyot@kallisys.net
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.
platforms darwin
homepage http://www.stunnel.org/
master_sites ${homepage}download/stunnel/src/ \
ftp://stunnel.mirt.net/stunnel/
checksums md5 cf9940395d3503018f721c962528d2ec \
sha1 a9a449b28a4f34ab22f6b4bfaa81c1904a5883c4 \
rmd160 6a5dfbabe17804e87ed8c7c75898dba4b4257827
depends_lib bin:openssl:openssl
patchfiles patch-configure \
patch-tools-stunnel.cnf
configure.args --mandir=${prefix}/share/man \
--disable-libwrap
default_variants +libwrap
post-destroot {
# Create the ${prefix}/var/lib/stunnel directory.
xinstall -d -m 770 "${destroot}${prefix}/var/lib/stunnel/"
system "touch ${destroot}${prefix}/var/lib/stunnel/.turd"
# Tell the user about the stupid fake certificate that we provide.
ui_msg "A fake certificate has been installed as ${prefix}/etc/stunnel/stunnel.pem"
}
# This (default) variant will include libwrap feature.
# libwrap has been reported to introduce some problems with stunnel 4.18.
# See: http://svn.macosforge.org/projects/macports/ticket/11028
variant libwrap {
configure.args-delete "--disable-libwrap"
}