anonymous2ch / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

[PATCH] SUSE sysconfig/proxy config support #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This patch allows to use sysconfig directly. This is used so that if you change 
the proxy using YaST, it will continue to work with the new configured proxy 
before the environment is regenerated.

This allows for libzypp to drop it proxy code and use libproxy exclusively.

You can see the module is only activated if running as root.

Original issue reported on code.google.com by dmacvi...@gmail.com on 23 Nov 2010 at 2:58

GoogleCodeExporter commented 9 years ago
I don't know how to attach a new version of the patch. I will post the patch 
here:

https://bugzilla.novell.com/show_bug.cgi?id=655483

Original comment by dmacvi...@gmail.com on 23 Nov 2010 at 3:31

GoogleCodeExporter commented 9 years ago
I would prefer a generic configuration files that can be used accross distros. 
I do prefer if it was /etc/proxy.config and ~/.proxy.conf like it was before, 
but using /etc/sysconfig/proxy could be fine too. In order to get this patch in 
I'd suggest adding the following:

- For other protocols use SOCKS_PROXY configuration (if exist)
- Document in a man page this configuration file syntax
- Make sure that configuration is overridable by users

Original comment by nicolas.dufresne@gmail.com on 23 Nov 2010 at 5:14

GoogleCodeExporter commented 9 years ago
I am not trying to invent a new proxy configuration file, but basically to 
support one that it is used by every SUSE derivative (openSUSE, SLE, Linkat 
(Catalan Gov), Smeegol (MeeGo rebuild)) etc. Redhat derivatives also uses 
sysconfig for various settings (ie: network), but I am not sure if they handle 
proxies with it.

SOCKS_PROXY is not supported by the tools using sysconfig/proxy yet.

The syntax is the same across distributions using sysconfig. We are not 
creating something new here.

Original comment by dmacvi...@gmail.com on 24 Nov 2010 at 11:01

GoogleCodeExporter commented 9 years ago
Commited as r810.
The module is 'auto' enabled on systems which use /etc/sysconfig, disabled on 
others.

Of course it would be great ot get the format of this file extended, to support 
for example things like PAC, WPAD and the like (only syntax for the file needs 
to be defined... libproxy will handle the rest for you)

Original comment by dominiqu...@gmail.com on 4 Jun 2011 at 7:40