Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/kannel/files/
Date: Sat, 09 Feb 2019 20:12:50
Message-Id: 1549743149.02d6130cb369e38a632ca980ed84c4ae6ceaeb2d.bman@gentoo
1 commit: 02d6130cb369e38a632ca980ed84c4ae6ceaeb2d
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Jan 11 17:58:39 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 9 20:12:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02d6130c
7
8 app-mobilephone/kannel: remove unused patch
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/10807
12 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
13
14 .../files/kannel-1.4.3-custom-wap-ports.patch | 346 ---------------------
15 1 file changed, 346 deletions(-)
16
17 diff --git a/app-mobilephone/kannel/files/kannel-1.4.3-custom-wap-ports.patch b/app-mobilephone/kannel/files/kannel-1.4.3-custom-wap-ports.patch
18 deleted file mode 100644
19 index e1992b08319..00000000000
20 --- a/app-mobilephone/kannel/files/kannel-1.4.3-custom-wap-ports.patch
21 +++ /dev/null
22 @@ -1,346 +0,0 @@
23 -diff -Nru gateway-1.4.3.orig/gw/bb_udp.c gateway-1.4.3/gw/bb_udp.c
24 ---- gateway-1.4.3.orig/gw/bb_udp.c 2009-01-12 16:46:56.000000000 +0000
25 -+++ gateway-1.4.3/gw/bb_udp.c 2009-03-01 14:20:38.000000000 +0000
26 -@@ -78,7 +78,7 @@
27 - #include "gwlib/gwlib.h"
28 - #include "msg.h"
29 - #include "bearerbox.h"
30 --
31 -+#include "custports.h"
32 - /* passed from bearerbox core */
33 -
34 - extern volatile sig_atomic_t bb_status;
35 -@@ -352,13 +352,13 @@
36 - while (gwlist_len(ifs) > 0) {
37 - iface = gwlist_extract_first(ifs);
38 - info(0, "Adding interface %s", octstr_get_cstr(iface));
39 -- add_service(9200, octstr_get_cstr(iface)); /* wsp */
40 -- add_service(9201, octstr_get_cstr(iface)); /* wsp/wtp */
41 -+ add_service(port_wsp, octstr_get_cstr(iface)); /* wsp */
42 -+ add_service(port_wtp, octstr_get_cstr(iface)); /* wsp/wtp */
43 -
44 - #ifdef HAVE_WTLS_OPENSSL
45 - if (allow_wtls) {
46 -- add_service(9202, octstr_get_cstr(iface)); /* wsp/wtls */
47 -- add_service(9203, octstr_get_cstr(iface)); /* wsp/wtp/wtls */
48 -+ add_service(port_wsps, octstr_get_cstr(iface)); /* wsp/wtls */
49 -+ add_service(port_wtps, octstr_get_cstr(iface)); /* wsp/wtp/wtls */
50 - }
51 - #else
52 - if (allow_wtls)
53 -diff -Nru gateway-1.4.3.orig/gw/bearerbox.c gateway-1.4.3/gw/bearerbox.c
54 ---- gateway-1.4.3.orig/gw/bearerbox.c 2009-01-12 16:46:56.000000000 +0000
55 -+++ gateway-1.4.3/gw/bearerbox.c 2009-03-01 14:23:05.000000000 +0000
56 -@@ -78,6 +78,7 @@
57 - #include "shared.h"
58 - #include "dlr.h"
59 - #include "load.h"
60 -+#include "custports.h"
61 -
62 - /* global variables; included to other modules as needed */
63 -
64 -@@ -365,6 +366,7 @@
65 - int ssl_enabled = 0;
66 - #endif /* HAVE_LIBSSL */
67 -
68 -+ ReadCustomPorts(cfg);
69 - /* defaults: use localtime and markers for access-log */
70 - lf = m = 1;
71 -
72 -diff -Nru gateway-1.4.3.orig/gw/custports.c gateway-1.4.3/gw/custports.c
73 ---- gateway-1.4.3.orig/gw/custports.c 1970-01-01 00:00:00.000000000 +0000
74 -+++ gateway-1.4.3/gw/custports.c 2009-03-01 14:20:38.000000000 +0000
75 -@@ -0,0 +1,88 @@
76 -+/* ====================================================================
77 -+ * The Kannel Software License, Version 1.0
78 -+ *
79 -+ * Copyright (c) 2001-2004 Kannel Group
80 -+ * Copyright (c) 1998-2001 WapIT Ltd.
81 -+ * All rights reserved.
82 -+ *
83 -+ * Redistribution and use in source and binary forms, with or without
84 -+ * modification, are permitted provided that the following conditions
85 -+ * are met:
86 -+ *
87 -+ * 1. Redistributions of source code must retain the above copyright
88 -+ * notice, this list of conditions and the following disclaimer.
89 -+ *
90 -+ * 2. Redistributions in binary form must reproduce the above copyright
91 -+ * notice, this list of conditions and the following disclaimer in
92 -+ * the documentation and/or other materials provided with the
93 -+ * distribution.
94 -+ *
95 -+ * 3. The end-user documentation included with the redistribution,
96 -+ * if any, must include the following acknowledgment:
97 -+ * "This product includes software developed by the
98 -+ * Kannel Group (http://www.kannel.org/)."
99 -+ * Alternately, this acknowledgment may appear in the software itself,
100 -+ * if and wherever such third-party acknowledgments normally appear.
101 -+ *
102 -+ * 4. The names "Kannel" and "Kannel Group" must not be used to
103 -+ * endorse or promote products derived from this software without
104 -+ * prior written permission. For written permission, please
105 -+ * contact org@××××××.org.
106 -+ *
107 -+ * 5. Products derived from this software may not be called "Kannel",
108 -+ * nor may "Kannel" appear in their name, without prior written
109 -+ * permission of the Kannel Group.
110 -+ *
111 -+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
112 -+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
113 -+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
114 -+ * DISCLAIMED. IN NO EVENT SHALL THE KANNEL GROUP OR ITS CONTRIBUTORS
115 -+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
116 -+ * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
117 -+ * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
118 -+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
119 -+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
120 -+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
121 -+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
122 -+ * ====================================================================
123 -+ *
124 -+ * This software consists of voluntary contributions made by many
125 -+ * individuals on behalf of the Kannel Group. For more information on
126 -+ * the Kannel Group, please see <http://www.kannel.org/>.
127 -+ *
128 -+ * Portions of this software are based upon software originally written at
129 -+ * WapIT Ltd., Helsinki, Finland for the Kannel project.
130 -+ */
131 -+
132 -+/*
133 -+ * gw/custports.c
134 -+ *
135 -+ * Implementation of reading custom UDP ports used by wapbox
136 -+ *
137 -+ * Lubor Kolar <kolar@××××××.cz>, 14.03.2006
138 -+ */
139 -+
140 -+#include <custports.h>
141 -+
142 -+long port_wsp = 9200; // connectionless default
143 -+long port_wtp = 9201; // connection-oriented default
144 -+long port_wsps = 9202; // connectionless secure default
145 -+long port_wtps = 9203; // connection-oriented secure
146 -+
147 -+
148 -+void ReadCustomPorts(Cfg *config)
149 -+{
150 -+ CfgGroup *grp;
151 -+ grp = cfg_get_single_group(config, octstr_imm("wapbox"));
152 -+ if(grp == NULL)
153 -+ return;
154 -+
155 -+ if(cfg_get_integer(&port_wsp, grp, octstr_imm("wsp-port")) != -1)
156 -+ info(0, "Using custom WSP port %ld", port_wsp);
157 -+ if(cfg_get_integer(&port_wtp, grp, octstr_imm("wtp-port")) != -1)
158 -+ info(0, "Using custom WSP/WTP port %ld", port_wtp);
159 -+ if(cfg_get_integer(&port_wsps, grp, octstr_imm("wsps-port")) != -1)
160 -+ info(0, "Using custom WSP/WTLS port %ld", port_wsps);
161 -+ if(cfg_get_integer(&port_wtps, grp, octstr_imm("wtps-port")) != -1)
162 -+ info(0, "Using custom WSP/WTP/WTLS port %ld", port_wtps);
163 -+}
164 -diff -Nru gateway-1.4.3.orig/gw/custports.h gateway-1.4.3/gw/custports.h
165 ---- gateway-1.4.3.orig/gw/custports.h 1970-01-01 00:00:00.000000000 +0000
166 -+++ gateway-1.4.3/gw/custports.h 2009-03-01 14:20:38.000000000 +0000
167 -@@ -0,0 +1,77 @@
168 -+/* ====================================================================
169 -+ * The Kannel Software License, Version 1.0
170 -+ *
171 -+ * Copyright (c) 2001-2004 Kannel Group
172 -+ * Copyright (c) 1998-2001 WapIT Ltd.
173 -+ * All rights reserved.
174 -+ *
175 -+ * Redistribution and use in source and binary forms, with or without
176 -+ * modification, are permitted provided that the following conditions
177 -+ * are met:
178 -+ *
179 -+ * 1. Redistributions of source code must retain the above copyright
180 -+ * notice, this list of conditions and the following disclaimer.
181 -+ *
182 -+ * 2. Redistributions in binary form must reproduce the above copyright
183 -+ * notice, this list of conditions and the following disclaimer in
184 -+ * the documentation and/or other materials provided with the
185 -+ * distribution.
186 -+ *
187 -+ * 3. The end-user documentation included with the redistribution,
188 -+ * if any, must include the following acknowledgment:
189 -+ * "This product includes software developed by the
190 -+ * Kannel Group (http://www.kannel.org/)."
191 -+ * Alternately, this acknowledgment may appear in the software itself,
192 -+ * if and wherever such third-party acknowledgments normally appear.
193 -+ *
194 -+ * 4. The names "Kannel" and "Kannel Group" must not be used to
195 -+ * endorse or promote products derived from this software without
196 -+ * prior written permission. For written permission, please
197 -+ * contact org@××××××.org.
198 -+ *
199 -+ * 5. Products derived from this software may not be called "Kannel",
200 -+ * nor may "Kannel" appear in their name, without prior written
201 -+ * permission of the Kannel Group.
202 -+ *
203 -+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
204 -+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
205 -+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
206 -+ * DISCLAIMED. IN NO EVENT SHALL THE KANNEL GROUP OR ITS CONTRIBUTORS
207 -+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
208 -+ * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
209 -+ * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
210 -+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
211 -+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
212 -+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
213 -+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
214 -+ * ====================================================================
215 -+ *
216 -+ * This software consists of voluntary contributions made by many
217 -+ * individuals on behalf of the Kannel Group. For more information on
218 -+ * the Kannel Group, please see <http://www.kannel.org/>.
219 -+ *
220 -+ * Portions of this software are based upon software originally written at
221 -+ * WapIT Ltd., Helsinki, Finland for the Kannel project.
222 -+ */
223 -+
224 -+/*
225 -+ * gw/custports.h
226 -+ *
227 -+ * Implementation of wapbox custom UDP ports)
228 -+ *
229 -+ * Lubor Kolar <kolar@××××××.cz>, 14.03.2006
230 -+ */
231 -+
232 -+#ifndef CUSTPORTS_H
233 -+#define CUSTPORTS_H
234 -+
235 -+#include "gwlib/gwlib.h"
236 -+
237 -+extern long port_wsp; // connectionless
238 -+extern long port_wtp; // connection-oriented
239 -+extern long port_wsps; // connectionless secure
240 -+extern long port_wtps; // connection-oriented secure
241 -+
242 -+void ReadCustomPorts(Cfg *config);
243 -+#endif /* CUSTPORTS_H */
244 -+
245 -diff -Nru gateway-1.4.3.orig/gw/wapbox.c gateway-1.4.3/gw/wapbox.c
246 ---- gateway-1.4.3.orig/gw/wapbox.c 2009-01-12 16:46:57.000000000 +0000
247 -+++ gateway-1.4.3/gw/wapbox.c 2009-03-01 14:20:38.000000000 +0000
248 -@@ -84,17 +84,11 @@
249 - #include "gwlib/pki.h"
250 - #endif
251 - #include "radius/radius_acct.h"
252 -+#include "custports.h"
253 -
254 - static void config_reload(int reload);
255 - static long logfilelevel=-1;
256 -
257 --enum {
258 -- CONNECTIONLESS_PORT = 9200,
259 -- CONNECTION_ORIENTED_PORT = 9201,
260 -- WTLS_CONNECTIONLESS_PORT = 9202,
261 -- WTLS_CONNECTION_ORIENTED_PORT = 9203
262 --};
263 --
264 - enum { DEFAULT_TIMER_FREQ = 1};
265 -
266 - static Octstr *bearerbox_host;
267 -@@ -131,6 +125,8 @@
268 -
269 - cfg_dump(cfg);
270 -
271 -+ ReadCustomPorts(cfg);
272 -+
273 - /*
274 - * Extract info from the core group.
275 - */
276 -@@ -776,9 +772,9 @@
277 - * XXXX here should be suspend/resume, add RSN
278 - */
279 - } else if (msg_type(msg) == wdp_datagram) {
280 -- switch (msg->wdp_datagram.destination_port) {
281 -- case CONNECTIONLESS_PORT:
282 -- case CONNECTION_ORIENTED_PORT:
283 -+ if(msg->wdp_datagram.destination_port == port_wsp
284 -+ || msg->wdp_datagram.destination_port == port_wtp)
285 -+ {
286 - dgram = wap_event_create(T_DUnitdata_Ind);
287 - dgram->u.T_DUnitdata_Ind.addr_tuple = wap_addr_tuple_create(
288 - msg->wdp_datagram.source_address,
289 -@@ -789,19 +785,22 @@
290 - msg->wdp_datagram.user_data = NULL;
291 -
292 - wap_dispatch_datagram(dgram);
293 -- break;
294 -- case WTLS_CONNECTIONLESS_PORT:
295 -- case WTLS_CONNECTION_ORIENTED_PORT:
296 -+ }
297 -+ else
298 -+ if(msg->wdp_datagram.destination_port == port_wsps
299 -+ || msg->wdp_datagram.destination_port == port_wtps)
300 -+ {
301 - #if (HAVE_WTLS_OPENSSL)
302 - dgram = wtls_unpack_wdp_datagram(msg);
303 - if (dgram != NULL)
304 - wtls_dispatch_event(dgram);
305 - #endif
306 -- break;
307 -- default:
308 -+ }
309 -+ else
310 -+ {
311 - panic(0,"Bad packet received! This shouldn't happen!");
312 - break;
313 -- }
314 -+ }
315 - } else {
316 - warning(0, "Received other message than wdp/admin, ignoring!");
317 - }
318 -diff -Nru gateway-1.4.3.orig/gw/wap_push_ppg.c gateway-1.4.3/gw/wap_push_ppg.c
319 ---- gateway-1.4.3.orig/gw/wap_push_ppg.c 2009-01-12 16:46:56.000000000 +0000
320 -+++ gateway-1.4.3/gw/wap_push_ppg.c 2009-03-01 14:20:38.000000000 +0000
321 -@@ -88,6 +88,7 @@
322 - #include "wap_push_pap_compiler.h"
323 - #include "wap_push_pap_mime.h"
324 - #include "wap_push_ppg_pushuser.h"
325 -+#include "custports.h"
326 -
327 - enum {
328 - TIME_EXPIRED = 0,
329 -@@ -1779,10 +1780,10 @@
330 -
331 - if (!cless_accepted) {
332 - cliport = CONNECTED_CLIPORT;
333 -- servport = CONNECTED_SERVPORT;
334 -+ servport = port_wtp;
335 - } else {
336 - cliport = CONNECTIONLESS_PUSH_CLIPORT;
337 -- servport = CONNECTIONLESS_SERVPORT;
338 -+ servport = port_wsp;
339 - }
340 -
341 - address_type = (**e).u.Push_Message.address_type;
342 -diff -Nru gateway-1.4.3.orig/gw/wap_push_ppg.h gateway-1.4.3/gw/wap_push_ppg.h
343 ---- gateway-1.4.3.orig/gw/wap_push_ppg.h 2009-01-12 16:46:57.000000000 +0000
344 -+++ gateway-1.4.3/gw/wap_push_ppg.h 2009-03-01 14:20:38.000000000 +0000
345 -@@ -167,9 +167,7 @@
346 - */
347 - enum {
348 - CONNECTIONLESS_PUSH_CLIPORT = 2948,
349 -- CONNECTIONLESS_SERVPORT = 9200,
350 - CONNECTED_CLIPORT = 9209,
351 -- CONNECTED_SERVPORT = 9201
352 - };
353 -
354 - struct PPGSessionMachine {
355 -diff -Nru gateway-1.4.3.orig/gwlib/cfg.def gateway-1.4.3/gwlib/cfg.def
356 ---- gateway-1.4.3.orig/gwlib/cfg.def 2009-01-12 16:46:55.000000000 +0000
357 -+++ gateway-1.4.3/gwlib/cfg.def 2009-03-01 14:20:38.000000000 +0000
358 -@@ -159,6 +159,10 @@
359 - OCTSTR(concatenation)
360 - OCTSTR(max-messages)
361 - OCTSTR(wml-strict)
362 -+ OCTSTR(wsp-port)
363 -+ OCTSTR(wtp-port)
364 -+ OCTSTR(wsps-port)
365 -+ OCTSTR(wtps-port)
366 - )
367 -
368 -