On Tue, Apr 28, 2009 at 11:12:44AM -0400, Eric Cooper wrote: > > Is there another way to configure a proxy for approx to use? > > Sorry, I plan to add this to a FAQ in the next upload: > > Since approx uses the curl(1) command to download files from > remote repositories, you can use the http_proxy environment variable > (or one of the others documented in the curl(1) manual page). > > To pass this to approx, modify the inetd.conf entry for approx to run > an executable wrapper script instead of the /usr/sbin/approx binary. > You can use something like this for the wrapper: > > #!/bin/sh > > export http_proxy=myproxy.org:1234 > exec /usr/sbin/approx > > Please let me know if that works OK for you so I can close this bug.
I thought about it, and indeed it would solve the problem, but that means that I have to maintain an extra script in /usr/local/bin and config file changes in inetd.conf. Would it be possible to have a line in approx.conf where I can just put the contents of the http_proxy env var? That is one change, together with the rest of approx' configuration, and will be applied right away without reloading anything since approx is now run by inetd at every connection. Something like: $curl_http_proxy=myproxy.org:1234 $curl_NO_PROXY=foo,bar,baz where, basically, $curl_FOO=BAR would cause an "export FOO=BAR" before running curl. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enr...@debian.org>
signature.asc
Description: Digital signature