From 6285accb1b685288f641f0529fc9ee6012055093 Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Sun, 7 Jul 2019 05:23:16 +0000 Subject: user/nmap: split ncat docs --- user/nmap/APKBUILD | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'user/nmap') 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 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 -- cgit v1.2.3-70-g09d2