mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
* Updated autoscan
This commit is contained in:
parent
f337de5543
commit
4eea9c212d
3 changed files with 115 additions and 0 deletions
|
|
@ -1,2 +1,5 @@
|
|||
AUX nessus_callback_fix.patch 1623 RMD160 c1a8cfca3595154e33444a7f3b81730c99c4c27b SHA1 cc96364cf25a59d41492602841cdb5d66976b6ad SHA256 7372a1beadfd8bc918c385d9bdeb5094920353af0fa37f6ac1125df41ed7b4e4
|
||||
DIST autoscan-network-1.32.tar.gz 1763576 RMD160 5ac0ea243bcd2b7c5773b6291328c8ecdd7ac28b SHA1 6654de6e3ee1b68546aca1cb40a38d8321dd155b SHA256 93cf44f6f1e97f9f183ee75f0f4e70b242df6c9a218776996479867b1254c345
|
||||
DIST autoscan-network-1.42.tar.gz 1040098 RMD160 a05ee3a13a71e6400e7fe062336c18e349e3333b SHA1 26724953fa23b3d4b1e147a53e691efd3df09977 SHA256 fbc28b037ce58f79c2e5daa65ab6bd19d0f546fcabebc2c486a8792bee06f642
|
||||
EBUILD autoscan-network-1.32.ebuild 1583 RMD160 f57da67283c5e3afec2c1b95db2b396ece199c54 SHA1 0a575b63caf65299ac80182e92c1b952da341f34 SHA256 c1bde61a041a7cd7a9fb96abd49515a770fbd8441707dc04ac1574a8f68a0899
|
||||
EBUILD autoscan-network-1.42.ebuild 1775 RMD160 f921139fb36e68259ee8cd78589e206ccc47d370 SHA1 f5b86506bf147d092c23e6351f6a3a0440cdb533 SHA256 3d50f658edc49aa86ccc5d943ef7cfa9331f9046ac6763297f9070eb47cb17da
|
||||
|
|
|
|||
66
net-analyzer/autoscan-network/autoscan-network-1.42.ebuild
Normal file
66
net-analyzer/autoscan-network/autoscan-network-1.42.ebuild
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header:
|
||||
|
||||
inherit gnome2 eutils
|
||||
|
||||
DESCRIPTION="Utility for network exploration with Samba support."
|
||||
HOMEPAGE="http://autoscan.fr"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~ppc ~alpha ~sparc ~hppa ~amd64 ~ia64 ~mips"
|
||||
IUSE="snmp samba nessus trayicon gtk gnome vnc"
|
||||
|
||||
SRC_URI="http://autoscan.fr/download_files/${P}.tar.gz"
|
||||
|
||||
RDEPEND="net-analyzer/nmap
|
||||
gnome? ( >=gnome-base/libgnomeui-2.0
|
||||
>=gnome-base/gnome-keyring-0.4.2 )
|
||||
samba? ( net-fs/samba )
|
||||
gtk? ( >=x11-libs/gtk+-2.6.0
|
||||
>=gnome-extra/gtkhtml-2.0
|
||||
>=gnome-base/gnome-vfs-2.8.4
|
||||
>=x11-libs/pango-1.8.1 )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.2.0 )
|
||||
console? ( >=x11-libs/vte-0.11.12 )
|
||||
sound? ( >=media-libs/libao-0.8.5
|
||||
>=media-libs/libvorbis-1.1.0 )
|
||||
nessus? ( net-analyzer/nessus )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.0 )
|
||||
>=dev-libs/glib-2.6.3
|
||||
dev-libs/libelf"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/pkgconfig"
|
||||
|
||||
|
||||
src_compile() {
|
||||
epatch "${FILESDIR}/nessus_callback_fix.patch"
|
||||
if use samba; then
|
||||
sed -i -e '/MODULE_SAMBA=/ s/disable/enable/g' configure
|
||||
fi
|
||||
if ! use sound; then
|
||||
sed -i -e '/SOUND=/ s/enable/disable/g' configure
|
||||
fi
|
||||
if ! use gnome; then
|
||||
sed -i -e '/GNOME=/ s/enable/disable/g' configure
|
||||
fi
|
||||
if ! use snmp; then
|
||||
sed -i -e '/SNMP=/ s/enable/disable/g' configure
|
||||
fi
|
||||
if use nessus; then
|
||||
sed -i -e '/MODULE_NESSUS=/ s/disable/enable/g' configure
|
||||
fi
|
||||
if use vnc; then
|
||||
sed -i -e '/VNC=/ s/disable/enable/' configure
|
||||
fi
|
||||
if ! use trayicon; then
|
||||
sed -i -e '/TRAYICON=/ s/enable/disable/g' configure
|
||||
fi
|
||||
if ! use console; then
|
||||
sed -i -e '/MODULE_CONSOLE=/ s/enable/disable/g' configure
|
||||
fi
|
||||
./configure --distrib-gentoo || die "Configure failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
diff -Naur autoscan-network-1.42.orig/src/autoscan-network/Interface/Nessus_Message_Callbacks.c autoscan-network-1.42/src/autoscan-network/Interface/Nessus_Message_Callbacks.c
|
||||
--- autoscan-network-1.42.orig/src/autoscan-network/Interface/Nessus_Message_Callbacks.c 2009-03-09 19:24:38.000000000 +0000
|
||||
+++ autoscan-network-1.42/src/autoscan-network/Interface/Nessus_Message_Callbacks.c 2009-05-07 21:20:51.000000000 +0000
|
||||
@@ -30,23 +30,24 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
**************************************************************************************/
|
||||
-#ifdef __NESSUS_ENABLE
|
||||
-
|
||||
-#include <gtk/gtk.h>
|
||||
-
|
||||
-#include "Nessus_Message_Callbacks.h"
|
||||
-#include "Nessus_Message_Interface.h"
|
||||
-#include "Root_Interface.h"
|
||||
-#include "../Modules.h"
|
||||
-#include "../Debug.h"
|
||||
-
|
||||
-void on_button_Nessus_clicked (GtkButton * button, gpointer user_data)
|
||||
-{
|
||||
- DEBUG_ACTION_USER();
|
||||
+#ifdef __NESSUS_ENABLE
|
||||
+
|
||||
+#include <gtk/gtk.h>
|
||||
+
|
||||
+#include "Nessus_Message_Callbacks.h"
|
||||
+#include "Nessus_Message_Interface.h"
|
||||
+#include "Root_Interface.h"
|
||||
+#include "../Modules.h"
|
||||
+#include "../Debug.h"
|
||||
+#include "../Equipement.h"
|
||||
+
|
||||
+void on_button_Nessus_clicked (GtkButton * button, gpointer user_data)
|
||||
+{
|
||||
+ DEBUG_ACTION_USER();
|
||||
gtk_combo_box_set_active (GTK_COMBO_BOX (combobox_liste_Modules), 0);
|
||||
- if (Modules_Actuel != MODULES_LISTE_PORTS)
|
||||
- Initialisation_Liste_ports();
|
||||
-}
|
||||
-
|
||||
-
|
||||
+ if (Equipement_Selectionner->Modules_Actuel != MODULES_LISTE_PORTS)
|
||||
+ Initialisation_Liste_ports();
|
||||
+}
|
||||
+
|
||||
+
|
||||
#endif
|
||||
Loading…
Reference in a new issue