Summary: An SSL-encrypting socket wrapper Name: stunnel Version: 5.36 Release: 1 License: GPLv2 Group: Applications/Internet URL: http://stunnel.mirt.net/ Source0: ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz Source1: ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz.asc Source2: ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz.sha256 Source3: Certificate-Creation Source4: sfinger.xinetd Source5: stunnel-sfinger.conf Source6: pop3-redirect.xinetd Source7: stunnel-pop3s-client.conf Patch0: %{name}-%{version}-authpriv.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: pkg-config, patch, sed, perl >= 5.8.8-2 BuildRequires: openssl-devel >= 1.0.2j-1 Requires: openssl >= 1.0.2j-1 %ifos aix5.1 Requires: AIX-rpm < 5.2.0.0, prngd %else Requires: AIX-rpm >= 5.2.0.0 %endif %description 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. %prep %setup -q export PATH=/opt/freeware/bin:$PATH %patch0 -p1 -b .authpriv %build export PATH=/opt/freeware/bin:$PATH export CC="xlc_r" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --localstatedir=/var \ --enable-ipv6 \ %ifos aix5.1 --with-egd-socket=/dev/egd-pool \ %else --with-random=/dev/urandom \ %endif --with-ssl=%{_prefix} # get rid of pesky "-pthread" flag /opt/freeware/bin/sed -i 's|-pthread||g' config.status make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} export PATH=/opt/freeware/bin:$PATH mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name} touch ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/%{name}.pem make install DESTDIR=${RPM_BUILD_ROOT} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : # Move the translated man pages to the right subdirectories, and strip off the # language suffixes. for lang in pl ; do mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/${lang}/man8 mv ${RPM_BUILD_ROOT}%{_mandir}/man8/*.${lang}.8* ${RPM_BUILD_ROOT}%{_mandir}/${lang}/man8/ done mkdir srpm-docs cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} srpm-docs cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc AUTHORS BUGS ChangeLog COPY* CREDITS PORTS README TODO %doc tools/stunnel.conf-sample %doc srpm-docs/* %lang(en) %doc doc/en/* %lang(po) %doc doc/pl/* %{_bindir}/stunnel %{_libdir}/stunnel %{_mandir}/man8/* %lang(pl) %{_mandir}/pl/man8/* %dir %{_sysconfdir}/%{name} %dir /var/lib/%{name} /usr/bin/* %changelog * Mon Oct 10 2016 Michael Perzl - 5.36-1 - updated to version 5.36 * Mon Oct 10 2016 Michael Perzl - 5.31-1 - updated to version 5.31 * Mon Oct 10 2016 Michael Perzl - 5.29-1 - updated to version 5.29 * Fri Mar 04 2016 Michael Perzl - 5.17-2 - recompiled against latest version of openssl * Wed May 06 2015 Michael Perzl - 5.17-1 - updated to version 5.17 * Wed May 06 2015 Michael Perzl - 5.14-1 - updated to version 5.14 * Wed May 06 2015 Michael Perzl - 5.12-1 - updated to version 5.12 * Fri Dec 12 2014 Michael Perzl - 5.08-1 - updated to version 5.08 * Fri Dec 12 2014 Michael Perzl - 5.03-1 - updated to version 5.03 * Tue Jul 22 2014 Michael Perzl - 5.02-1 - updated to version 5.02 * Wed Jun 04 2014 Michael Perzl - 5.01-1 - updated to version 5.01 * Thu Mar 27 2014 Michael Perzl - 5.00-1 - updated to version 5.00 * Thu Apr 04 2013 Michael Perzl - 4.56-1 - updated to version 4.56 * Tue Dec 11 2012 Michael Perzl - 4.54-1 - updated to version 4.54 * Thu Mar 22 2012 Michael Perzl - 4.53-1 - updated to version 4.53 * Wed Mar 07 2012 Michael Perzl - 4.52-1 - updated to version 4.52 * Sat Dec 17 2011 Michael Perzl - 4.50-1 - updated to version 4.50 * Sat Nov 26 2011 Michael Perzl - 4.48-1 - updated to version 4.48 * Mon Nov 07 2011 Michael Perzl - 4.46-1 - updated to version 4.46 * Tue Oct 25 2011 Michael Perzl - 4.45-1 - updated to version 4.45 * Sun Sep 18 2011 Michael Perzl - 4.44-1 - updated to version 4.44 * Thu Sep 08 2011 Michael Perzl - 4.43-1 - updated to version 4.43 * Sun Aug 22 2011 Michael Perzl - 4.42-1 - updated to version 4.42 * Sun Jul 24 2011 Michael Perzl - 4.40-1 - updated to version 4.40 * Thu Jul 07 2011 Michael Perzl - 4.39-1 - updated to version 4.39 * Wed Jun 29 2011 Michael Perzl - 4.38-1 - updated to version 4.38 * Thu May 05 2011 Michael Perzl - 4.36-1 - updated to version 4.36 * Mon Feb 07 2011 Michael Perzl - 4.35-1 - updated to version 4.35 * Mon Nov 22 2010 Michael Perzl - 4.34-1 - updated to version 4.34 * Mon Nov 22 2010 Michael Perzl - 4.33-2 - fixed a spec file typo, added requirement for prngd for AIX 5.1 * Fri Apr 16 2010 Michael Perzl - 4.33-1 - first version for AIX V5.1 and higher