[packagekit] Getting and setting the proxy server
Klaus Kaempf
kkaempf at suse.de
Tue May 20 07:54:04 PDT 2008
* Richard Hughes <hughsient at gmail.com> [May 20. 2008 16:22]:
> On Tue, 2008-05-20 at 16:08 +0200, Klaus Kaempf wrote:
> > CURL uses various shell environment variables (http_proxy, FTP_PROXY,
> > ...), see 'man curl'.
> >
> > SUSE stores proxy-related settings in /etc/sysconfig/proxy
> >
> > I guess its up to the backend to handle distribution-specific
> > settings.
>
> No, I don't think so. I think it's a sane fallback, but users shouldn't
> have to futz around in two places.
Agreed (to make user's life as easy as possible).
> I think packagekitd should read /etc/sysconfig/proxy et al. and use
> these in envp for the new process. This way we can change the proxy in
> the session and also have packagekit do the right thing.
Hmm, it seems as if proxy setting are highly distribution specific.
Retrieving them through the backend seems to be a natural place to me.
>
> Could you attach a sample /etc/sysconfig/proxy for me to peruse please?
Find the one for openSUSE attached, it's fully commented.
Klaus
-------------- next part --------------
## Path: Network/Proxy
## Description:
## Type: yesno
## Default: no
## Config: kde,profiles
#
# Enable a generation of the proxy settings to the profile.
# This setting allows to turn the proxy on and off while
# preserving the particular proxy setup.
#
PROXY_ENABLED="no"
## Type: string
## Default: ""
#
# Some programs (e.g. lynx, arena and wget) support proxies, if set in
# the environment. SuSEconfig can add these environment variables to
# /etc/SuSEconfig/* (sourced by /etc/profile etc.) -
# See http://portal.suse.com/sdb/en/1998/01/lynx_proxy.html for more details.
# Example: HTTP_PROXY="http://proxy.provider.de:3128/"
HTTP_PROXY=""
## Type: string
## Default: ""
#
# Some programs (e.g. lynx, arena and wget) support proxies, if set in
# the environment. SuSEconfig can add these environment variables to
# /etc/SuSEconfig/* (sourced by /etc/profile etc.) -
# this setting is for https connections
HTTPS_PROXY=""
## Type: string
## Default: ""
#
# Example: FTP_PROXY="http://proxy.provider.de:3128/"
#
FTP_PROXY=""
## Type: string
## Default: ""
#
# Example: GOPHER_PROXY="http://proxy.provider.de:3128/"
#
GOPHER_PROXY=""
## Type: string(localhost)
## Default: localhost
#
# Example: NO_PROXY="www.me.de, do.main, localhost"
#
NO_PROXY="localhost, 127.0.0.1"
More information about the PackageKit
mailing list