summaryrefslogtreecommitdiff
path: root/user/nmap
diff options
context:
space:
mode:
Diffstat (limited to 'user/nmap')
-rw-r--r--user/nmap/APKBUILD9
-rw-r--r--user/nmap/disable-broken-tests.patch13
2 files changed, 19 insertions, 3 deletions
diff --git a/user/nmap/APKBUILD b/user/nmap/APKBUILD
index e249a0c0d..f0356e156 100644
--- a/user/nmap/APKBUILD
+++ b/user/nmap/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=nmap
pkgver=7.92
-pkgrel=0
+pkgrel=1
pkgdesc="A network exploration tool and security/port scanner"
url="https://nmap.org/"
arch="all"
@@ -17,7 +17,9 @@ subpackages="
$pkgname-ncat
$pkgname-ncat-doc:ncat_doc
netcat::noarch"
-source="https://nmap.org/dist/$pkgname-$pkgver.tar.bz2"
+source="https://nmap.org/dist/$pkgname-$pkgver.tar.bz2
+ disable-broken-tests.patch
+ "
# secfixes:
# 7.80-r0:
@@ -101,4 +103,5 @@ netcat() {
ln -s ncat "$subpkgdir"/usr/bin/nc
}
-sha512sums="7828367f9dc76ff4d1e8c821260e565fb0c3cb6aba0473d24759133a3006cdf2cb087574f0dd7d2ba47a63754ba4f72e0b78cdae1333a58f05c41d428b56ad59 nmap-7.92.tar.bz2"
+sha512sums="7828367f9dc76ff4d1e8c821260e565fb0c3cb6aba0473d24759133a3006cdf2cb087574f0dd7d2ba47a63754ba4f72e0b78cdae1333a58f05c41d428b56ad59 nmap-7.92.tar.bz2
+0f42b7d5e65ec82d7ed3d385d2f71c3234df7058a728ae602e7e557624faeea8f72832bc7ef861e337c407ab200a9e2ecc202c526bfd10cb6fd64262c3cc4a6d disable-broken-tests.patch"
diff --git a/user/nmap/disable-broken-tests.patch b/user/nmap/disable-broken-tests.patch
new file mode 100644
index 000000000..3ffae4723
--- /dev/null
+++ b/user/nmap/disable-broken-tests.patch
@@ -0,0 +1,13 @@
+diff -ur a/ncat/test/test-addrset.sh b/ncat/test/test-addrset.sh
+--- a/ncat/test/test-addrset.sh 2022-06-10 23:58:27.986436037 +0000
++++ b/ncat/test/test-addrset.sh 2022-06-10 23:58:53.873431469 +0000
+@@ -266,9 +266,6 @@
+ scanme.nmap.org
+ EOF
+
+-expect_fail "."
+-expect_fail "-"
+-expect_fail ","
+ expect_fail "1.2.3.4,"
+ expect_fail ",1.2.3.4"
+ expect_fail "1.2.3.4.5"