1 |
commit: eb68df8871ef3e986e2e6683a30632a21b22195c |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Feb 1 18:06:48 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 9 16:59:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb68df88 |
7 |
|
8 |
net-wireless/wepdecrypt: Fix build with gcc-10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707456 |
11 |
Closes: https://bugs.gentoo.org/731722 |
12 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
13 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
14 |
|
15 |
.../wepdecrypt/files/wepdecrypt-0.8-buffer.patch | 4 ++-- |
16 |
.../wepdecrypt/files/wepdecrypt-0.8-build.patch | 5 ++--- |
17 |
.../wepdecrypt/files/wepdecrypt-0.8-dyn.patch | 2 -- |
18 |
.../wepdecrypt/files/wepdecrypt-0.8-fltk.patch | 5 ----- |
19 |
.../files/wepdecrypt-0.8-fno-common.patch | 12 ++++++++++++ |
20 |
net-wireless/wepdecrypt/wepdecrypt-0.8-r2.ebuild | 22 ++++++++++++++++------ |
21 |
6 files changed, 32 insertions(+), 18 deletions(-) |
22 |
|
23 |
diff --git a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch |
24 |
index 4b8fb8d1223..097979158af 100644 |
25 |
--- a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch |
26 |
+++ b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch |
27 |
@@ -1,5 +1,5 @@ |
28 |
---- a/src/wepclient.c 2006-07-08 19:48:08.000000000 -0400 |
29 |
-+++ b/src/wepclient.c 2010-12-10 13:16:32.000000000 -0500 |
30 |
+--- a/src/wepclient.c |
31 |
++++ b/src/wepclient.c |
32 |
@@ -75,7 +75,7 @@ |
33 |
int server_connection(unsigned char * server_host, int port, char * packet_file, unsigned char * init_key, unsigned char * end_key, unsigned char * decrypted_key, unsigned char * bssid, unsigned char * mode ,int option){ |
34 |
int sd, read_bytes, write_bytes, i, fd; |
35 |
|
36 |
diff --git a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-build.patch b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-build.patch |
37 |
index 5c13f87a740..fb38d95355e 100644 |
38 |
--- a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-build.patch |
39 |
+++ b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-build.patch |
40 |
@@ -1,6 +1,5 @@ |
41 |
-diff -urNp wepdecrypt-0.8.org/src/Makefile wepdecrypt-0.8/src/Makefile |
42 |
---- wepdecrypt-0.8.org/src/Makefile 2006-07-09 02:48:08.000000000 +0300 |
43 |
-+++ wepdecrypt-0.8/src/Makefile 2007-11-10 18:36:25.000000000 +0200 |
44 |
+--- a/src/Makefile |
45 |
++++ b/src/Makefile |
46 |
@@ -6,15 +6,12 @@ include ../config.mak |
47 |
wepdecrypt: wepdecrypt.o rc4.o wepfilter.o log.o modes.o misc.o verify.o keygen.o localkeygen.o wepserver.o wepclient.o md5_digest.o |
48 |
$(LD) $(LDFLAGS) -o $@ wepdecrypt.o rc4.o wepfilter.o log.o \ |
49 |
|
50 |
diff --git a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-dyn.patch b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-dyn.patch |
51 |
index 6fcdc578c72..fab8fdf75e5 100644 |
52 |
--- a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-dyn.patch |
53 |
+++ b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-dyn.patch |
54 |
@@ -1,5 +1,3 @@ |
55 |
-diff --git a/src/Makefile b/src/Makefile |
56 |
-index a779cb7..f32e65e 100644 |
57 |
--- a/src/Makefile |
58 |
+++ b/src/Makefile |
59 |
@@ -8,7 +8,7 @@ wepdecrypt: wepdecrypt.o rc4.o wepfilter.o log.o modes.o misc.o verify.o keygen |
60 |
|
61 |
diff --git a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-fltk.patch b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-fltk.patch |
62 |
index 149c3eae32a..df2aa8d27bd 100644 |
63 |
--- a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-fltk.patch |
64 |
+++ b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-fltk.patch |
65 |
@@ -1,8 +1,3 @@ |
66 |
- configure | 2 +- |
67 |
- 1 files changed, 1 insertions(+), 1 deletions(-) |
68 |
- |
69 |
-diff --git a/configure b/configure |
70 |
-index 12fa395..258b157 100755 |
71 |
--- a/configure |
72 |
+++ b/configure |
73 |
@@ -2915,7 +2915,7 @@ fi |
74 |
|
75 |
diff --git a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-fno-common.patch b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-fno-common.patch |
76 |
new file mode 100644 |
77 |
index 00000000000..dd689b18d77 |
78 |
--- /dev/null |
79 |
+++ b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-fno-common.patch |
80 |
@@ -0,0 +1,12 @@ |
81 |
+https://bugs.gentoo.org/707456 |
82 |
+--- a/src/wepfilter.c |
83 |
++++ b/src/wepfilter.c |
84 |
+@@ -30,7 +30,7 @@ |
85 |
+ #include "config.h" |
86 |
+ #include "misc.h" |
87 |
+ |
88 |
+-int server_mode; |
89 |
++extern int server_mode; |
90 |
+ static int capture_successfull = 0; |
91 |
+ static wlan_packet_list* head = NULL; |
92 |
+ |
93 |
|
94 |
diff --git a/net-wireless/wepdecrypt/wepdecrypt-0.8-r2.ebuild b/net-wireless/wepdecrypt/wepdecrypt-0.8-r2.ebuild |
95 |
index c7c1c62bc34..7ea4ad0436c 100644 |
96 |
--- a/net-wireless/wepdecrypt/wepdecrypt-0.8-r2.ebuild |
97 |
+++ b/net-wireless/wepdecrypt/wepdecrypt-0.8-r2.ebuild |
98 |
@@ -11,6 +11,7 @@ LICENSE="GPL-2" |
99 |
SLOT="0" |
100 |
KEYWORDS="~amd64 ~ppc ~x86" |
101 |
IUSE="X" |
102 |
+ |
103 |
RDEPEND=" |
104 |
dev-libs/openssl:= |
105 |
net-libs/libpcap |
106 |
@@ -19,19 +20,28 @@ RDEPEND=" |
107 |
DEPEND="${RDEPEND}" |
108 |
|
109 |
PATCHES=( |
110 |
- "${FILESDIR}/${P}-build.patch" |
111 |
- "${FILESDIR}/${P}-fltk.patch" |
112 |
- "${FILESDIR}/${P}-buffer.patch" # bug#340148. |
113 |
- "${FILESDIR}/${P}-dyn.patch" |
114 |
+ "${FILESDIR}"/${P}-build.patch |
115 |
+ "${FILESDIR}"/${P}-fltk.patch |
116 |
+ "${FILESDIR}"/${P}-buffer.patch # bug#340148. |
117 |
+ "${FILESDIR}"/${P}-dyn.patch |
118 |
+ "${FILESDIR}"/${P}-fno-common.patch |
119 |
) |
120 |
|
121 |
src_prepare() { |
122 |
default |
123 |
|
124 |
- sed -i 's/make/$(MAKE)/g' Makefile || die "Sed failed" |
125 |
+ sed -i \ |
126 |
+ -e 's/make/$(MAKE)/g' \ |
127 |
+ -e 's/wepdecrypt-$(VERSION)/${PF}/g' Makefile || die |
128 |
} |
129 |
|
130 |
src_configure() { |
131 |
econf \ |
132 |
- $(use X || echo --disable-gui) |
133 |
+ $(use X || echo --disable-gui) \ |
134 |
+ --infodir=/usr/share/doc/${PF} |
135 |
+} |
136 |
+ |
137 |
+src_install() { |
138 |
+ default |
139 |
+ docompress -x /usr/share/man/man1 |
140 |
} |