Changeset 2234 in ProjectBuilder for devel/pb


Ignore:
Timestamp:
Jun 27, 2017, 3:32:10 PM (7 years ago)
Author:
Bruno Cornec
Message:

Adds https_proxy support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2232 r2234  
    619619 verpmtype default = rpmbootstrap
    620620
    621 You may also choose to specify a mirror for the OS packages, and optionally http/ftp proxies.  You can specify the proxies either through environment variables ($http_proxy/$ftp_proxy) or in the configuration file. The configuration file will be used if no corresponding environment variable has been set. For example, for debian and with a local squid proxy:
     621You may also choose to specify a mirror for the OS packages, and optionally http/ftp proxies.  You can specify the proxies either through environment variables ($http_proxy/$https_proxy/$ftp_proxy) or in the configuration file. The configuration file will be used if no corresponding environment variable has been set. For example, for debian and with a local squid proxy:
    622622
    623623 rbsmirrorsrv debian = http://mirrors1.kernel.org/debian/
    624624 http_proxy default = http://localhost:3128/
     625 https_proxy default = http://localhost:3128/
    625626 ftp_proxy default = http://localhost:3128/
    626627
     
    33893390        print SCRIPT "export http_proxy=\"$ENV{'http_proxy'}\"\n";
    33903391    }
    3391 
     3392    if (defined $ENV{'https_proxy'}) {
     3393        print SCRIPT "export https_proxy=\"$ENV{'https_proxy'}\"\n";
     3394    }
    33923395    if (defined $ENV{'ftp_proxy'}) {
    33933396        print SCRIPT "export ftp_proxy=\"$ENV{'ftp_proxy'}\"\n";
     
    38583861        print SCRIPT << "EOF";
    38593862# Keep proxy configuration while using sudo
    3860 print PBOUT "Defaults:$pbac->{$ENV{'PBPROJ'}}    env_keep += \\\"http_proxy ftp_proxy\\\"\\n";
    3861 print PBOUT "Defaults:root    env_keep += \\\"http_proxy ftp_proxy\\\"\\n";
     3863print PBOUT "Defaults:$pbac->{$ENV{'PBPROJ'}}    env_keep += \\\"http_proxy https_proxy ftp_proxy\\\"\\n";
     3864print PBOUT "Defaults:root    env_keep += \\\"http_proxy https_proxy ftp_proxy\\\"\\n";
    38623865EOF
    38633866    }
Note: See TracChangeset for help on using the changeset viewer.