summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
blob: ccc8343f1252eb0f9a3c65e69c3adf54f5fcd46f (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
package install_any;

use diagnostics;
use strict;
use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK);

@ISA = qw(Exporter);
%EXPORT_TAGS = (
    all => [ qw(getNextStep spawnShell addToBeDone) ],
);
@EXPORT_OK = map { @$_ } values %EXPORT_TAGS;

#-######################################################################################
#- misc imports
#-######################################################################################
use common qw(:common :system :functional :file);
use commands;
use run_program;
use partition_table qw(:types);
use partition_table_raw;
use devices;
use fsedit;
use network;
use modules;
use detect_devices;
use fs;
use log;


#-######################################################################################
#- Functions
#-######################################################################################
sub relGetFile($) {
    local $_ = $_[0];
    /\.img$/ and return "images/$_";
    my $dir = m|/| ? "mdkinst" :
      member($_, qw(compss compssList compssUsers depslist hdlist)) ? "base" : "RPMS";
    $_ = "Mandrake/$dir/$_";
    s/i386/i586/;
    $_;
}
sub getFile($) {
    local $^W = 0;
    if ($::o->{method} && $::o->{method} eq "ftp") {
	require ftp;
	*install_any::getFile = \&ftp::getFile;
    } elsif ($::o->{method} && $::o->{method} eq "http") {
	require http;
	*install_any::getFile = \&http::getFile;
    } else {
	*install_any::getFile = sub($) {
	    open getFile, "/tmp/rhimage/" . relGetFile($_[0]) or return;
	    *getFile;
	};
    }
    goto &getFile;
}
sub rewindGetFile() {
    if ($::o->{method} && $::o->{method} eq "ftp") {
	require ftp;
	ftp::rewindGetFile(); #- make sure to reopen connection.
    }
}

sub kernelVersion {
    local $_ = readlink("$::o->{prefix}/boot/vmlinuz") || $::testing && "vmlinuz-2.2.testversion" or die "I couldn't find the kernel package!";
    first(/vmlinuz-(.*)/);
}


sub getNextStep {
    my ($s) = $::o->{steps}{first};
    $s = $::o->{steps}{$s}{next} while $::o->{steps}{$s}{done} || !$::o->{steps}{$s}{reachable};
    $s;
}

sub spawnShell {
    return if $::o->{localInstall} || $::testing;

    -x "/bin/sh" or die "cannot open shell - /usr/bin/sh doesn't exist";

    fork and return;

    local *F;
    sysopen F, "/dev/tty2", 2 or die "cannot open /dev/tty2 -- no shell will be provided";

    open STDIN, "<&F" or die '';
    open STDOUT, ">&F" or die '';
    open STDERR, ">&F" or die '';
    close F;

    c::setsid();

    ioctl(STDIN, c::TIOCSCTTY(), 0) or warn "could not set new controlling tty: $!";

    exec {"/bin/sh"} "-/bin/sh" or log::l("exec of /bin/sh failed: $!");
}

sub shells($) {
    my ($o) = @_;
    my @l = grep { -x "$o->{prefix}$_" } @{$o->{shells}};
    @l ? @l : "/bin/bash";
}

sub getAvailableSpace {
    my ($o) = @_;

    do { $_->{mntpoint} eq '/usr' and return int($_->{size} * 512 / 1.07) } foreach @{$o->{fstab}};
    do { $_->{mntpoint} eq '/'    and return int($_->{size} * 512 / 1.07) } foreach @{$o->{fstab}};

    if ($::testing) {
	log::l("taking 200MB for testing");
	return 2000 << 20;
    }
    die "missing root partition";
}

sub setPackages($) {
    my ($o) = @_;

    require pkgs;
    if (is_empty_hash_ref($o->{packages})) {
	my $useHdlist = $o->{method} !~ /nfs|hd/ || $o->{isUpgrade};
	eval { $o->{packages} = pkgs::psUsingHdlist() }  if $useHdlist;
	$o->{packages} = pkgs::psUsingDirectory() if !$useHdlist || $@;

	push @{$o->{default_packages}}, "nfs-utils-clients" if $o->{method} eq "nfs";
	push @{$o->{default_packages}}, "numlock" if $o->{miscellaneous}{numlock};
	push @{$o->{default_packages}}, "kernel-secure" if $o->{security} > 3;
	push @{$o->{default_packages}}, "kernel-smp" if $o->{security} <= 3 && detect_devices::hasSMP(); #- no need for kernel-smp if we have kernel-secure which is smp
	push @{$o->{default_packages}}, "kernel-pcmcia-cs" if $o->{pcmcia};
	push @{$o->{default_packages}}, "apmd" if $o->{pcmcia};
	push @{$o->{default_packages}}, "raidtools" if $o->{raid} && !is_empty_array_ref($o->{raid}{raid});
	push @{$o->{default_packages}}, "cdrecord" if detect_devices::getIDEBurners();

	pkgs::getDeps($o->{packages});

	my $c; ($o->{compss}, $c) = pkgs::readCompss($o->{packages});
	$o->{compssListLevels} = pkgs::readCompssList($o->{packages}, $c);
	($o->{compssUsers}, $o->{compssUsersSorted}) = pkgs::readCompssUsers($o->{packages}, $o->{compss});

	my @l = ();
	push @l, "kapm" if $o->{pcmcia};
	$_->{values} = [ map { $_ + 50 } @{$_->{values}} ] foreach grep {$_} map { $o->{packages}{$_} } @l;

	grep { !$o->{packages}{$_} && log::l("missing base package $_") } @{$o->{base}} and die "missing some base packages";
    } else {
	pkgs::unselect_all($o->{packages});
    }

    #- this will be done if necessary in the selectPackagesToUpgrade,
    #- move the selection here ? this will remove the little window.
    unless ($o->{isUpgrade}) {
	do {
	    my $p = $o->{packages}{$_} or log::l("missing base package $_"), next;
	    pkgs::select($o->{packages}, $p, 1);
	} foreach @{$o->{base}};
	do {
	    my $p = $o->{packages}{$_} or log::l("missing add-on package $_"), next;
	    pkgs::select($o->{packages}, $p);
	} foreach @{$o->{default_packages}};
    }
}

sub selectPackagesToUpgrade($) {
    my ($o) = @_;

    require pkgs;
    pkgs::selectPackagesToUpgrade($o->{packages}, $o->{prefix}, $o->{base}, $o->{toRemove}, $o->{toSave});
}

sub addToBeDone(&$) {
    my ($f, $step) = @_;

    return &$f() if $::o->{steps}{$step}{done};

    push @{$::o->{steps}{$step}{toBeDone}}, $f;
}

sub getHds {
    my ($o) = @_;
    my ($ok, $ok2) = 1;

    my @drives = detect_devices::hds();
#    add2hash_($o->{partitioning}, { readonly => 1 }) if partition_table_raw::typeOfMBR($drives[0]{device}) eq 'system_commander';

  getHds: 
    $o->{hds} = catch_cdie { fsedit::hds(\@drives, $o->{partitioning}) }
      sub {
	my ($err) = $@ =~ /(.*) at /;
	$@ =~ /overlapping/ and $o->ask_warn('', $@), return 1;
	$o->ask_okcancel(_("Error"),
[_("I can't read your partition table, it's too corrupted for me :(
I'll try to go on blanking bad partitions"), $err]) unless $o->{partitioning}{readonly};
	$ok = 0; 1 
    };

    if (is_empty_array_ref($o->{hds}) && $o->{autoSCSI}) {
	$o->setupSCSI; #- ask for an unautodetected scsi card
	goto getHds;
    }

    ($o->{hds}, $o->{fstab}, $ok2) = fsedit::verifyHds($o->{hds}, $o->{partitioning}{readonly}, $ok);

    fs::check_mounted($o->{fstab});

    $o->{partitioning}{clearall} and return 1;
    $o->ask_warn('', 
_("DiskDrake failed to read correctly the partition table.
Continue at your own risk!")) if !$ok2 && $ok && !$o->{partitioning}{readonly};

    $ok2;
}

sub searchAndMount4Upgrade {
    my ($o) = @_;
    my ($root, $found);

    my $w = $::beginner && $o->wait_message('', _("Searching root partition."));

    #- try to find the partition where the system is installed if beginner
    #- else ask the user the right partition, and test it after.
    getHds($o);

    #- get all ext2 partition that may be root partition.
    my %Parts = my %parts = map { $_->{device} => $_ } grep { isExt2($_) } @{$o->{fstab}};
    while (keys(%parts) > 0) {
	$root = $::beginner ? first(%parts) : $o->selectRootPartition(keys %parts);
	$root = delete $parts{$root};

	my $r; unless ($r = $root->{realMntpoint}) {
	    $r = $o->{prefix};
	    $root->{mntpoint} = "/"; 
	    log::l("trying to mount partition $root->{device}");
	    eval { fs::mount_part($root, $o->{prefix}, 'readonly') };
	    $r = "/*ERROR*" if $@;
	}
	$found = -d "$r/etc/sysconfig" && [ fs::read_fstab("$r/etc/fstab") ];

	unless ($root->{realMntpoint}) {
	    log::l("umounting partition $root->{device}");
	    eval { fs::umount_part($root, $o->{prefix}) };
	}

	last if !is_empty_array_ref($found);

	delete $root->{mntpoint};
	$o->ask_warn(_("Information"), 
		     _("%s: This is not a root partition, please select another one.", $root->{device})) unless $::beginner;
    }
    is_empty_array_ref($found) and die _("No root partition found");
	
    log::l("found root partition : $root->{device}");

    #- test if the partition has to be fschecked and remounted rw.
    if ($root->{realMntpoint}) {
	($o->{prefix}, $root->{mntpoint}) = ($root->{realMntpoint}, '/');
    } else {
	delete $root->{mntpoint};
	($Parts{$_->{device}} || {})->{mntpoint} = $_->{mntpoint} foreach @$found;
	map { $_->{mntpoint} = 'swap_upgrade' } grep { isSwap($_) } @{$o->{fstab}}; #- use all available swap.

	#- TODO fsck, create check_mount_all ?
	fs::mount_all([ grep { isExt2($_) || isSwap($_) } @{$o->{fstab}} ], $o->{prefix});
    }
}

sub write_ldsoconf {
    my ($prefix) = @_;
    my $file = "$prefix/etc/ld.so.conf";

    #- write a minimal ld.so.conf file unless it already exists.
    unless (-s "$file") {
	local *F;
	open F, ">$file" or die "unable to open for writing $file";
	print F "/usr/lib\n";
    }
}

sub setAuthentication() {
    my ($shadow, $md5, $nis, $nis_server) = @{$::o->{authentication} || {}}{qw(shadow md5 NIS NIS_server)};
    my $p = $::o->{prefix};
    enableMD5Shadow($p, $shadow, $md5);
    enableShadow() if $shadow;
    if ($nis) {
	pkg_install($::o, "ypbind");
	my $domain = $::o->{netc}{NISDOMAIN};
	$domain || $nis_server ne "broadcast" or die _("Can't use broadcast with no NIS domain");
	my $t = $domain ? "domain $domain" . ($nis_server ne "broadcast" && " server")
	                : "ypserver";
	substInFile {
	    $_ = "#~$_" unless /^#/;
	    $_ .= "$t $nis_server\n" if eof;
	} "$p/etc/yp.conf";
	network::write_conf("$p/etc/sysconfig/network", $::o->{netc});
    }
}

sub enableShadow() {
    my $p = $::o->{prefix};
    run_program::rooted($p, "pwconv")  or log::l("pwconv failed");
    run_program::rooted($p, "grpconv") or log::l("grpconv failed");

#-    my $chpasswd = sub {
#-	  my ($name, $password) = @_;
#-	  $password =~ s/"/\\"/;
#-
#-	  local *log::l = sub {}; #- disable the logging (otherwise password visible in the log)
#-	  run_program::rooted($p, qq((echo "$password" ; sleep 1 ; echo "$password") | passwd $name));
#-#-	run_program::rooted($p, "echo $name:$password | chpasswd");
#-    };
#-    &$chpasswd("root", $::o->{superuser}{password});
#-    &$chpasswd($_->{name}, $_->{password}) foreach @{$::o->{users} || []};
}

sub enableMD5Shadow($$$) {
    my ($prefix, $shadow, $md5) = @_;
    substInFile {
	if (/^password.*pam_pwdb.so/) {
	    s/\s*shadow//; s/\s*md5//;
	    s/$/ shadow/ if $shadow;
	    s/$/ md5/ if $md5;
	}
    } grep { -r $_ } map { "$prefix/etc/pam.d/$_" } qw(login rlogin passwd);
}

sub crypt($) {
    my ($password) = @_;

    $::o->{authentication}{md5} ?
      c::crypt_md5($password, salt(8)) :
         crypt    ($password, salt(2));
}

sub lnx4win_postinstall {
    my ($prefix) = @_;
    my $dir = "/dos/lnx4win";
    my $kernel = "$dir/vmlinuz";
    rename $kernel, "$kernel.old";
    commands::dd("if=$prefix/boot/vmlinuz", "of=$kernel");
    run_program::run("rdev", $kernel, "/dev/loop7");

    unlink "$dir/size.txt";
    unlink "$dir/swapsize.txt";

    mkdir "$prefix/initrd", 0755;
    symlinkf "/initrd/dos", "$prefix/mnt/dos";
}

sub killCardServices {
    my $pid = chop_(cat_("/tmp/cardmgr.pid"));
    $pid and kill(15, $pid); #- send SIGTERM
}

sub hdInstallPath() {
    cat_("/proc/mounts") =~ m|/tmp/(\S+)\s+/tmp/hdimage| or return;
    my ($part) = grep { $_->{device} eq $1 } @{$::o->{fstab}};    
    $part->{mntpoint} or grep { $_->{mntpoint} eq "/mnt/hd" } @{$::o->{fstab}} and return;
    $part->{mntpoint} ||= "/mnt/hd";
    $part->{mntpoint} . first(readlink("/tmp/rhimage") =~ m|^/tmp/hdimage/(.*)|);
}

sub unlockCdrom() {
    cat_("/proc/mounts") =~ m|/tmp/(\S+)\s+/tmp/rhimage| or return;
    eval { ioctl detect_devices::tryOpen($1), c::CDROM_LOCKDOOR(), 0 };
}
sub ejectCdrom() {
    cat_("/proc/mounts") =~ m|/tmp/(\S+)\s+/tmp/rhimage| or return;
    my $f = eval { detect_devices::tryOpen($1) } or return;
    getFile("XXX"); #- close still opened filehandle
    eval { fs::umount("/tmp/rhimage") };
    ioctl $f, c::CDROMEJECT(), 1;
}

sub setupFB {
    my ($o, $vga) = @_;

    #- install needed packages for frame buffer.
    require pkgs;
    pkgs::select($o->{packages}, $o->{packages}{'kernel-fb'});
    pkgs::select($o->{packages}, $o->{packages}{'XFree86-FBDev'});
    $o->installPackages($o->{packages});

    $vga ||= 785; #- assume at least 640x480x16.

    require lilo;
    #- update lilo entries with a new fb label. a bit hack unless
    #- a frame buffer kernel is used, in such case we use it instead
    #- with the right mode, nothing more to do.
    foreach (qw(secure smp)) {
	if ($o->{bootloader}{entries}{"/boot/vmlinuz-$_"}) {
	    $o->{bootloader}{entries}{"/boot/vmlinuz-$_"}{vga} = $vga;
	    lilo::install($o->{prefix}, $o->{bootloader});
	    return 1;
	}
    }
    my $root = $o->{bootloader}{entries}{'/boot/vmlinuz'}{root};
    if (lilo::add_kernel($o->{prefix}, $o->{bootloader}, kernelVersion(), 'fb',
			 {
			  label => 'linux-fb',
			  root => $root,
			  vga => $vga,
			 })) {
	$o->{bootloader}{default} = 'linux-fb';
	lilo::install($o->{prefix}, $o->{bootloader});
    } else {
	log::l("unable to install kernel with frame buffer support, disabling");
	return 0;
    }
    1;
}

sub auto_inst_file() { ($::g_auto_install ? "/tmp" : "$::o->{prefix}/root") . "/auto_inst.cfg.pl" }

sub g_auto_install(;$) {
    my ($f) = @_; $f ||= auto_inst_file;
    my $o = {};

    $o->{default_packages} = [ map { $_->{name} } grep { $_->{selected} && !$_->{base} } values %{$::o->{packages}} ];

    my @fields = qw(mntpoint type size);
    $o->{partitions} = [ map { my %l; @l{@fields} = @$_{@fields}; \%l } grep { $_->{mntpoint} } @{$::o->{fstab}} ];
    
    exists $::o->{$_} and $o->{$_} = $::o->{$_} foreach qw(lang autoSCSI authentication printer mouse wacom netc timezone superuser intf keyboard mkbootdisk base users installClass partitioning isUpgrade manualFstab nomouseprobe crypto modem useSupermount auto_probe_pci); #- TODO modules bootloader 

    if (my $card = $::o->{X}{card}) {
	$o->{X}{card}{$_} = $card->{$_} foreach qw(default_depth);
	if ($card->{default_depth} and my $depth = $card->{depth}{$card->{default_depth}}) {
	    $depth ||= [];
	    $o->{X}{card}{resolution_wanted} ||= join "x", @{$depth->[0]} unless is_empty_array_ref($depth->[0]);
	}
    }

#-    local $o->{partitioning}{clearall} = 1;

    $_ = { %{$_ || {}} }, delete @$_{qw(oldu oldg password password2)} foreach $o->{superuser}, @{$o->{users} || []};
    
    local *F;
    open F, ">$f" or log::l("can't output the auto_install script in $f"), return;
    print F Data::Dumper->Dump([$o], ['$o']), "\0";
}

sub loadO {
    my ($O, $f) = @_; $f ||= auto_inst_file;
    my $o;
    if ($f =~ /^(floppy|patch)$/) {
	my $f = $f eq "floppy" ? "auto_inst.cfg" : "patch";
	unless ($::testing) {
	    fs::mount(devices::make("fd0"), "/mnt", "vfat", 0);
	    $f = "/mnt/$f";
	}
	-e $f or $f .= ".pl";

	my $b = before_leaving {
	    fs::umount("/mnt") unless $::testing;
	    modules::unload($_) foreach qw(vfat fat);
	};
	$o = loadO($O, $f);
    } else {
	-e $f or $f .= ".pl";
	{
	    local *F;
	    open F, $f or die _("Error reading file $f");

	    local $/ = "\0";
	    no strict;
	    eval <F>;
	}
	$@ and log::l _("Bad kickstart file %s (failed %s)", $f, $@);
	add2hash_($o ||= {}, $O);
    }
    bless $o, ref $O;
}

sub pkg_install {
    my ($o, $name) = @_;
    require pkgs;
    pkgs::select($o->{packages}, $o->{packages}{$name} || die "$name rpm not found");
    install_steps::installPackages ($o, $o->{packages});
}

sub fsck_option() {
    my $y = $::o->{security} < 3 && $::beginner ? "-y " : "";
    substInFile { s/^(\s*fsckoptions="?)(-y )?/$1$y/ } "$::o->{prefix}/etc/rc.d/rc.sysinit";
}

sub install_urpmi {
    my ($prefix, $method) = @_;

    (my $name = _("installation")) =~ s/\s/_/g; #- in case translators are too good :-/

    my $f = "$prefix/var/lib/urpmi/hdlist.$name";
    {
	my $fd = getFile("hdlist") or return;
	local *OUT;
	open OUT, ">$f" or log::l("failed to write $f"), return;
	local $/ = \ (16 * 1024);
	print OUT foreach <$fd>;
    }
    {
	local *F = getFile("depslist");
	output("$prefix/var/lib/urpmi/depslist", <F>);
    }
    {
	local *LIST;
	open LIST, ">$prefix/var/lib/urpmi/list.$name" or log::l("failed to write list.$name"), return;

	my $dir = ${{ nfs => "file://mnt/nfs", 
                      hd => "file:/" . hdInstallPath,
		      ftp => $ENV{URLPREFIX},
		      http => $ENV{URLPREFIX},
		      cdrom => "removable_cdrom_1://mnt/cdrom" }}{$method};
	local *FILES; open FILES, "hdlist2names $f|";
	chop, print LIST "$dir/Mandrake/RPMS/$_\n" foreach <FILES>;
	close FILES or log::l("hdlist2names failed"), return;

	run_program::run("gzip", "-9", $f);

	$dir .= "/Mandrake/RPMS with ../base/hdlist" if $method =~ /ftp|http/;
	eval { output "$prefix/etc/urpmi/urpmi.cfg", "$name $dir\n" };
    }
}

sub list_passwd() {
    my ($e, @l);

    setpwent();
    while (@{$e = [ getpwent() ]}) { push @l, $e }
    endpwent();

    @l;
}

sub list_home() {
    map { $_->[7] } grep { $_->[2] >= 500 } list_passwd();
}
sub list_skels() { "/etc/skel", "/root", list_home() }

sub template2userfile($$$$%) {
    my ($prefix, $inputfile, $outputrelfile, $force, %toreplace) = @_;

    foreach (list_skels()) {
	my $outputfile = "$prefix/$_/$outputrelfile";
	if (-d dirname($outputfile) && ($force || ! -e $outputfile)) {
	    log::l("generating $outputfile from template $inputfile");
	    template2file($inputfile, $outputfile, %toreplace);
	    m|/home/(.*)| and commands::chown_($1, $outputfile);
	}
    }
}

sub update_userkderc($$$) {
    my ($prefix, $cat, $subst) = @_;

    foreach (list_skels()) {
	my ($inputfile, $outputfile) = ("$prefix$_/.kderc", "$prefix$_/.kderc.new");
	my %tosubst = (%$subst);
	local *INFILE; local *OUTFILE;
	open INFILE, $inputfile or return;
	open OUTFILE, ">$outputfile" or return;

	print OUTFILE map {
	    if (my $i = /^\s*\[$cat\]/i ... /^\s*\[/) {
		if (/^\s*(\w*)=/ && $tosubst{lc($1)}) {
		    delete $tosubst{lc($1)};
		} else {
		    ($i > 1 && /^\s*\[/ && join '', map { delete $tosubst{$_} } keys %tosubst). $_;
		}
	    } else {
		$_;
	    }
	} <INFILE>;
	print OUTFILE "[$cat]\n", values %tosubst if values %tosubst; #- if categorie has not been found above.

	unlink $inputfile;
	rename $outputfile, $inputfile;
    }
}

sub kderc_largedisplay($) {
    my ($prefix) = @_;

    update_userkderc($prefix, 'KDE', {
				      contrast => "Contrast=7\n",
				      kfmiconstyle => "kfmIconStyle=Large\n",
				      kpaneliconstyle => "kpanelIconStyle=Normal\n", #- to change to Large when icons looks better
				      kdeiconstyle => "KDEIconStyle=Large\n",
				     });
    foreach (list_skels()) {
	substInFile {
	    s/^(GridWidth)=85/$1=100/;
	    s/^(GridHeight)=70/$1=75/;
	} "$prefix$_/.kde/share/config/kfmrc" 
    }
}

sub kdelang_postinstall($) {
    my ($prefix) = @_;
    my %i18n = getVarsFromSh("$prefix/etc/sysconfig/i18n");

    #- remove existing reference to $lang.
    update_userkderc($prefix, 'Locale', { language => "Language=\n" });
}

sub kdeicons_postinstall($) {
    my ($prefix) = @_;

    #- parse etc/fstab file to search for dos/win, floppy, zip, cdroms icons.
    #- handle both supermount and fsdev usage.
    local *F;
    open F, "$prefix/etc/fstab" or log::l("failed to read $prefix/etc/fstab"), return;

    foreach (<F>) {
	if (m|^/dev/(\S+)\s+/mnt/cdrom(\d*)\s+|) {
	    my %toreplace = ( device => $1, id => $2 );
	    template2userfile($prefix, "/usr/share/cdrom.fsdev.kdelnk.in", "Desktop/Cd-Rom". ($2 && " $2") .".kdelnk",
			      1, %toreplace);
	} elsif (m|^/dev/(\S+)\s+/mnt/zip(\d*)\s+|) {
	    my %toreplace = ( device => $1, id => $2 );
	    template2userfile($prefix, "/usr/share/zip.fsdev.kdelnk.in", "Desktop/Zip". ($2 && " $2") .".kdelnk",
			      1, %toreplace);
	} elsif (m|^/dev/(\S+)\s+/mnt/floppy(\d*)\s+|) {
	    my %toreplace = ( device => $1, id => $2 );
	    template2userfile($prefix, "/usr/share/floppy.fsdev.kdelnk.in", "Desktop/Floppy". ($2 && " $2") .".kdelnk",
			      1, %toreplace);
	} elsif (m|^/mnt/cdrom(\d*)\s+/mnt/cdrom\d*\s+supermount|) {
	    my %toreplace = ( id => $1 );
	    template2userfile($prefix, "/usr/share/cdrom.kdelnk.in", "Desktop/Cd-Rom". ($1 && " $1") .".kdelnk",
			      1, %toreplace);
	} elsif (m|^/mnt/zip(\d*)\s+/mnt/zip\d*\s+supermount|) {
	    my %toreplace = ( id => $1 );
	    template2userfile($prefix, "/usr/share/zip.kdelnk.in", "Desktop/Zip". ($1 && " $1") .".kdelnk",
			      1, %toreplace);
	} elsif (m|^/mnt/floppy(\d*)\s+/mnt/floppy\d*\s+supermount|) {
	    my %toreplace = ( id => $1 );
	    template2userfile($prefix, "/usr/share/floppy.kdelnk.in", "Desktop/Floppy". ($1 && " $1") .".kdelnk",
			      1, %toreplace);
	} elsif (m|^/dev/(\S+)\s+(/mnt/DOS_\S*)\s+|) {
	    my %toreplace = ( device => $1, id => $1, mntpoint => $2 );
	    template2userfile($prefix, "/usr/share/Dos_.kdelnk.in", "Desktop/Dos_$1.kdelnk", 1, %toreplace);
	} elsif (m|^/dev/(\S+)\s+(\S*)\s+vfat\s+|) {
	    my %toreplace = ( device => $1, id => $1, mntpoint => $2 );
	    template2userfile($prefix, "/usr/share/Dos_.kdelnk.in", "Desktop/Dos_$1.kdelnk", 1, %toreplace);
	}
    }

    my @l = map { "$prefix$_/Desktop/Doc.kdelnk" } list_skels();
    if (my ($lang) = eval { all("$prefix/usr/doc/mandrake") }) {
	substInFile { s|^(URL=.*?)/?$|$1/$lang| } @l;
    } else {
	unlink @l;
    }

    my $lang = quotemeta $ENV{LANG};
    foreach my $dir (map { "$prefix$_/Desktop" } list_skels()) {
	-d $dir or next;
	foreach (grep { /\.kdelnk$/ } all($dir)) {
	    cat_("$dir/$_") =~ /^Name\[$lang\]=(.{2,14})$/m
	      and rename "$dir/$_", "$dir/$1.kdelnk";
	}
    }
}

sub move_desktop_file($) {
    my ($prefix) = @_;
    my @toMove = qw(doc.kdelnk news.kdelnk updates.kdelnk home.kdelnk printer.kdelnk floppy.kdelnk cdrom.kdelnk FLOPPY.kdelnk CDROM.kdelnk);

    foreach (list_skels()) {
	my $dir = "$prefix$_";
	if (-d "$dir/Desktop") {
	    my @toSubst = glob_("$dir/Desktop/*rpmorig");

	    push @toSubst, "$dir/Desktop/$_" foreach @toMove;

	    #- remove any existing save in Trash of each user and
	    #- move appropriate file there after an upgrade.
	    foreach (@toSubst) {
		if (-e $_) {
		    my $basename = basename($_);

		    unlink "$dir/Desktop/Trash/$basename";
		    rename $_, "$dir/Desktop/Trash/$basename";
		}
	    }
	}
    }
}

1;
"utilizați"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "Adresă IP"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Server Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/ru.po b/perl-install/standalone/po/ru.po
index 4e8bf4630..555fb87c7 100644
--- a/perl-install/standalone/po/ru.po
+++ b/perl-install/standalone/po/ru.po
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: ru\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2010-05-03 20:21+0300\n"
"Last-Translator: Alexander Kazancev <kazancas@mandriva.ru>\n"
"Language-Team: Russian <gnu@mx.ru>\n"
@@ -2690,6 +2690,16 @@ msgstr "Пожалуйста, введите ниже адрес своего em
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "и введите имя (или IP) SMTP сервера, который желаете использовать"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP-адрес"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Сервер Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/sc.po b/perl-install/standalone/po/sc.po
index 6ae80661f..fb47185cd 100644
--- a/perl-install/standalone/po/sc.po
+++ b/perl-install/standalone/po/sc.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX-sc\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2005-09-14 11:29+0100\n"
"Last-Translator: Antoni Pistis <antonio.pistis@virgilio.it>\n"
"Language-Team: Sardu\n"
@@ -2577,6 +2577,16 @@ msgstr ""
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr ""
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "Bivimentu IP"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Server Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/sk.po b/perl-install/standalone/po/sk.po
index 55700ab21..6a2ee35d3 100644
--- a/perl-install/standalone/po/sk.po
+++ b/perl-install/standalone/po/sk.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2005-09-21 14:03+0100\n"
"Last-Translator: Tibor Pittich <Tibor.Pittich@mandriva.org>\n"
"Language-Team: <i18n@mandrake.sk>\n"
@@ -2686,6 +2686,16 @@ msgstr "Vložte vašu emailovú adresu nižšie"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "vložte meno (alebo IP adresu) SMTP servera ktorý si želáte používať"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP adresa"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba server"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/sl.po b/perl-install/standalone/po/sl.po
index c6e712f58..e59f890a3 100644
--- a/perl-install/standalone/po/sl.po
+++ b/perl-install/standalone/po/sl.po
@@ -10,7 +10,7 @@
msgid ""
msgstr ""
"Project-Id-Version: drakx_standalone\n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2012-07-20 22:17+0100\n"
"Last-Translator: Filip Komar <filip.komar@gmail.com>\n"
"Language-Team: Slovenian <lugos-slo@lugos.si>, Translation list <mageia-"
@@ -2692,6 +2692,16 @@ msgstr "Spodaj vpišite svoj e-poštni naslov "
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "in vnesite ime (ali IP) strežnika SMTP, ki ga želite uporabiti"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "Naslov IP"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Strežnik Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/sq.po b/perl-install/standalone/po/sq.po
index 7f5625d62..10f29a17a 100644
--- a/perl-install/standalone/po/sq.po
+++ b/perl-install/standalone/po/sq.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX for MDK 9.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2004-09-15 13:33+0200\n"
"Last-Translator: Naim Daka <naim70@freesurf.ch>\n"
"Language-Team: Albanian <LL@li.org>\n"
@@ -2675,6 +2675,16 @@ msgstr ""
"Futni adresën IP dhe portën e ftuesit, se cilin stampues dëshironi ta "
"përdorni."
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "Adresa IP"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Server Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/sr.po b/perl-install/standalone/po/sr.po
index c1c05cb05..663605e68 100644
--- a/perl-install/standalone/po/sr.po
+++ b/perl-install/standalone/po/sr.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2004-09-15 13:33+0200\n"
"Last-Translator: Toma Jankovic <tomaja@net.yu>\n"
"Language-Team: Serbian <i18n@mandrake.co.yu>\n"
@@ -2638,6 +2638,16 @@ msgstr "Унесите своју email адресу доле"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "Унесите IP адресу и порт хоста чије штампаче желите да користите."
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP адреса"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba Сервер"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/sr@Latn.po b/perl-install/standalone/po/sr@Latn.po
index 5ffd5b216..6e2af25ba 100644
--- a/perl-install/standalone/po/sr@Latn.po
+++ b/perl-install/standalone/po/sr@Latn.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2004-09-15 13:34+0200\n"
"Last-Translator: Toma Jankovic_<tomaja@net.yu>\n"
"Language-Team: Serbian <i18n@mandrake.co.yu>\n"
@@ -2639,6 +2639,16 @@ msgstr "Unesite svoju email adresu dole"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "Unesite IP adresu i port hosta čije štampače želite da koristite."
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP adresa"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba Server"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/sv.po b/perl-install/standalone/po/sv.po
index 7aaf04114..83caaf9d2 100644
--- a/perl-install/standalone/po/sv.po
+++ b/perl-install/standalone/po/sv.po
@@ -15,7 +15,7 @@ msgid ""
msgstr ""
"Project-Id-Version: libDrakX-standalone-sv\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2011-05-24 21:36+0200\n"
"Last-Translator: Thomas Backlund <tmb@mageia.org>\n"
"Language-Team: Swedish <mageia-i18n@mageia.org>\n"
@@ -2695,6 +2695,16 @@ msgstr "Ange din e-postadress nedan "
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "och ange namnet (ellerIP-adressen) på den SMTP server du vill använda."
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP-adress"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba-server"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/ta.po b/perl-install/standalone/po/ta.po
index 64018b1da..064456256 100644
--- a/perl-install/standalone/po/ta.po
+++ b/perl-install/standalone/po/ta.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX 1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2002-09-06 00:35+0800\n"
"Last-Translator: prabu anand <prabu_anand2000@yahoo.com>\n"
"Language-Team: Tamil <tamilinix@yahoogroups.com>\n"
@@ -2586,6 +2586,16 @@ msgstr "உங்கள் மின்னஞ்சல் முகவரிய
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr ""
+#: logdrake:440
+#, c-format
+msgid "Email address"
+msgstr ""
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "ஒலிப் பரிமாறி"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/tg.po b/perl-install/standalone/po/tg.po
index 4173fca07..f69a0fbdd 100644
--- a/perl-install/standalone/po/tg.po
+++ b/perl-install/standalone/po/tg.po
@@ -16,7 +16,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX-tg\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2005-09-17 16:03+0500\n"
"Last-Translator: Victor Ibragimov <youth_opportunities@tajikngo.org>\n"
"Language-Team: Tajik\n"
@@ -2701,6 +2701,16 @@ msgstr ""
"ва номро дохил кунед (ё Шиносаи) хидматрасони SMTP-ро, ки шумо истифода "
"бурдан мехоҳед"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "Суроғаи IP"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Хидматгори Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/th.po b/perl-install/standalone/po/th.po
index eed05ed52..5f028d5c2 100644
--- a/perl-install/standalone/po/th.po
+++ b/perl-install/standalone/po/th.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2001-09-10 14:24GMT+7\n"
"Last-Translator: Wachara Chinsettawong <wachara@yahoo.com>\n"
"Language-Team: Thai <th@li.org>\n"
@@ -2579,6 +2579,16 @@ msgstr "โปรดลองอีกครั้ง"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr ""
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "ค่า IP"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "เซิร์ฟเวอร์ NIS"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/tl.po b/perl-install/standalone/po/tl.po
index 99e568d39..ce791bc06 100644
--- a/perl-install/standalone/po/tl.po
+++ b/perl-install/standalone/po/tl.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX-tl\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2004-09-15 13:35+0200\n"
"Last-Translator: Arys P. Deloso <arys@deloso.org>\n"
"Language-Team: Filipino <salinpinoy@comitus.net>\n"
@@ -2677,6 +2677,16 @@ msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr ""
"at ipasok ang pangalan (o ang IP) ng SMTP server na gusto ninyong gamitin"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP address"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba Server"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/tr.po b/perl-install/standalone/po/tr.po
index a84e3bdd0..1d4287e2b 100644
--- a/perl-install/standalone/po/tr.po
+++ b/perl-install/standalone/po/tr.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: drakx_standalone\n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2012-01-16 15:57+0000\n"
"Last-Translator: Atilla ÖNTAŞ <tarakbumba@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -2671,6 +2671,16 @@ msgstr "Lütfen e-posta adresinizi aşağıya giriniz "
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "ve kullanmak istediğiniz SMTP sunucu adını (veya IP) girin"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP adresi:"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba Sunucu"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/uk.po b/perl-install/standalone/po/uk.po
index a0a06c2b6..8af54cfc9 100644
--- a/perl-install/standalone/po/uk.po
+++ b/perl-install/standalone/po/uk.po
@@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: drakx_standalone\n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2012-01-19 16:43+0200\n"
"Last-Translator: Yuri Chornoivan <yurchor@ukr.net>\n"
"Language-Team: Ukrainian <kde-i18n-uk@kde.org>\n"
@@ -2675,6 +2675,16 @@ msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr ""
"і вкажіть назву (або IP-адресу) сервера SMTP, який ви хочете використовувати"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP-адреса"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Сервер Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/uz.po b/perl-install/standalone/po/uz.po
index 62f7cdc87..a0ea540c7 100644
--- a/perl-install/standalone/po/uz.po
+++ b/perl-install/standalone/po/uz.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: uz\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2007-09-26 23:16+0200\n"
"Last-Translator: Mashrab Kuvatov <kmashrab@uni-bremen.de>\n"
"Language-Team: Uzbek <floss-uz-l10n@googlegroups.com>\n"
@@ -2603,6 +2603,16 @@ msgstr "Iltimos elektron pochtangizni kiriting"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr ""
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP raqami"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba serveri"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/uz@cyrillic.po b/perl-install/standalone/po/uz@cyrillic.po
index 079ac36c8..9b8b7e170 100644
--- a/perl-install/standalone/po/uz@cyrillic.po
+++ b/perl-install/standalone/po/uz@cyrillic.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: uz\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2007-09-26 23:16+0200\n"
"Last-Translator: Mashrab Kuvatov <kmashrab@uni-bremen.de>\n"
"Language-Team: Uzbek <floss-uz-l10n@googlegroups.com>\n"
@@ -2600,6 +2600,16 @@ msgstr "Илтимос электрон почтангизни киритинг"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr ""
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP рақами"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba сервери"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/vi.po b/perl-install/standalone/po/vi.po
index 5e00e9f34..0b230bc3c 100644
--- a/perl-install/standalone/po/vi.po
+++ b/perl-install/standalone/po/vi.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX-vi version\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2005-06-02 21:17+0700\n"
"Last-Translator: Larry Nguyen <larry@vnlinux.org>\n"
"Language-Team: <gnomevi-list@lists.sourceforge.net>\n"
@@ -2677,6 +2677,16 @@ msgstr "Hãy nhập địa chỉ e-mail của bạn ở dưới"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "và nhập tên hoặc IP của máy chủ SMTP mà bạn muốn dùng."
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "Địa chỉ IP"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Máy Chủ Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/wa.po b/perl-install/standalone/po/wa.po
index 48c2da2e1..0b98a8b08 100644
--- a/perl-install/standalone/po/wa.po
+++ b/perl-install/standalone/po/wa.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2006-09-05 19:54+0200\n"
"Last-Translator: Pablo Saratxaga <pablo@walon.org>\n"
"Language-Team: Walloon <linux-wa@walon.org>\n"
@@ -2696,6 +2696,16 @@ msgstr "Dinez voste adresse emile s' i vs plait"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "et dnez l' no (ou l' adresse IP) do sierveu SMTP a-z eployî"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "Adresse IP"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Sierveu Samba"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/zh_CN.po b/perl-install/standalone/po/zh_CN.po
index 0ca411d8d..eb875046d 100644
--- a/perl-install/standalone/po/zh_CN.po
+++ b/perl-install/standalone/po/zh_CN.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX 2007\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2009-04-09 11:56+0800\n"
"Last-Translator: Funda Wang <fundawang@linux.net.cn>\n"
"Language-Team: Mageia i18n Team <cooker-i18n@mandrivalinux.org>\n"
@@ -2656,6 +2656,16 @@ msgstr "请在下面输入您的电子邮件地址 "
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "请输入您想使用的 SMTP 服务器的名称(或 IP 地址)"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP 地址"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba 服务器"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"
diff --git a/perl-install/standalone/po/zh_TW.po b/perl-install/standalone/po/zh_TW.po
index 565bf8205..2d104e101 100644
--- a/perl-install/standalone/po/zh_TW.po
+++ b/perl-install/standalone/po/zh_TW.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: drakx_standalone\n"
-"POT-Creation-Date: 2012-12-11 17:34+0100\n"
+"POT-Creation-Date: 2013-01-13 16:56+0100\n"
"PO-Revision-Date: 2011-04-28 01:18+0000\n"
"Last-Translator: Franklin Weng <franklin@goodhorse.idv.tw>\n"
"Language-Team: Traditional Chinese <zh-l10n@linux.org.tw>\n"
@@ -2643,6 +2643,16 @@ msgstr "請於下方輸入你的 e-mail"
msgid "and enter the name (or the IP) of the SMTP server you wish to use"
msgstr "並輸入您要使用的 SMTP 伺服器名稱 (或 IP)"
+#: logdrake:440
+#, fuzzy, c-format
+msgid "Email address"
+msgstr "IP 位址"
+
+#: logdrake:441
+#, fuzzy, c-format
+msgid "Email server"
+msgstr "Samba 伺服器"
+
#: logdrake:445
#, c-format
msgid "\"%s\" neither is a valid email nor is an existing local user!"