head	1.113;
access;
symbols
	RELEASE_8_3_0:1.108
	RELEASE_9_0_0:1.105
	RELEASE_7_4_0:1.101
	RELEASE_8_2_0:1.101
	RELEASE_6_EOL:1.99
	RELEASE_8_1_0:1.96
	RELEASE_7_3_0:1.95
	RELEASE_8_0_0:1.92
	RELEASE_7_2_0:1.90
	RELEASE_7_1_0:1.88
	RELEASE_6_4_0:1.88
	RELEASE_5_EOL:1.86
	RELEASE_7_0_0:1.82
	RELEASE_6_3_0:1.82
	PRE_XORG_7:1.78
	RELEASE_4_EOL:1.77
	RELEASE_6_2_0:1.75
	RELEASE_6_1_0:1.71
	RELEASE_5_5_0:1.71
	RELEASE_6_0_0:1.66
	RELEASE_5_4_0:1.59
	RELEASE_4_11_0:1.59
	RELEASE_5_3_0:1.55
	RELEASE_4_10_0:1.50
	RELEASE_5_2_1:1.50
	RELEASE_5_2_0:1.50
	RELEASE_4_9_0:1.50
	RELEASE_5_1_0:1.50
	RELEASE_4_8_0:1.48
	RELEASE_5_0_0:1.45
	RELEASE_4_7_0:1.44
	RELEASE_4_6_2:1.39
	RELEASE_4_6_1:1.39
	RELEASE_4_6_0:1.39
	RELEASE_5_0_DP1:1.39
	RELEASE_4_5_0:1.39
	RELEASE_4_4_0:1.35
	RELEASE_4_3_0:1.29
	RELEASE_4_2_0:1.23
	RELEASE_4_1_1:1.23
	RELEASE_4_1_0:1.22
	RELEASE_3_5_0:1.21
	RELEASE_4_0_0:1.18
	RELEASE_3_4_0:1.12
	RELEASE_3_3_0:1.9
	RELEASE_3_2_0:1.4
	RELEASE_3_1_0:1.2
	v2_1:1.1.1.1
	MARTTI:1.1.1;
locks; strict;
comment	@# @;


1.113
date	2013.03.23.02.50.33;	author svnexp;	state Exp;
branches;
next	1.112;

1.112
date	2013.03.04.14.54.38;	author svnexp;	state Exp;
branches;
next	1.111;

1.111
date	2012.11.17.06.01.21;	author svnexp;	state Exp;
branches;
next	1.110;

1.110
date	2012.10.09.22.19.55;	author zi;	state Exp;
branches;
next	1.109;

1.109
date	2012.06.10.16.01.05;	author zi;	state Exp;
branches;
next	1.108;

1.108
date	2012.03.19.22.41.40;	author zi;	state Exp;
branches;
next	1.107;

1.107
date	2012.02.25.16.15.12;	author zi;	state Exp;
branches;
next	1.106;

1.106
date	2012.02.25.13.48.18;	author zi;	state Exp;
branches;
next	1.105;

1.105
date	2011.09.23.22.25.18;	author amdmi3;	state Exp;
branches;
next	1.104;

1.104
date	2011.09.08.09.53.47;	author roam;	state Exp;
branches;
next	1.103;

1.103
date	2011.08.01.14.47.43;	author roam;	state Exp;
branches;
next	1.102;

1.102
date	2011.02.10.09.34.59;	author roam;	state Exp;
branches;
next	1.101;

1.101
date	2011.01.04.16.37.24;	author roam;	state Exp;
branches;
next	1.100;

1.100
date	2010.12.04.07.33.31;	author ade;	state Exp;
branches;
next	1.99;

1.99
date	2010.10.21.11.36.26;	author roam;	state Exp;
branches;
next	1.98;

1.98
date	2010.10.12.23.09.50;	author pav;	state Exp;
branches;
next	1.97;

1.97
date	2010.09.20.09.49.58;	author roam;	state Exp;
branches;
next	1.96;

1.96
date	2010.04.16.12.49.44;	author roam;	state Exp;
branches;
next	1.95;

1.95
date	2010.02.03.09.33.25;	author roam;	state Exp;
branches;
next	1.94;

1.94
date	2009.11.19.11.06.25;	author roam;	state Exp;
branches;
next	1.93;

1.93
date	2009.11.13.10.58.56;	author roam;	state Exp;
branches;
next	1.92;

1.92
date	2009.08.02.19.35.33;	author mezz;	state Exp;
branches;
next	1.91;

1.91
date	2009.04.23.11.37.01;	author roam;	state Exp;
branches;
next	1.90;

1.90
date	2009.01.09.15.55.54;	author miwi;	state Exp;
branches;
next	1.89;

1.89
date	2009.01.06.17.59.20;	author pav;	state Exp;
branches;
next	1.88;

1.88
date	2008.08.21.06.18.21;	author rafan;	state Exp;
branches;
next	1.87;

1.87
date	2008.06.03.15.12.08;	author roam;	state Exp;
branches;
next	1.86;

1.86
date	2008.05.19.15.57.52;	author roam;	state Exp;
branches;
next	1.85;

1.85
date	2008.03.28.11.02.11;	author roam;	state Exp;
branches;
next	1.84;

1.84
date	2008.01.26.14.13.43;	author roam;	state Exp;
branches;
next	1.83;

1.83
date	2008.01.24.00.36.42;	author roam;	state Exp;
branches;
next	1.82;

1.82
date	2007.11.13.10.09.51;	author roam;	state Exp;
branches;
next	1.81;

1.81
date	2007.10.29.16.45.19;	author roam;	state Exp;
branches;
next	1.80;

1.80
date	2007.10.04.06.00.24;	author edwin;	state Exp;
branches;
next	1.79;

1.79
date	2007.08.28.10.01.00;	author roam;	state Exp;
branches;
next	1.78;

1.78
date	2007.02.01.02.41.56;	author kris;	state Exp;
branches;
next	1.77;

1.77
date	2006.12.01.16.16.05;	author roam;	state Exp;
branches;
next	1.76;

1.76
date	2006.11.15.11.32.51;	author roam;	state Exp;
branches;
next	1.75;

1.75
date	2006.10.08.18.06.54;	author roam;	state Exp;
branches;
next	1.74;

1.74
date	2006.09.26.13.40.52;	author roam;	state Exp;
branches;
next	1.73;

1.73
date	2006.09.18.13.29.03;	author roam;	state Exp;
branches;
next	1.72;

1.72
date	2006.04.21.10.51.49;	author roam;	state Exp;
branches;
next	1.71;

1.71
date	2006.02.23.10.39.05;	author ade;	state Exp;
branches;
next	1.70;

1.70
date	2006.01.31.09.11.38;	author roam;	state Exp;
branches;
next	1.69;

1.69
date	2005.11.15.06.51.05;	author ade;	state Exp;
branches;
next	1.68;

1.68
date	2005.11.03.11.51.09;	author roam;	state Exp;
branches;
next	1.67;

1.67
date	2005.11.01.00.18.03;	author roam;	state Exp;
branches;
next	1.66;

1.66
date	2005.07.13.08.41.58;	author roam;	state Exp;
branches;
next	1.65;

1.65
date	2005.06.14.09.07.12;	author roam;	state Exp;
branches;
next	1.64;

1.64
date	2005.06.14.08.58.47;	author roam;	state Exp;
branches;
next	1.63;

1.63
date	2005.06.05.23.03.14;	author flz;	state Exp;
branches;
next	1.62;

1.62
date	2005.05.12.11.36.41;	author roam;	state Exp;
branches;
next	1.61;

1.61
date	2005.04.12.03.26.31;	author obrien;	state Exp;
branches;
next	1.60;

1.60
date	2005.04.11.08.03.51;	author obrien;	state Exp;
branches;
next	1.59;

1.59
date	2005.01.03.09.54.20;	author roam;	state Exp;
branches;
next	1.58;

1.58
date	2004.12.30.15.37.50;	author roam;	state Exp;
branches;
next	1.57;

1.57
date	2004.12.30.14.22.09;	author roam;	state Exp;
branches;
next	1.56;

1.56
date	2004.12.27.14.33.19;	author roam;	state Exp;
branches;
next	1.55;

1.55
date	2004.09.02.15.46.15;	author roam;	state Exp;
branches;
next	1.54;

1.54
date	2004.06.17.09.35.23;	author roam;	state Exp;
branches;
next	1.53;

1.53
date	2004.06.11.16.37.56;	author roam;	state Exp;
branches;
next	1.52;

1.52
date	2004.06.03.11.38.01;	author roam;	state Exp;
branches;
next	1.51;

1.51
date	2004.06.03.10.48.32;	author roam;	state Exp;
branches;
next	1.50;

1.50
date	2003.04.30.16.28.37;	author roam;	state Exp;
branches;
next	1.49;

1.49
date	2003.03.23.10.35.14;	author roam;	state Exp;
branches;
next	1.48;

1.48
date	2003.02.19.16.07.29;	author roam;	state Exp;
branches;
next	1.47;

1.47
date	2003.01.13.13.26.03;	author roam;	state Exp;
branches;
next	1.46;

1.46
date	2003.01.09.09.54.54;	author roam;	state Exp;
branches;
next	1.45;

1.45
date	2002.10.27.16.02.35;	author dinoex;	state Exp;
branches;
next	1.44;

1.44
date	2002.09.20.19.55.07;	author roam;	state Exp;
branches;
next	1.43;

1.43
date	2002.09.20.09.29.10;	author roam;	state Exp;
branches;
next	1.42;

1.42
date	2002.09.16.12.02.35;	author roam;	state Exp;
branches;
next	1.41;

1.41
date	2002.09.16.11.26.50;	author alane;	state Exp;
branches;
next	1.40;

1.40
date	2002.09.15.12.03.05;	author dinoex;	state Exp;
branches;
next	1.39;

1.39
date	2002.01.05.14.49.41;	author dinoex;	state Exp;
branches;
next	1.38;

1.38
date	2001.11.30.07.22.55;	author vanilla;	state Exp;
branches;
next	1.37;

1.37
date	2001.11.07.11.01.38;	author roam;	state Exp;
branches;
next	1.36;

1.36
date	2001.11.01.08.28.38;	author roam;	state Exp;
branches;
next	1.35;

1.35
date	2001.08.18.07.30.59;	author mharo;	state Exp;
branches;
next	1.34;

1.34
date	2001.08.10.14.21.32;	author roam;	state Exp;
branches;
next	1.33;

1.33
date	2001.08.02.19.04.01;	author lioux;	state Exp;
branches;
next	1.32;

1.32
date	2001.07.30.09.14.13;	author kris;	state Exp;
branches;
next	1.31;

1.31
date	2001.07.23.08.39.58;	author roam;	state Exp;
branches;
next	1.30;

1.30
date	2001.07.16.15.42.13;	author kevlo;	state Exp;
branches;
next	1.29;

1.29
date	2001.02.22.13.39.58;	author roam;	state Exp;
branches;
next	1.28;

1.28
date	2001.01.25.14.49.30;	author ijliao;	state Exp;
branches;
next	1.27;

1.27
date	2001.01.25.14.37.54;	author ijliao;	state Exp;
branches;
next	1.26;

1.26
date	2001.01.02.15.01.40;	author roam;	state Exp;
branches;
next	1.25;

1.25
date	2000.12.20.12.59.12;	author roam;	state Exp;
branches;
next	1.24;

1.24
date	2000.12.20.05.56.08;	author kris;	state Exp;
branches;
next	1.23;

1.23
date	2000.09.22.01.59.04;	author kris;	state Exp;
branches;
next	1.22;

1.22
date	2000.07.07.19.27.24;	author steve;	state Exp;
branches;
next	1.21;

1.21
date	2000.04.30.20.01.40;	author steve;	state Exp;
branches;
next	1.20;

1.20
date	2000.04.21.08.19.07;	author mharo;	state Exp;
branches;
next	1.19;

1.19
date	2000.04.09.18.30.37;	author cpiazza;	state Exp;
branches;
next	1.18;

1.18
date	2000.03.07.13.21.22;	author dirk;	state Exp;
branches;
next	1.17;

1.17
date	2000.02.27.06.21.08;	author kris;	state Exp;
branches;
next	1.16;

1.16
date	2000.02.20.15.05.06;	author dirk;	state Exp;
branches;
next	1.15;

1.15
date	2000.02.15.07.09.47;	author kris;	state Exp;
branches;
next	1.14;

1.14
date	2000.02.12.10.37.38;	author kris;	state Exp;
branches;
next	1.13;

1.13
date	2000.01.11.01.16.04;	author foxfair;	state Exp;
branches;
next	1.12;

1.12
date	99.12.09.14.17.09;	author foxfair;	state Exp;
branches;
next	1.11;

1.11
date	99.11.07.22.25.40;	author dirk;	state Exp;
branches;
next	1.10;

1.10
date	99.10.26.19.12.46;	author foxfair;	state Exp;
branches;
next	1.9;

1.9
date	99.09.06.23.12.55;	author steve;	state Exp;
branches;
next	1.8;

1.8
date	99.09.06.19.29.23;	author cpiazza;	state Exp;
branches;
next	1.7;

1.7
date	99.08.31.01.51.51;	author peter;	state Exp;
branches;
next	1.6;

1.6
date	99.06.23.19.04.07;	author dirk;	state Exp;
branches;
next	1.5;

1.5
date	99.06.06.16.54.51;	author steve;	state Exp;
branches;
next	1.4;

1.4
date	99.05.03.02.10.08;	author steve;	state Exp;
branches;
next	1.3;

1.3
date	99.03.29.14.54.37;	author dirk;	state Exp;
branches;
next	1.2;

1.2
date	99.01.27.21.57.23;	author billf;	state Exp;
branches;
next	1.1;

1.1
date	99.01.18.04.27.02;	author steve;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.01.18.04.27.02;	author steve;	state Exp;
branches;
next	;


desc
@@


1.113
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314977
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Martti Kuparinen <martti.kuparinen@@ericsson.com>
# $FreeBSD: head/security/stunnel/Makefile 314977 2013-03-23 00:19:53Z zi $

PORTNAME=	stunnel
PORTVERSION=	4.56
CATEGORIES=	security
MASTER_SITES=	ftp://ftp.stunnel.org/stunnel/%SUBDIR%/ \
		http://mirrors.zerg.biz/stunnel/%SUBDIR%/ \
		ftp://stunnel.mirt.net/stunnel/%SUBDIR%/ \
		ftp://ftp.nluug.nl/pub/networking/stunnel/%SUBDIR%/ \
		http://ftp.nluug.nl/pub/networking/stunnel/%SUBDIR%/ \
		ftp://ftp.surfnet.nl/pub/networking/stunnel/%SUBDIR%/ \
		http://ftp.surfnet.nl/pub/networking/stunnel/%SUBDIR%/ \
		http://mirrors.zerg.biz/stunnel/%SUBDIR%/ \
		http://mirrors.rit.edu/zi/
MASTER_SITE_SUBDIR=	. obsolete/4.x

MAINTAINER=	zi@@FreeBSD.org
COMMENT=	SSL encryption wrapper for standard network daemons

# FIXME: IMHO, there really ought to be a GPL-2+ option or some such.
LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

USE_AUTOTOOLS=	libtool
USE_RC_SUBR=	stunnel
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--localstatedir=/var/tmp \
		--enable-static --disable-fips

OPTIONS_DEFINE=		IPV6 LIBWRAP SSL_PORT
OPTIONS_SINGLE=		THREAD
OPTIONS_SINGLE_THREAD=	FORK PTHREAD UCONTEXT
OPTIONS_DEFAULT=	PTHREAD

SSL_PORT_DESC=	Use OpenSSL from the ports collection
FORK_DESC=	Use the fork(3) threading model
PTHREAD_DESC=	Use the pthread(3) threading model
UCONTEXT_DESC=	Use the ucontext(3) threading model

.include <bsd.port.options.mk>

STUNNEL_USER?=	stunnel
STUNNEL_GROUP?=	stunnel

USERS=		${STUNNEL_USER}
GROUPS=		${STUNNEL_GROUP}

.if ${PORT_OPTIONS:MDOCS}
MAN8=		stunnel.8 stunnel.fr.8 stunnel.pl.8
.endif

.if ${PORT_OPTIONS:MSSL_PORT}
USE_OPENSSL=		YES
WITH_OPENSSL_PORT=	yes
CONFIGURE_ARGS+=	--with-ssl="${OPENSSLBASE}"
.else
CONFIGURE_ARGS+=	--with-ssl=/usr
.endif

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if ${PORT_OPTIONS:MLIBWRAP}
CONFIGURE_ARGS+=	--enable-libwrap
LDFLAGS+=		-lwrap
.else
CONFIGURE_ARGS+=	--disable-libwrap
.endif

.if ${PORT_OPTIONS:MUCONTEXT}
CONFIGURE_ARGS+=--with-threads=ucontext
CPPFLAGS+=	${PTHREAD_CFLAGS}
LDFLAGS+=	${PTHREAD_LIBS}
.elif ${PORT_OPTIONS:MFORK}
CONFIGURE_ARGS+=--with-threads=fork
.else
CONFIGURE_ARGS+=--with-threads=pthread
CPPFLAGS+=	${PTHREAD_CFLAGS}
LDFLAGS+=	${PTHREAD_LIBS}
.endif

post-patch:
# place files under /var/tmp so that this can be run by an unprivileged
# user stunnel and group stunnel
	@@${REINPLACE_CMD} -E -e 's|\@@prefix\@@/var/lib/stunnel/|/var/tmp/stunnel|; \
		s|nobody|stunnel|;s|nogroup|stunnel|' \
		${WRKSRC}/tools/stunnel.conf-sample.in
	${REINPLACE_CMD} -E -e 's|\$$\(prefix\)/var/run/stunnel/stunnel.pid|$$(localstatedir)/stunnel.pid|' \
		${WRKSRC}/src/Makefile.in
	@@${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -E -e 's,@@(ACLOCAL|AUTO(MAKE|CONF|HEADER))@@,/usr/bin/true,'
	@@${REINPLACE_CMD} -E -e 's|install-confDATA install-data-local|install-confDATA|g' \
		${WRKSRC}/tools/Makefile.in
.if empty(PORT_OPTIONS:MDOCS)
	@@${REINPLACE_CMD} -E -e 's/ install-docDATA/ /; s/^(SUBDIRS.+)doc/\1/' \
		${WRKSRC}/Makefile.in
	@@${REINPLACE_CMD} -E -e 's/([^n])install-examplesDATA/\1/' \
		${WRKSRC}/tools/Makefile.in
.endif

post-install:
	@@${ECHO} ""
	@@${ECHO} "**************************************************************************"
	@@${ECHO} "To create and install a new certificate, type \"make cert\""
	@@${ECHO} ""
	@@${ECHO} "And don't forget to check out the FAQ at http://www.stunnel.org/"
	@@${ECHO} "**************************************************************************"
	@@${ECHO} ""

cert:
	@@${ECHO} ""
	@@${ECHO} "**************************************************************************"
	@@${ECHO} "The new certificate will be saved into ${ETCDIR}/stunnel.pem"
	@@${ECHO} "**************************************************************************"
	@@${ECHO} ""
	@@(cd ${WRKSRC}/tools/; make install-data-local)

.include <bsd.port.post.mk>
@


1.112
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313376
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/security/stunnel/Makefile 313376 2013-03-03 20:19:08Z zi $
d5 1
a5 1
PORTVERSION=	4.55
@


1.111
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	stunnel
# Date created:		Mon Jan 11 11:53:54 EET 1999
# Whom:			Martti Kuparinen <martti.kuparinen@@ericsson.com>
#
# $FreeBSD: head/security/stunnel/Makefile 305611 2012-10-09 22:19:55Z zi $
#
d5 1
a5 1
PORTVERSION=	4.54
a32 4
.if !defined(NOPORTDOCS)
MAN8=		stunnel.8 stunnel.fr.8 stunnel.pl.8
.endif

d51 4
d101 1
a101 1
.ifdef(NOPORTDOCS)
@


1.110
log
@SVN rev 305611 on 2012-10-09 22:19:55Z by zi

- Update to 4.54
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.109
log
@- Convert to OptionsNG
- Add additional MASTER_SITES
- Do not bump PORTREVISION
@
text
@d9 1
a9 1
PORTVERSION=	4.53
@


1.108
log
@- Update to 4.53

Feature safe:	yes
@
text
@d18 2
a19 1
		http://mirrors.zerg.biz/stunnel/%SUBDIR%/
d41 9
a49 6
OPTIONS=	FORK	"Ese the fork(3) threading model" off \
		PTHREAD	"Ese the pthread(3) threading model (default)" on \
		UCONTEXT	"Ese the ucontext(3) threading model" off \
		IPV6	"Enable IPv6 support" off \
		LIBWRAP	"Use TCP wrappers" on \
		SSL_PORT	"Use OpenSSL from the Ports Collection" off
d59 2
a60 2
.if defined(WITH_SSL_PORT)
USE_OPENSSL=	YES
d69 1
a69 1
.if defined(WITH_IPV6)
d75 1
a75 1
.if defined(WITH_LIBWRAP)
d82 1
a82 5
.if defined(WITH_UCONTEXT) && defined(WITH_FORK) || defined(WITH_UCONTEXT) && defined(WITH_PTHREAD) || defined(WITH_FORK) && defined(WITH_PTHREAD)
BROKEN=	'The WITH_UCONTEXT, WITH_FORK and WITH_PTHREAD options are mutually exclusive - please specify at most one of them, the default is WITH_PTHREAD'
.endif

.if defined(WITH_UCONTEXT)
d86 1
a86 1
.elif defined(WITH_FORK)
@


1.107
log
@- Update to 4.52
- Use USERS/GROUPS
- Remove support for FreeBSD 5.x/6.x
- Cosmetic changes
@
text
@d9 1
a9 1
PORTVERSION=	4.52
@


1.106
log
@- Take maintainership per request of current maintainer

Approved by:	roam@@
@
text
@d9 1
a9 1
PORTVERSION=	4.43
d30 1
d40 6
a45 6
OPTIONS=	FORK	"use the fork(3) threading model"	off \
		PTHREAD	"use the pthread(3) threading model (default)"	on \
		UCONTEXT	"use the ucontext(3) threading model"	off \
		IPV6	"enable IPv6 support" off \
		LIBWRAP	"use TCP wrappers" on \
		SSL_PORT	"use OpenSSL from the Ports Collection" on
d49 6
d103 2
a112 2
	@@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
		${PKGINSTALL} ${PKGNAME} POST-INSTALL
a119 7
	@@${ECHO} "*********************** WARNING! WARNING! WARNING! ***********************"
	@@${ECHO} "The stunnel startup script has been converted to rc_subr"
	@@${ECHO} "format now.  You have to set at least the stunnel_enable"
	@@${ECHO} "variable, and maybe also stunnel_config and stunnel_pidfile,"
	@@${ECHO} "if you want stunnel to be started automatically at boot time!"
	@@${ECHO} "**************************************************************************"
	@@${ECHO} ""
a128 19
.if !defined(WITH_STUNNEL_SSL_ENGINE)
EXTRA_PATCHES=	${FILESDIR}/ssl-noengine.patch
pre-patch:
	@@${ECHO} "*************************************************************************"
	@@${ECHO} "Note: you have to explicitly define WITH_STUNNEL_SSL_ENGINE to activate"
	@@${ECHO} "the OpenSSL ENGINE code on FreeBSD 5.x or 6.x."
	@@${ECHO} "There are known reliability issues with stunnel and the OpenSSL ENGINE"
	@@${ECHO} "code, so you are advised not to enable it."
	@@${ECHO} "*************************************************************************"
.else
pre-patch:
	@@${ECHO} "*************************************************************************"
	@@${ECHO} "Note: you have defined WITH_STUNNEL_SSL_ENGINE.  Now stunnel will activate"
	@@${ECHO} "the OpenSSL ENGINE code even on FreeBSD 5.x."
	@@${ECHO} "There are known reliability issues with stunnel and the OpenSSL ENGINE"
	@@${ECHO} "code.  You have enabled it at your own risk."
	@@${ECHO} "*************************************************************************"
.endif

@


1.105
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d21 1
a21 1
MAINTAINER=	roam@@FreeBSD.org
@


1.104
log
@Update to stunnel-4.43 which is not vulnerable to the security
problem described in the PR.

PR:		160218
Reported by:	Cory McIntire <loon@@lolunix.org>
@
text
@d78 1
a78 1
CONFIGURE_ENV=	LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
d84 1
a84 1
CONFIGURE_ENV=	LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
@


1.103
log
@Update to stunnel-4.41 and fix the handling of CPPFLAGS.
@
text
@d9 1
a9 1
PORTVERSION=	4.41
@


1.102
log
@Update to stunnel-4.35:
- drop the transparent proxying patch, integrated upstream
- while I'm here, fix the very first master site URL -
  the download page on stunnel.org just links to the sites now,
  and does not contain downloadable source

PR:		154631
Submitted by:	Tsurutani Naoki <turutani@@scphys.kyoto-u.ac.jp>
@
text
@d9 1
a9 1
PORTVERSION=	4.35
d77 2
a78 1
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
d83 2
a84 1
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
@


1.101
log
@Implement transparent proxying using the IP_BINDANY option if available in
a way a bit different (and a bit more generic) than the one in the PR.
While I'm here, declare the GPL-2+ license and remove the MD5 checksum.

PR:		153568
Submitted by:	Jason Helfman <jhelfman@@experts-exchange.com>
@
text
@d9 1
a9 2
PORTVERSION=	4.34
PORTREVISION=	2
d11 1
a11 1
MASTER_SITES=	http://www.stunnel.org/download/stunnel/src/ \
@


1.100
log
@Sync to new bsd.autotools.mk
@
text
@d10 1
a10 1
PORTREVISION=	1
d25 4
@


1.99
log
@Unbreak the build on FreeBSD 6.x and other versions that need
the port version of OpenSSL for elliptic curve cryptography.
While I'm here, update the list of master sites.
@
text
@d25 1
a25 1
USE_AUTOTOOLS=	libtool:22
@


1.98
log
@- Mark BROKEN on 6.X: does not compile

Reported by:	pointyhat
@
text
@d10 1
d13 8
a20 3
		ftp://stunnel.mirt.net/stunnel/ \
		ftp://stunnel.mirt.net/stunnel/OBSOLETE/ \
		ftp://opensores.thebunker.net/pub/mirrors/stunnel/download/stunnel/src/
a25 1
USE_OPENSSL=	YES
d40 2
a41 1
		LIBWRAP	"use TCP wrappers" on
d43 1
a43 1
.include <bsd.port.pre.mk>
d45 6
a50 2
.if ${OSVERSION} < 700000
BROKEN=		does not compile on 6.X
d53 2
@


1.97
log
@Update to stunnel-4.34.  In this version the DH parameters support was
made conditional only on OpenSSL support for it, not on GNU configure
parameters, so it will most probably be automatically enabled on
the currently supported FreeBSD versions.  If this leads to any problems,
I'll look into making it optional again.
@
text
@d39 4
@


1.96
log
@Update to stunnel-4.33; hopefully, the stability problems are fixed now.
@
text
@d9 1
a9 1
PORTVERSION=	4.33
d24 1
a24 1
CONFIGURE_ARGS=	--localstatedir=/var/tmp --with-pem-dir=${PEM_DIR} \
a30 2
PEM_DIR?=	${PREFIX}/etc

a33 1
		DH	"use Diffie-Hellman key negotiation" off \
a38 6
.if defined(WITH_DH)
CONFIGURE_ARGS+=	--enable-dh
.else
CONFIGURE_ARGS+=	--disable-dh
.endif

@


1.95
log
@Update to stunnel-4.29.  I'm holding off on the 4.30 update for
a couple of days until the chroot/SIGHUP/pid file problem discussed
on the stunnel-users mailing list is sorted out upstream.

PR:		142773
Reported by:	Tsurutani Naoki <turutani@@scphys.kyoto-u.ac.jp>
@
text
@d9 1
a9 1
PORTVERSION=	4.29
@


1.94
log
@Fix the build on FreeBSD 6.x (an older version of OpenSSL) by replacing
the official no_ticket.patch with an extended one ifdef'ing more options.
Replace the src/client.c patch with the official execargs.patch.
Bump PORTREVISION.
@
text
@d9 1
a9 2
PORTVERSION=	4.28
PORTREVISION=	1
a15 3
PATCH_SITES=	ftp://stunnel.mirt.net/stunnel/
PATCHFILES=	execargs.patch

@


1.93
log
@Update stunnel to 4.28, including a patch for older SSL versions.
Add two new configurable options to disable libwrap support (almost
as in the PR, but not quite) and enable Diffie-Hellman key exchange.

PR:		139147 (only the libwrap support, but missing -lwrap)
Submitted by:	Jim Riggs <ports@@christianserving.org>
@
text
@d10 1
d18 1
a18 1
PATCHFILES=	no_ticket.patch
@


1.92
log
@-Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
@
text
@d9 1
a9 1
PORTVERSION=	4.27
d16 3
d39 3
a41 1
		IPV6	"enable IPv6 support" off
d45 6
d53 9
@


1.91
log
@Update to stunnel-4.27.
@
text
@d19 1
a19 1
USE_AUTOTOOLS=	libtool:15
@


1.90
log
@- Update to 4.26

PR:		130160
Submitted by:	"Beat Gtzi" <beat@@chruetertee.ch>
@
text
@d9 1
a9 1
PORTVERSION=	4.26
@


1.89
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d9 1
a9 1
PORTVERSION=	4.25
@


1.88
log
@Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
@
text
@a48 3
.if ${OSVERSION} < 500112
BROKEN=	'The ucontext model is only supported on FreeBSD 5.x and 6.x'
.endif
@


1.87
log
@Update to stunnel-4.25.
@
text
@a23 1
CONFIGURE_TARGET=	--target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@


1.86
log
@Update to stunnel-4.24.
@
text
@d9 1
a9 1
PORTVERSION=	4.24
@


1.85
log
@Update to the release version of stunnel-4.22.
@
text
@d9 1
a9 1
PORTVERSION=	4.22
a21 1
WRKSRC=		${WRKDIR}/${PORTNAME}-4.22
@


1.84
log
@Finish the USE_RC_SUBR transition after marcus repo-copied stunnel.sh
to stunnel.in.
No functional changes once the port has been installed, thus
no PORTREVISION bump.
@
text
@d9 1
a9 1
PORTVERSION=	4.22.b2
a14 1
DISTNAME=	${PORTNAME}-4.22b2
@


1.83
log
@Update the stunnel port to version 4.22b2 to fix inetd mode logging[1].

While I'm here, pick up various changes from PR's:
- convert the startup script to the new style[2], but do not yet enable
  USE_RC_SUBR; a repo-copy of stunnel.sh to stunnel.in should be done first
- use ETCDIR instead of PREFIX/etc/stunnel everywhere[3]
- wave a magic wand over the startup script generation process to mimic
  the changes that will be done by USE_RC_SUBR after the repo-copy

Prompted by:	Damian Wiest <dwiest@@vailsys.com> and
		Luis Rodrigo Gallardo Cruz <rodrigo@@nul-unu.com> on
		the stunnel-users mailing list [1]
PR:		119655 [2] - only the changes to the startup script
		116773 [3] - only the ETCDIR part
Submitted by:	Jason DiCioccio <jd@@ods.org> [2],
		Alexander Logvinov <ports@@logvinov.com> [3]
@
text
@d22 1
a22 1
USE_RC_SUBR=	YES
a80 3
	${SED} "s+%%PREFIX%%+${PREFIX}+g; s+%%RC_SUBR%%+${RC_SUBR}+g; s+%%ETCDIR%%+${ETCDIR}+g" \
		< ${FILESDIR}/stunnel.sh > ${WRKDIR}/stunnel
	${INSTALL_SCRIPT} ${WRKDIR}/stunnel ${PREFIX}/etc/rc.d/
@


1.82
log
@Add an official fix for the chroot mode resolving bug.

Approved by:	portmgr (pav)
@
text
@d9 1
a9 2
PORTVERSION=	4.21
PORTREVISION=	1
d15 1
d23 1
d81 3
a83 3
	${SED} "s+!!PREFIX!!+${PREFIX}+g; s+!!RC_SUBR!!+${RC_SUBR}+g" \
		< ${FILESDIR}/stunnel.sh > ${WRKDIR}/stunnel.sh
	${INSTALL_SCRIPT} ${WRKDIR}/stunnel.sh ${PREFIX}/etc/rc.d/
d104 1
a104 1
	@@${ECHO} "The new certificate will be saved into ${PREFIX}/etc/stunnel/stunnel.pem"
@


1.81
log
@Update to stunnel-4.21.
@
text
@d10 1
@


1.80
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d9 1
a9 2
PORTVERSION=	4.20
PORTREVISION=	1
d26 1
a26 1
		--enable-static
@


1.79
log
@Reserve a user and group ID for the stunnel daemon.
Loosely based on the PR, although I just used the next available UID/GID.

PR:		108784
Submitted by:	Alex Kozlov <spam@@rm-rf.kiev.ua>
@
text
@a107 1
.if ${OSVERSION} > 500000
a125 1
.endif
@


1.78
log
@Use libtool port instead of included version to avoid objformat a.out botch
@
text
@d10 1
@


1.77
log
@Update to stunnel 4.20.
@
text
@d19 1
@


1.76
log
@Update to stunnel 4.19 and fix the NOPORTDOCS installation to really
skip over the installation of example files and scripts.  Of course,
stunnel.conf-sample is still installed into etc/stunnel/.
@
text
@d9 1
a9 1
PORTVERSION=	4.19
@


1.75
log
@Fix the problem with unattended deinstallation by not even attempting
to remove the stunnel user and group at all - just kill the package
deinstall script.

PR:		104028
Reported by:	jan grant <jan.grant@@bristol.ac.uk>,
		Stephen Hurd <shurd@@sasktel.net> (in private mail a while ago),
		and, I think, many others
@
text
@d9 1
a9 2
PORTVERSION=	4.18
PORTREVISION=	1
d73 2
@


1.74
log
@A trivial update to stunnel-4.18 - Windows-related changes only.
@
text
@d10 1
@


1.73
log
@Update to stunnel 4.17.

PR:		103123
Submitted by:	vd
@
text
@d9 1
a9 1
PORTVERSION=	4.17
@


1.72
log
@Update to stunnel 4.15, which has the major new feature of almost all
connection options being configurable per connection, not global anymore.
@
text
@d9 1
a9 1
PORTVERSION=	4.15
a18 4
PATCHFILES+=	fdputline.patch:fdputline
PATCH_SITES+=	ftp://ftp.mirt.net/stunnel/:fdputline
PATCH_DIST_STRIP=	-p1

@


1.71
log
@Conversion to a single libtool environment.

Approved by:	portmgr (kris)
@
text
@d9 1
a9 2
PORTVERSION=	4.14
PORTREVISION=	2
d19 4
d68 1
a68 1
	@@${REINPLACE_CMD} -E -e 's|\@@prefix\@@/var/run/stunnel/|/var/tmp/stunnel|; \
d71 2
a72 2
	@@${REINPLACE_CMD} -E -e 's|localstatedir/run/stunnel.pid|localstatedir/stunnel.pid|' \
		${WRKSRC}/configure.ac ${WRKSRC}/configure
@


1.70
log
@Catch up with stunnel's tools/Makefile to make the port's "make cert"
target actually work again.
Follow the upstream author's idea of keeping all stunnel-related
configuration files into ${PREFIX}/etc/stunnel/ - now "make cert" also
installs the certificate there instead of ${PREFIX}/etc/.
Bump PORTREVISION and add a note to UPDATING for the certificate
location change.

PR:		91991
Reported by:	Jiri Pridal <jiri.pridal@@firebrno.cz>
@
text
@d10 1
a10 1
PORTREVISION=	1
a20 1
USE_AUTOTOOLS=	libtool:15
@


1.69
log
@Mass-conversion to the USE_AUTOTOOLS New World Order.  The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
@
text
@d10 1
a20 1
USE_REINPLACE=	YES
d101 1
a101 1
	@@${ECHO} "The new certificate will be saved into ${PREFIX}/etc/stunnel.pem"
d104 1
a104 2
	@@(cd ${WRKSRC}/tools/; make stunnel.pem)
	${INSTALL} -m 600 ${WRKSRC}/tools/stunnel.pem ${PEM_DIR}/
@


1.68
log
@Update to stunnel 4.14, which is mostly a bugfix release.
Besides what's in the PR, also revert the pidfile location change to
preserve POLA and hier(7).

PR:		88436
Submitted by:	Vasil Dimov <vd@@datamax.bg>
@
text
@d21 1
a21 1
USE_LIBTOOL_VER=	15
@


1.67
log
@Update to 4.13, which ought to fix the libc_r detection problem in
a short window of 5.x versions.

PR:		87839
Submitted by:	Vasil Dimov <vd@@datamax.bg>
@
text
@d9 1
a9 1
PORTVERSION=	4.13
@


1.66
log
@Update to stunnel 4.11, which is deemed a stable release.
Remove our local patches for ucontext/pthread/fork model choice, since
this is handled by a configure argument now.
Note that ucontext is not supported on FreeBSD versions less than 5.0.

PR:		83245 (mostly)
Submitted by:	Vasil Dimov <vd@@datamax.bg>
@
text
@d9 1
a9 1
PORTVERSION=	4.11
d12 1
d64 1
a64 1
# place files under /var/tmp so that this can be run by an unprivileged user
@


1.65
log
@OPTIONS'ify, but still leave WITH_STUNNEL_SSL_ENGINE out of it - it is
a bit too dangerous to leave out in the open.
@
text
@d9 1
a9 2
PORTVERSION=	4.10
PORTREVISION=	3
a48 1
CFLAGS+=-DFORCE_THREADING_MODEL
d50 5
a54 1
CFLAGS+=-DFORCE_UCONTEXT
d56 1
a56 1
CFLAGS+=-DFORCE_FORK
d58 2
a59 1
CFLAGS+=-DFORCE_PTHREAD
@


1.64
log
@Fix the stunnel ucontext-related problems using a patch from the author,
Michael Trojnara[1].
Also, add the build-time WITH_FORK, WITH_PTHREAD, and WITH_UCONTEXT knobs
to control the stunnel threading model used, based on Vasil Dimov's PR's
with some modifications [2].
While I'm here, add in a <sys/types.h> inclusion that seems to be needed
for <ucontext.h> at least on FreeBSD 6.0/sparc64.

Reported by:	many
Pointy hat to:	roam (myself) for both not noticing this and then letting
		it linger for a while
Obtained from:	Michael Trojnara's BSD patch from
		<53594c631989fde6ca0bdb3435b93dfe@@mirt.net> [1]
PR:		81289, 82202 [2]
Submitted by:	Vasil Dimov
@
text
@d10 1
a10 1
PORTREVISION=	2
d35 7
a58 8
pre-everything::
	@@${ECHO}
	@@${ECHO} 'You can build ${PORTNAME} with the following options:'
	@@${ECHO} 'WITH_FORK       use the fork(2) model'
	@@${ECHO} 'WITH_PTHREAD    use the pthread(3) model (default)'
	@@${ECHO} 'WITH_UCONTEXT   use the ucontext(3) model'
	@@${ECHO}

a102 2
.include <bsd.port.pre.mk>

@


1.63
log
@- Fix deinstall script when running in BATCH mode.

PR:		ports/67762
Submitted by:	Linus Sjoberg <lsjoberg@@aland.net>
Approved by:	maintainer timeout (7 weeks)
@
text
@d10 1
a10 1
PORTREVISION=	1
d39 21
@


1.62
log
@Update to 4.10, fixing the execvp() and pid file issues while I'm here.

PR:		79114, 79120, 80143, 80405
Submitted by:	Florian Hars <hars@@bik-gmbh.de>,
		Jim Hatfield <jim.hatfield@@insignia.com>,
		Vasil Dimov <vd@@datamax.bg>,
		Vsevolod Stakhov <vsevolod@@highsecure.ru>
@
text
@d10 1
@


1.61
log
@At Kris's request, back out the MACHINE_ARCH spelling correction until
after 5.4-RELEASE.
@
text
@d9 1
a9 1
PORTVERSION=	4.07
@


1.60
log
@Assist getting more ports working on AMD64 by obeying the
Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.
@
text
@d24 1
a24 1
CONFIGURE_TARGET=	--target=${ARCH}-portbld-freebsd${OSREL}
@


1.59
log
@Update stunnel to 4.07, which incorporates most of our fixes to 4.06
and also fixes a crash if a client connection is closed too early.

Approved by:	portmgr (krion)
@
text
@d24 1
a24 1
CONFIGURE_TARGET=	--target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@


1.58
log
@The last update for this year, I hope :)
Make stunnel use the rc_subr framework, allowing for much cleaner
startup and shutdown of multiple instances of stunnel.
@
text
@d9 1
a9 2
PORTVERSION=	4.06
PORTREVISION=	2
@


1.57
log
@Fix a getnameinfo() out-of-memory error caused by passing a 20-character
buffer to hold a numeric IPv4/v6 address.  Of course, IPv6 addresses may
be a bit longer than 20 characters :)

A-ha! moment during:	discussion with the stunnel author
@
text
@d10 1
a10 1
PORTREVISION=	1
d22 1
d54 3
a56 3
	@@${SED} "s+!!PREFIX!!+${PREFIX}+g" < ${FILESDIR}/stunnel.sh \
		> ${PREFIX}/etc/rc.d/stunnel.sh.sample
	@@${CHMOD} 755 ${PREFIX}/etc/rc.d/stunnel.sh.sample
d66 7
@


1.56
log
@Update to stunnel-4.06.  In addition to the PR:
- enable the new IPv6 functionality when WITH_IPV6 is defined;
- at last move over to libtool-1.5 and get rid of the .la file;
- update the WITH_STUNNEL_SSL_ENGINE message to also mention FreeBSD 6.x;
- remove the obsolete sock_ioctlsocket() definition from patch-aa;
- fix a couple of getnameinfo(3)-related buglets;
- fix a poll(2)-related buglet: it seems FreeBSD insists (correctly) that
  INFTIM passed to poll(2) should be -1, not just any negative value.

PR:		75519 (somewhat)
Submitted by:	Dan Langille <dan@@langille.org>
@
text
@d10 1
@


1.55
log
@Fix the bus error on startup in -CURRENT and 5.x-BETA.  It turns out
that the OpenSSL ENGINE code is, well, somewhat less than stellar,
especially in combo with malloc's 'j' option.  Even without it, though,
there are some problems that I don't have time to look into right now.

So, disable the OpenSSL ENGINE activation on FreeBSD 5.x, unless
the WITH_STUNNEL_SSL_ENGINE knob is turned on.  Also, while I'm here,
fix the CONFIGURE_TARGET so the GNU configure script does not complain
quite so loudly.  Bump PORTREVISION for the functionality change
(well, I guess you could say "not working" -> "working" is a functionality
change ;)
@
text
@d9 1
a9 2
PORTVERSION=	4.05
PORTREVISION=	1
d20 1
a20 1
USE_INC_LIBTOOL_VER=	13
d33 4
d82 1
a82 1
	@@${ECHO} "the OpenSSL ENGINE code on FreeBSD 5.x."
@


1.54
log
@BROKEN -> IGNORE, since this is a runtime error and the port itself builds
just fine.

Suggested by:	kris
@
text
@d10 1
d21 1
d24 1
d74 18
a91 1
IGNORE=		Bus error with OpenSSL in -CURRENT, under investigation
@


1.53
log
@Mark broken on -CURRENT until I figure out why stunnel doesn't like
-CURRENT's OpenSSL.

Reported by:	dougb
@
text
@d71 1
a71 1
BROKEN=		Bus error with OpenSSL in -CURRENT, under investigation
@


1.52
log
@And hot on the heels of the distsite update, here's the promised update
to 4.05 :)
@
text
@d68 7
a74 1
.include <bsd.port.mk>
@


1.51
log
@Fix the distsites; an update to stunnel-4.05 is coming shortly, but still,
do this in the meantime.

PR:		67200
Submitted by:	Roman Neuhauser <neuhauser@@chello.cz>
@
text
@d9 1
a9 2
PORTVERSION=	4.04
PORTREVISION=	2
d16 1
a16 5
COMMENT=	"SSL encryption wrapper for standard network daemons"

PATCHFILES=	blinding-4.x_bri-rev2.patch
PATCH_SITES=	http://people.FreeBSD.org/~roam/ports/patches/security/stunnel/
PATCH_DIST_STRIP=	-p1
d25 3
a27 1
MAN8=		stunnel.8 stunnel.pl.8
@


1.50
log
@Brian Hatch updated his RSA blinding patch to only apply
the blinding when really needed.  However, the name of
the patch file was not changed, which may confuse FreeBSD
distfile mirrors.  So, host the patch file in my local
FreeBSD cluster space, changing the file's name.

Reported by:	Dan Langille <dan@@langille.org>
@
text
@d13 2
a14 3
		ftp://stunnel.mirt.net/stunnel/ \
		ftp://opensores.thebunker.net/pub/mirrors/stunnel/ \
		ftp://ftp.cryptoarchive.net/pub/cryptoarchive/mirrors/opensores.thebunker.net/pub/mirrors/stunnel/
@


1.49
log
@Add Brian Hatch's patch to enable RSA blinding on older OpenSSL versions.

Note: this patch is not needed for the 4.8-RELEASE ports tree, since
FreeBSD 4.8 will ship with a fixed OpenSSL version.  However, this patch
SHOULD be applied by anyone running stunnel with a version of OpenSSL
older than 0.9.7a, as reported by the 'openssl version' command.

Submitted by:	Brian Hatch <bri@@stunnel.org>
@
text
@d10 1
a10 1
PORTREVISION=	1
d20 2
a21 2
PATCHFILES=	blinding-4.x_bri.patch
PATCH_SITES=	http://www.stunnel.org/patches/patches/
@


1.48
log
@Remove pkg-comment files in my ports.
@
text
@d10 1
d19 4
@


1.47
log
@Update to stunnel-4.04.

Independently submitted by:	Dan Langille <dan@@langille.org>
@
text
@d17 1
@


1.46
log
@Update to 4.03.

'make cert' fix submitted by:	Krzysztof Stryjek <wtp@@mud.pl>
@
text
@d9 1
a9 1
PORTVERSION=	4.03
@


1.45
log
@remove IS_INTERACTIVE again.
No response from maintainer since 30.09.2002
@
text
@d9 1
a9 1
PORTVERSION=	4.00
d22 2
a23 1
CONFIGURE_ARGS=	--localstatedir=/var/tmp --with-pem-dir=${PEM_DIR}
d25 1
a25 1
MAN8=		stunnel.8
d63 2
a64 2
	@@(cd ${WRKSRC}; make cert)
	${INSTALL} -m 600 ${WRKSRC}/stunnel.pem ${PEM_DIR}/
@


1.44
log
@Apply a blessed +3 magic wand of autotools protection; a rogue run of
autoconf or automake over our local patches can ruin your whole day.
This rarely, if ever, affected the vpopmail ports, causing mysterious
failures at install time, but inevitably killed the stunnel build if
automake-1.5 happened to be installed.

Reported by:	Dan Langille <dan@@langille.org> for stunnel,
		Sitchin Zech <mailsagan@@yahoo.com> for vpopmail
@
text
@a19 1
IS_INTERACTIVE=	YES	# prompts for information while generating certificate
@


1.43
log
@Update to stunnel-4.00.

*** WARNING WARNING WARNING ***
The stunnel invocation has changed!  The program no longer accepts
command-line options, but is controlled by a config file instead.
Please refer to the stunnel(8) manual page for more information.

PR:		42249
Submitted by:	Dan Langille <dan@@langille.org>, lioux
@
text
@d37 1
@


1.42
log
@Take over maintainership; I use this a lot.
@
text
@d9 1
a9 1
PORTVERSION=	3.22
d16 1
a16 1
MAINTAINER=	roam@@freebsd.org
d19 2
d23 1
a23 1
CONFIGURE_ARGS=	--localstatedir=/var/run --with-pem-dir=${PEM_DIR}
d29 13
d46 2
@


1.41
log
@Maintainer relenquishing ports.

PR:		42829
Submitted by:	Martti Kuparinen <martti.kuparinen@@iki.fi>
Approved by:	maintainer
@
text
@d16 1
a16 1
MAINTAINER=	freebsd-ports@@freebsd.org
@


1.40
log
@Unbreak Package-Build, removed IS_INTERACTIVE
@
text
@d16 1
a16 1
MAINTAINER=	martti.kuparinen@@iki.fi
@


1.39
log
@PORT UPDATE : security/stunnel 3.21c -> 3.22

- No resposnse from MAINTAINER

Submitter marked this as critical because the current version of the port has
security issues, see Message-ID: <20011227210538.GH3494@@ifokr.org>
Subject: Stunnel: Format String Bug in versions <3.22
on the bugtraq list.

patch confirmed and tested.

PR:		33285, 33251
Submitted by:	joseph@@randomnetworks.com
@
text
@a18 1
IS_INTERACTIVE=	YES	# prompts for information while generating certificate
@


1.38
log
@upgrade to 3.21c

PR:		ports/32290
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.21c
@


1.37
log
@Update to 3.21b, fixing a Makefile bogon and a file descriptor leak.
Add a new knob, PEM_DIR, to specify the path to install the certificate
generated during the stunnel build, and later, the one generated using
the 'cert' target of the port Makefile.

Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.21b
@


1.36
log
@Update to 3.21.
Change USE_AUTOCONF to GNU_CONFIGURE; there have been no configure.in
patches for some time now.

PR:		31656
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.21
d22 1
a22 1
CONFIGURE_ARGS=	--localstatedir=/var/run
d26 2
d47 1
a47 1
	${INSTALL} -m 600 ${WRKSRC}/stunnel.pem ${PREFIX}/etc/
@


1.35
log
@Update the stunnel package to the latest version.

Changelog for version 3.20, 2001.08.15, urgency: LOW:

* setsockopt() optlen set according to the optval for Solaris.
* Minor NetBSD compatibility fixes by Martti Kuparinen.
* Minor MSVC6 compatibility fixes by Patrick Mayweg.
* SSL close_notify timeout reduced to 10 seconds of inactivity.
* Socket close instead of reset on close_notify timeout.
* Some source arrangement and minor bugfixes.

PR:		29766
Submitted by:	    maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.34 2001/08/10 14:21:32 roam Exp $
d9 1
a9 1
PORTVERSION=	3.20
d21 1
a21 1
USE_AUTOCONF=	yes
@


1.34
log
@Update to 3.19.

PR:		29603
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD$
d9 1
a9 1
PORTVERSION=	3.19
@


1.33
log
@o Update to 3.18
	* MAX_CLIENTS is calculated based on FD_SETSIZE, now.
	* Problems with closing SSL in transfer() fixed.
	* -I option to bind a static local IP address added.
	* Debug output of info_callback redesigned.
o Reorder MASTER_SITES

PR:		29358
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.32 2001/07/30 09:14:13 kris Exp $
d9 1
a9 1
PORTVERSION=	3.18
@


1.32
log
@Update to stunnel 3.17

Approved by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.31 2001/07/23 08:39:58 roam Exp $
d9 1
a9 1
PORTVERSION=	3.17
d11 2
a12 2
MASTER_SITES=	ftp://stunnel.mirt.net/stunnel/ \
		http://www.stunnel.org/download/stunnel/src/ \
@


1.31
log
@Update to 3.16.

PR:		29157
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD$
d9 1
a9 1
PORTVERSION=	3.16
@


1.30
log
@Update to version 3.15

PR: 29000
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.29 2001/02/22 13:39:58 roam Exp $
d9 1
a9 1
PORTVERSION=	3.15
@


1.29
log
@Update to 3.14.

PR:		25279
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.28 2001/01/25 14:49:30 ijliao Exp $
d9 1
a9 1
PORTVERSION=	3.14
d11 2
a12 1
MASTER_SITES=	http://www.stunnel.org/download/stunnel/src/ \
a13 1
		ftp://stunnel.mirt.net/stunnel/ \
@


1.28
log
@upgrade to 3.13 and change master site

PR:		24635
Submitted by:	MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.27 2001/01/25 14:37:54 ijliao Exp $
d9 1
a9 1
PORTVERSION=	3.13
@


1.27
log
@upgrade and change maintainer email

PR:		24627
Submitted by:	MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.26 2001/01/02 15:01:40 roam Exp $
d9 1
a9 1
PORTVERSION=	3.12
d13 1
a13 1
		ftp://mike.daewoo.com.pl/pub/stunnel/ \
@


1.26
log
@Update to 3.11 and mark as interactive (prompts for information while
generating a certificate).

PR:		23901 with my mods
Submitted by:	Joseph Scott <joseph@@randomnetworks.com>
Silence by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.25 2000/12/20 12:59:12 roam Exp $
d9 1
a9 1
PORTVERSION=	3.11
d16 1
a16 1
MAINTAINER=	martti.kuparinen@@ericsson.com
@


1.25
log
@Update to 3.10.

PR:		23684
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.24 2000/12/20 05:56:08 kris Exp $
d9 1
a9 1
PORTVERSION=	3.10
d19 1
@


1.24
log
@Upgrade to stunnel 3.9 to fix security vulnerabilities.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.23 2000/09/22 01:59:04 kris Exp $
d9 1
a9 1
PORTVERSION=	3.9
@


1.23
log
@Update all ports using OpenSSL and RSA to work without rsaref since
it is no longer required. Apologies to the various maintainers whom I
did not yet hear back from, but the ports freeze is coming up in a few
hours and I will be verifying all of these ports on a 4.1 machine
myself to catch any problems.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.22 2000/07/07 19:27:24 steve Exp $
d9 1
a9 1
PORTVERSION=	3.8.4
a14 2
DISTNAME=	${PORTNAME}-3.8p4
EXTRACT_SUFX=	.tgz
@


1.22
log
@Update to version 3.8.4.

PR:		19637
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.21 2000/04/30 20:01:40 steve Exp $
d20 1
a20 1
USE_OPENSSL=	RSA
@


1.21
log
@Update to version 3.8.

PR:		17792
Submitted by:	Keith Ray <kmray@@slb.com>
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.20 2000/04/21 08:19:07 mharo Exp $
d9 1
a9 1
PORTVERSION=	3.8
d11 3
a13 2
MASTER_SITES=	ftp://opensores.thebunker.net/pub/mirrors/stunnel/ \
		http://mike.daewoo.com.pl/computer/stunnel/ \
d15 2
d22 1
a22 1
GNU_CONFIGURE=	yes
d27 4
a30 4
cert:
	@@(cd ${WRKSRC}; make cert)

post-build:
d32 2
a33 3
	@@${ECHO} "********************************************************************"
	@@${ECHO} "To create and install a real certificate, execute \"make cert\" before"
	@@${ECHO} "\"make install\"."
d35 2
a36 4
	@@${ECHO} "You can also create a real certificate later by executing"
	@@${ECHO} "      # make cert"
	@@${ECHO} "      # cp work/stunnel/stunnel.pem ${PREFIX}/certs/"
	@@${ECHO} "********************************************************************"
d39 1
a39 1
post-install:
d42 1
a42 1
	@@${ECHO} "Please check out the FAQ at http://www.onsight.com/faq/stunnel/"
d45 2
@


1.20
log
@Correct whitespace introduced during PORTNAME conversion and portlint
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.19 2000/04/09 18:30:37 cpiazza Exp $
d9 1
a9 1
PORTVERSION=	3.7
d11 1
a11 1
MASTER_SITES=	http://opensores.thebunker.net/pub/mirrors/stunnel/ \
d13 1
a13 3
		ftp://ftp.fu-berlin.de/unix/security/stunnel/ \
		ftp://ftp.uni-freiburg.de/pub/net/stunnel/ \
		ftp://ftp.all.de/pub2/unix/security/stunnel/
@


1.19
log
@Update with the new PORTNAME/PORTVERSION variables
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.18 2000/03/07 13:21:22 dirk Exp $
d9 1
a9 1
PORTVERSION= 	3.7
@


1.18
log
@Fix usage of libc_r (i. e. replace -lc_r with -pthread) and simplify
prefix handling.

OK'ed by:	maintainer
@
text
@a1 1
# Version required:	3.7
d5 1
a5 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.17 2000/02/27 06:21:08 kris Exp $
d8 2
a9 1
DISTNAME=	stunnel-3.7
@


1.17
log
@Fix build.

Submitted by:	Jim Bloom <bloom@@acm.org>
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.16 2000/02/20 15:05:06 dirk Exp $
a24 1
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
a27 5

post-patch:
	${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/configure > ${WRKSRC}/configure~
	${MV} ${WRKSRC}/configure~ ${WRKSRC}/configure
	${CHMOD} a+x ${WRKSRC}/configure
@


1.16
log
@Store pid file in /var/run/.

PR:		ports/16805
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.15 2000/02/15 07:09:47 kris Exp $
d25 1
@


1.15
log
@Upgrade to stunnel 3.7

PR:		16554 (updated)
Submitted by:	Martti Kuparinen <martti.kuparinen@@lmf.ericsson.se>
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.14 2000/02/12 10:37:38 kris Exp $
d22 2
@


1.14
log
@USE_OPENSSL

Submitted by:	Jim Bloom <bloom@@acm.org>
@
text
@d2 1
a2 1
# Version required:	3.4a
d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.13 2000/01/11 01:16:04 foxfair Exp $
d9 1
a9 1
DISTNAME=	stunnel-3.4a
d47 1
a47 1
	@@${ECHO} "Please check out the FAQ at http://mike.daewoo.com.pl/computer/stunnel/FAQ"
@


1.13
log
@Clean up Makefile, remove the unwanted action while compiling.

Pointed out by : Martti Kuparinen <martti.kuparinen@@ericsson.com>
		(maintainer)
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.12 1999/12/09 14:17:09 foxfair Exp $
d19 1
a19 8
BUILD_DEPENDS=	openssl:${PORTSDIR}/security/openssl
LIB_DEPENDS=	crypto.1:${PORTSDIR}/security/openssl \
		ssl.1:${PORTSDIR}/security/openssl
RUN_DEPENDS=	openssl:${PORTSDIR}/security/openssl

.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
LIB_DEPENDS=	rsaref.2:${PORTSDIR}/security/rsaref
.endif
d26 5
@


1.12
log
@Back out my change from Oct.26, this was a misconfigured hack and should
never be taken.

Pointed out by : maintainer.
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.11 1999/11/07 22:25:40 dirk Exp $
a32 2

	${CP} files/patch-aa patches/
@


1.11
log
@Change dependencies from static to shared openssl libraries,
because openssl also builds shared libraries, now.
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.10 1999/10/26 19:12:46 foxfair Exp $
a33 4
.include <bsd.port.pre.mk>

pre-patch:
.if ${OSVERSION} >= 400000
a34 1
.endif
@


1.10
log
@Make this port to build in -stable.
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.9 1999/09/06 23:12:55 steve Exp $
d19 3
a21 3
BUILD_DEPENDS=	openssl:${PORTSDIR}/security/openssl \
		${PREFIX}/lib/libssl.a:${PORTSDIR}/security/openssl \
		${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/openssl
@


1.9
log
@This port's configure script now takes care of this so we longer
need this hack.
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.8 1999/09/06 19:29:23 cpiazza Exp $
d33 7
@


1.8
log
@Update to version 3.4a

PR:		13594
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/security/stunnel/Makefile,v 1.7 1999/08/31 01:51:51 peter Exp $
a25 1
MAKE_ENV+=	EXTRA_SSL_LIBS="-lRSAglue -lrsaref"
@


1.7
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# Version required:	3.3
d6 1
a6 1
# $FreeBSD$
d9 1
a9 1
DISTNAME=	stunnel-3.3
d11 2
a12 2
MASTER_SITES=	http://mike.daewoo.com.pl/computer/stunnel/ \
		http://opensores.thebunker.net/pub/mirrors/stunnel/ \
@


1.6
log
@Upgrade to version 3.3.

PR:		ports/12318:
Submitted by:	Martti Kuparinen <martti.kuparinen@@ericsson.com> (maintainer)
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.5 1999/06/06 16:54:51 steve Exp $
@


1.5
log
@Update to version 3.2.

PR:		12018
Submitted by:	maintainer
@
text
@d2 1
a2 1
# Version required:	3.2
d6 1
a6 1
# $Id: Makefile,v 1.4 1999/05/03 02:10:08 steve Exp $
d9 1
a9 1
DISTNAME=	stunnel-3.2
a29 1
WRKSRC=		${WRKDIR}/stunnel
@


1.4
log
@Allow this to build again inside and outside the US.

PR:		11237
@
text
@d2 1
a2 1
# Version required:	2.1
d6 1
a6 1
# $Id: Makefile,v 1.3 1999/03/29 14:54:37 dirk Exp $
d9 1
a9 1
DISTNAME=	stunnel-2.1
d12 1
d32 22
@


1.3
log
@Switch from SSLeay to OpenSSL.

PR:		ports/10541
Submitted by:	Martti Kuparinen <martti.kuparinen@@ericsson.com> (maintainer)
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.2 1999/01/27 21:57:23 billf Exp $
d22 2
d25 2
@


1.2
log
@Remove duplicate MASTER_SITE
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.1.1.1 1999/01/18 04:27:02 steve Exp $
d18 5
a22 4
BUILD_DEPENDS=	ssleay:${PORTSDIR}/security/SSLeay \
		${PREFIX}/lib/libssl.a:${PORTSDIR}/security/SSLeay \
		${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/SSLeay
RUN_DEPENDS=	ssleay:${PORTSDIR}/security/SSLeay
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $Id$
d14 1
a14 2
		ftp://ftp.all.de/pub2/unix/security/stunnel/ \
		http://mike.daewoo.com.pl/computer/stunnel/
@


1.1.1.1
log
@Initial import of stunnel version 2.1.
An SSL encryption wrapper for standard network daemons.

PR:		9435
Submitted by:	Martti Kuparinen <martti.kuparinen@@ericsson.com>
@
text
@@
