support/download/dl-wrapper: add basic support for smb file download using curl
It allows to download files from smb share in buildroot packages.
Usage is specified in manual.
Signed-off-by: Guillaume Chaye <guillaume.chaye@zeetim.com>
[Peter: reword documentation]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit e240b889f1)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
25ea5d567a
commit
89c82ec8e8
@@ -337,6 +337,13 @@ not and can not work as people would expect it should:
|
|||||||
for +local+ packages, no patches are applied. If you need to
|
for +local+ packages, no patches are applied. If you need to
|
||||||
still patch the source code, use +LIBFOO_POST_RSYNC_HOOKS+, see
|
still patch the source code, use +LIBFOO_POST_RSYNC_HOOKS+, see
|
||||||
xref:hooks-rsync[].
|
xref:hooks-rsync[].
|
||||||
|
** +smb+ for retrieving source code from a SMB share. Used by
|
||||||
|
default when +LIBFOO_SITE+ begins with +smb://+. It uses +curl+
|
||||||
|
as download backend. Syntax expected:
|
||||||
|
+LIBFOO_SITE=smb://<server>/<share>/<path>+. This method might
|
||||||
|
require to define -u option in +LIBFOO_DL_OPTS+. For more
|
||||||
|
information, please refer to the
|
||||||
|
https://curl.se/docs/tutorial.html[curl documentation].
|
||||||
|
|
||||||
* +LIBFOO_GIT_SUBMODULES+ can be set to +YES+ to create an archive
|
* +LIBFOO_GIT_SUBMODULES+ can be set to +YES+ to create an archive
|
||||||
with the git submodules in the repository. This is only available
|
with the git submodules in the repository. This is only available
|
||||||
|
|||||||
@@ -1260,7 +1260,7 @@ else ifeq ($$($(2)_SITE_METHOD),hg)
|
|||||||
DL_TOOLS_DEPENDENCIES += hg
|
DL_TOOLS_DEPENDENCIES += hg
|
||||||
else ifeq ($$($(2)_SITE_METHOD),cvs)
|
else ifeq ($$($(2)_SITE_METHOD),cvs)
|
||||||
DL_TOOLS_DEPENDENCIES += cvs
|
DL_TOOLS_DEPENDENCIES += cvs
|
||||||
else ifneq ($(filter ftp ftps,$$($(2)_SITE_METHOD)),)
|
else ifneq ($(filter ftp ftps smb,$$($(2)_SITE_METHOD)),)
|
||||||
DL_TOOLS_DEPENDENCIES += curl
|
DL_TOOLS_DEPENDENCIES += curl
|
||||||
endif # SITE_METHOD
|
endif # SITE_METHOD
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ main() {
|
|||||||
backend="${backend_urlencode%|*}"
|
backend="${backend_urlencode%|*}"
|
||||||
case "${backend}" in
|
case "${backend}" in
|
||||||
git|svn|cvs|bzr|file|scp|hg|sftp) ;;
|
git|svn|cvs|bzr|file|scp|hg|sftp) ;;
|
||||||
ftp|ftps) backend="curl" ;;
|
ftp|ftps|smb) backend="curl" ;;
|
||||||
*) backend="wget" ;;
|
*) backend="wget" ;;
|
||||||
esac
|
esac
|
||||||
uri=${uri#*+}
|
uri=${uri#*+}
|
||||||
|
|||||||
Reference in New Issue
Block a user