mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-21 09:01:46 +00:00
Add perl-Net-SSLeay (import from CentOS 5.1)
This commit is contained in:
parent
30fd2cc85f
commit
0a6fb8fcf6
BIN
perl-Net-SSLeay/Net_SSLeay.pm-1.30.tar.gz
Normal file
BIN
perl-Net-SSLeay/Net_SSLeay.pm-1.30.tar.gz
Normal file
Binary file not shown.
21
perl-Net-SSLeay/perl-Net-SSLeay-1.2.5-CVE-2005-0106.patch
Normal file
21
perl-Net-SSLeay/perl-Net-SSLeay-1.2.5-CVE-2005-0106.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- Net_SSLeay.pm-1.25/SSLeay.pm.cve-2005-0106 2006-01-25 12:37:11.540102265 -0700
|
||||
+++ Net_SSLeay.pm-1.25/SSLeay.pm 2006-01-25 12:38:16.994260984 -0700
|
||||
@@ -1853,8 +1853,8 @@
|
||||
my ($rn_seed_file, $seed, $egd_path) = @_;
|
||||
my $rnsf = defined($rn_seed_file) && -r $rn_seed_file;
|
||||
|
||||
+ $egd_path = '';
|
||||
$egd_path = $ENV{'EGD_PATH'} if $ENV{'EGD_PATH'};
|
||||
- $egd_path = '/tmp/entropy' unless $egd_path;
|
||||
|
||||
RAND_seed(rand() + $$); # Stir it with time and pid
|
||||
|
||||
@@ -1865,7 +1865,7 @@
|
||||
RAND_load_file($rn_seed_file, -s _) if $rnsf;
|
||||
RAND_seed($seed) if $seed;
|
||||
RAND_seed($ENV{RND_SEED}) if $ENV{RND_SEED};
|
||||
- RAND_egd($egd_path) if -S $egd_path;
|
||||
+ RAND_egd($egd_path) if -e $egd_path && -S $egd_path;
|
||||
RAND_load_file($Net::SSLeay::random_device, $Net::SSLeay::how_random/8)
|
||||
if -r $Net::SSLeay::random_device;
|
||||
}
|
11
perl-Net-SSLeay/perl-Net-SSLeay-test14.patch
Normal file
11
perl-Net-SSLeay/perl-Net-SSLeay-test14.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- test.pl~ 2003-08-17 10:27:54.000000000 +0300
|
||||
+++ test.pl 2004-10-12 00:19:42.761693459 +0300
|
||||
@@ -187,7 +187,7 @@
|
||||
$ENV{RND_SEED} = '1234567890123456789012345678901234567890';
|
||||
print &test('14 www.bacus.pt',
|
||||
&Net::SSLeay::sslcat("www.bacus.pt", 443,
|
||||
- "get\n\r\n\r") =~ /<TITLE>/);
|
||||
+ "get\n\r\n\r") =~ /<TITLE>/i);
|
||||
|
||||
sub test_site ($$) {
|
||||
my ($test_nro, $site) = @_;
|
119
perl-Net-SSLeay/perl-Net-SSLeay.spec
Normal file
119
perl-Net-SSLeay/perl-Net-SSLeay.spec
Normal file
@ -0,0 +1,119 @@
|
||||
#
|
||||
# Rebuild switch:
|
||||
# --with testsuite enable test suite
|
||||
#
|
||||
|
||||
Name: perl-Net-SSLeay
|
||||
Version: 1.30
|
||||
Release: 4%{?dist}
|
||||
Summary: Perl extension for using OpenSSL
|
||||
|
||||
Group: Development/Libraries
|
||||
License: BSDish
|
||||
URL: http://search.cpan.org/dist/Net_SSLeay.pm/
|
||||
Source0: http://www.cpan.org/authors/id/F/FL/FLORA/Net_SSLeay.pm-%{version}.tar.gz
|
||||
Patch0: %{name}-test14.patch
|
||||
Patch1: perl-Net-SSLeay-1.2.5-CVE-2005-0106.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: perl
|
||||
BuildRequires: openssl-devel
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module offers some high level convinience functions for accessing
|
||||
web pages on SSL servers (for symmetry, same API is offered for
|
||||
accessing http servers, too), a sslcat() function for writing your own
|
||||
clients, and finally access to the SSL api of SSLeay/OpenSSL package
|
||||
so you can write servers or clients for more complicated applications.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n Net_SSLeay.pm-%{version}
|
||||
%patch0 -p0
|
||||
%patch1 -p1
|
||||
cp -p Net-SSLeay-Handle-*/Changes Changes.Net-SSLeay-Handle
|
||||
chmod -c 644 examples/*
|
||||
%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' examples/*.pl
|
||||
iconv -f iso-8859-1 -t utf-8 SSLeay.pm > SSLeay.pm.utf8
|
||||
mv SSLeay.pm.utf8 SSLeay.pm
|
||||
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL -- INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
||||
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Net/ptrtstrun.pl
|
||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
|
||||
%check
|
||||
# spawns servers, contacts external sites...
|
||||
%{?_with_testsuite:make test}
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes* Credits QuickRef README examples/
|
||||
%{perl_vendorarch}/auto/Net/
|
||||
%{perl_vendorarch}/Net/
|
||||
%{_mandir}/man3/Net::SSLeay*.3*
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 14 2006 Warren Togami <wtogami@redhat.com> - 1.30-4
|
||||
- import into FC6
|
||||
|
||||
* Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-3
|
||||
- Rebuild for FC5 (perl 5.8.8).
|
||||
|
||||
* Fri Jan 27 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-2
|
||||
- CVE-2005-0106: patch from Mandriva
|
||||
http://wwwnew.mandriva.com/security/advisories?name=MDKSA-2006:023
|
||||
|
||||
* Sun Jan 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.30-1
|
||||
- 1.30.
|
||||
- Optionally run the test suite during build with "--with tests".
|
||||
|
||||
* Wed Nov 9 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.26-3
|
||||
- Rebuild for new OpenSSL.
|
||||
- Cosmetic cleanups.
|
||||
|
||||
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.26-2
|
||||
- rebuilt
|
||||
|
||||
* Mon Dec 20 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.26-1
|
||||
- Drop fedora.us release prefix and suffix.
|
||||
|
||||
* Mon Oct 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.26-0.fdr.2
|
||||
- Convert manual page to UTF-8.
|
||||
|
||||
* Tue Oct 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.26-0.fdr.1
|
||||
- Update to unofficial 1.26 from Peter Behroozi, adds get1_session(),
|
||||
enables session caching with IO::Socket::SSL (bug 1859, bug 1860).
|
||||
- Bring outdated test14 up to date (bug 1859, test suite still not enabled).
|
||||
|
||||
* Sun Jul 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.25-0.fdr.4
|
||||
- Rename to perl-Net-SSLeay, provide perl-Net_SSLeay for compatibility
|
||||
with the rest of the world.
|
||||
|
||||
* Wed Jul 7 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.25-0.fdr.3
|
||||
- Bring up to date with current fedora.us Perl spec template.
|
||||
- Include examples in docs.
|
||||
|
||||
* Sun Feb 8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.25-0.fdr.2
|
||||
- Reduce directory ownership bloat.
|
||||
|
||||
* Fri Oct 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.25-0.fdr.1
|
||||
- First build.
|
Loading…
Reference in New Issue
Block a user