Skip to content
Snippets Groups Projects
Verified Commit 3fb0b782 authored by Dan Theisen's avatar Dan Theisen
Browse files

user/nmap: add netcat subpackage

parent 7ffe04af
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,8 @@ subpackages="
$pkgname-scripts::noarch
$pkgname-nselibs::noarch
$pkgname-nping
$pkgname-ncat"
$pkgname-ncat
netcat::noarch"
source="https://nmap.org/dist/$pkgname-$pkgver.tar.bz2"
prepare() {
......@@ -23,7 +24,6 @@ prepare() {
}
build() {
cd "$builddir"
# zenmap and ndiff require python 2
./configure \
--build=$CBUILD \
......@@ -44,12 +44,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
......@@ -84,4 +82,12 @@ nping() {
mv "$pkgdir"/usr/bin/nping "$subpkgdir"/usr/bin
}
netcat() {
pkgdesc="Symlinks for netcat and nc to ncat"
depends="$pkgname-ncat"
mkdir -p "$subpkgdir"/usr/bin
ln -s ncat "$subpkgdir"/usr/bin/netcat
ln -s ncat "$subpkgdir"/usr/bin/nc
}
sha512sums="084c148b022ff6550e269d976d0077f7932a10e2ef218236fe13aa3a70b4eb6506df03329868fc68cb3ce78e4360b200f5a7a491d3145028fed679ef1c9ecae5 nmap-7.70.tar.bz2"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment