summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-03-12 05:50:27 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-15 01:14:22 +0000
commit0dd3f7ccd170c8eae1014f5fd66a0e30fed7ad0c (patch)
tree964dfcdc4e9c608a3108c1a21a6378ee749ec2e0 /meta
parent0fafcf7efeab8f9a5978f4b0693340a2746d7078 (diff)
downloadopenembedded-core-0dd3f7ccd170c8eae1014f5fd66a0e30fed7ad0c.tar.gz
openembedded-core-0dd3f7ccd170c8eae1014f5fd66a0e30fed7ad0c.tar.bz2
openembedded-core-0dd3f7ccd170c8eae1014f5fd66a0e30fed7ad0c.zip
own-mirrors.bbclass: Bring own-mirrors.bbclass from oe commit 0ef914b250df46a41348479446214575668943fb
below is the history on this class. Documentation for newly introduced SOURCE_MIRROR_URL is already present in oe-core commit 0ef914b250df46a41348479446214575668943fb Author: Eric BENARD <eric@eukrea.com> Date: Wed Nov 3 13:28:54 2010 +0000 own-mirrors.bbclass: allow mirroring of scm fetched packages 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: Denys Dmytriyenko <denis@denix.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com> commit 1b661974e3f8f844f6ec4cdb7bb42cef9595b626 Author: Marcin Juszkiewicz <hrw@openembedded.org> Date: Sat Mar 10 14:10:06 2007 +0000 own-mirrors.bbclass: added class which can be used to set PREMIRRORS from config - SOURCE_MIRROR_URL is new variable which point to source mirror which will be used before fetching from original SRC_URI location. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/own-mirrors.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/own-mirrors.bbclass b/meta/classes/own-mirrors.bbclass
new file mode 100644
index 0000000000..8a6feaf4d5
--- /dev/null
+++ b/meta/classes/own-mirrors.bbclass
@@ -0,0 +1,12 @@
+PREMIRRORS() {
+cvs://.*/.* ${SOURCE_MIRROR_URL}
+svn://.*/.* ${SOURCE_MIRROR_URL}
+git://.*/.* ${SOURCE_MIRROR_URL}
+hg://.*/.* ${SOURCE_MIRROR_URL}
+bzr://.*/.* ${SOURCE_MIRROR_URL}
+svk://.*/.* ${SOURCE_MIRROR_URL}
+p4://.*/.* ${SOURCE_MIRROR_URL}
+osc://.*/.* ${SOURCE_MIRROR_URL}
+https?$://.*/.* ${SOURCE_MIRROR_URL}
+ftp://.*/.* ${SOURCE_MIRROR_URL}
+}