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
This commit is contained in:
parent
2f362593e4
commit
90fb4b504b
1 changed files with 9 additions and 9 deletions
|
@ -1,21 +1,20 @@
|
||||||
# Template file for 'nmap'
|
# Template file for 'nmap'
|
||||||
pkgname=nmap
|
pkgname=nmap
|
||||||
version=7.80
|
version=7.80
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--without-ndiff --with-openssl --with-zenmap $(vopt_with lua liblua)"
|
configure_args="--without-ndiff --with-openssl --with-zenmap $(vopt_with lua liblua)"
|
||||||
hostmakedepends="python"
|
hostmakedepends="python"
|
||||||
makedepends="libpcap-devel libressl-devel pcre-devel $(vopt_if lua lua52-devel)"
|
makedepends="libpcap-devel libressl-devel pcre-devel $(vopt_if lua lua-devel)"
|
||||||
short_desc="Utility for network discovery and security auditing"
|
short_desc="Utility for network discovery and security auditing"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Piraty <piraty1@inbox.ru>"
|
||||||
license="GPL-2.0-or-later"
|
license="custom:nmap"
|
||||||
homepage="https://nmap.org"
|
homepage="https://nmap.org"
|
||||||
distfiles="https://nmap.org/dist/nmap-${version}.tar.bz2"
|
distfiles="https://nmap.org/dist/nmap-${version}.tar.bz2"
|
||||||
checksum=fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa
|
checksum=fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa
|
||||||
|
|
||||||
build_options="lua"
|
build_options="lua"
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
build_options_default="lua"
|
||||||
build_options_default="lua"
|
|
||||||
fi
|
|
||||||
|
|
||||||
alternatives="
|
alternatives="
|
||||||
nc:nc:/usr/bin/ncat
|
nc:nc:/usr/bin/ncat
|
||||||
|
@ -26,10 +25,12 @@ pre_check() {
|
||||||
# https://github.com/nmap/nmap/issues/662
|
# https://github.com/nmap/nmap/issues/662
|
||||||
# https://github.com/nmap/nmap/issues/666
|
# https://github.com/nmap/nmap/issues/666
|
||||||
# https://github.com/nmap/nmap/issues/85
|
# https://github.com/nmap/nmap/issues/85
|
||||||
sed -i 's|check-zenmap ||g' Makefile
|
vsed -i 's|check-zenmap ||g' Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
vlicense COPYING
|
||||||
|
|
||||||
# do not use bundled certificates, use only system ones
|
# do not use bundled certificates, use only system ones
|
||||||
rm -f ${DESTDIR}/usr/share/ncat/ca-bundle.crt
|
rm -f ${DESTDIR}/usr/share/ncat/ca-bundle.crt
|
||||||
}
|
}
|
||||||
|
@ -37,7 +38,6 @@ post_install() {
|
||||||
zenmap_package() {
|
zenmap_package() {
|
||||||
archs=noarch
|
archs=noarch
|
||||||
depends="${sourcepkg}-${version}_${revision} pygtk"
|
depends="${sourcepkg}-${version}_${revision} pygtk"
|
||||||
pycompile_module="radialnet zenmapCore zenmapGUI"
|
|
||||||
short_desc+=" - GUI Frontend"
|
short_desc+=" - GUI Frontend"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/nmapfe
|
vmove usr/bin/nmapfe
|
||||||
|
|
Loading…
Reference in a new issue