c683f09
Summary: An SSL-encrypting socket wrapper
cvsdist 163887d
Name: stunnel
05aa4a5
Version: 4.24
05aa4a5
Release: 0%{?dist}
05aa4a5
License: GPLv2
cvsdist 163887d
Group: Applications/Internet
c067a6a
URL: http://stunnel.mirt.net/
cvsdist 1aea240
Source0: ftp://stunnel.mirt.net/stunnel/stunnel-%{version}.tar.gz
cvsdist 7b1f13e
Source1: ftp://stunnel.mirt.net/stunnel/stunnel-%{version}.tar.gz.asc
c683f09
Source2: Certificate-Creation
c683f09
Source3: sfinger.xinetd
c683f09
Source4: stunnel-sfinger.conf
c683f09
Source5: pop3-redirect.xinetd
c683f09
Source6: stunnel-pop3s-client.conf
e5d9f7c
Patch0: stunnel-4.08-authpriv.patch
c683f09
Patch1: stunnel-4.18-sample.patch
cvsdist 163887d
Buildroot: %{_tmppath}/stunnel-root
52f4882
# util-linux is needed for rename
ba87541
BuildRequires: openssl-devel, pkgconfig, tcp_wrappers-devel, util-linux
cvsdist 163887d
cvsdist 163887d
%description
cvsdist 57b6ad5
Stunnel is a socket wrapper which can provide SSL (Secure Sockets
cvsdist 57b6ad5
Layer) support to ordinary applications. For example, it can be used
cvsdist 57b6ad5
in conjunction with imapd to create an SSL secure IMAP server.
cvsdist 163887d
cvsdist 163887d
%prep
cvsdist 163887d
%setup -q
cvsdist 7b1f13e
%patch0 -p1 -b .authpriv
39031c3
%patch1 -p1 -b .sample
69033c4
69033c4
iconv -f iso-8859-1 -t utf-8 < doc/stunnel.fr.8 > doc/stunnel.fr.8_
69033c4
mv doc/stunnel.fr.8_ doc/stunnel.fr.8
69033c4
iconv -f iso-8859-2 -t utf-8 < doc/stunnel.pl.8 > doc/stunnel.pl.8_
69033c4
mv doc/stunnel.pl.8_ doc/stunnel.pl.8
69033c4
cvsdist 163887d
%build
f1dd843
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
cvsdist 7b1f13e
if pkg-config openssl ; then
f1dd843
	CFLAGS="$CFLAGS `pkg-config --cflags openssl`";
cvsdist 2979499
	LDFLAGS="`pkg-config --libs-only-L openssl`"; export LDFLAGS
cvsdist 7b1f13e
fi
081fcb9
%configure --enable-ipv6 \
ce91c89
	CPPFLAGS="-UPIDFILE -DPIDFILE='\"%{_localstatedir}/run/stunnel.pid\"'"
a43187d
make LDADD="-pie -Wl,-z,defs,-z,relro"
cvsdist 163887d
cvsdist 163887d
%install
cvsdist 163887d
rm -rf $RPM_BUILD_ROOT
a43187d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stunnel
a43187d
touch $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem
a43187d
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist a5f45f2
# Move the translated man pages to the right subdirectories, and strip off the
cvsdist a5f45f2
# language suffixes.
cvsdist a5f45f2
for lang in fr pl ; do
cvsdist a5f45f2
	mkdir -p $RPM_BUILD_ROOT/%{_mandir}/${lang}/man8
cvsdist a5f45f2
	mv $RPM_BUILD_ROOT/%{_mandir}/man8/*.${lang}.8* $RPM_BUILD_ROOT/%{_mandir}/${lang}/man8/
cvsdist a5f45f2
	rename ".${lang}" "" $RPM_BUILD_ROOT/%{_mandir}/${lang}/man8/*
cvsdist a5f45f2
done
cvsdist 163887d
05aa4a5
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
05aa4a5
ln -s %{_bindir}/stunnel{,3} $RPM_BUILD_ROOT%{_sbindir}/
05aa4a5
c683f09
mkdir srpm-docs
c683f09
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} srpm-docs
c683f09
cvsdist 163887d
%clean
cvsdist 163887d
rm -rf $RPM_BUILD_ROOT
cvsdist 163887d
cvsdist 163887d
%files
cvsdist 163887d
%defattr(-,root,root)
05aa4a5
%doc AUTHORS BUGS ChangeLog COPY* CREDITS PORTS README TODO
cvsdist e154416
%doc tools/stunnel.conf-sample
c683f09
%doc srpm-docs/*
cvsdist 2979499
%lang(en) %doc doc/en/*
cvsdist 2979499
%lang(po) %doc doc/pl/*
05aa4a5
%{_bindir}/stunnel
05aa4a5
%{_bindir}/stunnel3
a43187d
%exclude %{_datadir}/doc/stunnel
05aa4a5
%{_libdir}/stunnel
05aa4a5
%exclude %{_libdir}/stunnel/libstunnel.la
cvsdist 163887d
%{_mandir}/man8/stunnel.8*
05aa4a5
%lang(fr) %{_mandir}/fr/man8/stunnel.8*
05aa4a5
%lang(pl) %{_mandir}/pl/man8/stunnel.8*
cvsdist 163887d
%{_sbindir}/stunnel
e5d9f7c
%{_sbindir}/stunnel3
cvsdist e154416
%dir %{_sysconfdir}/%{name}
a43187d
%exclude %{_sysconfdir}/stunnel/*
cvsdist 163887d
cvsdist 163887d
%changelog
05aa4a5
* Mon May 19 2008 Miloslav Trmač <mitr@redhat.com> - 4.24-0
05aa4a5
- Add compat symlinks to %%{_sbindir}
05aa4a5
05aa4a5
* Mon May 19 2008 Miloslav Trmač <mitr@redhat.com> - 4.24-1
05aa4a5
- Update to stunnel-4.24
05aa4a5
05aa4a5
* Fri Mar 28 2008 Miloslav Trmač <mitr@redhat.com> - 4.22-1
05aa4a5
- Update to stunnel-4.22
05aa4a5
05aa4a5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.20-6
05aa4a5
- Autorebuild for GCC 4.3
05aa4a5
05aa4a5
* Tue Dec  4 2007 Miloslav Trmač <mitr@redhat.com> - 4.20-5
05aa4a5
- Rebuild with openssl-0.9.8g
05aa4a5
05aa4a5
* Tue Oct 16 2007 Miloslav Trmač <mitr@redhat.com> - 4.20-4
05aa4a5
- Revert the port to NSS, wait for NSS-based stunnel 5.x instead
05aa4a5
  Resolves: #301971
05aa4a5
- Mark localized man pages with %%lang (patch by Ville Skyttä)
05aa4a5
  Resolves: #322281
05aa4a5
05aa4a5
* Tue Aug 28 2007 Miloslav Trmač <mitr@redhat.com> - 4.20-3.nss
05aa4a5
- Port to NSS
05aa4a5
ba87541
* Mon Dec  4 2006 Miloslav Trmac <mitr@redhat.com> - 4.20-2
ba87541
- Update BuildRequires for the separate tcp_wrappers-devel package
ba87541
2baf28e
* Thu Nov 30 2006 Miloslav Trmac <mitr@redhat.com> - 4.20-1
2baf28e
- Update to stunnel-4.20
2baf28e
d003036
* Sat Nov 11 2006 Miloslav Trmac <mitr@redhat.com> - 4.19-1
d003036
- Update to stunnel-4.19
d003036
c683f09
* Wed Oct 25 2006 Miloslav Trmac <mitr@redhat.com> - 4.18-1
c683f09
- Update to stunnel-4.18
c683f09
- Remove unused stunnel.cnf from the src.rpm
c683f09
- Fix some rpmlint warnings
c683f09
ab31f1f
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 4.15-2
ab31f1f
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
ab31f1f
  (#203001)
ab31f1f
27e19b7
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.15-1.1
27e19b7
- rebuild
27e19b7
081fcb9
* Sat Mar 18 2006 Miloslav Trmac <mitr@redhat.com> - 4.15-1
081fcb9
- Update to stunnel-4.15
081fcb9
29629d2
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.14-3.2
29629d2
- bump again for double-long bug on ppc(64)
29629d2
16e609f
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.14-3.1
16e609f
- rebuilt for new gcc4.1 snapshot and glibc changes
16e609f
d581df7
* Tue Jan 31 2006 Miloslav Trmac <mitr@redhat.com> - 4.14-3
d581df7
- Use pthread threading to fix crash on x86_64 (#179236)
d581df7
b145461
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
b145461
- rebuilt
b145461
88e96b8
* Wed Nov  9 2005 Miloslav Trmac <mitr@redhat.com> - 4.14-2
88e96b8
- Rebuild with newer openssl
88e96b8
ce91c89
* Thu Nov  3 2005 Miloslav Trmac <mitr@redhat.com> - 4.14-1
ce91c89
- Update to stunnel-4.14
c683f09
- Override changed default pid file location, keep it in %%{_localstatedir}/run
ce91c89
8b3fda5
* Sat Oct 22 2005 Miloslav Trmac <mitr@redhat.com> - 4.13-1
8b3fda5
- Update to stunnel-4.13
8b3fda5
85e318a
* Fri Sep 30 2005 Miloslav Trmac <mitr@redhat.com> - 4.12-1
85e318a
- Update to stunnel-4.12
85e318a
253199d
* Thu Sep 22 2005 Miloslav Trmac <mitr@redhat.com> - 4.11-2
253199d
- Enable IPv6 (#169050, patch by Peter Bieringer)
c067a6a
- Don't ship another copy of man pages in HTML
c067a6a
6060423
* Tue Jul 12 2005 Miloslav Trmac <mitr@redhat.com> - 4.11-1
6060423
- Update to stunnel-4.11
c8c428b
- Fix int/size_t mismatches in stack_info ()
6060423
- Update Certificate-Creation for /etc/pki
6060423
a43187d
* Wed Jun  1 2005 Miloslav Trmac <mitr@redhat.com> - 4.10-2
a43187d
- Fix inetd mode
a43187d
- Remove unnecessary Requires: and BuildRequires:
a43187d
- Clean up the spec file
a43187d
39031c3
* Tue Apr 26 2005 Nalin Dahyabhai <nalin@redhat.com> 4.10-1
39031c3
- update to 4.10
39031c3
52f4882
* Tue Apr 26 2005 Nalin Dahyabhai <nalin@redhat.com> 4.08-2
52f4882
- add buildprereqs on libtool, util-linux; change textutils/fileutils dep to
52f4882
  coreutils (#133961)
52f4882
e5d9f7c
* Wed Mar 16 2005 Nalin Dahyabhai <nalin@redhat.com> 4.08-1
e5d9f7c
- update to 4.08
e5d9f7c
- build stunnel as a PIE binary
e5d9f7c
69033c4
* Mon Nov 22 2004 Miloslav Trmac <mitr@redhat.com> - 4.05-4
69033c4
- Convert man pages to UTF-8
69033c4
cvsdist 787e9b3
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 787e9b3
- rebuilt
cvsdist 787e9b3
cvsdist e154416
* Thu May 27 2004 Nalin Dahyabhai <nalin@redhat.com> 4.05-2
cvsdist e154416
- move the sample configuration to %%doc, it shouldn't be used as-is (#124373)
cvsdist e154416
cvsdist a5f45f2
* Thu Mar 11 2004 Nalin Dahyabhai <nalin@redhat.com> 4.05-1
cvsdist a5f45f2
- update to 4.05
cvsdist a5f45f2
cvsdist a5f45f2
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist a5f45f2
- rebuilt
cvsdist a5f45f2
cvsdist a5f45f2
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist a5f45f2
- rebuilt
cvsdist a5f45f2
cvsdist e8f8ec8
* Thu Aug  7 2003 Elliot Lee <sopwith@redhat.com> 4.04-6
cvsdist e8f8ec8
- Fix libtool
cvsdist e8f8ec8
cvsdist e8f8ec8
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist e8f8ec8
- rebuilt
cvsdist e8f8ec8
cvsdist a801402
* Fri Mar 21 2003 Nalin Dahyabhai <nalin@redhat.com> 4.04-4
cvsdist a801402
- fix xinetd configuration samples
cvsdist a801402
cvsdist 2979499
* Mon Feb 10 2003 Nalin Dahyabhai <nalin@redhat.com> 4.04-3
cvsdist f285208
- rebuild
cvsdist f285208
cvsdist 2979499
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 2979499
- rebuilt
cvsdist 7b1f13e
cvsdist 2979499
* Wed Jan 15 2003 Nalin Dahyabhai <nalin@redhat.com> 4.04-1
cvsdist 2979499
- update to 4.04
cvsdist 7b1f13e
cvsdist 2979499
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 4.03-1
cvsdist 2979499
- use pkgconfig for information about openssl, if available
cvsdist 7b1f13e
cvsdist 2979499
* Fri Jan  3 2003 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 2979499
- update to 4.03
cvsdist 7b1f13e
cvsdist 2979499
* Mon Oct 21 2002 Nalin Dahyabhai <nalin@redhat.com> 4.02-1
cvsdist 2979499
- update to 4.02
cvsdist 7b1f13e
cvsdist 2979499
* Fri Oct  4 2002 Nalin Dahyabhai <nalin@redhat.com> 4.00-1
cvsdist 2979499
- don't create a dummy cert
cvsdist 7b1f13e
cvsdist 2979499
* Wed Sep 25 2002 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 2979499
- update to 4.00
cvsdist 2979499
- remove textutils and fileutils as buildreqs, add automake/autoconf
cvsdist 7b1f13e
cvsdist ba79bd9
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist ba79bd9
- automated rebuild
cvsdist ba79bd9
cvsdist 03d11fb
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist 03d11fb
- automated rebuild
cvsdist 03d11fb
cvsdist 03d11fb
* Fri May 17 2002 Nalin Dahyabhai <nalin@redhat.com> 3.22-2
cvsdist 03d11fb
- rebuild in new environment
cvsdist 03d11fb
cvsdist 2c2a564
* Wed Jan  2 2002 Nalin Dahyabhai <nalin@redhat.com> 3.22-1
cvsdist 2c2a564
- update to 3.22, correcting a format-string vulnerability
cvsdist 2c2a564
cvsdist 2c2a564
* Wed Oct 31 2001 Nalin Dahyabhai <nalin@redhat.com> 3.21a-1
cvsdist 2c2a564
- update to 3.21a
cvsdist 2c2a564
cvsdist 2c2a564
* Tue Aug 28 2001 Nalin Dahyabhai <nalin@redhat.com> 3.20-1
cvsdist 2c2a564
- log using LOG_AUTHPRIV facility by default (#47289)
cvsdist 2c2a564
- make permissions on stunnel binary 0755
cvsdist 2c2a564
- implicitly trust certificates in %%{_datadir}/ssl/trusted (#24034)
cvsdist 2c2a564
cvsdist 2c2a564
* Fri Aug 10 2001 Nalin Dahyabhai <nalin@redhat.com> 3.19-1
cvsdist c436d6b
- update to 3.19 to avoid problems with stunnel being multithreaded, but
cvsdist c436d6b
  tcp wrappers not being thrad-safe
cvsdist c436d6b
cvsdist 57b6ad5
* Mon Jul 30 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 57b6ad5
- update to 3.17
cvsdist 57b6ad5
cvsdist 57b6ad5
* Mon Jul 23 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 57b6ad5
- update to 3.16
cvsdist 57b6ad5
cvsdist 57b6ad5
* Mon Jul 16 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 57b6ad5
- update to 3.15
cvsdist 57b6ad5
- enable tcp-wrappers support
cvsdist 57b6ad5
cvsdist 57b6ad5
* Tue May 29 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 57b6ad5
- remove explicit requirement on openssl (specific version isn't enough,
cvsdist 57b6ad5
  we have to depend on shared library version anyway)
cvsdist 57b6ad5
cvsdist 57b6ad5
* Fri Apr 27 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 57b6ad5
- update to 3.14
cvsdist 57b6ad5
cvsdist 52d6b1c
* Mon Mar 26 2001 Preston Brown <pbrown@redhat.com>
cvsdist 52d6b1c
- depend on make (#33148)
cvsdist 52d6b1c
cvsdist 52d6b1c
* Fri Mar  2 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 52d6b1c
- rebuild in new environment
cvsdist 52d6b1c
cvsdist 52d6b1c
* Tue Feb  6 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 52d6b1c
- update to 3.13 to get pthread, OOB, 64-bit fixes
cvsdist 52d6b1c
- don't need sdf any more
cvsdist 52d6b1c
cvsdist 52d6b1c
* Thu Dec 28 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 52d6b1c
- pull in sdf to build the man page (#22892)
cvsdist 52d6b1c
cvsdist 52d6b1c
* Fri Dec 22 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 52d6b1c
- update to 3.11
cvsdist 52d6b1c
- chuck the SIGHUP patch (went upstream)
cvsdist 52d6b1c
- chuck parts of the 64-bit clean patch (went upstream)
cvsdist 52d6b1c
cvsdist 1aea240
* Thu Dec 21 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 1aea240
- update to 3.10
cvsdist 1aea240
- more 64-bit clean changes, hopefully the last bunch
cvsdist 1aea240
cvsdist 1aea240
* Wed Dec 20 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 1aea240
- change piddir from the default /var/stunnel to /var/run
cvsdist 1aea240
- clean out pid file on SIGHUP
cvsdist 1aea240
cvsdist 1aea240
* Fri Dec 15 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 1aea240
- update to 3.9 to get a security fix
cvsdist 1aea240
cvsdist 1aea240
* Wed Oct 25 2000 Matt Wilson <msw@redhat.com>
cvsdist 1aea240
- change all unsigned longs to u_int32_t when dealing with network
cvsdist 1aea240
  addresses
cvsdist 1aea240
cvsdist 163887d
* Fri Aug 18 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 163887d
- make stunnel.pem also be (missingok)
cvsdist 163887d
cvsdist 163887d
* Thu Jun 29 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 163887d
- move to Applications/Internet group
c683f09
- clean up %%post script
c683f09
- make stunnel.pem %%ghost %%config(noreplace)
cvsdist 163887d
- provide a sample file for use with xinetd
cvsdist 163887d
cvsdist 163887d
* Thu Jun  8 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 163887d
- FHS compliance fixes
cvsdist 163887d
- modify defaults
cvsdist 163887d
cvsdist 163887d
* Tue Mar 14 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 163887d
- update to 3.8
cvsdist 163887d
- do not create certificate if one already exists
cvsdist 163887d
cvsdist 163887d
* Mon Feb 21 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 163887d
- update to 3.7
cvsdist 163887d
- add patch to find /usr/share/ssl
cvsdist 163887d
- change some perms
cvsdist 163887d
cvsdist 163887d
* Sat Oct 30 1999 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 163887d
- Modify spec file to match Red Hat standards
cvsdist 163887d
cvsdist 163887d
* Fri Aug 12 1999 Damien Miller <damien@ibs.com.au>
cvsdist 163887d
- Updated to 3.4a
cvsdist 163887d
- Patched for OpenSSL 0.9.4
cvsdist 163887d
- Cleaned up files section
cvsdist 163887d
cvsdist 163887d
* Sun Jul 11 1999 Damien Miller <dmiller@ilogic.com.au>
cvsdist 163887d
- Updated to 3.3
cvsdist 163887d
cvsdist 163887d
* Sat Nov 28 1998 Damien Miller <dmiller@ilogic.com.au>
cvsdist 163887d
- Initial RPMification