mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-05 17:42:32 +00:00
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://nmap.org/
|
|
TERMUX_PKG_DESCRIPTION="Utility for network discovery and security auditing"
|
|
TERMUX_PKG_LICENSE="custom"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="7.98"
|
|
TERMUX_PKG_SRCURL=https://nmap.org/dist/nmap-${TERMUX_PKG_VERSION}.tar.bz2
|
|
TERMUX_PKG_SHA256=ce847313eaae9e5c9f21708e42d2ab7b56c7e0eb8803729a3092f58886d897e6
|
|
TERMUX_PKG_DEPENDS="libc++, liblua54, libpcap, libssh2, openssl, pcre2, resolv-conf, zlib"
|
|
TERMUX_PKG_BREAKS="nmap-ncat"
|
|
TERMUX_PKG_REPLACES="nmap-ncat"
|
|
TERMUX_PKG_PROVIDES="nc, ncat, netcat"
|
|
# --without-nmap-update to avoid linking against libsvn_client:
|
|
# --without-zenmap to avoid python scripts for graphical gtk frontend:
|
|
# --without-ndiff to avoid python2-using ndiff utility:
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--enable-static
|
|
--with-liblua=$TERMUX_PREFIX
|
|
--without-nmap-update
|
|
--without-zenmap
|
|
--without-ndiff
|
|
"
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
if [[ "$TERMUX_DEBUG_BUILD" == "true" ]]; then
|
|
STRIP="$(command -v true)"
|
|
fi
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_path_STRIP=$STRIP"
|
|
}
|
|
|
|
termux_step_post_massage() {
|
|
mv -v bin/ncat bin/netcat-nmap
|
|
mv -v share/man/man1/ncat.1.gz share/man/man1/netcat-nmap.1.gz
|
|
}
|