rpms/stunnel/devel stunnel-4.10-inetd.patch, NONE, 1.1 .cvsignore, 1.11, 1.12 stunnel.spec, 1.22, 1.23 stunnel-4.02-authpriv.patch, 1.1, NONE stunnel-4.05-nopem.patch, 1.1, NONE stunnel-4.05-sample.patch, 1.1, NONE stunnel-4.10-noprompt.patch, 1.1, NONE

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Jun 1 11:49:13 UTC 2005


Author: mitr

Update of /cvs/dist/rpms/stunnel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv6113

Modified Files:
	.cvsignore stunnel.spec 
Added Files:
	stunnel-4.10-inetd.patch 
Removed Files:
	stunnel-4.02-authpriv.patch stunnel-4.05-nopem.patch 
	stunnel-4.05-sample.patch stunnel-4.10-noprompt.patch 
Log Message:
* Wed Jun  1 2005 Miloslav Trmac <mitr at redhat.com> - 4.10-2
- Fix inetd mode
- Remove unnecessary Requires: and BuildRequires:
- Clean up the spec file


stunnel-4.10-inetd.patch:
 network.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE stunnel-4.10-inetd.patch ---
--- stunnel-4.10/src/network.c.inetd	2005-06-01 11:39:36.000000000 +0200
+++ stunnel-4.10/src/network.c	2005-06-01 11:43:38.000000000 +0200
@@ -32,7 +32,7 @@
 #include "prototypes.h"
 
 #ifndef USE_WIN32
-static int signal_pipe[2];
+static int signal_pipe[2] = { -1, -1 };
 static char signal_buffer[16];
 static void sigchld_handler(int);
 static void signal_pipe_empty(void);
@@ -136,7 +136,7 @@
     do { /* skip "Interrupted system call" errors */
         retry=0;
         retval=poll(ufds, nfds, min_timeout<0 ? -1 : 1000*min_timeout);
-        if(retval>0 && (*signal_revents & POLLIN)) {
+        if(retval>0 && signal_revents && (*signal_revents & POLLIN)) {
             signal_pipe_empty(); /* no timeout -> main loop */
             retry=1;
         }


Index: .cvsignore
===================================================================
RCS file: /cvs/dist/rpms/stunnel/devel/.cvsignore,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- .cvsignore	16 Mar 2005 20:47:03 -0000	1.11
+++ .cvsignore	1 Jun 2005 11:49:11 -0000	1.12
@@ -1,3 +1,2 @@
-stunnel-4.05.tar.gz
-stunnel-4.08.tar.gz
-stunnel-4.08.tar.gz.asc
+stunnel-4.10.tar.gz
+stunnel-4.10.tar.gz.asc


Index: stunnel.spec
===================================================================
RCS file: /cvs/dist/rpms/stunnel/devel/stunnel.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- stunnel.spec	26 Apr 2005 21:52:37 -0000	1.22
+++ stunnel.spec	1 Jun 2005 11:49:11 -0000	1.23
@@ -1,7 +1,7 @@
 Summary: An SSL-encrypting socket wrapper.
 Name: stunnel
 Version: 4.10
-Release: 1
+Release: 2
 License: GPL
 Group: Applications/Internet
 URL: http://stunnel.mirt.net/ 
@@ -15,14 +15,10 @@
 Source7: stunnel-pop3s-client.conf
 Patch0: stunnel-4.08-authpriv.patch
 Patch1: stunnel-4.08-sample.patch
-Patch2: stunnel-4.10-noprompt.patch
+Patch2: stunnel-4.10-inetd.patch
 Buildroot: %{_tmppath}/stunnel-root
-BuildPrereq: automake, autoconf, libtool, openssl-devel, perl, pkgconfig,
 # util-linux is needed for rename
-BuildPrereq: tcp_wrappers, /usr/share/dict/words, util-linux
-Prereq: coreutils, /bin/mktemp, /sbin/ldconfig
-Prereq: /usr/share/dict/words, /bin/hostname, /usr/bin/id, /usr/bin/getent
-Requires: make
+BuildRequires: openssl-devel, pkgconfig, tcp_wrappers, util-linux
 
 %description
 Stunnel is a socket wrapper which can provide SSL (Secure Sockets
@@ -33,34 +29,27 @@
 %setup -q
 %patch0 -p1 -b .authpriv
 %patch1 -p1 -b .sample
-%patch2 -p1 -b .noprompt
+%patch2 -p1 -b .inetd
 
 iconv -f iso-8859-1 -t utf-8 < doc/stunnel.fr.8 > doc/stunnel.fr.8_
 mv doc/stunnel.fr.8_ doc/stunnel.fr.8
 iconv -f iso-8859-2 -t utf-8 < doc/stunnel.pl.8 > doc/stunnel.pl.8_
 mv doc/stunnel.pl.8_ doc/stunnel.pl.8
 
-autoreconf
-
 %build
 CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
 if pkg-config openssl ; then
 	CFLAGS="$CFLAGS `pkg-config --cflags openssl`";
 	LDFLAGS="`pkg-config --libs-only-L openssl`"; export LDFLAGS
 fi
-%configure --with-tcp-wrappers --with-pic
-export tagname=CC
-make LIBTOOL=%{_bindir}/libtool LDADD="-pie -Wl,-z,defs,-z,relro"
+%configure --with-tcp-wrappers
+make LDADD="-pie -Wl,-z,defs,-z,relro"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-export tagname=CC
-%makeinstall docdir=`pwd`/installed-docs LIBTOOL=%{_bindir}/libtool
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.?
-rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/stunnel/*sample*
-rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/stunnel/stunnel.pem
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stunnel
+touch $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem
+make install DESTDIR=$RPM_BUILD_ROOT
 # Move the translated man pages to the right subdirectories, and strip off the
 # language suffixes.
 for lang in fr pl ; do
@@ -78,7 +67,7 @@
 
 %files
 %defattr(-,root,root)
-%doc BUGS ChangeLog COPY* CREDITS NEWS PORTS README TODO doc/*.html
+%doc AUTHORS BUGS ChangeLog COPY* CREDITS NEWS PORTS README TODO doc/*.html
 %doc $RPM_SOURCE_DIR/Certificate-Creation
 %doc $RPM_SOURCE_DIR/sfinger.xinetd
 %doc $RPM_SOURCE_DIR/pop3-redirect.xinetd
@@ -87,14 +76,22 @@
 %doc tools/stunnel.conf-sample
 %lang(en) %doc doc/en/*
 %lang(po) %doc doc/pl/*
+%exclude %{_datadir}/doc/stunnel
 %{_libdir}/libstunnel.so
+%exclude %{_libdir}/libstunnel.la
 %{_mandir}/man8/stunnel.8*
 %{_mandir}/*/man8/stunnel.8*
 %{_sbindir}/stunnel
 %{_sbindir}/stunnel3
 %dir %{_sysconfdir}/%{name}
+%exclude %{_sysconfdir}/stunnel/*
 
 %changelog
+* Wed Jun  1 2005 Miloslav Trmac <mitr at redhat.com> - 4.10-2
+- Fix inetd mode
+- Remove unnecessary Requires: and BuildRequires:
+- Clean up the spec file
+
 * Tue Apr 26 2005 Nalin Dahyabhai <nalin at redhat.com> 4.10-1
 - update to 4.10
 


--- stunnel-4.02-authpriv.patch DELETED ---


--- stunnel-4.05-nopem.patch DELETED ---


--- stunnel-4.05-sample.patch DELETED ---


--- stunnel-4.10-noprompt.patch DELETED ---




More information about the fedora-cvs-commits mailing list