From 1a47b0320d6e6f9158d2a37f7c36c77cb1e91064 Mon Sep 17 00:00:00 2001
From: dirkmueller <>
Date: Feb 24 2025 14:57:05 +0000
Subject: Update rustscan to version 2.4.1+0 / rev 13 via SR 1248020


https://build.opensuse.org/request/show/1248020
by user dirkmueller + dimstar_suse

---

diff --git a/.files b/.files
index 47fbe98..57d4aa6 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 92e6c1d..3116de3 100644
--- a/.rev
+++ b/.rev
@@ -87,4 +87,20 @@
     <comment></comment>
     <requestid>1140383</requestid>
   </revision>
+  <revision rev="12" vrev="1">
+    <srcmd5>8158e369f6b5dc3ef85574e06d2d4a74</srcmd5>
+    <version>2.3.0+0</version>
+    <time>1728997088</time>
+    <user>anag+factory</user>
+    <comment></comment>
+    <requestid>1207863</requestid>
+  </revision>
+  <revision rev="13" vrev="1">
+    <srcmd5>87f993449e096db35db7b5f4f444536e</srcmd5>
+    <version>2.4.1+0</version>
+    <time>1740408563</time>
+    <user>dimstar_suse</user>
+    <comment></comment>
+    <requestid>1248020</requestid>
+  </revision>
 </revisionlist>
diff --git a/RustScan-2.1.1+0.tar.xz b/RustScan-2.1.1+0.tar.xz
deleted file mode 120000
index 0d49a85..0000000
--- a/RustScan-2.1.1+0.tar.xz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeif5qavjhh72xixwxc6vay2bm42vu2t4hbsoj2c6annrwc7l6wm2la
\ No newline at end of file
diff --git a/RustScan-2.4.1+0.obscpio b/RustScan-2.4.1+0.obscpio
new file mode 120000
index 0000000..18aba3a
--- /dev/null
+++ b/RustScan-2.4.1+0.obscpio
@@ -0,0 +1 @@
+/ipfs/bafybeigbdqeke3ujf72jvtcdviuebbcf6kexdu5gdpirxdoavncwnmfape
\ No newline at end of file
diff --git a/RustScan-2.4.1+0.tar.xz b/RustScan-2.4.1+0.tar.xz
new file mode 120000
index 0000000..56acbbd
--- /dev/null
+++ b/RustScan-2.4.1+0.tar.xz
@@ -0,0 +1 @@
+/ipfs/bafybeihl4uu56zhp6clgwbpyjmyi23eefl6ddssmjaolurwvxaa3d24tba
\ No newline at end of file
diff --git a/RustScan.obsinfo b/RustScan.obsinfo
index bb9eeee..5dd0797 100644
--- a/RustScan.obsinfo
+++ b/RustScan.obsinfo
@@ -1,4 +1,4 @@
 name: RustScan
-version: 2.1.1+0
-mtime: 1667816507
-commit: bd32f4ead4edd662633c1dd1f569132352ed9f04
+version: 2.4.1+0
+mtime: 1740321604
+commit: b9d5cee67ae16db92ec6ab5ba3bd9c40a281a803
diff --git a/_service b/_service
index 8b2b882..c08a9d1 100644
--- a/_service
+++ b/_service
@@ -1,21 +1,21 @@
 <services>
-  <service mode="disabled" name="obs_scm">
+  <service name="obs_scm" mode="manual">
     <param name="url">https://github.com/RustScan/RustScan.git</param>
     <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
     <param name="scm">git</param>
-    <param name="revision">2.1.1</param>
-    <param name="match-tag">2.1.1</param>
+    <param name="revision">2.4.1</param>
+    <param name="match-tag">2.4.1</param>
     <param name="versionrewrite-pattern">(\d+\.\d+\.\d+)</param>
     <param name="versionrewrite-replacement">\1</param>
     <param name="changesgenerate">disable</param>
   </service>
-  <service mode="disabled" name="tar" />
-  <service mode="disabled" name="recompress">
+  <service name="tar" mode="manual"/>
+  <service name="recompress" mode="manual">
     <param name="file">*.tar</param>
     <param name="compression">xz</param>
   </service>
-  <service mode="disabled" name="set_version"/>
-  <service name="cargo_vendor" mode="disabled">
+  <service name="set_version" mode="manual"/>
+  <service name="cargo_vendor" mode="manual">
      <param name="srcdir">RustScan</param>
      <param name="compression">xz</param>
      <param name="update">true</param>
diff --git a/cargo_config b/cargo_config
deleted file mode 100644
index a476f35..0000000
--- a/cargo_config
+++ /dev/null
@@ -1,5 +0,0 @@
-[source.crates-io]
-replace-with = "vendored-sources"
-
-[source.vendored-sources]
-directory = "vendor"
\ No newline at end of file
diff --git a/rustscan.changes b/rustscan.changes
index 3cc13ba..4bcf38d 100644
--- a/rustscan.changes
+++ b/rustscan.changes
@@ -1,4 +1,28 @@
 -------------------------------------------------------------------
+Sun Feb 23 18:54:29 UTC 2025 - Martin Hauke <mardnh@gmx.de>
+
+- Update to version 2.4.1
+  * RustScan is now guaranteed to always be fast.
+  * Added benchmarks for UDP and TCP scanning.
+  * Bump dependencies
+
+-------------------------------------------------------------------
+Sun Oct 13 15:36:31 UTC 2024 - Andrea Manzini <andrea.manzini@suse.com>
+
+- update to 2.3.0:
+  * Udp Scanning (#596) @BrendanGlancy
+  * feat(cli): add custom dns resolver option (#587) 
+  * bump dependencies
+
+- update to 2.2.2:
+  * enabling exclude port list capability Issue #530 (#534) 
+    You can now exclude ports from being scanned.
+  * RustScan now supports ARM based devices
+
+- dropped cargo_config
+- added %check section to run testsuite (excluding those needing network)
+
+-------------------------------------------------------------------
 Sat Jan 20 11:45:15 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
 
 - Downgrade nmap requirements to recommends: The no-nmap option
diff --git a/rustscan.spec b/rustscan.spec
index ea90216..6814bf8 100644
--- a/rustscan.spec
+++ b/rustscan.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package rustscan
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 # Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:           rustscan
-Version:        2.1.1+0
+Version:        2.4.1+0
 Release:        0
 Summary:        Fast network port scanner
 License:        GPL-3.0-or-later
@@ -26,8 +26,8 @@ Group:          Productivity/Networking/Diagnostic
 URL:            https://github.com/RustScan/RustScan
 Source:         RustScan-%{version}.tar.xz
 Source1:        vendor.tar.xz
-Source2:        cargo_config
 BuildRequires:  cargo-packaging
+BuildRequires:  python3
 Recommends:     nmap
 
 %description
@@ -36,8 +36,6 @@ pipe them into Nmap.
 
 %prep
 %setup -qa1 -n RustScan-%{version}
-mkdir .cargo
-cp %{SOURCE2} .cargo/config
 
 %build
 %{cargo_build}
@@ -45,6 +43,13 @@ cp %{SOURCE2} .cargo/config
 %install
 %{cargo_install}
 
+%check
+%{cargo_test} -- \
+  --skip address::tests::parse_correct_host_addresses \
+  --skip address::tests::parse_hosts_file_and_incorrect_hosts \
+  --skip address::tests::resolver_args_google_dns \
+  --skip address::tests::resolver_default_cloudflare
+
 %files
 %license LICENSE
 %doc README.md
diff --git a/vendor.tar.xz b/vendor.tar.xz
index 41e76b0..148cfdc 120000
--- a/vendor.tar.xz
+++ b/vendor.tar.xz
@@ -1 +1 @@
-/ipfs/bafybeibvv2us2f24tgok4nb4zegcxvgo7xh3y2hqei5ebxfkukamp4wpqa
\ No newline at end of file
+/ipfs/bafybeidq3wu7qbroat7yeasrq6uuyzvuz4ntai7gmmwhhou25xwvijrixi
\ No newline at end of file