Summary: An SSL-encrypting socket wrapper Name: stunnel Version: 4.33 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 Source1: ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz.sha1 Source2: Certificate-Creation Source3: sfinger.xinetd Source4: stunnel-sfinger.conf Source5: pop3-redirect.xinetd Source6: stunnel-pop3s-client.conf Patch0: stunnel-4.33-authpriv.patch Patch1: stunnel-4.33-sample.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: openssl-devel >= 0.9.8, pkg-config, patch, patch Requires: openssl >= 0.9.8 %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 %patch1 -p1 -b .sample %build export CC="xlc_r" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --localstatedir=/var \ --enable-ipv6 \ --with-ssl=%{_prefix} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} 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 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/ done mkdir srpm-docs cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} 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(fr) %{_mandir}/fr/man8/* %lang(pl) %{_mandir}/pl/man8/* %dir %{_sysconfdir}/%{name} %dir /var/lib/%{name} /usr/bin/* %changelog * Fri Apr 16 2010 Michael Perzl - 4.33-1 - first version for AIX V5.1 and higher