summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakgw
blob: 5a69ae0c4a348e0676b63e6728347af34d939573 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
#!/usr/bin/perl

#
# Guillaume Cottenceau (gc@mandrakesoft.com)
#
# Copyright 2000 MandrakeSoft
#
# This software may be freely redistributed under the terms of the GNU
# public license.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

use lib qw(/usr/lib/libDrakX);

use common qw(:common :system :file);
use interactive;
use standalone;
use log;
use c;
use netconnect;
use detect_devices;

$::isInstall and die "Not supported during install.\n";


$::isEmbedded = ($::XID, $::CCPID) = "@ARGV" =~ /--embedded (\w+) (\w+)/;

local $_ = join '', @ARGV;

/-h/ and die "usage: drakgw [--version]\n";
/-version/ and die 'version: $Id$ '."\n";
$::isEmbedded or $::isWizard = 1;
$::Wizard_pix_up = "wiz_drakgw.png";
$::Wizard_title = _("Internet Connection Sharing");
$::direct = /-direct/;


my $sysconf_network = "/etc/sysconfig/network";
my $conf_linuxconf = "/etc/conf.linuxconf";
my $rc_firewall_generic = "/etc/rc.d/rc.firewall";
my $rc_firewall_drakgw = "/etc/rc.d/rc.firewall.inet_sharing";
my $rc_firewall_22 = "/etc/rc.d/rc.firewall.inet_sharing-2.2";
my $rc_firewall_24 = "/etc/rc.d/rc.firewall.inet_sharing-2.4";
my $dhcpd_conf = "/etc/dhcpd.conf";
my $cups_conf = "/etc/cups/cupsd.conf";
my $drakgw_setup = "/etc/sysconfig/inet_sharing";


my ($kernel_version) = c::kernel_version() =~ /(...)/;
log::l("[drakgw] kernel_version $kernel_version");

$kernel_version eq '2.2' || $kernel_version eq '2.4' or die "Only for 2.2 or 2.4 kernels.\n";

my $in = interactive::vnew('su');

pur_gtk_mode() if $::isEmbedded && ref($in) =~ /gtk/;

sub sys { system(@_) == 0 or log::l("[drakgw] Warning, sys failed for $_[0]") }

sub outpend { my $f = shift; local *F; open F, ">>$f" or die "outpend in file $f failed: $!\n"; print F foreach @_; }

sub start_daemons ()
{
    my $cups_used = 0;
    log::l("[drakgw] Starting daemons");
    if (-f "/etc/rc.d/init.d/cups") {
        if (grep(/is running/, `/etc/rc.d/init.d/cups status`)) {
           $cups_used = 1;
           sys("/etc/rc.d/init.d/cups stop");
        }
    }
    grep(/is running/, `/etc/rc.d/init.d/dhcpd status 2> /dev/null`) and sys("/etc/rc.d/init.d/dhcpd stop");
    grep(/connection refused/, `/etc/rc.d/init.d/named status 2> /dev/null`) or sys("/etc/rc.d/init.d/named stop");
    sys("/etc/rc.d/init.d/network restart");
    sys("sh $rc_firewall_generic");

    sys("/etc/rc.d/init.d/$_ start"), sys("/sbin/chkconfig --level 345 $_ on") foreach 'named', 'dhcpd';
    sys("/etc/rc.d/init.d/cups start") if $cups_used;

    substInFile { s/^INET_SHARING.*\n//; $_ .= "INET_SHARING=enabled\n" if eof } $drakgw_setup;
}

sub stop_daemons ()
{
    log::l("[drakgw] Stopping daemons");
    grep /is running/, `/etc/rc.d/init.d/dhcpd status` and sys("/etc/rc.d/init.d/dhcpd stop");
    grep /Connection refused/, `/etc/rc.d/init.d/named status 2>&1` or sys("/etc/rc.d/init.d/named stop");
    if ($kernel_version eq "2.2") {
	sys("/sbin/ipchains -F");
    } else {
	sys("/sbin/iptables -t nat -F");
    }
    sys("/sbin/chkconfig --level 345 $_ off") foreach 'named', 'dhcpd';

    substInFile { s/^INET_SHARING.*\n//; $_ .= "INET_SHARING=disabled\n" if eof } $drakgw_setup;
}

sub fatal_quit ($)
{
    log::l("[drakgw] FATAL: $_[0]");
    undef $wait_configuring;
    $in->ask_warn('', $_[0]);
    quit_global($in, -1);
}

begin:

#- **********************************
#- * 0th step: verify if we are already set up

if (-f $drakgw_setup) {
    $::Wizard_no_previous = 1;

    if (grep(/enabled/, cat_($drakgw_setup))) {
	my $r = $in->ask_from_list_(_("Internet Connection Sharing currently enabled"),
_("The setup of Internet connection sharing has already been done.
It's currently enabled.

What would you like to do?"),
				   [ __("disable"), __("reconfigure"), __("dismiss") ]) or quit_global($in, 0);
	if ($r eq "disable") {
	    {
		my $wait_disabl = $in->wait_message('', _("Disabling servers..."));
		stop_daemons();
	    }
	    foreach ($dhcpd_conf, $rc_firewall_22, $rc_firewall_24) {
		renamef($_, "$_.drakgwdisable") or die "Could not rename $_ to $_.drakgwdisable" 
	    }
	    log::l("[drakgw] Disabled");
	    $::Wizard_finished = 1;
	    $in->ask_okcancel('', _("Internet connection sharing is now disabled."));
	    quit_global($in, 0);
	}
	if ($r eq "dismiss") {
	    quit_global($in, 0);
	}
    }
    elsif (grep(/disabled/, cat_($drakgw_setup)))
    {
	my $r = $in->ask_from_list_(_("Internet Connection Sharing currently disabled"),
_("The setup of Internet connection sharing has already been done.
It's currently disabled.

What would you like to do?"),
				   [ __("enable"), __("reconfigure"), __("dismiss") ]);
	if ($r eq "enable") {
	    foreach ($dhcpd_conf, $rc_firewall_22, $rc_firewall_24) {
		rename($_, "$_.old") if -f $_;
		rename("$_.drakgwdisable", $_) or die "Could not find configuration. Please reconfigure.";
	    }
	    {
		my $wait_enabl = $in->wait_message('', _("Enabling servers..."));
		start_daemons();
	    }
            log::l("[drakgw] Enabled");
	    $::Wizard_finished = 1;
	    $in->ask_okcancel('', _("Internet connection sharing is now enabled."));
	    quit_global($in, 0);
	}
	if ($r eq "dismiss") {
	    quit_global($in, 0);
	}
    }
    else {
	$in->ask_warn(_("Unrecognized config file"), _("Config file content could not be interpreted."));
	quit_global($in, -1);
    }
}


#- **********************************
#- * 1st step: detect/setup
step_ask_confirm:

$::Wizard_no_previous = 1;
    
$::direct or $in->ask_okcancel(_("Internet Connection Sharing"),
_("You are about to configure your computer to share its Internet connection.
With that feature, other computers on your local network will be able to use this computer's Internet connection.

Note: you need a dedicated Network Adapter to set up a Local Area Network (LAN)."), 1) or quit_global($in, 0);

undef $::Wizard_no_previous;


step_detectsetup:

my @configured_devices = map { /ifcfg-(\S+)/ } `ls /etc/sysconfig/network-scripts/ifcfg*`;

my %aliased_devices; 
/^\s*alias\s+(eth[0-9])\s+(\S+)/ and $aliased_devices{$1} = $2 foreach cat_("/etc/modules.conf");

my $card_netconnect = netconnect::get_net_device();
defined $card_netconnect and log::l("[drakgw] Information from netconnect: ignore card $card_netconnect");

my @cards = grep {
    log::l("[drakgw] Have network card: $_");
    $_ ne $card_netconnect
} detect_devices::getNet();
log::l("[drakgw] Available network cards: ", join(", ", @cards));

my $format = sub {
    $aliased_devices{$_[0]} ?
      _("Interface %s (using module %s)", $_[0], $aliased_devices{$_[0]}) :
      _("Interface %s", $_[0]);
};

#- setup the network interface we shall use

my $device;
if (!@cards)
{
    $in->ask_warn(_("No network adapter on your system!"), 
		  _("No ethernet network adapter has been detected on your system. Please run the hardware configuration tool."));
    quit_global($in);
}
elsif (@cards == 1)
{
    $device = $cards[0];
    $in->ask_okcancel(_("Network interface"),
_("There is only one configured network adapter on your system:

%s

I am about to setup your Local Area Network with that adapter.", $format->($device)), 1) or goto step_ask_confirm;
}
else
{
    $device = $in->ask_from_listf(_("Choose the network interface"),
				    _("Please choose what network adapter will be connected to your Local Area Network."),
				     $format,
				    \@cards,
				    ) or goto step_ask_confirm;
    defined $device or quit_global($in);
}
log::l("[drakgw] Choosing network card: $device\n");

grep(/$device/, @configured_devices) and
    ($in->ask_okcancel('', _("Warning, the network adapter is already configured. I will reconfigure it.")) or goto step_detectsetup);


my $lan_address = "192.168.0";


#- test for potential conflict with other networks

foreach (grep { $_ ne $device } @configured_devices)
{
    grep(/$lan_address/, cat_("/etc/sysconfig/network-scripts/ifcfg-$_")) and
      ($in->ask_warn('', _("Potential LAN address conflict found in current config of $_!\n")) or goto step_detectsetup);
}


#- test for potential conflict with previous firewall config

if ($kernel_version eq '2.2') {
    if (-f '/etc/sysconfig/ipchains' || -x '/sbin/ipchains' && listlength(`/sbin/ipchains -nL`) > 3) {
	$in->ask_okcancel(_("Firewalling configuration detected!"),
			  _("Warning! An existing firewalling configuration has been detected. You may need some manual fix after installation.")) or goto step_detectsetup;
    }
} else {
    system('modprobe iptable_nat');
    if (-f '/etc/sysconfig/iptables' || -x '/sbin/iptables' && listlength(`/sbin/iptables -t nat -nL`) > 8) {
	$in->ask_okcancel(_("Firewalling configuration detected!"),
			  _("Warning! An existing firewalling configuration has been detected. You may need some manual fix after installation.")) or goto step_detectsetup;
    }
}


#- **********************************
#- * 2nd step: configure

$wait_configuring = $in->wait_message(_("Configuring..."), 
				      _("Configuring scripts, installing software, starting servers..."));

substInFile { s/^INTERFACE.*\n//; $_ .= "INTERFACE=$device\n" if eof } $drakgw_setup;

#- setup the /etc/sysconfig/network-script/ script

my $network_scripts = "/etc/sysconfig/network-scripts";
my $ifcfg = "$network_scripts/ifcfg-$device";
renamef($ifcfg, "$network_scripts/old.ifcfg-$device");
output($ifcfg, qq(DEVICE=$device
BOOTPROTO=static
IPADDR=$lan_address.1
NETMASK=255.255.255.0
NETWORK=$lan_address.0
BROADCAST=$lan_address.255
ONBOOT=yes
));


#- install and setup the RPM packages

my $rpms_to_install;
my %rpm2file = ( ipchains => "/sbin/ipchains",
		 iptables => "/sbin/iptables",
		 dhcp => "/usr/sbin/dhcpd",
		 linuxconf => $conf_linuxconf,
		 bind => "/usr/sbin/named",
		 "caching-nameserver" => "/var/named/named.local");

$in->standalone::pkgs_install(grep { !-e $rpm2file{$_} } keys %rpm2file);
-e $rpm2file{$_} or fatal_quit(_("Problems installing package $_")) foreach keys %rpm2file;


#- setup the masquerading configuration

if (!-f $rc_firewall_generic) {
    output($rc_firewall_generic, "#!/bin/sh
#
# Automatically generated by drakgw
[ -x $rc_firewall_drakgw ] && $rc_firewall_drakgw
");
    chmod 0700, $rc_firewall_generic;
}
elsif (!grep(/drakgw/, cat_($rc_firewall_generic))) {
    outpend($rc_firewall_generic, "
# Automatically added by drakgw
[ -x $rc_firewall_drakgw ] && $rc_firewall_drakgw

");
}

output($rc_firewall_drakgw, q(#!/bin/sh
KERNELMAJ=`uname -r | sed                   -e 's,\..*,,'`
KERNELMIN=`uname -r | sed -e 's,[^\.]*\.,,' -e 's,\..*,,'`

if [ "$KERNELMAJ" -eq 2 -a "$KERNELMIN" -eq 2 ]; then
    [ -x ) . $rc_firewall_22 . ' ] && ' . $rc_firewall_22 . q(
fi
if [ "$KERNELMAJ" -eq 2 -a "$KERNELMIN" -eq 4 ]; then
    [ -x ) . $rc_firewall_24 . ' ] && ' . $rc_firewall_24 . q(
fi
    ));

chmod 0700, $rc_firewall_drakgw;


output($rc_firewall_22, 
qq(#!/bin/sh
#
# rc.firewall - Initial SIMPLE IP Masquerade test for 2.1.x and 2.2.x kernels using IPCHAINS
#
# Load all required IP MASQ modules
#
#   NOTE:  Only load the IP MASQ modules you need.  All current IP MASQ modules
#          are shown below but are commented out from loading.

# Needed to initially load modules
#
/sbin/depmod -a

# Supports the proper masquerading of FTP file transfers using the PORT method
#
/sbin/modprobe ip_masq_ftp

# Supports the masquerading of RealAudio over UDP.  Without this module,
#       RealAudio WILL function but in TCP mode.  This can cause a reduction
#       in sound quality
#
/sbin/modprobe ip_masq_raudio

# Supports the masquerading of IRC DCC file transfers
#
/sbin/modprobe ip_masq_irc


# Supports the masquerading of Quake and QuakeWorld by default.  This modules is
#   for for multiple users behind the Linux MASQ server.  If you are going to play
#   Quake I, II, and III, use the second example.
#
#   NOTE:  If you get ERRORs loading the QUAKE module, you are running an old
#   -----  kernel that has bugs in it.  Please upgrade to the newest kernel.
#
#Quake I / QuakeWorld (ports 26000 and 27000)
#/sbin/modprobe ip_masq_quake
#
#Quake I/II/III / QuakeWorld (ports 26000, 27000, 27910, 27960)
/sbin/modprobe ip_masq_quake 26000,27000,27910,27960


# Supports the masquerading of the CuSeeme video conferencing software
#
/sbin/modprobe ip_masq_cuseeme

#Supports the masquerading of the VDO-live video conferencing software
#
/sbin/modprobe ip_masq_vdolive


#CRITICAL:  Enable IP forwarding since it is disabled by default since
#
#           Redhat Users:  you may try changing the options in /etc/sysconfig/network from:
#
#                       FORWARD_IPV4=false
#                             to
#                       FORWARD_IPV4=true
#
echo 1 > /proc/sys/net/ipv4/ip_forward


# Dynamic IP users:
#
#   If you get your IP address dynamically from SLIP, PPP, or DHCP, enable this following
#       option.  This enables dynamic-ip address hacking in IP MASQ, making the life 
#       with Diald and similar programs much easier.
#
#echo 1 > /proc/sys/net/ipv4/ip_dynaddr


# MASQ timeouts
#
#   2 hrs timeout for TCP session timeouts
#  10 sec timeout for traffic after the TCP/IP "FIN" packet is received
#  160 sec timeout for UDP traffic (Important for MASQ'ed ICQ users) 
#
/sbin/ipchains -M -S 7200 10 160


# DHCP:  For people who receive their external IP address from either DHCP or BOOTP
#        such as ADSL or Cablemodem users, it is necessary to use the following
#        before the deny command.  The "bootp_client_net_if_name" should be replaced
#        the name of the link that the DHCP/BOOTP server will put an address on to?
#        This will be something like "eth0", "eth1", etc.
#
#        This example is currently commented out.
#
#
#/sbin/ipchains -A input -j ACCEPT -i bootp_clients_net_if_name -s 0/0 67 -d 0/0 68 -p udp

# Enable simple IP forwarding and Masquerading
#
#  NOTE:  The following is an example for an internal LAN address in the 192.168.0.x
#         network with a 255.255.255.0 or a "24" bit subnet mask.
#
#         Please change this network number and subnet mask to match your internal LAN setup
#
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s $lan_address.0/24 -j MASQ

# Let incoming packets arrive to our interface, in case there are some firewall rules to come
/sbin/ipchains -A input -i $device -j ACCEPT
));
chmod 0700, $rc_firewall_22;


output($rc_firewall_24, qq(#!/bin/sh
# Load the NAT module (this pulls in all the others).
modprobe iptable_nat

# Turn on IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

# In the NAT table (-t nat), Append a rule (-A) after routing (POSTROUTING)
# which says to MASQUERADE the connection (-j MASQUERADE).
iptables -t nat -A POSTROUTING -s $lan_address.0/24 -j MASQUERADE

# Allows forwarding specifically to our LAN
iptables -A FORWARD -s $lan_address.0/24 -j ACCEPT

# Allow dhcp requests
iptables -A INPUT -i $device -p udp --sport bootpc --dport bootps -j ACCEPT
iptables -A INPUT -i $device -p tcp --sport bootpc --dport bootps -j ACCEPT
iptables -A INPUT -i $device -p udp --sport bootps --dport bootpc -j ACCEPT
iptables -A INPUT -i $device -p tcp --sport bootps --dport bootpc -j ACCEPT

# Allow dns requests
iptables -A INPUT -i $device -p udp --dport domain -j ACCEPT
iptables -A INPUT -i $device -p tcp --dport domain -j ACCEPT
));
chmod 0700, $rc_firewall_24;


#- be sure that FORWARD_IPV4 is enabled in /etc/sysconfig/network

substInFile { s/^FORWARD_IPV4.*\n//; $_ .= "FORWARD_IPV4=true\n" if eof } $sysconf_network;


#- setup the DHCP server

renamef($dhcpd_conf, "$dhcpd_conf.old");
output($dhcpd_conf, qq(subnet $lan_address.0 netmask 255.255.255.0 {
	# default gateway
	option routers $lan_address.1;
	option subnet-mask 255.255.255.0;

	option domain-name "homelan.org";
	option domain-name-servers $lan_address.1;

	range dynamic-bootp $lan_address.16 $lan_address.253;
	default-lease-time 21600;
	max-lease-time 43200;
}
));


#- put the interface for the dhcp server in linuxconf config, for the /etc script of dhcpd

substInFile { s/^DHCP.interface.*\n//; $_ .= "DHCP.interface $device\n" if eof } $conf_linuxconf;


#- Set up /etc/cups/cupsd.conf to make the broadcasting of the printer info
#- working correctly: 
#- 
#-  1. ServerName <server's IP address>  # because clients do necessarily 
#-                                       # know the server's name
#-
#-  2. BrowseAddress <server's Broadcast IP> # broadcast printer info into
#-                                           # the local network.
#-
#-  3. BrowseOrder Deny,Allow
#-     BrowseDeny All
#-     BrowseAllow <IP mask for local net> # Only accept broadcast signals 
#-                                         # coming from local network
#-
#-  4. <Location />
#-     Order Deny,Allow
#-     Deny From All
#-     Allow From <IP mask for local net> # Allow only machines of local 
#-     </Location>                        # network to access the server
#-     
#- These steps are only done when the CUPS package is installed.

substInFile {
    s/^ServerName[^:].*\n//; $_ .= "ServerName $lan_address.1\n" if eof;
    s/^BrowseAddress.*\n//; $_ .= "BrowseAddress $lan_address.255\n" if eof;
    s/^BrowseOrder.*\n//; $_ .= "BrowseOrder Deny,Allow\n" if eof;
    s/^BrowseDeny.*\n//; $_ .= "BrowseDeny All\n" if eof;
    s/^BrowseAllow.*\n//; $_ .= "BrowseAllow $lan_address.*\n" if eof;
} $cups_conf;


#- Modify the root location block in /etc/cups/cupsd.conf

if (-f $cups_conf) {
    my @cups_conf_content = cat_($cups_conf);
    my @root_location; my $root_location_start; my $root_location_end;

    # Cut out the root location block so that it can be treated seperately
    # without affecting the rest of the file
    if (grep(m|^\s*<Location\s+/\s*>|, @cups_conf_content)) {
	$root_location_start = -1;
	$root_location_end = -1;
	# Go through all the lines, bail out when start and end line found
	for (my $i = 0; $i < @cups_conf_content && $root_location_end == -1; $i++) {
	    if ($cups_conf_content[$i] =~ m|^\s*<\s*Location\s+/\s*>|) {
		$root_location_start = $i;
	    } elsif (($cups_conf_content[$i] =~ m|^\s*<\s*/Location\s*>|) && ($root_location_start != -1)) {
		$root_location_end = $i;
	    }
	}
	# Rip out the block and store it seperately
	@root_location = splice(@cups_conf_content, $root_location_start, $root_location_end - $root_location_start + 1);
    } else {
	# If there is no root location block, create one
	$root_location_start = @cups_conf_content;
	@root_location = ("<Location />\n", "</Location>\n");
    }
 
    # Delete all former "Order", "Allow", and "Deny" lines from the root location block
    s/^\s*Order.*//, s/^\s*Allow.*//, s/^\s*Deny.*// foreach @root_location;
 
    # Add the new "Order" and "Deny" lines, add an "Allow" line for the local network
    splice(@root_location, -1, 0, $_) foreach ("Order Deny,Allow\n", "Deny From All\n", "Allow From 127.0.0.1\n",
					       "Allow From $lan_address.*\n");
 
    # Put the changed root location block back into the file
    splice(@cups_conf_content, $root_location_start, 0, @root_location);
 
    output $cups_conf, @cups_conf_content;
}


#- start the daemons

start_daemons();


#- bye-bye message

undef $wait_configuring;

$::Wizard_no_previous = 1;
$::Wizard_finished = 1;

$in->ask_okcancel(_("Congratulations!"), 
_("Everything has been configured.
You may now share Internet connection with other computers on your Local Area Network, using automatic network configuration (DHCP)."));


log::l("[drakgw] Installation complete, exiting\n");
quit_global($in, 0);

sub quit_global {
    my ($in, $exitcode) = @_;
    $in->exit($exitcode);
    goto begin
}

sub pur_gtk_mode
{
    require Gtk;
    init Gtk;
    my $setup_state = grep(/disabled/, cat_($drakgw_setup)) ? _("The setup has already been done, but it's currently disabled.") :
                      grep(/enabled/, cat_($drakgw_setup))  ? _("The setup has already been done, and it's currently enabled.") :
                      _("No Internet Connection Sharing has ever been configured.");
    
    my $window1 = $::isEmbedded ? new Gtk::Plug ($::XID) : new Gtk::Window -toplevel;
    $window1->signal_connect ( delete_event => sub { Gtk->exit(0); });
    $window1->set_position(1);
    $window1->set_title(_("Internet connection sharing configuration"));
    $window1->border_width(10);
    my $vbox1 = new Gtk::VBox(0,0);
    $window1->add($vbox1);
    my $hbox1 = new Gtk::HBox(0,0);
    $vbox1->pack_start($hbox1,1,1,0);
    my $label1 = new Gtk::Label(
_("Welcome to the Internet Connection Sharing utility!

%s

Click on Configure to launch the setup wizard.", $setup_state));
    $hbox1->pack_start($label1,1,1,0);
    my $hbox2 = new Gtk::HBox(0,0);
    $vbox1->pack_start($hbox2,1,1,0);
    
    my $bbox1 = new Gtk::HButtonBox;
    $vbox1->pack_start($bbox1,0,0,0);
    $bbox1->set_layout(-end);
    my $button_conf = new Gtk::Button _("Configure");
    $button_conf->signal_connect ( clicked => sub {
					   system("/usr/sbin/drakgw --wizard");
				       });
    $bbox1->add($button_conf);
    my $button_cancel = new Gtk::Button _("Cancel");
    $button_cancel->signal_connect ( clicked => sub {
					 kill(USR1, $::CCPID);
				     });
    $bbox1->add($button_cancel);
    $window1->show_all();
    Gtk->main_iteration while Gtk->events_pending;
    $::isEmbedded and kill USR2, $::CCPID;
    Gtk->main;
    Gtk->exit(0);
    
}






#-------------------------------------------------
#- $Log$
#- Revision 1.42  2001/04/12 13:50:24  gc
#- add some rule so later on tinyfirewall will not prevent everything from working
#-
#- Revision 1.41  2001/04/11 15:28:36  gc
#- kosmetik
#-
#- Revision 1.40  2001/04/11 15:16:34  gc
#- do i18n for title also
#-
#- Revision 1.39  2001/04/10 21:33:15  gc
#- add INTERFACE param in sysconfig parameter for smooth interoperation with bastille-firewall
#-
#- Revision 1.38  2001/04/09 18:09:38  yduret
#- deyvounification : remove some un-useful comments in code
#-
#- Revision 1.37  2001/04/09 16:29:20  gc
#- do not die when an initscript returns non-0 (initscripts too buggy)
#-
#- Revision 1.36  2001/04/09 11:39:40  gc
#- fix for when there is an already existing rc.firewall
#- complies with old format of drakgw so that upgrades will work
#-
#- Revision 1.35  2001/04/08 05:33:14  damien
#- updated
#-
#- Revision 1.34  2001/04/06 15:09:15  yduret
#- swap cancel/configure button
#-
#- Revision 1.33  2001/04/06 14:12:06  gc
#- - correct yvounetification in i18n stuff
#- - remove some remaining debugging printings
#- - add a bit more of explanations when starting drakgw in wizard mode
#-
#- Revision 1.32  2001/04/06 01:34:44  yduret
#- recoded a embedded && gtk mode
#-
#- Revision 1.31  2001/03/31 14:21:10  pablo
#- Updated po files and help messages (patch from Pixel)
#-
#- Revision 1.30  2001/03/29 11:52:15  damien
#- updated for new wiz png policy
#-
#- Revision 1.29  2001/03/26 15:29:01  gc
#- first attempt at pixelization of code (till's cups patches)
#-
#- Revision 1.28  2001/03/21 18:07:36  gc
#- honour embedded mode
#-
#- Revision 1.27  2001/03/13 16:23:29  gc
#- fix for bind
#-
#- Revision 1.26  2001/03/13 15:31:05  gc
#- - fix destructive parts of pixelization
#- - fix some own bugs
#-
#- Revision 1.25  2001/03/13 00:00:11  prigaux
#- pixelization
#-
#- Revision 1.24  2001/03/12 18:26:16  gc
#- - make it work as a wizard
#- - make it work with iptables (kernel-2.4)
#-
#- Revision 1.23  2001/03/01 00:18:17  damien
#- updated embedded mode
#-
#- Revision 1.22  2001/02/26 18:39:12  prigaux
#- pixelization
#-
#- Revision 1.21  2001/02/08 10:11:37  damien
#- implemented or updated embedded mode
#-
#- Revision 1.20  2001/02/08 07:00:41  damien
#- added embedded and (ugly) wizard mode.
#-
#- Revision 1.19  2001/01/10 00:32:42  prigaux
#- use standalone and standalone::pkgs_install
#-
#- Revision 1.18  2000/12/16 16:13:34  prigaux
#- use ldetect-lst
#-
#- Revision 1.17  2000/11/13 15:48:33  gc
#- Integrate Till's patches for better work with Cups.
#-
#- Revision 1.16  2000/10/10 15:31:50  gc
#- make only one call to urpmi in order to install all the needed rpm's
#-
'>1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342
# translation of rpmdrake-hi.po to Hindi, India
# Copyright (C) 2003,2004 Free Software Foundation, Inc.
# Dhananjaya Sharma <dysxhi@yahoo.co.in>, 2003,2004
#
msgid ""
msgstr ""
"Project-Id-Version: rpmdrake-hi\n"
"POT-Creation-Date: 2004-01-12 18:45+0100\n"
"PO-Revision-Date: 2004-01-11 21:22+0530\n"
"Last-Translator: धनञ्जय शर्मा (Dhananjaya Sharma) <dysxhi@yahoo.co.in>\n"
"Language-Team: हिन्दी, भारत (Hindi, India) <dysxhi@yahoo.co.in>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.0.1\n"

#: ../rpmdrake:1
#, c-format
msgid "Enlightenment"
msgstr "इनलाइटन-मेन्ट"

#: ../rpmdrake:1
#, c-format
msgid "Remote access"
msgstr "सुदूर पहुँच"

#: ../edit-urpm-sources.pl:1 ../rpmdrake.pm:1
#, c-format
msgid "Please wait, updating media..."
msgstr "कृपया प्रतीक्षा करें, माध्यम अपडेट किया जा रहा है..."

#: ../rpmdrake:1
#, c-format
msgid "FVWM based"
msgstr "एफ़०वी०डब्लू०एम० पर आधारित"

#: ../rpmdrake.pm:1
#, c-format
msgid "Canada"
msgstr "कनाडा"

#: ../rpmdrake:1
#, c-format
msgid "Python"
msgstr "पायथन"

#: ../rpmdrake:1
#, c-format
msgid "Upgradable"
msgstr "अपग्रेडेबल"

#: ../rpmdrake:1
#, c-format
msgid "everything was installed correctly"
msgstr "सबकुछ भली-भांति संसाधित किया गया"

#: ../rpmdrake:1
#, c-format
msgid "Verifying packages signatures..."
msgstr "पैकेजों के हस्ताक्षर प्रमाणित किये जा रहे है..."

#: ../rpmdrake:1
#, c-format
msgid "File transfer"
msgstr "संचिका स्थानान्तरण"

#: ../rpmdrake:1
#, c-format
msgid "KDE and Qt"
msgstr "के०डी०ई० और क्यू०टी०"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "You need to fill up at least the two first entries."
msgstr "आपको कम-से-कम प्रथम और द्वितीय प्रवीष्ठयों को भरना चाहिए।"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Type of medium:"
msgstr "माध्यम का प्रकार:"

#: ../rpmdrake.pm:1
#, c-format
msgid "Copying file for medium `%s'..."
msgstr "`%s' माध्यम के लिए  संचिका की प्रतिलिपि बनाई जा रही है..."

#: ../rpmdrake.pm:1
#, c-format
msgid "France"
msgstr "फ़्रांस"

#: ../rpmdrake:1
#, c-format
msgid ""
"I need to contact the mirror to get latest update packages.\n"
"Please check that your network is currently running.\n"
"\n"
"Is it ok to continue?"
msgstr ""
"ंंमुझे नवीनतम अपडेट पैकेजों को प्राप्त करने के लिए, किसी समरूप प्रणाली से सम्पर्क करना होगा।\n"
"कृपया जाँच करें कि आपका नेटवर्क अभी चल रहा है।\n"
"\n"
"क्या जारी रखना ठीक है?"

#: ../rpmdrake:1
#, c-format
msgid "Search results"
msgstr "खोज के परिणाम"

#: ../rpmdrake:1
#, c-format
msgid "Graphical desktop"
msgstr "सचित्र डेस्कटाप"

#: ../rpmdrake.pm:1
#, c-format
msgid "Yes"
msgstr "हाँ"

#: ../rpmdrake:1
#, c-format
msgid ""
"The installation is finished; %s.\n"
"\n"
"Some configuration files were created as `.rpmnew' or `.rpmsave',\n"
"you may now inspect some in order to take actions:"
msgstr ""
"संसाधन सम्पन्न हुआ; %s.\n"
"\n"
"कुछ संरचना संचिकाओं का `.rpmnew' या `.rpmsave' की भांति निर्माण किया गया है,\n"
"आप इनमें में कुछ का निरीक्षण, कार्यों को करने के लिए कर सकते है:"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Edit a parallel group"
msgstr "एक समानान्तर समूह का संपादन करें"

#: ../rpmdrake:1
#, c-format
msgid "How to choose manually your mirror"
msgstr "आपकी समरूप प्रणाली(mirror) को स्वंम कैसे चयन करें"

#: ../rpmdrake:1
#, c-format
msgid "Publishing"
msgstr "प्रकाशन"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Remove key"
msgstr "कुँजी को हटायें"

#: ../rpmdrake:1
#, c-format
msgid "Package installation..."
msgstr "पैकेज संसाधन..."

#: ../rpmdrake:1
#, c-format
msgid "GNOME and GTK+"
msgstr "जीनोम और जी०टी०के०+"

#: ../rpmdrake.pm:1
#, c-format
msgid "Select the media you wish to update:"
msgstr "उस माध्यम का चयन करें जिसे आप अपडेट करना चाहते है:"

#: ../rpmdrake:1
#, c-format
msgid "Software Packages Removal"
msgstr "सॉफ़्तवेयर पैकजों का निरस्तीकरण"

#: ../rpmdrake:1
#, c-format
msgid "Shells"
msgstr "प्रकोष्ठ (सेल)"

#: ../rpmdrake:1
#, c-format
msgid "Chemistry"
msgstr "रसायन विज्ञान"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Choose a key for adding to the medium %s"
msgstr "%s माध्यम में जोड़ने के लिए, एक कुँजी का चयन करें"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Add a key"
msgstr "एक कुँजी जोड़े"

#: ../rpmdrake:1
#, c-format
msgid "True type"
msgstr "वास्तविक प्रकार (ट्रू टाइप)"

#: ../rpmdrake:1
#, c-format
msgid "Base"
msgstr "आधार"

#: ../rpmdrake:1
#, c-format
msgid "Graphics"
msgstr "लेखा-चित्र (ग्राफ़िक्स)"

#: ../rpmdrake.pm:1
#, c-format
msgid "Italy"
msgstr "इटली"

#: ../rpmdrake:1
#, c-format
msgid ""
"You are launching this program as a normal user.\n"
"You will not be able to perform modifications on the system,\n"
"but you may still browse the existing database."
msgstr ""
"आप इस कार्यक्रम की शुरूवात एक सामान्य उपयोगकर्ता की भांति कर रहे है।\n"
"आप इस प्रणाली पर परिवर्तनों को नहीं कर पायेगें,\n"
"पर आप विद्यमान डाटाबेस को फ़िर भी देख सकते है।"

#: ../rpmdrake:1
#, c-format
msgid "One of the following packages is needed:"
msgstr "निम्नलिखित में से एक पैकेज की आवश्यकता है:"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "URL:"
msgstr "यू०आर०एल०:"

#: ../rpmdrake:1
#, c-format
msgid "Information on packages"
msgstr "पैकेजों के बारे में सूचना"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Proxy..."
msgstr "प्रोक्सी..."

#: ../rpmdrake.pm:1
#, c-format
msgid "Russia"
msgstr "सोवियत रूस"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid ""
"If you need a proxy, enter the hostname and an optional port (syntax: "
"<proxyhost[:port]>):"
msgstr ""
"यदि आपको एक प्रोक्सी की आवश्यकता है, तो एक होस्ट का नाम और एक ऐच्छिक पोर्ट "
"बतायेंनिर्देश वाक्य रचना:<प्रोक्सी होस्ट[:पोर्ट]> (syntax:<proxyhost[:port]>):"

#: ../rpmdrake:1
#, c-format
msgid ""
"Because of their dependencies, the following package(s) must be\n"
"unselected now:\n"
"\n"
msgstr ""
"निम्नलिखित पैकेज(पैकेजों) को, उनकी अधिनताओं के कारण, \n"
"अभी अचयनित किया जाना चाहिए:\n"
"\n"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Add a key..."
msgstr "एक कुँजी जोड़े..."

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Configure parallel urpmi (distributed execution of urpmi)"
msgstr ""
"समानान्तर यू०आर०पी०एम०आई० को संरचनित करें (यू०आर०पी०एम०आई० का अलग-अलग निष्पादन)"

#: ../rpmdrake:1
#, c-format
msgid "Sound"
msgstr "ध्वनि"

#: ../rpmdrake:1
#, c-format
msgid "Changelog:\n"
msgstr "परिवर्तन रोजानामचा:\n"

#: ../rpmdrake.pm:1
#, c-format
msgid ""
"I need to contact MandrakeSoft website to get the mirrors list.\n"
"Please check that your network is currently running.\n"
"\n"
"Is it ok to continue?"
msgstr ""
"मुझे मैनड्रैकसॉफ़्ट वेब स्थल से समरूप प्रणालियों की सूची के लिए सम्पर्क करना होगा।\n"
"कृपया सुनिश्चित करें कि आपका नेटवर्क अभी चलायमान है। \n"
"\n"
"क्या अब जारी रख्ना ठीक है?"

#: ../rpmdrake:1
#, c-format
msgid "Please wait, searching..."
msgstr "कृपया प्रतीक्षा करें, खोज जारी है..."

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Command"
msgstr "निर्देश"

#: ../rpmdrake:1 ../edit-urpm-sources.pl:1
#, c-format
msgid ""
"%s\n"
"\n"
"Is it ok to continue?"
msgstr ""
"%s\n"
"\n"
"क्या जारी रखना ठीक है?"

#: ../rpmdrake:1
#, c-format
msgid "Literature"
msgstr "साहित्य"

#: ../rpmdrake:1
#, c-format
msgid "Initializing..."
msgstr "आरंभीकरण..."

#: ../rpmdrake:1
#, c-format
msgid ""
"The list of updates is void. This means that either there is\n"
"no available update for the packages installed on your computer,\n"
"or you already installed all of them."
msgstr ""
"अपडेटस की सूची रिक्त है। इसका मतलब है कि या तो उन पैकेजों के लिए, जिन्हें आपने\n"
"अपने कम्पूयटर पर संसाधित किया है, कोई अपडेट उपलब्ध नहीं है या आपने इन सभी\n"
"को संसाधित कर लिया है।"

#: ../rpmdrake:1
#, c-format
msgid "Emulators"
msgstr "प्रतिस्पर्धक (एमयुलेटरस)"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Password:"
msgstr "कूट-शब्द:"

#: ../rpmdrake:1
#, c-format
msgid "Software Packages Installation"
msgstr "सॉफ़्टवेयर पैकेजों का संसाधन"

#: ../rpmdrake:1
#, c-format
msgid "in descriptions"
msgstr "विवरणों में"

#: ../rpmdrake.pm:1
#, c-format
msgid " failed!"
msgstr "असफ़ल!"

#: ../rpmdrake:1
#, c-format
msgid "Some additional packages need to be removed"
msgstr "कुछ अतिरिक्त पैकेजों को भी हटाना होगा"

#: ../rpmdrake:1
#, c-format
msgid "All packages, by update availability"
msgstr "सभी पैकेजों को, अपडेट की उपलब्धता द्वारा"

#: ../rpmdrake:1
#, c-format
msgid "Packaging"
msgstr "पैकेजिंग"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Configure media"
msgstr "माध्यम संरचना"

#: ../rpmdrake.pm:1
#, c-format
msgid "United States"
msgstr "अमेरिका"

#: ../rpmdrake.pm:1
#, c-format
msgid "Greece"
msgstr "ग्रीस"

#: ../rpmdrake:1
#, c-format
msgid "GNOME"
msgstr "जीनोम"

#: ../rpmdrake:1
#, c-format
msgid "Monitoring"
msgstr "निर्देशन"

#: ../rpmdrake.pm:1
#, c-format
msgid "Costa Rica"
msgstr "कोस्टारिका"

#: ../rpmdrake:1
#, c-format
msgid "Some packages can't be installed"
msgstr "कुछ पैकेजों को संसाधित नहीं किया जा सका"

#: ../rpmdrake:1 ../edit-urpm-sources.pl:1
#, c-format
msgid ""
"The help window has been started, it should appear shortly on your desktop."
msgstr "सहायता विंडो शुरू हो चुकी है, थोड़ी देर में यह आपकी डेस्कटाप पर दिखाई देगी।"

#: ../rpmdrake.pm:1
#, c-format
msgid "No mirror"
msgstr "कोई समरूप प्रणाली उपलब्ध नहीं"

#: ../rpmdrake:1
#, c-format
msgid "Reload the packages list"
msgstr "पैकेजों की सूची को पुनः ताजा करें"

#: ../rpmdrake.pm:1
#, c-format
msgid "Poland"
msgstr "पोलैण्ड"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Path or mount point:"
msgstr "पथ या आरोह बिन्दू:"

#: ../rpmdrake.pm:1
#, c-format
msgid "Please wait, downloading mirrors addresses from MandrakeSoft website."
msgstr ""
"कृपया प्रतीक्षा करें, मैनड्रैकसॉफ़्ट वेब स्थल से समरूप प्रणालियों के पते डॉउनलोड किये जा रहे है। "

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Choose a mirror..."
msgstr "एक समरूप प्रणाली का चयन करे..."

#: ../rpmdrake:1
#, c-format
msgid ""
"Warning: it seems that you are attempting to add so much\n"
"packages that your filesystem may run out of free diskspace,\n"
"during or after package installation ; this is particularly\n"
"dangerous and should be considered with care.\n"
"\n"
"Do you really want to install all the selected packages?"
msgstr ""
"चेतावनी: ऐसा लगता है कि आप इतने ज्यादा पैकेजों को जोड़ने\n"
"का प्रयास कर रहे है कि पैकेजों के संसाधन के दौरान या बाद में\n"
"आपकी संचिका-प्रणाली में मुक्त डिस्क-स्थान नहीं रह जायेगा।\n"
"यह विशेष खतरनाक है और बहुत सावधानी के साथ करना चाहिए।\n"
"\n"
"क्या आप वास्तव में सभी चुनें हुए पैकेजों को संसाधित करना चाहते है?"

#: ../rpmdrake:1
#, c-format
msgid "Selected size: %d MB"
msgstr "चुना हुआ आकार: %d एम०बी०"

#: ../rpmdrake:1
#, c-format
msgid "Please wait, reading packages database..."
msgstr "कृपया प्रतीक्षा करें, पैकेज डाटाबेस पढ़ा जा रहा है..."

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Add a medium"
msgstr "एक माध्यम को जोड़े"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid "Update medium"
msgstr "माध्यम को अपडेट करें"

#: ../edit-urpm-sources.pl:1
#, c-format
msgid ""