2004-09-09 12:45:42 +00:00
|
|
|
Summary: An SSL-encrypting socket wrapper.
|
2004-09-09 12:45:04 +00:00
|
|
|
Name: stunnel
|
2005-07-12 09:30:02 +00:00
|
|
|
Version: 4.11
|
|
|
|
Release: 1
|
2004-09-09 12:45:42 +00:00
|
|
|
License: GPL
|
2004-09-09 12:45:04 +00:00
|
|
|
Group: Applications/Internet
|
2005-09-17 23:07:38 +00:00
|
|
|
URL: http://stunnel.mirt.net/
|
2004-09-09 12:45:15 +00:00
|
|
|
Source0: ftp://stunnel.mirt.net/stunnel/stunnel-%{version}.tar.gz
|
2004-09-09 12:47:57 +00:00
|
|
|
Source1: ftp://stunnel.mirt.net/stunnel/stunnel-%{version}.tar.gz.asc
|
|
|
|
Source2: stunnel.cnf
|
|
|
|
Source3: Certificate-Creation
|
|
|
|
Source4: sfinger.xinetd
|
2004-09-09 12:48:57 +00:00
|
|
|
Source5: stunnel-sfinger.conf
|
|
|
|
Source6: pop3-redirect.xinetd
|
|
|
|
Source7: stunnel-pop3s-client.conf
|
2005-03-16 20:45:02 +00:00
|
|
|
Patch0: stunnel-4.08-authpriv.patch
|
2005-04-26 21:52:37 +00:00
|
|
|
Patch1: stunnel-4.08-sample.patch
|
2005-07-12 09:57:03 +00:00
|
|
|
Patch2: stunnel-4.11-printf.patch
|
2004-09-09 12:45:04 +00:00
|
|
|
Buildroot: %{_tmppath}/stunnel-root
|
2005-04-26 20:42:22 +00:00
|
|
|
# util-linux is needed for rename
|
2005-06-01 11:49:11 +00:00
|
|
|
BuildRequires: openssl-devel, pkgconfig, tcp_wrappers, util-linux
|
2004-09-09 12:45:04 +00:00
|
|
|
|
|
|
|
%description
|
2004-09-09 12:45:42 +00:00
|
|
|
Stunnel is a socket wrapper which can provide SSL (Secure Sockets
|
|
|
|
Layer) support to ordinary applications. For example, it can be used
|
|
|
|
in conjunction with imapd to create an SSL secure IMAP server.
|
2004-09-09 12:45:04 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2004-09-09 12:47:57 +00:00
|
|
|
%patch0 -p1 -b .authpriv
|
2005-04-26 21:52:37 +00:00
|
|
|
%patch1 -p1 -b .sample
|
2005-07-12 09:57:03 +00:00
|
|
|
%patch2 -p1 -b .printf
|
2004-11-22 10:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2004-09-09 12:45:04 +00:00
|
|
|
%build
|
2005-03-16 20:54:45 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
|
2004-09-09 12:47:57 +00:00
|
|
|
if pkg-config openssl ; then
|
2005-03-16 20:54:45 +00:00
|
|
|
CFLAGS="$CFLAGS `pkg-config --cflags openssl`";
|
2004-09-09 12:48:46 +00:00
|
|
|
LDFLAGS="`pkg-config --libs-only-L openssl`"; export LDFLAGS
|
2004-09-09 12:47:57 +00:00
|
|
|
fi
|
2005-07-12 09:30:02 +00:00
|
|
|
%configure
|
2005-06-01 11:49:11 +00:00
|
|
|
make LDADD="-pie -Wl,-z,defs,-z,relro"
|
2004-09-09 12:45:04 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2005-06-01 11:49:11 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stunnel
|
|
|
|
touch $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2004-09-09 12:51:11 +00:00
|
|
|
# Move the translated man pages to the right subdirectories, and strip off the
|
|
|
|
# language suffixes.
|
|
|
|
for lang in fr pl ; do
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/${lang}/man8
|
|
|
|
mv $RPM_BUILD_ROOT/%{_mandir}/man8/*.${lang}.8* $RPM_BUILD_ROOT/%{_mandir}/${lang}/man8/
|
|
|
|
rename ".${lang}" "" $RPM_BUILD_ROOT/%{_mandir}/${lang}/man8/*
|
|
|
|
done
|
2004-09-09 12:45:04 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2005-09-17 23:07:38 +00:00
|
|
|
%doc AUTHORS BUGS ChangeLog COPY* CREDITS NEWS PORTS README TODO
|
2004-09-09 12:45:15 +00:00
|
|
|
%doc $RPM_SOURCE_DIR/Certificate-Creation
|
2004-09-09 12:48:57 +00:00
|
|
|
%doc $RPM_SOURCE_DIR/sfinger.xinetd
|
|
|
|
%doc $RPM_SOURCE_DIR/pop3-redirect.xinetd
|
|
|
|
%doc $RPM_SOURCE_DIR/stunnel-pop3s-client.conf
|
|
|
|
%doc $RPM_SOURCE_DIR/stunnel-sfinger.conf
|
2004-09-09 12:51:17 +00:00
|
|
|
%doc tools/stunnel.conf-sample
|
2004-09-09 12:48:46 +00:00
|
|
|
%lang(en) %doc doc/en/*
|
|
|
|
%lang(po) %doc doc/pl/*
|
2005-06-01 11:49:11 +00:00
|
|
|
%exclude %{_datadir}/doc/stunnel
|
2004-09-09 12:48:46 +00:00
|
|
|
%{_libdir}/libstunnel.so
|
2005-06-01 11:49:11 +00:00
|
|
|
%exclude %{_libdir}/libstunnel.la
|
2004-09-09 12:45:04 +00:00
|
|
|
%{_mandir}/man8/stunnel.8*
|
2004-09-09 12:51:11 +00:00
|
|
|
%{_mandir}/*/man8/stunnel.8*
|
2004-09-09 12:45:04 +00:00
|
|
|
%{_sbindir}/stunnel
|
2005-03-16 20:45:02 +00:00
|
|
|
%{_sbindir}/stunnel3
|
2004-09-09 12:51:17 +00:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
2005-06-01 11:49:11 +00:00
|
|
|
%exclude %{_sysconfdir}/stunnel/*
|
2004-09-09 12:45:04 +00:00
|
|
|
|
|
|
|
%changelog
|
2005-09-17 23:07:38 +00:00
|
|
|
- Don't ship another copy of man pages in HTML
|
|
|
|
|
2005-07-12 09:30:02 +00:00
|
|
|
* Tue Jul 12 2005 Miloslav Trmac <mitr@redhat.com> - 4.11-1
|
|
|
|
- Update to stunnel-4.11
|
2005-07-12 09:57:03 +00:00
|
|
|
- Fix int/size_t mismatches in stack_info ()
|
2005-07-12 09:30:02 +00:00
|
|
|
- Update Certificate-Creation for /etc/pki
|
|
|
|
|
2005-06-01 11:49:11 +00:00
|
|
|
* Wed Jun 1 2005 Miloslav Trmac <mitr@redhat.com> - 4.10-2
|
|
|
|
- Fix inetd mode
|
|
|
|
- Remove unnecessary Requires: and BuildRequires:
|
|
|
|
- Clean up the spec file
|
|
|
|
|
2005-04-26 21:52:37 +00:00
|
|
|
* Tue Apr 26 2005 Nalin Dahyabhai <nalin@redhat.com> 4.10-1
|
|
|
|
- update to 4.10
|
|
|
|
|
2005-04-26 20:42:22 +00:00
|
|
|
* Tue Apr 26 2005 Nalin Dahyabhai <nalin@redhat.com> 4.08-2
|
|
|
|
- add buildprereqs on libtool, util-linux; change textutils/fileutils dep to
|
|
|
|
coreutils (#133961)
|
|
|
|
|
2005-03-16 20:45:02 +00:00
|
|
|
* Wed Mar 16 2005 Nalin Dahyabhai <nalin@redhat.com> 4.08-1
|
|
|
|
- update to 4.08
|
|
|
|
- build stunnel as a PIE binary
|
|
|
|
|
2004-11-22 10:36:52 +00:00
|
|
|
* Mon Nov 22 2004 Miloslav Trmac <mitr@redhat.com> - 4.05-4
|
|
|
|
- Convert man pages to UTF-8
|
|
|
|
|
2004-09-09 12:51:44 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 12:51:17 +00:00
|
|
|
* Thu May 27 2004 Nalin Dahyabhai <nalin@redhat.com> 4.05-2
|
|
|
|
- move the sample configuration to %%doc, it shouldn't be used as-is (#124373)
|
|
|
|
|
2004-09-09 12:51:11 +00:00
|
|
|
* Thu Mar 11 2004 Nalin Dahyabhai <nalin@redhat.com> 4.05-1
|
|
|
|
- update to 4.05
|
|
|
|
|
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 12:49:52 +00:00
|
|
|
* Thu Aug 7 2003 Elliot Lee <sopwith@redhat.com> 4.04-6
|
|
|
|
- Fix libtool
|
|
|
|
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 12:48:57 +00:00
|
|
|
* Fri Mar 21 2003 Nalin Dahyabhai <nalin@redhat.com> 4.04-4
|
|
|
|
- fix xinetd configuration samples
|
|
|
|
|
2004-09-09 12:48:46 +00:00
|
|
|
* Mon Feb 10 2003 Nalin Dahyabhai <nalin@redhat.com> 4.04-3
|
2004-09-09 12:48:42 +00:00
|
|
|
- rebuild
|
|
|
|
|
2004-09-09 12:48:46 +00:00
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
- rebuilt
|
2004-09-09 12:47:57 +00:00
|
|
|
|
2004-09-09 12:48:46 +00:00
|
|
|
* Wed Jan 15 2003 Nalin Dahyabhai <nalin@redhat.com> 4.04-1
|
|
|
|
- update to 4.04
|
2004-09-09 12:47:57 +00:00
|
|
|
|
2004-09-09 12:48:46 +00:00
|
|
|
* Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 4.03-1
|
|
|
|
- use pkgconfig for information about openssl, if available
|
2004-09-09 12:47:57 +00:00
|
|
|
|
2004-09-09 12:48:46 +00:00
|
|
|
* Fri Jan 3 2003 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 4.03
|
2004-09-09 12:47:57 +00:00
|
|
|
|
2004-09-09 12:48:46 +00:00
|
|
|
* Mon Oct 21 2002 Nalin Dahyabhai <nalin@redhat.com> 4.02-1
|
|
|
|
- update to 4.02
|
2004-09-09 12:47:57 +00:00
|
|
|
|
2004-09-09 12:48:46 +00:00
|
|
|
* Fri Oct 4 2002 Nalin Dahyabhai <nalin@redhat.com> 4.00-1
|
|
|
|
- don't create a dummy cert
|
2004-09-09 12:47:57 +00:00
|
|
|
|
2004-09-09 12:48:46 +00:00
|
|
|
* Wed Sep 25 2002 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 4.00
|
|
|
|
- remove textutils and fileutils as buildreqs, add automake/autoconf
|
2004-09-09 12:47:57 +00:00
|
|
|
|
2004-09-09 12:47:20 +00:00
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2004-09-09 12:46:46 +00:00
|
|
|
* Sun May 26 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Fri May 17 2002 Nalin Dahyabhai <nalin@redhat.com> 3.22-2
|
|
|
|
- rebuild in new environment
|
|
|
|
|
2004-09-09 12:45:50 +00:00
|
|
|
* Wed Jan 2 2002 Nalin Dahyabhai <nalin@redhat.com> 3.22-1
|
|
|
|
- update to 3.22, correcting a format-string vulnerability
|
|
|
|
|
|
|
|
* Wed Oct 31 2001 Nalin Dahyabhai <nalin@redhat.com> 3.21a-1
|
|
|
|
- update to 3.21a
|
|
|
|
|
|
|
|
* Tue Aug 28 2001 Nalin Dahyabhai <nalin@redhat.com> 3.20-1
|
|
|
|
- log using LOG_AUTHPRIV facility by default (#47289)
|
|
|
|
- make permissions on stunnel binary 0755
|
|
|
|
- implicitly trust certificates in %%{_datadir}/ssl/trusted (#24034)
|
|
|
|
|
|
|
|
* Fri Aug 10 2001 Nalin Dahyabhai <nalin@redhat.com> 3.19-1
|
2004-09-09 12:45:46 +00:00
|
|
|
- update to 3.19 to avoid problems with stunnel being multithreaded, but
|
|
|
|
tcp wrappers not being thrad-safe
|
|
|
|
|
2004-09-09 12:45:42 +00:00
|
|
|
* Mon Jul 30 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 3.17
|
|
|
|
|
|
|
|
* Mon Jul 23 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 3.16
|
|
|
|
|
|
|
|
* Mon Jul 16 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 3.15
|
|
|
|
- enable tcp-wrappers support
|
|
|
|
|
|
|
|
* Tue May 29 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- remove explicit requirement on openssl (specific version isn't enough,
|
|
|
|
we have to depend on shared library version anyway)
|
|
|
|
|
|
|
|
* Fri Apr 27 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 3.14
|
|
|
|
|
2004-09-09 12:45:21 +00:00
|
|
|
* Mon Mar 26 2001 Preston Brown <pbrown@redhat.com>
|
|
|
|
- depend on make (#33148)
|
|
|
|
|
|
|
|
* Fri Mar 2 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- rebuild in new environment
|
|
|
|
|
|
|
|
* Tue Feb 6 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 3.13 to get pthread, OOB, 64-bit fixes
|
|
|
|
- don't need sdf any more
|
|
|
|
|
|
|
|
* Thu Dec 28 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- pull in sdf to build the man page (#22892)
|
|
|
|
|
|
|
|
* Fri Dec 22 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 3.11
|
|
|
|
- chuck the SIGHUP patch (went upstream)
|
|
|
|
- chuck parts of the 64-bit clean patch (went upstream)
|
|
|
|
|
2004-09-09 12:45:15 +00:00
|
|
|
* Thu Dec 21 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 3.10
|
|
|
|
- more 64-bit clean changes, hopefully the last bunch
|
|
|
|
|
|
|
|
* Wed Dec 20 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- change piddir from the default /var/stunnel to /var/run
|
|
|
|
- clean out pid file on SIGHUP
|
|
|
|
|
|
|
|
* Fri Dec 15 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- update to 3.9 to get a security fix
|
|
|
|
|
|
|
|
* Wed Oct 25 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
- change all unsigned longs to u_int32_t when dealing with network
|
|
|
|
addresses
|
|
|
|
|
2004-09-09 12:45:04 +00:00
|
|
|
* Fri Aug 18 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- make stunnel.pem also be (missingok)
|
|
|
|
|
|
|
|
* Thu Jun 29 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- move to Applications/Internet group
|
|
|
|
- clean up %post script
|
|
|
|
- make stunnel.pem %ghost %config(noreplace)
|
|
|
|
- provide a sample file for use with xinetd
|
|
|
|
|
|
|
|
* Thu Jun 8 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- FHS compliance fixes
|
|
|
|
- modify defaults
|
|
|
|
|
|
|
|
* Tue Mar 14 2000 Florian La Roche <Florian.LaRoche@redhat.com>
|
|
|
|
- update to 3.8
|
|
|
|
- do not create certificate if one already exists
|
|
|
|
|
|
|
|
* Mon Feb 21 2000 Florian La Roche <Florian.LaRoche@redhat.com>
|
|
|
|
- update to 3.7
|
|
|
|
- add patch to find /usr/share/ssl
|
|
|
|
- change some perms
|
|
|
|
|
|
|
|
* Sat Oct 30 1999 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- Modify spec file to match Red Hat standards
|
|
|
|
|
|
|
|
* Fri Aug 12 1999 Damien Miller <damien@ibs.com.au>
|
|
|
|
- Updated to 3.4a
|
|
|
|
- Patched for OpenSSL 0.9.4
|
|
|
|
- Cleaned up files section
|
|
|
|
|
|
|
|
* Sun Jul 11 1999 Damien Miller <dmiller@ilogic.com.au>
|
|
|
|
- Updated to 3.3
|
|
|
|
|
|
|
|
* Sat Nov 28 1998 Damien Miller <dmiller@ilogic.com.au>
|
|
|
|
- Initial RPMification
|