nmap: update to 6.46.
This commit is contained in:
parent
1ee1ef29a2
commit
4e525f0b69
2 changed files with 13 additions and 80 deletions
|
@ -1,58 +0,0 @@
|
||||||
--- output.h.orig 2013-06-12 15:19:09.516990135 +0200
|
|
||||||
+++ output.h 2013-06-12 15:19:21.020928401 +0200
|
|
||||||
@@ -255,6 +255,8 @@ void printdatafilepaths();
|
|
||||||
|
|
||||||
/*This is a helper function to determine the ordering of the script results
|
|
||||||
based on their id */
|
|
||||||
+#ifndef NOLUA
|
|
||||||
bool comparescriptids(ScriptResult first, ScriptResult second);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#endif /* OUTPUT_H */
|
|
||||||
--- output.cc.orig 2013-06-12 15:19:48.660779884 +0200
|
|
||||||
+++ output.cc 2013-06-12 15:20:03.436700386 +0200
|
|
||||||
@@ -2615,6 +2615,7 @@ void printdatafilepaths() {
|
|
||||||
|
|
||||||
/*This is a helper function to determine the ordering of the script results
|
|
||||||
based on their id */
|
|
||||||
+#ifndef NOLUA
|
|
||||||
bool comparescriptids(ScriptResult first, ScriptResult second){
|
|
||||||
//Pull the two id fields out for comparison
|
|
||||||
std::string firstid(first.get_id());
|
|
||||||
@@ -2625,5 +2626,5 @@ bool comparescriptids(ScriptResult first
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
-
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
--- Target.cc.orig 2013-06-12 15:21:41.517183480 +0200
|
|
||||||
+++ Target.cc 2013-06-12 15:21:56.925107771 +0200
|
|
||||||
@@ -162,10 +162,12 @@ void Target::Recycle() {
|
|
||||||
|
|
||||||
Target::~Target() {
|
|
||||||
FreeInternal();
|
|
||||||
+#ifndef NOLUA
|
|
||||||
while (!scriptResults.empty()) {
|
|
||||||
scriptResults.front().clear();
|
|
||||||
scriptResults.pop_front();
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void Target::FreeInternal() {
|
|
||||||
--- portlist.cc.orig 2013-06-12 15:22:14.637019645 +0200
|
|
||||||
+++ portlist.cc 2013-06-12 15:22:27.268956160 +0200
|
|
||||||
@@ -146,10 +146,12 @@ void Port::freeService(bool del_service)
|
|
||||||
|
|
||||||
void Port::freeScriptResults(void)
|
|
||||||
{
|
|
||||||
+#ifndef NOLUA
|
|
||||||
while (!scriptResults.empty()) {
|
|
||||||
scriptResults.front().clear();
|
|
||||||
scriptResults.pop_front();
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fills in namebuf (as long as there is space in buflen) with the
|
|
|
@ -1,21 +1,20 @@
|
||||||
# Template file for 'nmap'
|
# Template file for 'nmap'
|
||||||
pkgname=nmap
|
pkgname=nmap
|
||||||
version=6.25
|
version=6.46
|
||||||
revision=4
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--without-ndiff"
|
configure_args="--without-ndiff --with-openssl"
|
||||||
makedepends="libpcap-devel pcre-devel>=8.30"
|
makedepends="libpcap-devel pcre-devel>=8.30 libressl-devel"
|
||||||
short_desc="Utility for network discovery and security auditing"
|
short_desc="Utility for network discovery and security auditing"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://nmap.org"
|
homepage="http://nmap.org"
|
||||||
distfiles="http://nmap.org/dist/nmap-$version.tar.bz2"
|
distfiles="http://nmap.org/dist/nmap-$version.tar.bz2"
|
||||||
checksum=3349cc6d36b86b95ca2b8075d16615a3a598cef494920d6652f9a8bf9f7660b5
|
checksum=3f89d9053c69507fe9533c40188a6561d49607a37b1db6380aed9039d4883137
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="lua ssl"
|
build_options="lua"
|
||||||
# Enable ssl option by default.
|
build_options_default="lua"
|
||||||
build_options_default="ssl"
|
|
||||||
|
|
||||||
if [ "$build_option_lua" ]; then
|
if [ "$build_option_lua" ]; then
|
||||||
configure_args+=" --with-liblua"
|
configure_args+=" --with-liblua"
|
||||||
|
@ -24,26 +23,20 @@ else
|
||||||
configure_args+=" --without-liblua"
|
configure_args+=" --without-liblua"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$build_option_ssl" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
configure_args+=" --with-openssl=$XBPS_CROSS_BASE/usr"
|
subpackages="nmapfe"
|
||||||
makedepends+=" libressl-devel"
|
makedepends+=" pygtk-devel"
|
||||||
|
configure_args+=" --with-zenmap"
|
||||||
else
|
else
|
||||||
configure_args+=" --without-openssl"
|
subpackages=""
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
configure_args+=" --without-zenmap"
|
configure_args+=" --without-zenmap"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# XXX disable nmapfe in cross builds.
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
makedepends+=" pygtk-devel"
|
|
||||||
|
|
||||||
nmapfe_package() {
|
nmapfe_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="nmap>=$version desktop-file-utils pygtk"
|
depends="nmap>=$version desktop-file-utils pygtk"
|
||||||
pycompile_module="radialnet zenmapCore zenmapGUI"
|
pycompile_module="radialnet zenmapCore zenmapGUI"
|
||||||
short_desc="${short_desc} - GTK Frontend"
|
short_desc+=" - GTK Frontend"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/nmapfe
|
vmove usr/bin/nmapfe
|
||||||
vmove usr/bin/xnmap
|
vmove usr/bin/xnmap
|
||||||
|
@ -55,5 +48,3 @@ nmapfe_package() {
|
||||||
rm -f ${DESTDIR}/usr/bin/uninstall_zenmap
|
rm -f ${DESTDIR}/usr/bin/uninstall_zenmap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fi #!CROSS_BUILD
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue