File project.diff of Package openvas-smb
--- 0001-Fix-heimdal-gssapi-dependencies.patch.orig
+++ 0001-Fix-heimdal-gssapi-dependencies.patch
@@ -1,9 +1,8 @@
-From 2dec4204de81f79922c8b77f54404983172360a8 Mon Sep 17 00:00:00 2001
+From 130e08552d52de6615beffb4c5b4b6de2c8c6f79 Mon Sep 17 00:00:00 2001
From: Martin Hauke <mardnh@gmx.de>
-Date: Sun, 14 Apr 2019 20:40:10 +0200
+Date: Fri, 16 Apr 2021 15:51:49 +0200
Subject: [PATCH] Fix heimdal gssapi dependencies
-libheimdal on openSUSE does not provide a pkg-config file for gssapi.
---
CMakeLists.txt | 7 +++----
cmake/Modules/FindGSSAPI.cmake | 34 ++++++++++++++++++++++++++++++++++
@@ -12,7 +11,7 @@ libheimdal on openSUSE does not provide
create mode 100644 cmake/Modules/FindGSSAPI.cmake
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 021b08f..e9515c5 100644
+index 9217a91..067a50e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,8 @@ project(openvas-smb
@@ -79,16 +78,16 @@ index 0000000..6dcf570
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(GSSAPI DEFAULT_MSG GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIRS)
+MARK_AS_ADVANCED(GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIRS)
diff --git a/samba/CMakeLists.txt b/samba/CMakeLists.txt
-index 82f55e6..b8eef7f 100644
+index e8d0d96..593d0d5 100644
--- a/samba/CMakeLists.txt
+++ b/samba/CMakeLists.txt
-@@ -450,5 +450,5 @@ add_custom_command(
+@@ -451,5 +451,5 @@ add_custom_command(
add_library(samba-static STATIC ${RPC_GEN_SRC} ${SAMBA_SRC} ${RPC_GEN_HEADERS})
# Link against static heimdal-gssapi ldflags returned by pkg-config
# Link against libhdb as well since it is missing from the list
--target_link_libraries (samba-static ${GSSAPI_STATIC_LDFLAGS} hdb)
-+target_link_libraries (samba-static com_err asn1 krb5 gssapi hdb)
+-target_link_libraries (samba-static ${GSSAPI_STATIC_LDFLAGS} ${GNUTLS_STATIC_LDFLAGS} hdb)
++target_link_libraries (samba-static com_err asn1 krb5 gssapi ${GNUTLS_STATIC_LDFLAGS} hdb)
set_target_properties (samba-static PROPERTIES CMAKE_POSITION_INDEPENDENT_CODE TRUE)
--
-2.16.4
+2.26.2
--- openvas-smb.changes.orig
+++ openvas-smb.changes
@@ -1,9 +1,42 @@
-------------------------------------------------------------------
+Tue Feb 21 10:14:10 UTC 2023 - Martin Hauke <mardnh@gmx.de>
+
+- Update to version 22.4.0
+ - Removed winmd
+- Drop not longer needed patch:
+ * reproducible.patch
+
+-------------------------------------------------------------------
Wed Feb 9 12:08:44 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to omit build date (boo#1047218)
-------------------------------------------------------------------
+Fri Apr 16 13:59:40 UTC 2021 - Martin Hauke <mardnh@gmx.de>
+
+- Update to version 21.4.0
+ Added
+ * Add scanner-only option to enable tls debugging.
+ * Extend nasl lint to detect if function parameter is used twice.
+ * Add option to specify if a host can be scanned through its
+ IPv4 and IPv6 in parallel.
+ * Add insert_tcp_options and insert_tcp_v6_options nasl functions.
+ * Add get_tcp_option and extend dump_tcp_packet nasl functions.
+ * Add new scanner only option for spawning NASL functions with
+ a different owner.
+ * Add debug logs for allow_simultaneous_ips=no.
+ * Add min_free_mem and max_sysload scanner only options.
+ Changed
+ * Store results in main_kb instead of host_kb.
+ * Also use internal function name in some nasl log messages.
+ * Move more scanner preferences to gvm-libs to make them
+ available for openvas-nasl.
+ Removed
+ * Use the nvticache name from gvm-libs, defined in nvticache.h.
+- Update patch
+ * 0001-Fix-heimdal-gssapi-dependencies.patch
+
+-------------------------------------------------------------------
Thu Jan 9 23:23:19 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Add "-std=c11" to CFLAGS to workaround compiler warnings that
--- openvas-smb.spec.orig
+++ openvas-smb.spec
@@ -1,8 +1,8 @@
#
# spec file for package openvas-smb
#
-#
-# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
+# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2019-2023, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,25 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-%define sover 1
+
+%define sover 22
Name: openvas-smb
-Version: 1.0.5
+Version: 22.4.0
Release: 0
Summary: SMB module for OpenVAS Scanner
License: GPL-2.0-or-later
Group: Productivity/Networking/Security
URL: https://github.com/greenbone/openvas-smb
#Git-Clone: https://github.com/greenbone/gvm-libs.git
-Source: https://github.com/greenbone/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-Source98: https://github.com/greenbone/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
+Source: https://github.com/greenbone/openvas-smb/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source98: https://github.com/greenbone/openvas-smb/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
Source99: https://www.greenbone.net/GBCommunitySigningKey.asc#/%{name}.keyring
Patch0: 0001-Fix-heimdal-gssapi-dependencies.patch
-Patch1: reproducible.patch
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: libheimdal-devel >= 7.5.0
+BuildRequires: libunistring-devel
BuildRequires: mingw32-cross-gcc
BuildRequires: perl
BuildRequires: pkgconfig
@@ -41,8 +42,10 @@ BuildRequires: xmltoman
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gnutls) >= 3.2.15
BuildRequires: pkgconfig(popt)
+%if 0%{?suse_version} <= 1500
+BuildRequires: libidn2-devel
+%endif
Provides: wmic
-Provides: winexe
%description
This is the smb module for the OpenVAS Scanner. It includes libraries
@@ -92,7 +95,7 @@ applications that want to make use of li
find . -name '*.[c\|h]' -print0 | xargs -0 sed -i 's|heimdal\/||g'
%build
-%cmake -DCMAKE_C_FLAGS="-Wno-address -std=c11"
+%cmake
%make_jobs
%install
@@ -106,9 +109,7 @@ find . -name '*.[c\|h]' -print0 | xargs
%files
%license COPYING
%doc CHANGES README.md
-%{_bindir}/winexe
%{_bindir}/wmic
-%{_mandir}/man1/winexe.1%{?ext_man}
%{_mandir}/man1/wmic.1%{?ext_man}
%files -n libopenvas_wmiclient%{sover}
@@ -121,11 +122,4 @@ find . -name '*.[c\|h]' -print0 | xargs
%{_libdir}/libopenvas_wmiclient.so
%{_libdir}/pkgconfig/libopenvas_wmiclient.pc
-%files -n libopenvas_wincmd%{sover}
-%{_libdir}/libopenvas_wincmd.so.%{sover}*
-
-%files -n libopenvas_wincmd-devel
-%{_libdir}/libopenvas_wincmd.so
-%{_libdir}/pkgconfig/libopenvas_wincmd.pc
-
%changelog