summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2019-07-07 05:23:16 +0000
committerDan Theisen <djt@hxx.in>2019-07-07 05:23:16 +0000
commit6285accb1b685288f641f0529fc9ee6012055093 (patch)
tree4d99f96a5701dec2e0bc16d93e0d3cfe3ad6a946 /user
parentd8e776de2ec9c2a280063eed7fb4573df355188a (diff)
downloadpackages-6285accb1b685288f641f0529fc9ee6012055093.tar.gz
packages-6285accb1b685288f641f0529fc9ee6012055093.tar.bz2
packages-6285accb1b685288f641f0529fc9ee6012055093.tar.xz
packages-6285accb1b685288f641f0529fc9ee6012055093.zip
user/nmap: split ncat docs
Diffstat (limited to 'user')
-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