From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/8] Implement basic non-wget download methods
Date: Thu, 2 Sep 2010 14:50:15 +0200 [thread overview]
Message-ID: <20100902145015.7e646a8b@surf> (raw)
In-Reply-To: <201009020737.45906.minimod@morethan.org>
On Thu, 2 Sep 2010 07:37:43 -0500
"Michael S. Zick" <minimod@morethan.org> wrote:
> For the cases where the protocol scheme does not appear in the URI
> that the user would input (such as private repository access via ssl)
> -
>
> Will that _SITE_METHOD variable be able to override the autodetection?
Yes :
+ifndef $(2)_SITE_METHOD
+ ifdef $(3)_SITE_METHOD
+ $(2)_SITE_METHOD = $($(3)_SITE_METHOD)
+ else
+ # Try automatic detection using the scheme part of the URI
+ $(2)_SITE_METHOD = $(firstword $(subst ://, ,$(call
qstrip,$($(2)_SITE))))
+ endif
+endif
So, if FOOBAR_SITE_METHOD is already defined, nothing happens. What
this thing does is :
1. Define HOST_FOOBAR_SITE_METHOD to FOOBAR_SITE_METHOD if
FOOBAR_SITE_METHOD is defined but not HOST_FOOBAR_SITE_METHOD
2. Define (HOST_)FOOBAR_SITE_METHOD to an autodected scheme is
(HOST_)FOOBAR_SITE_METHOD is not defined.
So whenever FOOBAR_SITE_METHOD is defined, it will take precedence over
the autodetection.
> Both git and hg (Mercurial) can use ssl/ssh to identify users with
> access to a repository. I do not know about svn, never studied or
> used it that much. In the case of git, the following is the _only_
> way to identify private users: (Since git does not accept a ssh://
> scheme in its command parse.)
I must be missing something: I'm using
ssh://uclibc.org/home/tpetazzoni/git/buildroot.git as a Git URL to push
things to my private Buildroot repository hosted at uclibc.org.
As far as I see, Gitolite introduces per-branch or per-tag permissions,
but plain Git already allows per-repository permissions. No ?
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2010-09-02 12:50 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 10:09 [Buildroot] [RESEND/PATCH] Git/Svn downloaders Maxime Petazzoni
2010-09-02 10:09 ` [Buildroot] [PATCH 1/8] Remove the spider feature Maxime Petazzoni
2010-09-02 10:09 ` [Buildroot] [PATCH 2/8] Cleanup the VCS commands configuration Maxime Petazzoni
2010-09-02 10:09 ` [Buildroot] [PATCH 3/8] Update defconfigs with new VCS config options Maxime Petazzoni
2010-09-02 10:09 ` [Buildroot] [PATCH 4/8] Implement basic non-wget download methods Maxime Petazzoni
2010-09-02 12:37 ` Michael S. Zick
2010-09-02 12:50 ` Thomas Petazzoni [this message]
2010-09-03 12:30 ` Michael S. Zick
2010-09-03 13:04 ` [Buildroot] About Git through SSH Thomas Petazzoni
2010-09-03 14:37 ` Michael S. Zick
2010-09-03 15:03 ` Thomas Petazzoni
2010-09-03 15:59 ` Michael S. Zick
2010-09-04 1:25 ` Paul Jones
2010-09-04 16:58 ` Thomas Petazzoni
2010-09-05 1:50 ` Paul Jones
2010-09-05 3:05 ` James J. Dines
2010-09-05 3:12 ` James J. Dines
2010-09-02 10:09 ` [Buildroot] [PATCH 5/8] Use the normal download method for Tremor Maxime Petazzoni
2010-09-02 10:09 ` [Buildroot] [PATCH 6/8] Use the normal download method for libsvgtiny Maxime Petazzoni
2010-09-02 10:09 ` [Buildroot] [PATCH 7/8] Re-implement the source-check and external-deps targets Maxime Petazzoni
2010-09-02 10:19 ` [Buildroot] Missed a bug Maxime Petazzoni
2010-09-02 10:19 ` [Buildroot] [PATCH 7/8] Re-implement the source-check and external-deps targets Maxime Petazzoni
2010-09-02 10:24 ` Thomas Petazzoni
2010-09-02 10:31 ` Maxime Petazzoni
2010-09-02 10:09 ` [Buildroot] [PATCH 8/8] Revert "Makefile.package.in: allow packages to override download step" Maxime Petazzoni
2010-09-02 10:51 ` Thomas Petazzoni
2010-09-02 10:59 ` Maxime Petazzoni
2010-09-02 12:03 ` [Buildroot] [RESEND/PATCH] Git/Svn downloaders Thomas Petazzoni
2010-09-07 14:58 ` Maxime Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2010-09-13 6:50 [Buildroot] [pull request] Pull request for branch for-2010.11/download-rework Thomas Petazzoni
2010-09-13 6:50 ` [Buildroot] [PATCH 4/8] Implement basic non-wget download methods Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100902145015.7e646a8b@surf \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox