[packages/nessus-libs] - up to 2.2.11 (which is ancient anyway); fix openssl 1.1 build; source url is dead

arekm arekm at pld-linux.org
Sat Sep 22 17:07:39 CEST 2018


commit b5363d6b8531b3500322ba23de5471339a0c8618
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Sep 22 17:07:32 2018 +0200

    - up to 2.2.11 (which is ancient anyway); fix openssl 1.1 build; source url is dead

 nessus-libs.spec | 12 ++++++++----
 openssl.patch    | 20 ++++++++++++++++++++
 2 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/nessus-libs.spec b/nessus-libs.spec
index 2b39c97..ebf954e 100644
--- a/nessus-libs.spec
+++ b/nessus-libs.spec
@@ -1,16 +1,18 @@
 Summary:	Nessus libraries
 Summary(pl.UTF-8):	Biblioteki Nessus
 Name:		nessus-libs
-Version:	2.2.7
-Release:	6
+Version:	2.2.11
+Release:	1
 License:	GPL
 Group:		Networking
 Vendor:		Nessus Project
-Source0:	ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/src/nessus-libraries-%{version}.tar.gz
-# Source0-md5:	740d9f2d97c495a52663a15a0fe5e6cd
+# Source0:	ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/src/nessus-libraries-%{version}.tar.gz
+Source0:	nessus-libraries-%{version}.tar.gz
+# Source0-md5:	c1180bec3a7f1b78d4d881f9a73e99bc
 Patch0:		%{name}-nolibs.patch
 Patch1:		%{name}-link.patch
 Patch2:		%{name}-libtool.patch
+Patch3:		openssl.patch
 URL:		http://www.nessus.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -66,6 +68,7 @@ Biblioteki statyczne Nessusa.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
@@ -94,6 +97,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%attr(755,root,root) %ghost %{_libdir}/lib*.so.2
 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
 %dir %{_localstatedir}/nessus
 
diff --git a/openssl.patch b/openssl.patch
new file mode 100644
index 0000000..202fe24
--- /dev/null
+++ b/openssl.patch
@@ -0,0 +1,20 @@
+--- nessus-libraries/libnessus/network.c~	2008-03-12 09:09:06.000000000 +0100
++++ nessus-libraries/libnessus/network.c	2018-09-22 17:04:41.635288719 +0200
+@@ -532,15 +532,11 @@ open_SSL_connection(fp, timeout, cert, k
+ 
+   switch (fp->transport)
+     {
+-    case NESSUS_ENCAPS_SSLv2:
+-      fp->ssl_mt = SSLv2_client_method();
+-      break;
+-    case NESSUS_ENCAPS_SSLv3:
+-      fp->ssl_mt = SSLv3_client_method();
+-      break;
+     case NESSUS_ENCAPS_TLSv1:
+       fp->ssl_mt = TLSv1_client_method();
+       break;
++    case NESSUS_ENCAPS_SSLv2:
++    case NESSUS_ENCAPS_SSLv3:
+     case NESSUS_ENCAPS_SSLv23:	/* Compatibility mode */
+       fp->ssl_mt = SSLv23_client_method();
+       break;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nessus-libs.git/commitdiff/b5363d6b8531b3500322ba23de5471339a0c8618



More information about the pld-cvs-commit mailing list