Subject: pkg/13679: stunnel 3.19
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martti.kuparinen@iki.fi>
List: netbsd-bugs
Date: 08/10/2001 14:39:47
>Number:         13679
>Category:       pkg
>Synopsis:       stunnel 3.19
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 10 05:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Martti Kuparinen
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
	
System: NetBSD dhcp38 1.5.1 NetBSD 1.5.1 (OMNIBOOK) #5: Wed Jul 4 13:42:00 GMT 2001 root@dhcp38:/usr/src/sys/arch/i386/compile/OMNIBOOK i386


>Description:

Update stunnel to the latest release.

Changelog for version 3.19, 2001.08.10, urgency: MEDIUM:

* Critical section added around non MT-safe TCP Wrappers code.
* Problem with "select: Interrupted system call" error fixed.
* errno replaced with get_last_socket_error() for Win32.
* Some FreeBSD/NetBSD patches to ./configure from Martti Kuparinen.
* Local mode process pid logged.
* Default FQDN (localhost) removed from stunnel.cnf
* ./configure changed to recognize POSIX threads library on OSF.
* New -O option to set socket options.

>How-To-Repeat:

>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/stunnel/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile	2001/07/23 10:03:09	1.20
+++ Makefile	2001/08/10 12:37:25
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.20 2001/07/23 10:03:09 martin Exp $
 #
 
-DISTNAME=		stunnel-3.16
+DISTNAME=		stunnel-3.19
 CATEGORIES=		security
 MASTER_SITES=		ftp://ftp.fu-berlin.de/pub/unix/security/stunnel/ \
 			ftp://stunnel.mirt.net/stunnel/ \
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/stunnel/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	2001/07/23 10:03:09	1.5
+++ distinfo	2001/08/10 12:37:25
@@ -1,7 +1,7 @@
 $NetBSD: distinfo,v 1.5 2001/07/23 10:03:09 martin Exp $
 
-SHA1 (stunnel-3.16.tar.gz) = 918a5ddf3555c33c67d9c3bbea6fe4ab1ab7859a
-Size (stunnel-3.16.tar.gz) = 121666 bytes
-SHA1 (patch-aa) = 9ef36b68a7689e9130da6b11f21a9ff9e6fcda90
-SHA1 (patch-ab) = 30e7b84b35511ff29f482e01e57a6c8e9634b057
+SHA1 (stunnel-3.19.tar.gz) = f08c9c469a4b7978570c0bd9dbb33aabc25602f8
+Size (stunnel-3.19.tar.gz) = 126011 bytes
+SHA1 (patch-aa) = 0c6df089fb0b59b6e6a75b45acb87068b475238b
+SHA1 (patch-ab) = c88cc06ea56b41c647bcb47a63fbf1141b960421
 SHA1 (patch-ac) = 9246c0855f0fa12f79d00f7729c54c9b1703bdb9
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/security/stunnel/patches/patch-aa,v
retrieving revision 1.7
diff -u -r1.7 patch-aa
--- patch-aa	2001/01/22 13:30:36	1.7
+++ patch-aa	2001/08/10 12:37:25
@@ -1,7 +1,7 @@
 $NetBSD: patch-aa,v 1.7 2001/01/22 13:30:36 martin Exp $
 
---- Makefile.in.orig	Tue Dec 19 19:42:46 2000
-+++ Makefile.in	Mon Jan 22 13:59:59 2001
+--- Makefile.in.orig	Mon Aug  6 16:41:24 2001
++++ Makefile.in	Fri Aug 10 14:30:47 2001
 @@ -9,7 +9,7 @@
  sbindir=@sbindir@
  libdir=@libdir@
@@ -14,7 +14,7 @@
 @@ -20,7 +20,7 @@
  CFLAGS=@CFLAGS@ @DEFS@ -Dlibdir=\"$(libdir)\" -DPIDDIR=\"$(piddir)\"
  LIBS=@LIBS@
- OBJS=stunnel.o ssl.o protocol.o sthreads.o pty.o log.o
+ OBJS=stunnel.o ssl.o protocol.o sthreads.o pty.o log.o options.o
 -DESTFILES=$(sbindir)/stunnel $(libdir)/stunnel.so $(man8dir)/stunnel.8  $(PEM_DIR)/stunnel.pem
 +DESTFILES=$(sbindir)/stunnel $(libdir)/stunnel.so $(man8dir)/stunnel.8
  
Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/security/stunnel/patches/patch-ab,v
retrieving revision 1.6
diff -u -r1.6 patch-ab
--- patch-ab	2001/07/23 10:03:10	1.6
+++ patch-ab	2001/08/10 12:37:25
@@ -1,43 +1,21 @@
 $NetBSD: patch-ab,v 1.6 2001/07/23 10:03:10 martin Exp $
 
---- configure.in.orig	Wed Jul 18 08:55:23 2001
-+++ configure.in	Mon Jul 23 11:54:52 2001
-@@ -124,12 +124,7 @@
- AC_CHECK_LIB(dl, dlopen)
- AC_CHECK_LIB(nsl, gethostbyname)
- AC_CHECK_LIB(socket, socket)
--AC_CHECK_LIB(pthread, pthread_create)
+--- configure.in.orig	Fri Aug 10 09:30:46 2001
++++ configure.in	Fri Aug 10 14:33:58 2001
+@@ -134,11 +134,7 @@
+       [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LIBPTHREAD)],
+       [AC_MSG_RESULT(no); LIBS="$saved_LIBS"])
+ 
 -# BSD hack
 -AC_CHECK_LIB(c_r, pthread_create,
 -        [ LIBS="$LIBS -pthread"
 -	AC_DEFINE(HAVE_LIBPTHREAD) ]
 -)
-+# XXX pthread does not work with stunnel on NetBSD
- AC_CHECK_LIB(util, openpty)
++# XXX pthread does not work with stunnel on NetBSDž
  
+ AC_CHECK_LIB(util, openpty)
  
-@@ -138,17 +133,19 @@
- AC_ARG_WITH(tcp-wrappers,
- [  --with-tcp-wrappers     Use the libwrap (TCP wrappers) library],
-   [
-+    saved_LIBS="$LIBS"
-     if test "$withval" = "yes"; then
-       AC_MSG_RESULT(yes)
-       AC_MSG_CHECKING([for hosts_access in -lwrap])
-       LIBS="-lwrap $LIBS"
-       AC_TRY_LINK([int hosts_access(); int allow_severity, deny_severity;],
-         [hosts_access()],
--        [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LIBWRAP)],
-+        [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LIBWRAP) wrap_LIB="-lwrap"],
- 	[AC_MSG_RESULT(not found); exit 1])
-     else
-       AC_MSG_RESULT(no)
-     fi
-+    LIBS="$saved_LIBS"
-   ],
-   [
-     AC_MSG_RESULT((default))
-@@ -184,7 +181,7 @@
+@@ -195,7 +191,7 @@
  # AC_HEADER_DIRENT
  # AC_HEADER_STDC
  # AC_HEADER_SYS_WAIT
@@ -46,12 +24,3 @@
  
  # dnl Checks for typedefs, structures, and compiler characteristics.
  # AC_C_CONST
-@@ -202,6 +199,8 @@
- AC_CHECK_SIZEOF(unsigned int)
- AC_CHECK_SIZEOF(unsigned long)
- AC_CHECK_SIZEOF(unsigned long long)
-+
-+LIBS="$LIBS $wrap_LIB"
- 
- AC_OUTPUT(Makefile)
- 
>Release-Note:
>Audit-Trail:
>Unformatted: