2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-21 17:11:45 +00:00

-Defect 2 in bug #2716075 is fixed, stunnel-4.26 is added for SLES11 xcat-dep

This commit is contained in:
mxi1 2009-03-27 08:45:46 +00:00
parent d82a18721d
commit a8a0c930be
3 changed files with 104 additions and 0 deletions

13
stunnel/Build-notes Normal file
View File

@ -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.<arch>.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.

BIN
stunnel/stunnel-4.26.tar.gz Normal file

Binary file not shown.

91
stunnel/stunnel.spec Normal file
View File

@ -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 <neeo@irc.pl>
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 <neeo@irc.pl>
- lots of changes and cleanups
* Wed Mar 17 2004 neeo <neeo@irc.pl>
- updated for 4.05
* Sun Jun 24 2000 Brian Hatch <bri@stunnel.org>
- updated for 3.8p3
* Wed Jul 14 1999 Dirk O. Siebnich <dok@vossnet.de>
- updated for 3.5.
* Mon Jun 07 1999 Dirk O. Siebnich <dok@vossnet.de>
- adapted from sslwrap RPM spec file