diff --git a/stunnel/Build-notes b/stunnel/Build-notes new file mode 100644 index 0000000..a38925e --- /dev/null +++ b/stunnel/Build-notes @@ -0,0 +1,13 @@ +Build Notes + +1) Copy stunnel.spec to /usr/src/packages/SPECS +2) Copy stunnel-4.26.tar.gz to /usr/src/packages/SOURCES +3) RUN "rpmbuild -ba /usr/src/packages/SPECS/stunnel.spec" +4) You will get the binary rpm package stunnel-4.26-1..rpm in the directory /usr/src/packages/ + +NOTE #1: +This is only neccessary for SLES11 or higher version. stunnel is shipped with RHEL and SLES10.x. +NOTE #2: +It requires openssl-devel package to build this package. For SLES11, libopenssl-devel and its related packages can be found in SLES-11-SDK DVDs or repositories. + + diff --git a/stunnel/stunnel-4.26.tar.gz b/stunnel/stunnel-4.26.tar.gz new file mode 100644 index 0000000..6ef0cb4 Binary files /dev/null and b/stunnel/stunnel-4.26.tar.gz differ diff --git a/stunnel/stunnel.spec b/stunnel/stunnel.spec new file mode 100644 index 0000000..d395dc7 --- /dev/null +++ b/stunnel/stunnel.spec @@ -0,0 +1,91 @@ +%define _prefix /usr +%define _sysconfdir /etc + +Summary: Program that wraps normal socket connections with SSL/TLS +Name: stunnel +Version: 4.26 +Release: 1 +License: GPL +Group: Applications/Networking +Source: stunnel-%{version}.tar.gz +Packager: neeo +Requires: openssl >= 0.9.6g +BuildRequires: openssl-devel >= 0.9.6g +Buildroot: /var/tmp/stunnel-%{version}-root + +%description +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. + +%prep +%setup -n stunnel-%{version} + + +%build +if [ ! -x ./configure ]; then + autoconf + autoheader +fi + +CFLAGS="%{optflags}" ./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} + +%{__make} + +%install +%{__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/libstunnel.so %{buildroot}%{_libdir} +%{__install} -m755 src/.libs/libstunnel.la %{buildroot}%{_libdir} +%{__install} -m644 doc/stunnel.8 %{buildroot}%{_mandir}/man8/stunnel.8.gz +%{__install} -m644 tools/stunnel.conf-sample %{buildroot}%{_sysconfdir}/stunnel +%{__install} -m500 tools/stunnel.init %{buildroot}%{_initrddir}/stunnel + +%clean +%{__rm} -rf %{buildroot} + +%post +ldconfig + +%postun +ldconfig + +%files +%defattr(-,root,root) +%doc COPYING COPYRIGHT.GPL README ChangeLog doc/stunnel.html doc/en/transproxy.txt doc/en/VNC_StunnelHOWTO.html +%doc tools/ca.html tools/ca.pl tools/importCA.html tools/importCA.sh tools/stunnel.cnf +%dir %{_sysconfdir}/stunnel +%config %{_sysconfdir}/stunnel/* +%{_sbindir}/stunnel +%{_libdir}/libstunnel.so +%{_libdir}/libstunnel.la +%{_mandir}/man8/stunnel.8.gz +%{_initrddir}/stunnel + +%changelog +* 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