Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/gateway6/files: gateway6-5.1-gcc43.patch gw6c.conf gateway6-6.0_beta4-no-template-validation.patch gw6c.rc
Date: Wed, 03 Jun 2009 15:06:36
Message-Id: E1MBs30-0005VO-8j@stork.gentoo.org
1 voyageur 09/06/03 15:06:34
2
3 Added: gateway6-5.1-gcc43.patch gw6c.conf
4 gateway6-6.0_beta4-no-template-validation.patch
5 gw6c.rc
6 Log:
7 Package move from freenet6 to gateway6, bug #267107
8 (Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.1 net-misc/gateway6/files/gateway6-5.1-gcc43.patch
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/gateway6/files/gateway6-5.1-gcc43.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/gateway6/files/gateway6-5.1-gcc43.patch?rev=1.1&content-type=text/plain
15
16 Index: gateway6-5.1-gcc43.patch
17 ===================================================================
18
19
20 --- gw6c-messaging/src/clientmsgsender.cc.orig 2008-06-16 15:28:00.000000000 +0000
21 +++ gw6c-messaging/src/clientmsgsender.cc 2008-06-16 15:28:11.000000000 +0000
22 @@ -19,6 +19,8 @@
23 // **************************************************************************
24 #include <gw6cmessaging/clientmsgsender.h>
25 #include <assert.h>
26 +#include <cstring>
27 +
28
29
30 namespace gw6cmessaging
31
32 --- gw6c-messaging/src/servermsgsender.cc.orig 2008-06-16 15:31:47.000000000 +0000
33 +++ gw6c-messaging/src/servermsgsender.cc 2008-06-16 15:31:56.000000000 +0000
34 @@ -19,6 +19,8 @@
35 // **************************************************************************
36 #include <gw6cmessaging/servermsgsender.h>
37 #include <assert.h>
38 +#include <cstring>
39 +
40
41
42 #ifdef WIN32
43
44 --- gw6c-config/src/namevalueparser.cc.orig 2008-06-16 15:32:41.000000000 +0000
45 +++ gw6c-config/src/namevalueparser.cc 2008-06-16 15:32:51.000000000 +0000
46 @@ -25,6 +25,8 @@
47 #include <fstream>
48 #include <time.h>
49 #include <assert.h>
50 +#include <cstring>
51 +
52
53
54 #define NV_SEPARATOR "=" // Name=value separator
55
56 --- gw6c-config/src/gw6cconfig.cc.orig 2008-06-16 15:33:33.000000000 +0000
57 +++ gw6c-config/src/gw6cconfig.cc 2008-06-16 15:33:43.000000000 +0000
58 @@ -25,6 +25,8 @@
59 #include <gw6cconfig/gw6cuistrings.h>
60 #include <assert.h>
61 #include <string>
62 +#include <cstring>
63 +#include <cstdlib>
64
65 // Configuration data variable NAMES
66
67 --- gw6c-config/src/gw6cvalidation.cc.orig 2008-06-16 15:34:19.000000000 +0000
68 +++ gw6c-config/src/gw6cvalidation.cc 2008-06-16 15:34:29.000000000 +0000
69 @@ -18,6 +18,8 @@
70 // __________________________________________________________________________
71 // **************************************************************************
72 #include <gw6cconfig/gw6cvalidation.h>
73 +#include <cstring>
74 +#include <cstdlib>
75
76 #ifdef WIN32
77
78 --- gw6c-config/src/gw6c_c_wrapper.cc.orig 2008-06-16 15:38:18.000000000 +0000
79 +++ gw6c-config/src/gw6c_c_wrapper.cc 2008-06-16 15:38:30.000000000 +0000
80 @@ -22,6 +22,9 @@
81 #include <gw6cconfig/gw6cuistrings.h>
82 using namespace gw6cconfig;
83 #include <assert.h>
84 +#include <cstring>
85 +#include <cstdlib>
86 +
87
88 #ifdef WIN32
89 #define strcasecmp _stricmp
90
91 --- gw6c-messaging/src/gw6c_c_wrapper.cc.orig 2008-06-16 15:39:04.000000000 +0000
92 +++ gw6c-messaging/src/gw6c_c_wrapper.cc 2008-06-16 15:39:20.000000000 +0000
93 @@ -17,6 +17,8 @@
94 // Creation Date: December 2006
95 // __________________________________________________________________________
96 // **************************************************************************
97 +
98 +#include <cstring>
99 #include <gw6cmessaging/gw6c_c_wrapper.h>
100 #include <gw6cmessaging/clientmsgdataretriever.h>
101 #include <gw6cmessaging/clientmessengerimpl.h>
102
103 --- gw6c-config/src/hap6devicemappingconfig.cc.orig 2008-06-16 15:40:58.000000000 +0000
104 +++ gw6c-config/src/hap6devicemappingconfig.cc 2008-06-16 15:41:09.000000000 +0000
105 @@ -22,6 +22,8 @@
106 #include <gw6cconfig/hap6devicemappingconfig.h>
107 #include <gw6cconfig/gw6cuistrings.h>
108 #include <assert.h>
109 +#include <cstring>
110 +
111
112
113 #ifdef WIN32
114
115 --- gw6c-config/src/hap6_devmap_c_wrap.cc.orig 2008-06-16 15:41:44.000000000 +0000
116 +++ gw6c-config/src/hap6_devmap_c_wrap.cc 2008-06-16 15:41:54.000000000 +0000
117 @@ -22,6 +22,8 @@
118 #include <gw6cconfig/gw6cuistrings.h>
119 using namespace gw6cconfig;
120 #include <assert.h>
121 +#include <cstdlib>
122 +#include <cstring>
123
124 #ifdef WIN32
125 #define strcasecmp _stricmp
126
127
128
129
130 1.1 net-misc/gateway6/files/gw6c.conf
131
132 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/gateway6/files/gw6c.conf?rev=1.1&view=markup
133 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/gateway6/files/gw6c.conf?rev=1.1&content-type=text/plain
134
135 Index: gw6c.conf
136 ===================================================================
137 #-----------------------------------------------------------------------------
138 # $Id: gw6c.conf,v 1.1 2009/06/03 15:06:34 voyageur Exp $
139 #-----------------------------------------------------------------------------
140
141 ########################## READ ME! ################################
142 #
143 # Welcome to the Gateway6 Client configuration file.
144 # In order to use the client, you need to modify the 'userid', 'passwd' and
145 # 'server' parameters below depending on which of these situations applies:
146 #
147 # 1. If you created a Freenet6 account, enter your userid and password below.
148 # Change the server name to "broker.freenet6.net" and auth_method to 'any'.
149 # 2. If you would like to use Freenet6 without creating an account,
150 # do not make any modifications and close this file.
151 # 3. If this software was provided by your ISP, enter the userid, password and
152 # server name provided by your ISP below.
153 #
154
155
156 ########################## BASIC CONFIGURATION ################################
157
158 #
159 # User Identification and Password:
160 # Specify your user name and password as provided by your ISP or Freenet6.
161 # If you plan to connect anonymously, leave these values empty.
162 # NOTE: Change auth_method option if you are using a username/password.
163 #
164 # userid=<your_userid>
165 # passwd=<your_password>
166 #
167 userid=anonymous
168 passwd=
169
170 #
171 # Gateway6 Server:
172 # Specify a Gateway6 server name or IP address (provided by your ISP or
173 # Freenet6). An optional port number can be added; the default port number
174 # is 3653.
175 #
176 # Examples:
177 # server=hostname # FQDN
178 # server=A.B.C.D # IPv4 address
179 # server=[X:X::X:X] # IPv6 address
180 # server=hostname:port_number
181 # server=A.B.C.D:port_number
182 # server=[X:X::X:X]:port_number
183 #
184 # Freenet6 account holders should enter broker.freenet6.net, otherwise use
185 # anon.freenet6.net. Your ISP may provide you with a different server name.
186 #
187 server=anon.freenet6.net
188 #server=broker.freenet6.net
189
190 #
191 # Authentication Method:
192 #
193 # auth_method=<{anonymous}|{any|passdss-3des-1|digest-md5|plain}>
194 #
195 # anonymous: Sends no username or password
196 #
197 # any: The most secure method will be used.
198 # passdss-3des-1: The password is sent encrypted.
199 # digest-md5: The password is sent encrypted.
200 # plain: Both username and password are sent as plain text.
201 #
202 # Recommended values:
203 # - any: If you are authenticating a username / password.
204 # - anonymous: If you are connecting anonymously.
205 #
206 auth_method=anonymous
207 #auth_method=any
208
209
210 ########################## ROUTING CONFIGURATION ##############################
211 # Use these parameters when you wish the client to act as a router and provide
212 # IPv6 connectivity to IPv6-capable devices on your network.
213
214 #
215 # Local Host Type:
216 # Change this value to 'router' to enable IPv6 advertisements.
217 #
218 # host_type=<host|router>
219 #
220 host_type=host
221
222 #
223 # Prefix Length:
224 # Length of the requested prefix. Valid values range between 0 and 64 when
225 # using V6*V4 tunnel modes, and between 0 and 32 when using V4V6 tunnel mode.
226 #
227 # prefixlen=<integer>
228 #
229 prefixlen=64
230
231 #
232 # Advertisement Interface Prefix:
233 # Name of the interface that will be configured to send router advertisements.
234 # This is an interface index on Windows (ex: 4) and a name on Linux
235 # and BSD (ex: eth1 or fxp1).
236 #
237 # if_prefix=<interface name>
238 #
239 if_prefix=
240
241 #
242 # DNS Server:
243 # A DNS server list to which the reverse prefix will be delegated. Servers
244 # are separated by the colon(:) delimiter.
245 #
246 # Example: dns_server=ns1.domain:ns2.domain:ns3.domain
247 #
248 dns_server=
249
250
251 ######################### ADVANCED CONFIGURATION ##############################
252
253 #
254 # Gateway6 Client Installation Directory:
255 # Directory where the Gateway6 Client will be installed. This value has been
256 # set during installation.
257 #
258 gw6_dir=/etc/gateway6
259
260 #
261 # Auto-Retry Connect, Retry Delay and Max Retry Delay:
262 # When auto_retry_connect=yes, the Gateway6 Client will attempt to reconnect
263 # after a disconnection occurred. The time to wait is 'retry_delay' and that
264 # delay is doubled at every 3 failed consecutive reconnection attempt.
265 # However, the wait delay will never exceed retry_delay_max.
266 #
267 #
268 # auto_retry_connect=<yes|no>
269 # retry_delay=<integer: 0..3600>
270 # retry_delay_max=<integer: 0..3600>
271 #
272 # Recommended values: "yes", 30, 300
273 #
274 auto_retry_connect=yes
275 retry_delay=30
276 retry_delay_max=300
277
278 #
279 # Keepalive Feature and Message Interval:
280 # Indicates if and how often the client will send data to keep the tunnel
281 # active.
282 #
283 # keepalive=<yes|no>
284 # keepalive_interval=<integer>
285 #
286 # Recommended values: "yes" and 30
287 #
288 keepalive=yes
289 keepalive_interval=30
290
291 #
292 # Tunnel Encapsulation Mode:
293 # v6v4: IPv6-in-IPv4 tunnel.
294 # v6udpv4: IPv6-in-UDP-in-IPv4 tunnel (for clients behind a NAT).
295 # v6anyv4: Lets the broker choose the best mode for IPv6 tunnel.
296 # v4v6: IPv4-in-IPv6 tunnel.
297 #
298 # Recommended value: v6anyv4
299 #
300 tunnel_mode=v6anyv4
301
302 #
303 # Tunnel Interface Name:
304 # The interface name assigned to the tunnel. This value is O/S dependent.
305 #
306 # if_tunnel_v6v4 is the tunnel interface name for v6v4 encapsulation mode
307 # if_tunnel_v6udpv4 is the tunnel interface name for v6udpv4 encapsulate mode
308 # if_tunnel_v4v6 is the tunnel interface name for v4v6 encapsulation mode
309 #
310 # Default values are set during installation.
311 #
312 if_tunnel_v6v4=sit1
313 if_tunnel_v6udpv4=tun
314 if_tunnel_v4v6=sit0
315
316 #
317 # Local IP Address of the Client:
318 # Allows you to set a specific address as the local tunnel endpoint.
319 #
320 # client_v4=<auto|A.B.C.D (valid ipv4 address)>
321 # client_v6=<auto|X:X::X:X (valid ipv6 address)>
322 # auto: The Gateway6 Client will find the local IP address endpoint.
323 #
324 # Recommended value: auto
325 #
326 client_v4=auto
327 client_v6=auto
328
329 #
330 # Script Name:
331 # File name of the script to run to install the tunnel interface. The
332 # scripts are located in the template directory under the client
333 # installation directory.
334 #
335 # template=<checktunnel|freebsd|netbsd|openbsd|linux|windows|darwin|cisco|solaris>
336 #
337 # Default value is set during installation.
338 #
339 template=linux
340
341 #
342 # Proxy client:
343 # Indicates that this client will request a tunnel for another endpoint,
344 # such as a Cisco router.
345 #
346 # proxy_client=<yes|no>
347 #
348 # NOTE: NAT traversal is not possible in proxy mode.
349 #
350 proxy_client=no
351
352
353 ############################ BROKER REDIRECTION ###############################
354
355 #
356 # Broker List File Name:
357 # The 'broker_list' directive specifies the filename where the broker
358 # list received during broker redirection will be saved.
359 #
360 # broker_list=<file_name>
361 #
362 broker_list=/var/lib/gateway6/tsp-broker-list.txt
363
364 #
365 # Last Server Used File Name:
366 # The 'last_server' directive specifies the filename where the address of
367 # the last broker to which a connection was successfully established will
368 # be saved.
369 #
370 # last_server=<file_name>
371 #
372 last_server=/var/lib/gateway6/tsp-last-server.txt
373
374 #
375 # Always Use Last Known Working Server:
376 # The value of the 'always_use_same_server' directive determines whether the
377 # client should always try to connect to the broker found in the
378 # 'last_server' directive filename.
379 #
380 # always_use_same_server=<yes|no>
381 #
382 always_use_same_server=no
383
384
385 #################################### LOGGING ##################################
386
387 #
388 # Log Verbosity Configuration:
389 # The format is 'log_<destination>=level', where possible values for
390 # 'destination' are:
391 #
392 # - console (logging to the console [AKA stdout])
393 # - stderr (logging to standard error)
394 # - file (logging to a file)
395 # - syslog (logging to syslog [Unix only])
396 #
397 # and 'level' is a digit between 0 and 3. A 'level' value of 0 disables
398 # logging to the destination, while values 1 to 3 request increasing levels
399 # of log verbosity and detail. If 'level' is not specified, a value of 1 is
400 # assumed.
401 #
402 # Example:
403 # log_file=3 (Maximal logging to a file)
404 # log_stderr=0 (Logging to standard error disabled)
405 # log_console= (Minimal logging to the console)
406 #
407 # - Default configuration on Windows platforms:
408 #
409 # log_console=0
410 # log_stderr=0
411 # log_file=1
412 #
413 # - Default configuration on Unix platforms:
414 #
415 # log_console=0
416 # log_stderr=1
417 # log_file=0
418 # log_syslog=0
419 #
420 #log_console=
421 #log_stderr=
422 log_file=2
423 log_syslog=1
424
425 #
426 # Log File Name:
427 # When logging to file is requested using the 'log_file' directive, the name
428 # and path of the file to use may be specified using this directive.
429 #
430 # log_filename=<file_name>
431 #
432 log_filename=/var/log/gw6c.log
433
434 #
435 # Log File Rotation:
436 # When logging to file is requested using the 'log_file' directive, log file
437 # rotation may be enabled. When enabled, the contents of the log file will
438 # be moved to a backup file just before it reaches the maximum log file size
439 # specified via this directive.
440 #
441 # The name of the backup file is the name of the original log file with
442 # '.<timestamp>' inserted before the file extension. If the file does not
443 # have an extension, '.<timestamp>' is appended to the name of the original
444 # log file. The timestamp specifies when the rotation occurred.
445 #
446 # After the contents of the log file have been moved to the backup file, the
447 # original file is cleared, and logging resumes at the beginning of the file.
448 #
449 # log_rotation=<yes|no>
450 #
451 log_rotation=yes
452
453 #
454 # Log File Rotation Size:
455 # The 'log_rotation_size' directive specifies the maximum size a log file may
456 # reach before rotation occurs, if enabled. The value is expressed in
457 # kilobytes.
458 #
459 # log_rotation_size=<16|32|128|1024>
460 #
461 log_rotation_size=32
462
463 #
464 # Deletion of rotated log files:
465 # The 'log_rotation_delete' directive specifies that no log backup will be
466 # kept. When rotation occurs, the file is immediately wiped out and a new
467 # log file is started.
468 #
469 # log_rotation_delete=<yes|no>
470 #
471 log_rotation_delete=no
472
473 #
474 # Syslog Logging Facility [Unix Only]:
475 # When logging to syslog is requested using the 'log_syslog' directive, the
476 # facility to use may be specified using this directive.
477 #
478 # syslog_facility=<USER|LOCAL[0-7]>
479 #
480 syslog_facility=USER
481
482
483 # end of gw6c.conf
484 #------------------------------------------------------------------------------
485
486
487
488 1.1 net-misc/gateway6/files/gateway6-6.0_beta4-no-template-validation.patch
489
490 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/gateway6/files/gateway6-6.0_beta4-no-template-validation.patch?rev=1.1&view=markup
491 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/gateway6/files/gateway6-6.0_beta4-no-template-validation.patch?rev=1.1&content-type=text/plain
492
493 Index: gateway6-6.0_beta4-no-template-validation.patch
494 ===================================================================
495 --- gw6c-6_0-BETA4/gw6c-config/src/gw6cconfig.cc.orig 2008-02-04 11:48:09.000000000 -0500
496 +++ gw6c-6_0-BETA4/gw6c-config/src/gw6cconfig.cc 2008-11-12 23:52:57.000000000 -0500
497 @@ -410,7 +410,7 @@
498 VALIDATE_LOGERRMSG( IfTunV4V6, CFG_STR_IFTUNV4V6 );
499 VALIDATE_LOGERRMSG( ClientV4, CFG_STR_CLIENTV4 );
500 VALIDATE_LOGERRMSG( ClientV6, CFG_STR_CLIENTV6 );
501 - VALIDATE_LOGERRMSG( Template, CFG_STR_TEMPLATE );
502 +//VALIDATE_LOGERRMSG( Template, CFG_STR_TEMPLATE );
503 VALIDATE_LOGERRMSG( ProxyClient, CFG_STR_PROXYCLIENT );
504 VALIDATE_LOGERRMSG( BrokerLstFile, CFG_STR_BROKERLIST );
505 VALIDATE_LOGERRMSG( LastServFile, CFG_STR_LASTSERVER );
506
507
508
509 1.1 net-misc/gateway6/files/gw6c.rc
510
511 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/gateway6/files/gw6c.rc?rev=1.1&view=markup
512 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/gateway6/files/gw6c.rc?rev=1.1&content-type=text/plain
513
514 Index: gw6c.rc
515 ===================================================================
516 #!/sbin/runscript
517
518 GATEWAY6_CLIENT="/usr/sbin/gw6c"
519
520 depend() {
521 need net localmount
522 after bootmisc
523 use dns logger
524 }
525
526 checkconfig() {
527 if [ $(uname -s) = "Linux" ] ; then
528 if [ ! -e /dev/net/tun ]; then
529 if ! modprobe tun ; then
530 eerror "TUN/TAP support is not available" \
531 "in this kernel"
532 return 1
533 fi
534 fi
535 fi
536 return 0
537 }
538
539 start() {
540 checkconfig || return 1
541
542 ebegin "Starting Gateway6 IPv6 Client"
543 start-stop-daemon --start --quiet \
544 --exec $GATEWAY6_CLIENT -- -f /etc/gateway6/gw6c.conf
545 eend $?
546 }
547
548 stop() {
549 ebegin "Stopping Gateway6 IPv6 Client"
550 start-stop-daemon --stop --quiet -s HUP --exec $GATEWAY6_CLIENT
551 eend $?
552 }