44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'nmap'
|
|
pkgname=nmap
|
|
version=7.90
|
|
revision=1
|
|
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 lua53-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=5557c3458275e8c43e1d0cfa5dad4e71dd39e091e2029a293891ad54098a40e8
|
|
python_version=3
|
|
|
|
build_options="lua"
|
|
build_options_default="lua"
|
|
|
|
alternatives="
|
|
nc:nc:/usr/bin/ncat
|
|
nc:nc.1:/usr/share/man/man1/ncat.1"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
|
|
# do not use bundled certificates, use only system ones
|
|
rm -f ${DESTDIR}/usr/share/ncat/ca-bundle.crt
|
|
}
|
|
|
|
zenmap_package() {
|
|
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
|
|
}
|
|
}
|