summaryrefslogtreecommitdiffstats
path: root/perl-install/proxy.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/proxy.pm')
-rw-r--r--perl-install/proxy.pm39
1 files changed, 36 insertions, 3 deletions
diff --git a/perl-install/proxy.pm b/perl-install/proxy.pm
index f19ed4d82..8779d48c8 100644
--- a/perl-install/proxy.pm
+++ b/perl-install/proxy.pm
@@ -10,12 +10,45 @@ use c;
sub main {
my ($prefix, $in, $install) = @_;
begin:
+ $::isWizard = 1;
$::Wizard_no_previous = 1;
$in->ask_okcancel(_("Proxy configuration"), _("blabla proxy"), 1) or quit_global($in, 0);
- my $url;
- my $e = $in->ask_from_entry($url, _("foo"), _("url"));
- print "$url / $e \n";
+
+ # http proxy
+ my $http_proxy = {};
+ $http_proxy->{url} = "http://bla.foo.fr/";
+ $in->ask_from_entries_refH(_("Proxy configuration"),
+ _("Please fill in the http proxy informations"),
+ [
+ { label => _("URL"), val => \$http_proxy->{url} },
+ { label => _("port"), val => \$http_proxy->{port} }
+ ]
+ );
undef $::Wizard_no_previous;
+ # ftp proxy
+ my $ftp_proxy = {};
+ $ftp_proxy->{url} = "http://bla.foo.fr/";
+ $in->ask_from_entries_refH(_("Proxy configuration"),
+ _("Please fill in the ftp proxy informations"),
+ [
+ { label => _("URL"), val => \$ftp_proxy->{url} },
+ { label => _("port"), val => \$ftp_proxy->{port} }
+ ]
+ );
+ # proxy login/passwd
+ my $proxy_login = {};
+ $in->ask_from_entries_refH(_("Proxy configuration"),
+ _("Please enter proxy login and password, if any"),
+ [
+ { label => _("login"), val => \$proxy_login->{login} },
+ { label => _("password"), val => \$proxy_login->{passwd} }
+ ]
+ );
+
+ print "http: $http_proxy->{url}:$http_proxy->{port}\n";
+ print "ftp: $ftp_proxy->{url}:$ftp_proxy->{port}\n";
+ print "login: $proxy_login->{login}, $proxy_login->{passwd}\n";
+
log::l("[drakproxy] Installation complete, exiting\n");
}