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'
|
||||
pkgname=nmap
|
||||
version=6.25
|
||||
revision=4
|
||||
version=6.46
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="--without-ndiff"
|
||||
makedepends="libpcap-devel pcre-devel>=8.30"
|
||||
configure_args="--without-ndiff --with-openssl"
|
||||
makedepends="libpcap-devel pcre-devel>=8.30 libressl-devel"
|
||||
short_desc="Utility for network discovery and security auditing"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="GPL-2"
|
||||
homepage="http://nmap.org"
|
||||
distfiles="http://nmap.org/dist/nmap-$version.tar.bz2"
|
||||
checksum=3349cc6d36b86b95ca2b8075d16615a3a598cef494920d6652f9a8bf9f7660b5
|
||||
checksum=3f89d9053c69507fe9533c40188a6561d49607a37b1db6380aed9039d4883137
|
||||
|
||||
# Package build options
|
||||
build_options="lua ssl"
|
||||
# Enable ssl option by default.
|
||||
build_options_default="ssl"
|
||||
build_options="lua"
|
||||
build_options_default="lua"
|
||||
|
||||
if [ "$build_option_lua" ]; then
|
||||
configure_args+=" --with-liblua"
|
||||
|
@ -24,26 +23,20 @@ else
|
|||
configure_args+=" --without-liblua"
|
||||
fi
|
||||
|
||||
if [ "$build_option_ssl" ]; then
|
||||
configure_args+=" --with-openssl=$XBPS_CROSS_BASE/usr"
|
||||
makedepends+=" libressl-devel"
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
subpackages="nmapfe"
|
||||
makedepends+=" pygtk-devel"
|
||||
configure_args+=" --with-zenmap"
|
||||
else
|
||||
configure_args+=" --without-openssl"
|
||||
fi
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
subpackages=""
|
||||
configure_args+=" --without-zenmap"
|
||||
fi
|
||||
|
||||
# XXX disable nmapfe in cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
makedepends+=" pygtk-devel"
|
||||
|
||||
nmapfe_package() {
|
||||
noarch=yes
|
||||
depends="nmap>=$version desktop-file-utils pygtk"
|
||||
pycompile_module="radialnet zenmapCore zenmapGUI"
|
||||
short_desc="${short_desc} - GTK Frontend"
|
||||
short_desc+=" - GTK Frontend"
|
||||
pkg_install() {
|
||||
vmove usr/bin/nmapfe
|
||||
vmove usr/bin/xnmap
|
||||
|
@ -55,5 +48,3 @@ nmapfe_package() {
|
|||
rm -f ${DESTDIR}/usr/bin/uninstall_zenmap
|
||||
}
|
||||
}
|
||||
|
||||
fi #!CROSS_BUILD
|
||||
|
|
Loading…
Reference in a new issue