From bf0dddb353723c92a0ffd1c94a195f857b67db94 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:17:39 +0100 Subject: [PATCH] update to 7.0.10 [release 7.0.10-1mamba;Fri Feb 05 2016] --- openvas-libraries-7.0.10-glibc-2.22.patch | 30 +++++++++++++ openvas-libraries.spec | 52 ++++++++++++++++++----- 2 files changed, 71 insertions(+), 11 deletions(-) create mode 100644 openvas-libraries-7.0.10-glibc-2.22.patch diff --git a/openvas-libraries-7.0.10-glibc-2.22.patch b/openvas-libraries-7.0.10-glibc-2.22.patch new file mode 100644 index 0000000..ffcef29 --- /dev/null +++ b/openvas-libraries-7.0.10-glibc-2.22.patch @@ -0,0 +1,30 @@ +--- openvas-libraries-7.0.10/nasl/nasl_raw.h.orig 2016-02-05 23:44:42.728219386 +0100 ++++ openvas-libraries-7.0.10/nasl/nasl_raw.h 2016-02-05 23:44:57.873212490 +0100 +@@ -20,12 +20,12 @@ + #ifndef OPENVAS_RAW_H + #define OPENVAS_RAW_H + #ifdef __linux__ +-#ifndef __BSD_SOURCE +-#define __BSD_SOURCE ++#ifndef __DEFAULT_SOURCE ++#define __DEFAULT_SOURCE + #endif + +-#ifndef _BSD_SOURCE +-#define _BSD_SOURCE ++#ifndef _DEFAULT_SOURCE ++#define _DEFAULT_SOURCE + #endif + + #ifndef __FAVOR_BSD +--- openvas-libraries-7.0.10/nasl/nasl_builtin_synscan.c.orig 2016-02-05 23:43:24.983255395 +0100 ++++ openvas-libraries-7.0.10/nasl/nasl_builtin_synscan.c 2016-02-05 23:43:41.300247748 +0100 +@@ -24,7 +24,7 @@ + * + */ + +-#define _BSD_SOURCE 1 ++#define _DEFAULT_SOURCE 1 + + #include /* for close() */ + #include /* for rand() */ diff --git a/openvas-libraries.spec b/openvas-libraries.spec index 7653d11..ad6403a 100644 --- a/openvas-libraries.spec +++ b/openvas-libraries.spec @@ -1,5 +1,5 @@ Name: openvas-libraries -Version: 3.1.2 +Version: 7.0.10 Release: 1mamba Summary: Libraries for openvas, an Open Vulnerability Assessment System Group: Network/Libraries @@ -7,10 +7,23 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.openvas.org/ -Source: http://wald.intevation.org/frs/download.php/767/openvas-libraries-%{version}.tar.gz +Source: http://wald.intevation.org/frs/download.php/2031/openvas-libraries-%{version}.tar.gz +Patch0: openvas-libraries-7.0.10-glibc-2.22.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: libassuan-devel +BuildRequires: libgcrypt-devel +BuildRequires: libglib-devel +BuildRequires: libgnutls-devel +BuildRequires: libgpg-error-devel +BuildRequires: libgpgme-devel +BuildRequires: libksba-devel +BuildRequires: libopenldap-devel +BuildRequires: libpcap-devel +BuildRequires: libssh-devel +BuildRequires: libuuid-devel +BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: nessus-libraries @@ -35,9 +48,12 @@ This is the development package. %prep %setup -q +%patch0 -p1 %build -%configure +%cmake -d build + +#% configure # \ # --prefix=%{_prefix} \ # --mandir=%{_mandir} \ @@ -49,27 +65,41 @@ This is the development package. %install test x"%buildroot" != x/ && rm -rf "%buildroot" -%makeinstall +%makeinstall -C build %clean test x"%buildroot" != x/ && rm -rf "%buildroot" %files %defattr(-,root,root) -%{_bindir}/* -%{_datadir}/openvas/openvas-lsc-rpm-creator.sh -%{_libdir}/*.so.* -%{_mandir}/man1/* +%{_libdir}/libopenvas_base.so.* +%{_libdir}/libopenvas_misc.so.* +%{_libdir}/libopenvas_nasl.so.* +%{_libdir}/libopenvas_omp.so.* %files devel %defattr(-,root,root) +%{_bindir}/openvas-nasl +%{_bindir}/openvas-nasl-lint %dir %{_includedir}/openvas %{_includedir}/openvas/* -%{_libdir}/*.so -%{_libdir}/*.a -#%{_libdir}/*.la +%{_libdir}/libopenvas_base.so +%{_libdir}/libopenvas_misc.so +%{_libdir}/libopenvas_nasl.so +%{_libdir}/libopenvas_omp.so +%{_libdir}/pkgconfig/libopenvas.pc +%{_mandir}/man1/* %changelog +* Fri Feb 05 2016 Silvan Calarco 7.0.10-1mamba +- update to 7.0.10 + +* Sun Nov 23 2014 Automatic Build System 7.0.5-1mamba +- automatic version update by autodist + +* Wed Nov 05 2014 Automatic Build System 7.0.4-1mamba +- automatic version update by autodist + * Mon Aug 09 2010 Automatic Build System 3.1.2-1mamba - update to 3.1.2