diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/gspoof/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/gspoof/files')
-rw-r--r-- | net-analyzer/gspoof/files/gspoof-3.2-icon.patch | 71 | ||||
-rw-r--r-- | net-analyzer/gspoof/files/gspoof-def-values.patch | 29 |
2 files changed, 100 insertions, 0 deletions
diff --git a/net-analyzer/gspoof/files/gspoof-3.2-icon.patch b/net-analyzer/gspoof/files/gspoof-3.2-icon.patch new file mode 100644 index 000000000000..df13a08677db --- /dev/null +++ b/net-analyzer/gspoof/files/gspoof-3.2-icon.patch @@ -0,0 +1,71 @@ +Fix icon path and name. + +--- gtk.c ++++ gtk.c +@@ -24,9 +24,7 @@ + gtk_set_locale (); + gtk_init (&_argc, &_argv); + +- add_pixmap_directory ("pixmap"); +- add_pixmap_directory ("/usr/local/share/gspoof/pixmap"); +- add_pixmap_directory ("/usr/share/gspoof/pixmap"); ++ add_pixmap_directory ("/usr/share/pixmaps"); + + MainWin = create_MainWin(); + +--- interface.c ++++ interface.c +@@ -102,7 +102,7 @@ + gtk_widget_set_size_request (MainWin, 640, 480); + gtk_window_set_title (GTK_WINDOW (MainWin), BANNER); + gtk_window_set_position (GTK_WINDOW (MainWin), GTK_WIN_POS_CENTER); +- MainWin_icon_pixbuf = create_pixbuf ("icon.png"); ++ MainWin_icon_pixbuf = create_pixbuf ("gspoof.png"); + if (MainWin_icon_pixbuf) + { + gtk_window_set_icon (GTK_WINDOW (MainWin), MainWin_icon_pixbuf); +@@ -663,7 +663,7 @@ + gtk_widget_set_extension_events (DataWin, GDK_EXTENSION_EVENTS_CURSOR); + gtk_window_set_title (GTK_WINDOW (DataWin), _("Payload options")); + gtk_window_set_position (GTK_WINDOW (DataWin), GTK_WIN_POS_CENTER); +- DataWin_icon_pixbuf = create_pixbuf ("icon.png"); ++ DataWin_icon_pixbuf = create_pixbuf ("gspoof.png"); + if (DataWin_icon_pixbuf) + { + gtk_window_set_icon (GTK_WINDOW (DataWin), DataWin_icon_pixbuf); +@@ -754,7 +754,7 @@ + gtk_window_set_title (GTK_WINDOW (MultiPackets), _("Pseudo-flood options")); + gtk_window_set_position (GTK_WINDOW (MultiPackets), GTK_WIN_POS_CENTER); + gtk_window_set_resizable (GTK_WINDOW (MultiPackets), FALSE); +- MultiPackets_icon_pixbuf = create_pixbuf ("icon.png"); ++ MultiPackets_icon_pixbuf = create_pixbuf ("gspoof.png"); + if (MultiPackets_icon_pixbuf) + { + gtk_window_set_icon (GTK_WINDOW (MultiPackets), MultiPackets_icon_pixbuf); +@@ -884,7 +884,7 @@ + gtk_window_set_position (GTK_WINDOW (AboutWin), GTK_WIN_POS_CENTER); + gtk_window_set_default_size (GTK_WINDOW (AboutWin), 350, 200); + gtk_window_set_resizable (GTK_WINDOW (AboutWin), FALSE); +- AboutWin_icon_pixbuf = create_pixbuf ("icon.png"); ++ AboutWin_icon_pixbuf = create_pixbuf ("gspoof.png"); + if (AboutWin_icon_pixbuf) + { + gtk_window_set_icon (GTK_WINDOW (AboutWin), AboutWin_icon_pixbuf); +@@ -896,7 +896,7 @@ + gtk_container_add (GTK_CONTAINER (AboutWin), hbox1); + gtk_container_set_border_width (GTK_CONTAINER (hbox1), 2); + +- image16 = create_pixmap (AboutWin, "icon.png"); ++ image16 = create_pixmap (AboutWin, "gspoof.png"); + gtk_widget_show (image16); + gtk_box_pack_start (GTK_BOX (hbox1), image16, TRUE, TRUE, 0); + +@@ -936,7 +936,7 @@ + gtk_widget_set_size_request (ECNWin, -1, 90); + gtk_window_set_title (GTK_WINDOW (ECNWin), _("ECN options")); + gtk_window_set_position (GTK_WINDOW (ECNWin), GTK_WIN_POS_CENTER); +- ECNWin_icon_pixbuf = create_pixbuf ("icon.png"); ++ ECNWin_icon_pixbuf = create_pixbuf ("gspoof.png"); + if (ECNWin_icon_pixbuf) + { + gtk_window_set_icon (GTK_WINDOW (ECNWin), ECNWin_icon_pixbuf); diff --git a/net-analyzer/gspoof/files/gspoof-def-values.patch b/net-analyzer/gspoof/files/gspoof-def-values.patch new file mode 100644 index 000000000000..442f8e821b01 --- /dev/null +++ b/net-analyzer/gspoof/files/gspoof-def-values.patch @@ -0,0 +1,29 @@ +diff -Naurp gspoof-3.2-orig/gfuncts.c gspoof-3.2/gfuncts.c +--- gspoof-3.2-orig/gfuncts.c 2006-09-15 16:39:59.000000000 +0200 ++++ gspoof-3.2/gfuncts.c 2006-09-15 17:20:49.000000000 +0200 +@@ -47,12 +47,6 @@ int RestoreDefault() + struct libnet_ether_addr *ethaddr; /* eth address */ + libnet_t *l; + +- /* put default value */ +- bzero (&f, 6); +- bzero (&ck, 2); +- memset (data, '\0', 128); +- memset (device, '\0', 10); +- + /* loading libnet core */ + if ((l=libnet_init(LIBNET_LINK, NULL, ebuf))==NULL) + { +@@ -126,6 +120,12 @@ int RestoreDefault() + gtk_entry_set_text (GTK_ENTRY (win_entry), "32767"); + gtk_entry_set_text(GTK_ENTRY (urg_entry), ltostr(urgp)); + ++ /* put default value */ ++ bzero (&f, sizeof(f)); ++ bzero (&ck, sizeof(ck)); ++ memset (data, '\0', 128); ++ memset (device, '\0', 10); ++ + /* Set default variable values */ + f.syn=1; + m.number=10; |