void-packages/srcpkgs/nmap/template
Piraty 90fb4b504b nmap: link with system's liblua
* configure checks for lua5.3 and falls back to build static liblua from
bundled sources.
* works for cross as well
* fix license
* adopt
* xlint
2020-02-12 13:17:28 +01:00

52 lines
1.4 KiB
Bash

# Template file for 'nmap'
pkgname=nmap
version=7.80
revision=2
build_style=gnu-configure
configure_args="--without-ndiff --with-openssl --with-zenmap $(vopt_with lua liblua)"
hostmakedepends="python"
makedepends="libpcap-devel libressl-devel pcre-devel $(vopt_if lua lua-devel)"
short_desc="Utility for network discovery and security auditing"
maintainer="Piraty <piraty1@inbox.ru>"
license="custom:nmap"
homepage="https://nmap.org"
distfiles="https://nmap.org/dist/nmap-${version}.tar.bz2"
checksum=fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa
build_options="lua"
build_options_default="lua"
alternatives="
nc:nc:/usr/bin/ncat
nc:nc.1:/usr/share/man/man1/ncat.1"
pre_check() {
# Disable zenmap tests
# https://github.com/nmap/nmap/issues/662
# https://github.com/nmap/nmap/issues/666
# https://github.com/nmap/nmap/issues/85
vsed -i 's|check-zenmap ||g' Makefile
}
post_install() {
vlicense COPYING
# do not use bundled certificates, use only system ones
rm -f ${DESTDIR}/usr/share/ncat/ca-bundle.crt
}
zenmap_package() {
archs=noarch
depends="${sourcepkg}-${version}_${revision} pygtk"
short_desc+=" - GUI Frontend"
pkg_install() {
vmove usr/bin/nmapfe
vmove usr/bin/xnmap
vmove usr/bin/zenmap
vmove usr/lib
vmove usr/share/applications
vmove usr/share/zenmap
vmove usr/share/man/man1/zenmap.1
rm -f ${DESTDIR}/usr/bin/uninstall_zenmap
}
}