1 |
commit: a92a0618f69b79728649c1a64a7ee40dc05c665f |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 30 14:27:05 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 30 14:27:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a92a0618 |
7 |
|
8 |
net-analyzer/webfuzzer: Fix CFLAGS=-fno-common |
9 |
|
10 |
Package-Manager: Portage-2.3.86, Repoman-2.3.20 |
11 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707242 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
.../webfuzzer/files/webfuzzer-0.2.0-flags.patch | 24 ++++++++++++++ |
15 |
.../files/webfuzzer-0.2.0-fno-common.patch | 37 ++++++++++++++++++++++ |
16 |
net-analyzer/webfuzzer/webfuzzer-0.2.0-r2.ebuild | 28 ++++++++++++++++ |
17 |
3 files changed, 89 insertions(+) |
18 |
|
19 |
diff --git a/net-analyzer/webfuzzer/files/webfuzzer-0.2.0-flags.patch b/net-analyzer/webfuzzer/files/webfuzzer-0.2.0-flags.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..9c40ecf167f |
22 |
--- /dev/null |
23 |
+++ b/net-analyzer/webfuzzer/files/webfuzzer-0.2.0-flags.patch |
24 |
@@ -0,0 +1,24 @@ |
25 |
+--- a/Makefile |
26 |
++++ b/Makefile |
27 |
+@@ -2,7 +2,7 @@ |
28 |
+ # Makefile for Webfuzzer (c) gunzip |
29 |
+ # |
30 |
+ |
31 |
+-CFLAGS=-g -O3 -Wall -DCOLORS |
32 |
++CFLAGS+= -Wall -DCOLORS |
33 |
+ CC=gcc |
34 |
+ LIBS=-lsocket -lnsl -lresolv |
35 |
+ MOBJS=util.o getpost.o header.o parseform.o hash.o network.o parselinks.o cookies.o webfuzzer.o |
36 |
+@@ -13,10 +13,10 @@ |
37 |
+ default: webfuzzer |
38 |
+ |
39 |
+ webfuzzer: main.c $(MOBJS) |
40 |
+- $(CC) $(CFLAGS) -o webfuzzer main.c $(MOBJS) |
41 |
++ $(CC) $(CFLAGS) $(LDFLAGS) -o webfuzzer main.c $(MOBJS) |
42 |
+ |
43 |
+ sunos: main.c $(MOBJS) |
44 |
+- $(CC) $(CFLAGS) -o webfuzzer main.c $(MOBJS) $(LIBS) |
45 |
++ $(CC) $(CFLAGS) $(LDFLAGS) -o webfuzzer main.c $(MOBJS) $(LIBS) |
46 |
+ |
47 |
+ clean: |
48 |
+ rm -rf *.o webfuzzer core |
49 |
|
50 |
diff --git a/net-analyzer/webfuzzer/files/webfuzzer-0.2.0-fno-common.patch b/net-analyzer/webfuzzer/files/webfuzzer-0.2.0-fno-common.patch |
51 |
new file mode 100644 |
52 |
index 00000000000..ca40c4ee4f8 |
53 |
--- /dev/null |
54 |
+++ b/net-analyzer/webfuzzer/files/webfuzzer-0.2.0-fno-common.patch |
55 |
@@ -0,0 +1,37 @@ |
56 |
+--- a/webfuzzer.h |
57 |
++++ b/webfuzzer.h |
58 |
+@@ -30,11 +30,11 @@ |
59 |
+ /** |
60 |
+ ** GLOBAL HASHTABLES |
61 |
+ **/ |
62 |
+-struct node * HTlinks[ HT_SIZE ]; |
63 |
+-struct node * HTforms[ HT_SIZE ]; |
64 |
+-struct node * HTusers[ HT_SIZE ]; |
65 |
+-struct node * HTtools[ HT_SIZE ]; |
66 |
+-struct node * HTcookies[ HT_SIZE ]; |
67 |
++extern struct node * HTlinks[ HT_SIZE ]; |
68 |
++extern struct node * HTforms[ HT_SIZE ]; |
69 |
++extern struct node * HTusers[ HT_SIZE ]; |
70 |
++extern struct node * HTtools[ HT_SIZE ]; |
71 |
++extern struct node * HTcookies[ HT_SIZE ]; |
72 |
+ |
73 |
+ #define VERSION "0.2.0" |
74 |
+ #define BANNER GREEN "Webfuzzer " DEF VERSION " (c) gunzip" |
75 |
+--- a/webfuzzer.c |
76 |
++++ b/webfuzzer.c |
77 |
+@@ -29,6 +29,15 @@ |
78 |
+ #include "technic.h" |
79 |
+ |
80 |
+ /** |
81 |
++ ** GLOBAL HASHTABLES |
82 |
++ **/ |
83 |
++struct node * HTlinks[ HT_SIZE ]; |
84 |
++struct node * HTforms[ HT_SIZE ]; |
85 |
++struct node * HTusers[ HT_SIZE ]; |
86 |
++struct node * HTtools[ HT_SIZE ]; |
87 |
++struct node * HTcookies[ HT_SIZE ]; |
88 |
++ |
89 |
++/** |
90 |
+ ** PROTOTYPES |
91 |
+ **/ |
92 |
+ |
93 |
|
94 |
diff --git a/net-analyzer/webfuzzer/webfuzzer-0.2.0-r2.ebuild b/net-analyzer/webfuzzer/webfuzzer-0.2.0-r2.ebuild |
95 |
new file mode 100644 |
96 |
index 00000000000..66622a2b52d |
97 |
--- /dev/null |
98 |
+++ b/net-analyzer/webfuzzer/webfuzzer-0.2.0-r2.ebuild |
99 |
@@ -0,0 +1,28 @@ |
100 |
+# Copyright 1999-2020 Gentoo Authors |
101 |
+# Distributed under the terms of the GNU General Public License v2 |
102 |
+ |
103 |
+EAPI=7 |
104 |
+inherit toolchain-funcs |
105 |
+ |
106 |
+DESCRIPTION="Poor man's web vulnerability scanner" |
107 |
+HOMEPAGE="http://gunzip.altervista.org/g.php?f=projects" |
108 |
+SRC_URI="http://gunzip.altervista.org/webfuzzer/webfuzzer-${PV}.tar.gz" |
109 |
+ |
110 |
+LICENSE="GPL-2" |
111 |
+SLOT="0" |
112 |
+KEYWORDS="~amd64 ~x86" |
113 |
+ |
114 |
+S=${WORKDIR}/devel |
115 |
+PATCHES=( |
116 |
+ "${FILESDIR}"/${P}-flags.patch |
117 |
+ "${FILESDIR}"/${P}-fno-common.patch |
118 |
+) |
119 |
+ |
120 |
+src_compile() { |
121 |
+ emake CC=$(tc-getCC) |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ dodoc CHANGES README TODO |
126 |
+ dobin webfuzzer |
127 |
+} |