diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/ncat | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/ncat')
| -rw-r--r-- | opt/ncat/.footprint | 10 | ||||
| -rw-r--r-- | opt/ncat/.signature | 6 | ||||
| -rw-r--r-- | opt/ncat/MAKEPKG | 66 |
3 files changed, 82 insertions, 0 deletions
diff --git a/opt/ncat/.footprint b/opt/ncat/.footprint new file mode 100644 index 0000000..21982f4 --- /dev/null +++ b/opt/ncat/.footprint @@ -0,0 +1,10 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/ncat +lrwxrwxrwx root/root usr/bin/nc -> ncat +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/ncat.1.gz +drwxr-xr-x root/root usr/share/ncat/ +-rw-r--r-- root/root usr/share/ncat/ca-bundle.crt diff --git a/opt/ncat/.signature b/opt/ncat/.signature new file mode 100644 index 0000000..0cecabd --- /dev/null +++ b/opt/ncat/.signature @@ -0,0 +1,6 @@ +RWTZ9IduCSQ/mI2mthvGEzJsfv4W9XWdc57tTweVI+cWqbkmzcYsKA1Nn55MvXVDo+dx3SMqzXFj/3FWaaozzQXTUfrSwG1zRgc= + +SHA256 (MAKEPKG) = 0e52a31ddfad2b42ecc3ae3946722e30732957113547bd06410b11976a5b83d3 +SHA256 (.footprint) = 57e49ba45e507b3642c8afd61f57c57f77e2e98b03b2ec0fe5f98e5eb6c03a36 +SHA256 (nmap-7.991.tar.bz2) = a5d507f29437bef3bedd4771ff9aaa8fc1c2a109ddba1f5b1cf12027456929be +SHA256 (ncat#7.991-1.pkg.tar.gz) = 9252fe3707719f3881df6be2225fe69ad88294617a22a11a5467584d57ff5b08 diff --git a/opt/ncat/MAKEPKG b/opt/ncat/MAKEPKG new file mode 100644 index 0000000..6954629 --- /dev/null +++ b/opt/ncat/MAKEPKG @@ -0,0 +1,66 @@ +#!/bin/mkpkg +# description: Feature-rich netcat from the Nmap project +# url: https://nmap.org/ncat + +name=ncat +version=7.991 +release=1 +_srcname=nmap +depends=(libressl libpcap) +source=(https://nmap.org/dist/$_srcname-$version.tar.bz2) + +sha256sums=( + "a5d507f29437bef3bedd4771ff9aaa8fc1c2a109ddba1f5b1cf12027456929be" +) + +patch() { + cd $_srcname-$version + + # libdnet runtime detection fails in sandbox; force the right answer + sed -i 's/ac_cv_dnet_linux_pf_packet=no/ac_cv_dnet_linux_pf_packet=yes/' \ + libdnet-stripped/configure + + # LibreSSL >= 3.5 has opaque structs; remove the guard that excludes it + # (only ncat_ssl.c is relevant for ncat — the other files are nmap/nping) + sed -i 's/&& !defined LIBRESSL_VERSION_NUMBER//' ncat/ncat_ssl.c +} + +build() { + cd $_srcname-$version + + ./configure \ + CC=${CC:-cc} CXX=${CXX:-c++} \ + --prefix=/usr \ + --without-nmap \ + --without-nping \ + --without-zenmap \ + --without-ndiff \ + --without-nmap-update \ + --with-openssl \ + --with-libpcap \ + --with-libpcre=included \ + --without-liblua \ + --without-libssh2 + + # only build ncat and its dependencies + make -C libnetutil + make -C nbase + make -C nsock/src + make -C ncat + + install -d $PKG/usr/bin + install -d $PKG/usr/share/man/man1 + install -m 755 ncat/ncat $PKG/usr/bin/ncat + install -m 644 ncat/docs/ncat.1 $PKG/usr/share/man/man1/ncat.1 + ln -sf ncat $PKG/usr/bin/nc + + install -d $PKG/usr/share/ncat + install -m 644 ncat/certs/ca-bundle.crt $PKG/usr/share/ncat/ca-bundle.crt +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
