From d4eb316169ef955a49a80e5c746d03cf14ce014b Mon Sep 17 00:00:00 2001
From: Avesh Agarwal
Date: Tue, 28 Jun 2011 13:17:30 -0400
Subject: [PATCH] New upstream realease 4.37 Updated local patches to match the
new release
---
.gitignore | 3 +++
sources | 5 +++--
stunnel-4-authpriv.patch | 36 ++++++++++++++++++------------------
stunnel-4-sample.patch | 29 +++++++++++++----------------
stunnel.spec | 6 +++++-
5 files changed, 42 insertions(+), 37 deletions(-)
diff --git a/.gitignore b/.gitignore
index 1f89a63..d867105 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,6 @@ stunnel-4.33.tar.gz.asc
/stunnel-4.34.tar.gz.asc
/stunnel-4.35.tar.gz
/stunnel-4.35.tar.gz.asc
+/stunnel-4.37.tar.gz
+/stunnel-4.37.tar.gz.asc
+/stunnel-4.37.tar.gz.sha256
diff --git a/sources b/sources
index 9cf46bc..6fa960a 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
-2c8e153caee9d954fb7d00980968b50d stunnel-4.35.tar.gz
-d556ceb125e21ef19011db93484ae5a0 stunnel-4.35.tar.gz.asc
+8d4e2cefbef6638da95986a3d44c1b4a stunnel-4.37.tar.gz
+b56c2f649e51e9aafa185efc5074aca5 stunnel-4.37.tar.gz.asc
+b7d8cc0a8b8a5ec3b648c1cbcfc75eca stunnel-4.37.tar.gz.sha256
diff --git a/stunnel-4-authpriv.patch b/stunnel-4-authpriv.patch
index 434e702..1773f8f 100644
--- a/stunnel-4-authpriv.patch
+++ b/stunnel-4-authpriv.patch
@@ -1,42 +1,42 @@
-diff -urNp stunnel-4.35-orig/doc/stunnel.8 stunnel-4.35-current/doc/stunnel.8
---- stunnel-4.35-orig/doc/stunnel.8 2011-02-05 16:36:59.000000000 -0500
-+++ stunnel-4.35-current/doc/stunnel.8 2011-04-04 13:44:09.715498378 -0400
+diff -urNp stunnel-4.37/doc/stunnel.8 stunnel-4.37-cvs-patched/doc/stunnel.8
+--- stunnel-4.37/doc/stunnel.8 2011-04-27 17:02:40.000000000 -0400
++++ stunnel-4.37-cvs-patched/doc/stunnel.8 2011-06-28 12:51:26.382324071 -0400
@@ -165,7 +165,7 @@ info (6), or debug (7). All logs for th
- all levels numerically less than it will be shown. Use \fBdebug = debug\fR or
- \&\fBdebug = 7\fR for greatest debugging output. The default is notice (5).
+ all levels numerically less than it will be shown. Use \fIdebug = debug\fR or
+ \&\fIdebug = 7\fR for greatest debugging output. The default is notice (5).
.Sp
-The syslog facility 'daemon' will be used unless a facility name is supplied.
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
(Facilities are not supported on Win32.)
.Sp
Case is ignored for both facilities and levels.
-diff -urNp stunnel-4.35-orig/doc/stunnel.html stunnel-4.35-current/doc/stunnel.html
---- stunnel-4.35-orig/doc/stunnel.html 2011-02-05 16:36:59.000000000 -0500
-+++ stunnel-4.35-current/doc/stunnel.html 2011-04-04 13:44:09.717498254 -0400
+diff -urNp stunnel-4.37/doc/stunnel.html stunnel-4.37-cvs-patched/doc/stunnel.html
+--- stunnel-4.37/doc/stunnel.html 2011-04-27 17:02:42.000000000 -0400
++++ stunnel-4.37-cvs-patched/doc/stunnel.html 2011-06-28 12:53:04.719417049 -0400
@@ -190,7 +190,7 @@ emerg (0), alert (1), crit (2), err (3),
info (6), or debug (7). All logs for the specified level and
- all levels numerically less than it will be shown. Use debug = debug or
- debug = 7 for greatest debugging output. The default is notice (5).
+ all levels numerically less than it will be shown. Use debug = debug or
+ debug = 7 for greatest debugging output. The default is notice (5).
-The syslog facility 'daemon' will be used unless a facility name is supplied.
+
The syslog facility 'authpriv' will be used unless a facility name is supplied.
(Facilities are not supported on Win32.)
Case is ignored for both facilities and levels.
-diff -urNp stunnel-4.35-orig/doc/stunnel.pod stunnel-4.35-current/doc/stunnel.pod
---- stunnel-4.35-orig/doc/stunnel.pod 2011-02-05 16:36:31.000000000 -0500
-+++ stunnel-4.35-current/doc/stunnel.pod 2011-04-04 13:44:09.719498136 -0400
+diff -urNp stunnel-4.37/doc/stunnel.pod stunnel-4.37-cvs-patched/doc/stunnel.pod
+--- stunnel-4.37/doc/stunnel.pod 2011-04-27 16:58:39.000000000 -0400
++++ stunnel-4.37-cvs-patched/doc/stunnel.pod 2011-06-28 12:53:19.461280748 -0400
@@ -132,7 +132,7 @@ info (6), or debug (7). All logs for th
- all levels numerically less than it will be shown. Use B or
- B for greatest debugging output. The default is notice (5).
+ all levels numerically less than it will be shown. Use I or
+ I for greatest debugging output. The default is notice (5).
-The syslog facility 'daemon' will be used unless a facility name is supplied.
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
(Facilities are not supported on Win32.)
Case is ignored for both facilities and levels.
-diff -urNp stunnel-4.35-orig/src/options.c stunnel-4.35-current/src/options.c
---- stunnel-4.35-orig/src/options.c 2011-01-24 17:30:07.000000000 -0500
-+++ stunnel-4.35-current/src/options.c 2011-04-04 13:44:09.720498079 -0400
+diff -urNp stunnel-4.37/src/options.c stunnel-4.37-cvs-patched/src/options.c
+--- stunnel-4.37/src/options.c 2011-06-17 06:25:01.000000000 -0400
++++ stunnel-4.37-cvs-patched/src/options.c 2011-06-28 12:54:18.351744191 -0400
@@ -140,8 +140,12 @@ static char *parse_global_option(CMD cmd
case CMD_INIT:
new_global_options.debug_level=LOG_NOTICE;
diff --git a/stunnel-4-sample.patch b/stunnel-4-sample.patch
index 39624d7..f456056 100644
--- a/stunnel-4-sample.patch
+++ b/stunnel-4-sample.patch
@@ -1,38 +1,35 @@
-diff -urNp stunnel-4.35-orig/tools/stunnel.conf-sample.in stunnel-4.35-current/tools/stunnel.conf-sample.in
---- stunnel-4.35-orig/tools/stunnel.conf-sample.in 2011-01-24 16:45:36.000000000 -0500
-+++ stunnel-4.35-current/tools/stunnel.conf-sample.in 2011-04-04 13:44:12.920429210 -0400
-@@ -4,15 +4,15 @@
- ; please read the manual and make sure you understand them
-
- ; certificate/key is needed in server mode and optional in client mode
+diff -urNp stunnel-4.37/tools/stunnel.conf-sample.in stunnel-4.37-cvs-patched/tools/stunnel.conf-sample.in
+--- stunnel-4.37/tools/stunnel.conf-sample.in 2011-06-04 14:46:00.000000000 -0400
++++ stunnel-4.37-cvs-patched/tools/stunnel.conf-sample.in 2011-06-28 12:57:17.387114066 -0400
+@@ -5,12 +5,12 @@
+ ; Certificate/key is needed in server mode and optional in client mode
+ ; The default certificate is provided only for testing and should not
+ ; be used in a production environment
-cert = @prefix@/etc/stunnel/mail.pem
-;key = @prefix@/etc/stunnel/mail.pem
+cert = @sysconfdir@/stunnel/mail.crt
+;key = @sysconfdir@/stunnel/mail.key
- ; protocol version (all, SSLv2, SSLv3, TLSv1)
- sslVersion = SSLv3
-
- ; security enhancements for UNIX systems - comment them out on Win32
+ ; Security enhancements for UNIX systems - comment them out on Win32
; for chroot a copy of some devices and files is needed within the jail
-chroot = @prefix@/var/lib/stunnel/
+chroot = @localstatedir@/run/stunnel/
setuid = nobody
setgid = @DEFAULT_GROUP@
; PID is created inside the chroot jail
-@@ -33,12 +33,13 @@ socket = r:TCP_NODELAY=1
+@@ -33,12 +33,13 @@ options = NO_SSLv2
; CApath is located inside chroot jail
;CApath = /certs
- ; it's often easier to use CAfile
+ ; It's often easier to use CAfile
-;CAfile = @prefix@/etc/stunnel/certs.pem
+;CAfile = @sysconfdir@/stunnel/certs.pem
+;CAfile = @sysconfdir@/pki/tls/certs/ca-bundle.crt
- ; don't forget to c_rehash CRLpath
+ ; Don't forget to c_rehash CRLpath
; CRLpath is located inside chroot jail
;CRLpath = /crls
- ; alternatively CRLfile can be used
+ ; Alternatively CRLfile can be used
-;CRLfile = @prefix@/etc/stunnel/crls.pem
+;CRLfile = @sysconfdir@/stunnel/crls.pem
- ; debugging stuff (may useful for troubleshooting)
+ ; Debugging stuff (may useful for troubleshooting)
;debug = 7
diff --git a/stunnel.spec b/stunnel.spec
index 5173f65..f3d5d5f 100644
--- a/stunnel.spec
+++ b/stunnel.spec
@@ -1,6 +1,6 @@
Summary: An SSL-encrypting socket wrapper
Name: stunnel
-Version: 4.35
+Version: 4.37
Release: 1%{?dist}
License: GPLv2
Group: Applications/Internet
@@ -79,6 +79,10 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_sysconfdir}/stunnel/*
%changelog
+* Tue Jun 28 2011 Avesh Agarwal - 4.37-1
+- New upstream realease 4.37
+- Updated local patches to match the new release
+
* Mon Apr 4 2011 Avesh Agarwal - 4.35-1
- New upstream realease 4.35
- Updated authpriv and sample patches to match the new release