summaryrefslogtreecommitdiff
path: root/user/nmap
diff options
context:
space:
mode:
Diffstat (limited to 'user/nmap')
-rw-r--r--user/nmap/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/user/nmap/APKBUILD b/user/nmap/APKBUILD
index 163e42745..d8bdea9a9 100644
--- a/user/nmap/APKBUILD
+++ b/user/nmap/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=nmap
pkgver=7.70
-pkgrel=0
+pkgrel=1
pkgdesc="A network exploration tool and security/port scanner"
url="https://nmap.org/"
arch="all"
@@ -15,6 +15,7 @@ subpackages="
$pkgname-nselibs::noarch
$pkgname-nping
$pkgname-ncat
+ $pkgname-ncat-doc:ncat_doc
netcat::noarch"
source="https://nmap.org/dist/$pkgname-$pkgver.tar.bz2"
@@ -76,6 +77,14 @@ ncat() {
mv "$pkgdir"/usr/bin/ncat "$subpkgdir"/usr/bin
}
+ncat_doc() {
+ pkgdesc="ncat utility (docs)"
+ install_if="nmap-ncat=$pkgver-r$pkgrel docs"
+ mkdir -p "$subpkgdir"/usr/share/man/man1
+ mv "${pkgdir}-doc"/usr/share/man/man1/ncat.1.gz \
+ "$subpkgdir"/usr/share/man/man1
+}
+
nping() {
pkgdesc="$pkgdesc (nping tool)"
mkdir -p "$subpkgdir"/usr/bin