1 |
commit: 7efd65718df37c2b2cb4aa8427075ae12b50f5ae |
2 |
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 17 11:07:00 2019 +0000 |
4 |
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 17 11:07:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7efd6571 |
7 |
|
8 |
app-shells/rrs: bump EAPI to 7, fix building with openssl 1.1 |
9 |
|
10 |
Reported-by: Toralf Förster <toralf <AT> gentoo.org> |
11 |
Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org> |
12 |
Closes: https://bugs.gentoo.org/674266 |
13 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
14 |
|
15 |
.../rrs/files/rrs-1.70-drop-old-ssl-algos.patch | 64 ++++++++++++++++++++++ |
16 |
app-shells/rrs/rrs-1.70-r2.ebuild | 10 +++- |
17 |
2 files changed, 71 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/app-shells/rrs/files/rrs-1.70-drop-old-ssl-algos.patch b/app-shells/rrs/files/rrs-1.70-drop-old-ssl-algos.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..ab7b43e6367 |
22 |
--- /dev/null |
23 |
+++ b/app-shells/rrs/files/rrs-1.70-drop-old-ssl-algos.patch |
24 |
@@ -0,0 +1,64 @@ |
25 |
+--- a/rrs.c 2019-01-17 12:36:21.134181933 +0300 |
26 |
++++ b/rrs.c 2019-01-17 12:37:56.133181353 +0300 |
27 |
+@@ -186,11 +186,9 @@ |
28 |
+ " can change it with, e.g., --ssl=tlsv1 for instance, or\n" |
29 |
+ " the -S option.\n" |
30 |
+ " -S, --ssl=method Choose OpenSSL protocol (case doesn't matter):\n" |
31 |
+-" -S SSLv2\n" |
32 |
+-" -S SSLv3\n" |
33 |
+ " -S TLSv1\n" |
34 |
+ " If you use --ssl instead of -S, please remember to use\n" |
35 |
+-" the equal sign, e.g., --ssl=sslv3.\n" |
36 |
++" the equal sign, e.g., --ssl=tlsv1.\n" |
37 |
+ " -P, --pem file Specify private key and certificate (public key) file.\n" |
38 |
+ " The file should begin with a PEM encoded private key\n" |
39 |
+ " followed by a PEM encoded certificate. Both the\n" |
40 |
+@@ -336,8 +334,8 @@ |
41 |
+ /****** various other global variables ******/ |
42 |
+ |
43 |
+ #if ! defined(WITHOUT_SSL) |
44 |
+- enum { none, TLSv1, SSLv3, SSLv2 } rrs_ssl = none; |
45 |
+- char *sslprotocols[] = { "none", "TLSv1", "SSLv3", "SSLv2" }; |
46 |
++ enum { none, TLSv1 } rrs_ssl = none; |
47 |
++ char *sslprotocols[] = { "none", "TLSv1" }; |
48 |
+ #endif |
49 |
+ |
50 |
+ unsigned int sourceport = 0, |
51 |
+@@ -1826,11 +1824,7 @@ |
52 |
+ } |
53 |
+ rrs_ssl = TLSv1; |
54 |
+ if (optarg) { |
55 |
+- if (!strcasecmp(optarg, "SSLv2")) { |
56 |
+- rrs_ssl = SSLv2; |
57 |
+- } else if (!strcasecmp(optarg, "SSLv3")) { |
58 |
+- rrs_ssl = SSLv3; |
59 |
+- } else if (!strcasecmp(optarg, "TLSv1")) { |
60 |
++ if (!strcasecmp(optarg, "TLSv1")) { |
61 |
+ rrs_ssl = TLSv1; |
62 |
+ } else { |
63 |
+ fprintf(stderr, "[?] not supported ssl protocol: %s\n", optarg); |
64 |
+@@ -1981,22 +1975,14 @@ |
65 |
+ SSL_load_error_strings(); |
66 |
+ |
67 |
+ if (rrs_listen) { |
68 |
+- if (rrs_ssl == SSLv2) { |
69 |
+- sslmethod = SSLv2_server_method(); |
70 |
+- } else if (rrs_ssl == SSLv3) { |
71 |
+- sslmethod = SSLv3_server_method(); |
72 |
+- } else if (rrs_ssl == TLSv1) { |
73 |
++ if (rrs_ssl == TLSv1) { |
74 |
+ sslmethod = TLSv1_server_method(); |
75 |
+ } else { |
76 |
+ fprintf(stderr, "[?] huh? rrs_ssl = 0x%08x\n", (unsigned int)sslmethod); |
77 |
+ return err_generic; |
78 |
+ } |
79 |
+ } else { |
80 |
+- if (rrs_ssl == SSLv2) { |
81 |
+- sslmethod = SSLv2_client_method(); |
82 |
+- } else if (rrs_ssl == SSLv3) { |
83 |
+- sslmethod = SSLv3_client_method(); |
84 |
+- } else if (rrs_ssl == TLSv1) { |
85 |
++ if (rrs_ssl == TLSv1) { |
86 |
+ sslmethod = TLSv1_client_method(); |
87 |
+ } else { |
88 |
+ fprintf(stderr, "[?] huh? rrs_ssl = 0x%08x\n", (unsigned int)sslmethod); |
89 |
|
90 |
diff --git a/app-shells/rrs/rrs-1.70-r2.ebuild b/app-shells/rrs/rrs-1.70-r2.ebuild |
91 |
index efc3d8c7394..0af183bb953 100644 |
92 |
--- a/app-shells/rrs/rrs-1.70-r2.ebuild |
93 |
+++ b/app-shells/rrs/rrs-1.70-r2.ebuild |
94 |
@@ -1,7 +1,7 @@ |
95 |
-# Copyright 1999-2018 Gentoo Foundation |
96 |
+# Copyright 1999-2019 Gentoo Foundation |
97 |
# Distributed under the terms of the GNU General Public License v2 |
98 |
|
99 |
-EAPI=6 |
100 |
+EAPI=7 |
101 |
|
102 |
inherit toolchain-funcs |
103 |
|
104 |
@@ -12,12 +12,16 @@ SRC_URI="http://www.cycom.se/uploads/36/19/${P}.tar.gz" |
105 |
LICENSE="MIT" |
106 |
SLOT="0" |
107 |
KEYWORDS="amd64 ppc x86" |
108 |
+ |
109 |
IUSE="ssl" |
110 |
|
111 |
DEPEND="ssl? ( dev-libs/openssl:0= )" |
112 |
RDEPEND="${DEPEND}" |
113 |
|
114 |
-PATCHES=( "${FILESDIR}"/"${P}"-asneeded.patch ) |
115 |
+PATCHES=( |
116 |
+ "${FILESDIR}/${P}-asneeded.patch" |
117 |
+ "${FILESDIR}/${P}-drop-old-ssl-algos.patch" |
118 |
+) |
119 |
|
120 |
src_prepare() { |
121 |
default |