* [PATCH] own-mirrors.bbclass: allow mirroring of scm fetched packages
@ 2010-11-03 23:28 Eric Bénard
2010-11-03 23:41 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: Eric Bénard @ 2010-11-03 23:28 UTC (permalink / raw)
To: openembedded-devel; +Cc: Eric Bénard
this way, it's possible to setup a local webserver (for example
using busybox httpd -p "8081" -h backuped_download_dir) serving
a presiously fetched download directory and to build wihout the
need for an internet access
this can also be used when connected to know to know which packages
are missing from the local mirror's directory (and thus are fetched
from internet as a fallback), it's possible to run the server this way :
busybox httpd -p "8081" -h backuped_download_dir -vv -f | grep -B 1 response:404
to get the name of the missing packages.
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
classes/own-mirrors.bbclass | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/classes/own-mirrors.bbclass b/classes/own-mirrors.bbclass
index e8a0f48..720ce42 100644
--- a/classes/own-mirrors.bbclass
+++ b/classes/own-mirrors.bbclass
@@ -1,4 +1,9 @@
PREMIRRORS() {
-https?://.*/.* ${SOURCE_MIRROR_URL}
+cvs://.*/.* ${SOURCE_MIRROR_URL}
+svn://.*/.* ${SOURCE_MIRROR_URL}
+git://.*/.* ${SOURCE_MIRROR_URL}
+hg://.*/.* ${SOURCE_MIRROR_URL}
+bzr://.*/.* ${SOURCE_MIRROR_URL}
+https?$://.*/.* ${SOURCE_MIRROR_URL}
ftp://.*/.* ${SOURCE_MIRROR_URL}
}
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] own-mirrors.bbclass: allow mirroring of scm fetched packages
2010-11-03 23:28 [PATCH] own-mirrors.bbclass: allow mirroring of scm fetched packages Eric Bénard
@ 2010-11-03 23:41 ` Tom Rini
2010-11-03 23:58 ` Denys Dmytriyenko
0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2010-11-03 23:41 UTC (permalink / raw)
To: openembedded-devel; +Cc: Eric Bénard
Eric Bénard wrote:
> this way, it's possible to setup a local webserver (for example
> using busybox httpd -p "8081" -h backuped_download_dir) serving
> a presiously fetched download directory and to build wihout the
> need for an internet access
>
> this can also be used when connected to know to know which packages
> are missing from the local mirror's directory (and thus are fetched
> from internet as a fallback), it's possible to run the server this way :
> busybox httpd -p "8081" -h backuped_download_dir -vv -f | grep -B 1 response:404
> to get the name of the missing packages.
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Tom Rini <tom_rini@mentor.com>
> ---
> classes/own-mirrors.bbclass | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/classes/own-mirrors.bbclass b/classes/own-mirrors.bbclass
> index e8a0f48..720ce42 100644
> --- a/classes/own-mirrors.bbclass
> +++ b/classes/own-mirrors.bbclass
> @@ -1,4 +1,9 @@
> PREMIRRORS() {
> -https?://.*/.* ${SOURCE_MIRROR_URL}
> +cvs://.*/.* ${SOURCE_MIRROR_URL}
> +svn://.*/.* ${SOURCE_MIRROR_URL}
> +git://.*/.* ${SOURCE_MIRROR_URL}
> +hg://.*/.* ${SOURCE_MIRROR_URL}
> +bzr://.*/.* ${SOURCE_MIRROR_URL}
> +https?$://.*/.* ${SOURCE_MIRROR_URL}
> ftp://.*/.* ${SOURCE_MIRROR_URL}
> }
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] own-mirrors.bbclass: allow mirroring of scm fetched packages
2010-11-03 23:41 ` Tom Rini
@ 2010-11-03 23:58 ` Denys Dmytriyenko
2010-11-04 7:58 ` Frans Meulenbroeks
0 siblings, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2010-11-03 23:58 UTC (permalink / raw)
To: openembedded-devel; +Cc: Eric B??nard
On Wed, Nov 03, 2010 at 04:41:24PM -0700, Tom Rini wrote:
> Eric B??nard wrote:
>> this way, it's possible to setup a local webserver (for example
>> using busybox httpd -p "8081" -h backuped_download_dir) serving
>> a presiously fetched download directory and to build wihout the
>> need for an internet access
>> this can also be used when connected to know to know which packages
>> are missing from the local mirror's directory (and thus are fetched
>> from internet as a fallback), it's possible to run the server this way :
>> busybox httpd -p "8081" -h backuped_download_dir -vv -f | grep -B 1
>> response:404
>> to get the name of the missing packages.
>> Signed-off-by: Eric B??nard <eric@eukrea.com>
>
> Acked-by: Tom Rini <tom_rini@mentor.com>
Looks like a nice way to have local mirrored downloads. May I suggest to put
the above examples of running busybox httpd as a comment inside the class.
Acked-by: Denys Dmytriyenko <denis@denix.org>
>
>> ---
>> classes/own-mirrors.bbclass | 7 ++++++-
>> 1 files changed, 6 insertions(+), 1 deletions(-)
>> diff --git a/classes/own-mirrors.bbclass b/classes/own-mirrors.bbclass
>> index e8a0f48..720ce42 100644
>> --- a/classes/own-mirrors.bbclass
>> +++ b/classes/own-mirrors.bbclass
>> @@ -1,4 +1,9 @@
>> PREMIRRORS() {
>> -https?://.*/.* ${SOURCE_MIRROR_URL}
>> +cvs://.*/.* ${SOURCE_MIRROR_URL}
>> +svn://.*/.* ${SOURCE_MIRROR_URL}
>> +git://.*/.* ${SOURCE_MIRROR_URL}
>> +hg://.*/.* ${SOURCE_MIRROR_URL}
>> +bzr://.*/.* ${SOURCE_MIRROR_URL}
>> +https?$://.*/.* ${SOURCE_MIRROR_URL}
>> ftp://.*/.* ${SOURCE_MIRROR_URL}
>> }
>
>
> --
> Tom Rini
> Mentor Graphics Corporation
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] own-mirrors.bbclass: allow mirroring of scm fetched packages
2010-11-03 23:58 ` Denys Dmytriyenko
@ 2010-11-04 7:58 ` Frans Meulenbroeks
0 siblings, 0 replies; 4+ messages in thread
From: Frans Meulenbroeks @ 2010-11-04 7:58 UTC (permalink / raw)
To: openembedded-devel
2010/11/4 Denys Dmytriyenko <denis@denix.org>:
> On Wed, Nov 03, 2010 at 04:41:24PM -0700, Tom Rini wrote:
>> Eric B??nard wrote:
>>> this way, it's possible to setup a local webserver (for example
>>> using busybox httpd -p "8081" -h backuped_download_dir) serving
>>> a presiously fetched download directory and to build wihout the
>>> need for an internet access
>>> this can also be used when connected to know to know which packages
>>> are missing from the local mirror's directory (and thus are fetched
>>> from internet as a fallback), it's possible to run the server this way :
>>> busybox httpd -p "8081" -h backuped_download_dir -vv -f | grep -B 1
>>> response:404
>>> to get the name of the missing packages.
>>> Signed-off-by: Eric B??nard <eric@eukrea.com>
>>
>> Acked-by: Tom Rini <tom_rini@mentor.com>
>
> Looks like a nice way to have local mirrored downloads. May I suggest to put
> the above examples of running busybox httpd as a comment inside the class.
>
> Acked-by: Denys Dmytriyenko <denis@denix.org>
Cool. Thanks alot!
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
>
>>
>>> ---
>>> classes/own-mirrors.bbclass | 7 ++++++-
>>> 1 files changed, 6 insertions(+), 1 deletions(-)
>>> diff --git a/classes/own-mirrors.bbclass b/classes/own-mirrors.bbclass
>>> index e8a0f48..720ce42 100644
>>> --- a/classes/own-mirrors.bbclass
>>> +++ b/classes/own-mirrors.bbclass
>>> @@ -1,4 +1,9 @@
>>> PREMIRRORS() {
>>> -https?://.*/.* ${SOURCE_MIRROR_URL}
>>> +cvs://.*/.* ${SOURCE_MIRROR_URL}
>>> +svn://.*/.* ${SOURCE_MIRROR_URL}
>>> +git://.*/.* ${SOURCE_MIRROR_URL}
>>> +hg://.*/.* ${SOURCE_MIRROR_URL}
>>> +bzr://.*/.* ${SOURCE_MIRROR_URL}
>>> +https?$://.*/.* ${SOURCE_MIRROR_URL}
>>> ftp://.*/.* ${SOURCE_MIRROR_URL}
>>> }
>>
>>
>> --
>> Tom Rini
>> Mentor Graphics Corporation
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-04 7:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 23:28 [PATCH] own-mirrors.bbclass: allow mirroring of scm fetched packages Eric Bénard
2010-11-03 23:41 ` Tom Rini
2010-11-03 23:58 ` Denys Dmytriyenko
2010-11-04 7:58 ` Frans Meulenbroeks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.