FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

LinkBack Thread Tools
Old 03-23-2009, 10:45 AM
Nirbheek Chauhan
Default git.eclass / subversion.eclass support for http proxy

On Mon, Mar 23, 2009 at 3:33 PM, Timothy Redaelli <drizzt@gentoo.org> wrote:
> Hi,
> Some repositories has the git (or svn) and http support. I saw that we choose
> the git/svn one (it's faster i know, but it does not works under proxy).
> I propose a E{GIT,SVN}_REPO_HTTP_URI (or similar) variable that uses the http
> variant when the global use is set (or we can use the http_proxy env
> variable).
> What do you think?

Here's what I did:

Install net-misc/connect
Save the script below and do `export GIT_PROXY_COMMAND=/path/to/script`
set http_proxy, and everything works dandy.

Maybe this can be done inside the eclass if http_proxy is set?


if test "${auth}" != "${proxy}"; then
export HTTP_PROXY_USER=${auth%%:*}
export HTTP_PROXY_PASSWORD=${auth##*:}
connect -H ${host} $1 $2

~Nirbheek Chauhan

Thread Tools

All times are GMT. The time now is 07:03 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org