blob: 245aa70059a736ef2a8020133bcc2ccf5f04f703 [file] [log] [blame]
%define _prefix /usr
%define _sysconfdir /etc
Summary: Program that wraps normal socket connections with SSL/TLS
Name: stunnel
Version: 5.22
Release: 1
License: GPL with an OpenSSL exception
Group: Applications/Networking
Source: stunnel-%{version}.tar.gz
Packager: Bill Quayle <>
Requires: openssl >= 0.9.7
BuildRequires: openssl-devel >= 0.9.7
Buildroot: /var/tmp/stunnel-%{version}-root
The stunnel program is designed to work as SSL encryption wrapper
between remote clients and local (inetd-startable) or remote
servers. The concept is that having non-SSL aware daemons running on
your system you can easily set them up to communicate with clients over
secure SSL channels.
stunnel can be used to add SSL functionality to commonly used inetd
daemons like POP-2, POP-3, and IMAP servers, to standalone daemons like
NNTP, SMTP and HTTP, and in tunneling PPP over network sockets without
changes to the source code.
%setup -n stunnel-%{version}
if [ ! -x ./configure ]; then
CFLAGS="%{optflags}" ./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}
%{__rm} -rf %{buildroot}
%{__mkdir} -p %{buildroot}%{_sysconfdir}/stunnel
%{__mkdir} -p %{buildroot}%{_sbindir}
%{__mkdir} -p %{buildroot}%{_libdir}
%{__mkdir} -p %{buildroot}%{_mandir}/man8
%{__mkdir} -p %{buildroot}%{_initrddir}
%{__install} -m755 -s src/stunnel %{buildroot}%{_sbindir}
%{__install} -m755 src/.libs/ %{buildroot}%{_libdir}
%{__install} -m755 src/.libs/ %{buildroot}%{_libdir}
%{__install} -m644 doc/stunnel.8 %{buildroot}%{_mandir}/man8/stunnel.8
%{__install} -m644 tools/stunnel.conf-sample %{buildroot}%{_sysconfdir}/stunnel
%{__install} -m500 tools/stunnel.init %{buildroot}%{_initrddir}/stunnel
%{__rm} -rf %{buildroot}
%doc COPYING COPYRIGHT.GPL README ChangeLog doc/stunnel.html
%doc tools/ca.html tools/ tools/importCA.html tools/ tools/stunnel.cnf
%dir %{_sysconfdir}/stunnel
%config %{_sysconfdir}/stunnel/*
* Tue May 26 2015 Bill Quayle <>
- updated license specification
- the manual page is no longer marked as compressed
- removed outdated documentation files
- updated minimum required version of OpenSSL
* Fri Sep 09 2005 neeo <>
- lots of changes and cleanups
* Wed Mar 17 2004 neeo <>
- updated for 4.05
* Sun Jun 24 2000 Brian Hatch <>
- updated for 3.8p3
* Wed Jul 14 1999 Dirk O. Siebnich <>
- updated for 3.5.
* Mon Jun 07 1999 Dirk O. Siebnich <>
- adapted from sslwrap RPM spec file