mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
docs: rework LIBFOO_SITE_METHOD documentation
The current structure of the LIBFOO_SITE_METHOD paragraph would make it difficult to add documentation for the "file" and "local" methods. There are enough possible values for LIBFOO_SITE_METHOD that describing them in a sub-list seems to work well, which makes it easier to add documentation for new methods. Signed-off-by: Nathan Lynch <ntl@pobox.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
c62b04ce9a
commit
9fd16a175b
@ -180,23 +180,35 @@ information is (assuming the package name is +libfoo+) :
|
|||||||
+LIBFOO_SITE=/opt/software/libfoo.tar.gz+
|
+LIBFOO_SITE=/opt/software/libfoo.tar.gz+
|
||||||
+LIBFOO_SITE=$(TOPDIR)/../src/libfoo/+
|
+LIBFOO_SITE=$(TOPDIR)/../src/libfoo/+
|
||||||
|
|
||||||
* +LIBFOO_SITE_METHOD+ may contain the method to fetch the package
|
* +LIBFOO_SITE_METHOD+ determines the method used to fetch or copy the
|
||||||
source code. It can either be +wget+ (for normal FTP/HTTP downloads
|
package source code. In many cases, Buildroot guesses the method
|
||||||
of tarballs), +scp+ (for downloads over SSH with scp), +svn+, +git+,
|
from the contents of +LIBFOO_SITE+ and setting +LIBFOO_SITE_METHOD+
|
||||||
+hg+ or +bzr+. When not specified, it is guessed from the URL given
|
is unnecessary. When +HOST_LIBFOO_SITE_METHOD+ is not specified, it
|
||||||
in +LIBFOO_SITE+: +scp://+, +svn://+, +git://+ and
|
defaults to the value of +LIBFOO_SITE_METHOD+. +
|
||||||
+bzr://+ URLs will use the +scp+, +svn+, +git+ and +bzr+ methods
|
The possible values of +LIBFOO_SITE_METHOD+ are:
|
||||||
respectively. All other URL-types will use the +wget+ method. So for
|
** +wget+ for normal FTP/HTTP downloads of tarballs. Used by
|
||||||
example, in the case of a package whose source code is available
|
default when +LIBFOO_SITE+ begins with +http://+, +https://+ or
|
||||||
through a Subversion repository on HTTP, one 'must' specifiy
|
+ftp://+.
|
||||||
+LIBFOO_SITE_METHOD=svn+. Similarly, for Mercurial repositories, one
|
** +scp+ for downloads of tarballs over SSH with scp. Used by
|
||||||
'must' specify +LIBFOO_SITE_METHOD=hg+. For +svn+, +git+, +hg+ and
|
default when +LIBFOO_SITE+ begins with +scp://+.
|
||||||
+bzr+ methods, what Buildroot does is a checkout/clone of the repository
|
** +svn+ for retrieving source code from a Subversion repository.
|
||||||
which is then tarballed and stored into the download cache. Next
|
Used by default when +LIBFOO_SITE+ begins with +svn://+. When a
|
||||||
builds will not checkout/clone again, but will use the tarball directly.
|
+http://+ Subversion repository URL is specified in
|
||||||
When +HOST_LIBFOO_SITE_METHOD+ is not specified, it defaults to the value
|
+LIBFOO_SITE+, one 'must' specify +LIBFOO_SITE_METHOD=svn+.
|
||||||
of +LIBFOO_SITE_METHOD+. See +package/multimedia/tremor/+ for an
|
Buildroot performs a checkout which is preserved as a tarball in
|
||||||
example.
|
the download cache; subsequent builds use the tarball instead of
|
||||||
|
performing another checkout.
|
||||||
|
** +git+ for retrieving source code from a Git repository. Used by
|
||||||
|
default when +LIBFOO_SITE+ begins with +git://+. The downloaded
|
||||||
|
source code is cached as with the +svn+
|
||||||
|
method.
|
||||||
|
** +hg+ for retrieving source code from a Mercurial repository. One
|
||||||
|
'must' specify +LIBFOO_SITE_METHOD=hg+ when +LIBFOO_SITE+
|
||||||
|
contains a Mercurial repository URL. The downloaded source code
|
||||||
|
is cached as with the +svn+ method.
|
||||||
|
** +bzr+ for retrieving source code from a Bazaar repository. Used
|
||||||
|
by default when +LIBFOO_SITE+ begins with +bzr://+. The
|
||||||
|
downloaded source code is cached as with the +svn+ method.
|
||||||
|
|
||||||
* +LIBFOO_DEPENDENCIES+ lists the dependencies (in terms of package
|
* +LIBFOO_DEPENDENCIES+ lists the dependencies (in terms of package
|
||||||
name) that are required for the current target package to
|
name) that are required for the current target package to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user