Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Nirbheek Chauhan <nirbheek@g.o>
Subject: Re: [RFC] git.eclass / subversion.eclass support for http proxy
Date: Mon, 23 Mar 2009 17:15:55 +0530
On Mon, Mar 23, 2009 at 3:33 PM, Timothy Redaelli <drizzt@g.o> 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? :)

----

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




-- 
~Nirbheek Chauhan


Replies:
Re: [RFC] git.eclass / subversion.eclass support for http proxy
-- Timothy Redaelli
References:
[RFC] git.eclass / subversion.eclass support for http proxy
-- Timothy Redaelli
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [RFC] git.eclass / subversion.eclass support for http proxy
Next by thread:
Re: [RFC] git.eclass / subversion.eclass support for http proxy
Previous by date:
Re: Re: EAPI roadmap
Next by date:
Re: [gentoo-dev-announce] Last rites: dev-lang/pugs


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.