auto-import stunnel-4.04-3 from stunnel-4.04-3.src.rpm

This commit is contained in:
cvsdist 2004-09-09 12:48:46 +00:00
parent f285208d57
commit 297949945f
3 changed files with 50 additions and 74 deletions

View File

@ -1 +1 @@
stunnel-3.26.tar.gz stunnel-4.04.tar.gz

View File

@ -1 +1 @@
e2cffe2f2753416d37ea1619c0d0f96e stunnel-3.26.tar.gz 2fcdf0311a0ab8a3223293c706a84e97 stunnel-4.04.tar.gz

View File

@ -1,7 +1,7 @@
Summary: An SSL-encrypting socket wrapper. Summary: An SSL-encrypting socket wrapper.
Name: stunnel Name: stunnel
Version: 3.26 Version: 4.04
Release: 1.8.0 Release: 3
License: GPL License: GPL
Group: Applications/Internet Group: Applications/Internet
URL: http://stunnel.mirt.net/ URL: http://stunnel.mirt.net/
@ -11,10 +11,13 @@ Source2: stunnel.cnf
Source3: Certificate-Creation Source3: Certificate-Creation
Source4: sfinger.xinetd Source4: sfinger.xinetd
Source5: pop3-redirect.xinetd Source5: pop3-redirect.xinetd
Patch0: stunnel-3.26-authpriv.patch Patch0: stunnel-4.02-authpriv.patch
Patch1: stunnel-4.00-nopem.patch
Buildroot: %{_tmppath}/stunnel-root Buildroot: %{_tmppath}/stunnel-root
BuildPrereq: openssl-devel, perl, textutils, fileutils, /usr/share/dict/words, tcp_wrappers BuildPrereq: automake14, autoconf, openssl-devel, perl, pkgconfig,
Prereq: textutils, fileutils, /bin/mktemp, /sbin/ldconfig, /usr/share/dict/words, /bin/hostname, /usr/bin/id, /usr/bin/getent BuildPrereq: tcp_wrappers, /usr/share/dict/words
Prereq: textutils, fileutils, /bin/mktemp, /sbin/ldconfig
Prereq: /usr/share/dict/words, /bin/hostname, /usr/bin/id, /usr/bin/getent
Requires: make Requires: make
%description %description
@ -25,45 +28,31 @@ in conjunction with imapd to create an SSL secure IMAP server.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .authpriv %patch0 -p1 -b .authpriv
%patch1 -p1 -b .nopem
aclocal-1.4
automake-1.4 -a
autoconf
%build %build
if pkg-config openssl ; then if pkg-config openssl ; then
CPPFLAGS=`pkg-config --cflags-only-I openssl`; export CPPFLAGS CFLAGS="$RPM_OPT_FLAGS `pkg-config --cflags openssl`"; export CFLAGS
CFLAGS=`pkg-config --cflags openssl`; export CFLAGS LDFLAGS="`pkg-config --libs-only-L openssl`"; export LDFLAGS
CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
LDFLAGS=`pkg-config --libs-only-L openssl`; export LDFLAGS
fi fi
%configure \ %configure --with-tcp-wrappers
--with-ssl=%{_prefix} \ make
--with-pem-dir=%{_datadir}/ssl/certs \
--with-cert-file=%{_datadir}/ssl/cert.pem \
--with-cert-dir=%{_datadir}/ssl/trusted \
--with-tcp-wrappers
# We have to create a certificate before the makefile asks us to do so.
rm -f stunnel.pem stunnel.pem.1 stunnel.pem.2
(echo US
echo .
echo .
echo .
echo .
echo .
echo .
echo .) | openssl req -newkey rsa:1024 -nodes -keyout stunnel.pem.1 -x509 -days 365 -out stunnel.pem.2
cat stunnel.pem.1 > stunnel.pem
echo "" >> stunnel.pem
cat stunnel.pem.2 >> stunnel.pem
make piddir=/var/run/
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%{makeinstall} \ %makeinstall docdir=`pwd`/installed-docs
ssldir=$RPM_BUILD_ROOT/%{_datadir}/ssl \ touch $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/stunnel.pem
man8dir=$RPM_BUILD_ROOT%{_mandir}/man8 \ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
piddir=$RPM_BUILD_ROOT/%{_var}/run \ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
PEM_DIR=$RPM_BUILD_ROOT/%{_datadir}/ssl/certs rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.?
install -m755 stunnel $RPM_BUILD_ROOT/%{_sbindir}/ mkdir -p $RPM_BUILD_ROOT/%{_mandir}/pl/man8
install -m644 stunnel.cnf $RPM_BUILD_ROOT/%{_datadir}/ssl # Move the Polish man pages to the right subdirectory, and strip off the
# language suffix.
mv $RPM_BUILD_ROOT/%{_mandir}/man8/*.pl.8* $RPM_BUILD_ROOT/%{_mandir}/pl/man8/
rename ".pl" "" $RPM_BUILD_ROOT/%{_mandir}/pl/man8/*
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
@ -74,55 +63,42 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc BUGS COPY* CREDITS FAQ HISTORY PORTS README TODO *.html %doc BUGS ChangeLog COPY* CREDITS NEWS PORTS README TODO doc/*.html
%doc $RPM_SOURCE_DIR/Certificate-Creation %doc $RPM_SOURCE_DIR/Certificate-Creation
%doc $RPM_SOURCE_DIR/sfinger.xinetd $RPM_SOURCE_DIR/pop3-redirect.xinetd %doc $RPM_SOURCE_DIR/sfinger.xinetd $RPM_SOURCE_DIR/pop3-redirect.xinetd
%lang(en) %doc doc/english/* %lang(en) %doc doc/en/*
%lang(po) %doc doc/polish/* %lang(po) %doc doc/pl/*
%ghost %config(noreplace,missingok) %{_datadir}/ssl/certs/stunnel.pem %{_libdir}/libstunnel.so
%config %{_datadir}/ssl/stunnel.cnf
%{_libdir}/stunnel.so*
%{_mandir}/man8/stunnel.8* %{_mandir}/man8/stunnel.8*
%{_mandir}/pl/man8/stunnel.8*
%{_sbindir}/stunnel %{_sbindir}/stunnel
%{_sysconfdir}/%{name}
%changelog %changelog
* Mon Oct 6 2003 Nalin Dahyabhai <nalin@redhat.com> 3.26-1.8.0 * Mon Feb 10 2003 Nalin Dahyabhai <nalin@redhat.com> 4.04-3
- rebuild - rebuild
* Mon Oct 6 2003 Nalin Dahyabhai <nalin@redhat.com> 3.26-1.7.3 * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuild - rebuilt
* Mon Oct 6 2003 Nalin Dahyabhai <nalin@redhat.com> 3.26-1.7.1 * Wed Jan 15 2003 Nalin Dahyabhai <nalin@redhat.com> 4.04-1
- rebuild - update to 4.04
* Mon Oct 6 2003 Nalin Dahyabhai <nalin@redhat.com> 3.26-0 * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 4.03-1
- update to fix bugs in previous erratum and others as well - use pkgconfig for information about openssl, if available
- actually include the stunnel.cnf which we install in %%install in the package
* Thu Jul 10 2003 Nalin Dahyabhai <nalin@redhat.com> 3.22-5.8.0 * Fri Jan 3 2003 Nalin Dahyabhai <nalin@redhat.com>
- rebuild - update to 4.03
* Thu Jul 10 2003 Nalin Dahyabhai <nalin@redhat.com> 3.22-5.7.3 * Mon Oct 21 2002 Nalin Dahyabhai <nalin@redhat.com> 4.02-1
- rebuild - update to 4.02
* Thu Jul 10 2003 Nalin Dahyabhai <nalin@redhat.com> 3.22-5.7.1 * Fri Oct 4 2002 Nalin Dahyabhai <nalin@redhat.com> 4.00-1
- remove descriptor-closing patch - don't create a dummy cert
* Fri Apr 11 2003 Nalin Dahyabhai <nalin@redhat.com> 3.22-4.8.0 * Wed Sep 25 2002 Nalin Dahyabhai <nalin@redhat.com>
- rebuild - update to 4.00
- remove textutils and fileutils as buildreqs, add automake/autoconf
* Fri Apr 11 2003 Nalin Dahyabhai <nalin@redhat.com> 3.22-4.7.3
- rebuild
* Fri Apr 11 2003 Nalin Dahyabhai <nalin@redhat.com> 3.22-4.7.1
- force static linking with libwrap
* Thu Apr 10 2003 Nalin Dahyabhai <nalin@redhat.com>
- don't leak descriptors to local programs
- add detached signature from upstream
* Wed Mar 26 2003 Nalin Dahyabhai <nalin@redhat.com>
- move potentially-unsafe code out of the sigchld handler
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild - automated rebuild