summaryrefslogtreecommitdiffstats
path: root/security/stunnel
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2005-07-13 08:41:58 +0000
committerroam <roam@FreeBSD.org>2005-07-13 08:41:58 +0000
commitf39f4a68652ddb8bb8cdb3f6fe100ef3527a1eac (patch)
tree9aa93040267acdd45c368296a8fd3594f9b014df /security/stunnel
parent764cd12bf2efdb409685d93503003df849ecc8b4 (diff)
downloadFreeBSD-ports-f39f4a68652ddb8bb8cdb3f6fe100ef3527a1eac.zip
FreeBSD-ports-f39f4a68652ddb8bb8cdb3f6fe100ef3527a1eac.tar.gz
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>
Diffstat (limited to 'security/stunnel')
-rw-r--r--security/stunnel/Makefile15
-rw-r--r--security/stunnel/distinfo4
-rw-r--r--security/stunnel/files/patch-src::common.h50
-rw-r--r--security/stunnel/files/patch-src::sthreads.c12
4 files changed, 11 insertions, 70 deletions
diff --git a/security/stunnel/Makefile b/security/stunnel/Makefile
index 8ea82f9..e452b5b 100644
--- a/security/stunnel/Makefile
+++ b/security/stunnel/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= stunnel
-PORTVERSION= 4.10
-PORTREVISION= 3
+PORTVERSION= 4.11
CATEGORIES= security
MASTER_SITES= http://www.stunnel.org/download/stunnel/src/ \
ftp://stunnel.mirt.net/stunnel/OBSOLETE/ \
@@ -47,13 +46,17 @@ CONFIGURE_ARGS+= --enable-ipv6
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
-CFLAGS+=-DFORCE_THREADING_MODEL
.if defined(WITH_UCONTEXT)
-CFLAGS+=-DFORCE_UCONTEXT
+.if ${OSVERSION} < 500112
+BROKEN= 'The ucontext model is only supported on FreeBSD 5.x and 6.x'
+.endif
+CONFIGURE_ARGS+=--with-threads=ucontext
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
.elif defined(WITH_FORK)
-CFLAGS+=-DFORCE_FORK
+CONFIGURE_ARGS+=--with-threads=fork
.else
-CFLAGS+=-DFORCE_PTHREAD
+CONFIGURE_ARGS+=--with-threads=pthread
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
.endif
post-patch:
diff --git a/security/stunnel/distinfo b/security/stunnel/distinfo
index b465790..11ee139 100644
--- a/security/stunnel/distinfo
+++ b/security/stunnel/distinfo
@@ -1,2 +1,2 @@
-MD5 (stunnel-4.10.tar.gz) = 9de7a62a44083114779ca4e109d70776
-SIZE (stunnel-4.10.tar.gz) = 487066
+MD5 (stunnel-4.11.tar.gz) = 253c50435d4d81cba6f19ca34266e6dc
+SIZE (stunnel-4.11.tar.gz) = 484559
diff --git a/security/stunnel/files/patch-src::common.h b/security/stunnel/files/patch-src::common.h
deleted file mode 100644
index c19cd21..0000000
--- a/security/stunnel/files/patch-src::common.h
+++ /dev/null
@@ -1,50 +0,0 @@
---- src/common.h.orig Sat Apr 23 13:40:10 2005
-+++ src/common.h Tue Jun 14 08:27:11 2005
-@@ -38,17 +38,44 @@
- #endif
-
- /* threads model */
-+#if defined(FORCE_THREADING_MODEL)
-+
-+#undef USE_UCONTEXT
-+#undef USE_PTHREAD
-+#undef USE_FORK
-+
-+#ifdef FORCE_UCONTEXT
-+#define USE_UCONTEXT
-+#else
-+#ifdef FORCE_PTHREAD
-+#define USE_PTHREAD
-+#else
-+#define USE_FORK
-+#endif /* FORCE_PTHREAD */
-+#endif /* FORCE_UCONTEXT */
-+
-+#else /* FORCE_THREADING_MODEL */
-+
- #if HAVE_UCONTEXT_H && HAVE_GETCONTEXT && HAVE_POLL
- #define USE_UCONTEXT
--#include <ucontext.h>
- #elif HAVE_PTHREAD_H && HAVE_LIBPTHREAD
- #define USE_PTHREAD
-+#else
-+#define USE_FORK
-+#endif
-+
-+#endif /* FORCE_THREADING_MODEL */
-+
-+#ifdef USE_UCONTEXT
-+#include <sys/types.h>
-+#include <ucontext.h>
-+#endif
-+
-+#ifdef USE_PTHREAD
- #include <pthread.h>
- #define THREADS
- #define _REENTRANT
- #define _THREAD_SAFE
--#else
--#define USE_FORK
- #endif
-
- /* TCP wrapper */
diff --git a/security/stunnel/files/patch-src::sthreads.c b/security/stunnel/files/patch-src::sthreads.c
deleted file mode 100644
index d1dfd34..0000000
--- a/security/stunnel/files/patch-src::sthreads.c
+++ /dev/null
@@ -1,12 +0,0 @@
-*** src/sthreads.c.old Mon Jun 13 21:34:53 2005
---- src/sthreads.c Mon Jun 13 22:15:01 2005
-***************
-*** 63,68 ****
---- 63,69 ----
-
- static void ctx_cleanup_func(void) { /* cleanup the active thread */
- s_log(LOG_DEBUG, "Context %ld closed", ready_head->id);
-+ makecontext(&ctx_cleanup, ctx_cleanup_func, 0);
- s_poll_wait(NULL, 0); /* wait on poll() */
- }
-
OpenPOWER on IntegriCloud