* [Buildroot] [PATCHv2 1/1] support/download/dl-wrapper: add basic support for smb file download using curl
@ 2025-04-25 16:49 Guillaume Chaye
2025-05-18 9:27 ` Peter Korsgaard
2025-06-04 17:15 ` Arnout Vandecappelle via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Guillaume Chaye @ 2025-04-25 16:49 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain, Thomas Petazzoni, Guillaume Chaye
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>
---
docs/manual/adding-packages-generic.adoc | 7 +++++++
package/pkg-generic.mk | 2 +-
support/download/dl-wrapper | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/docs/manual/adding-packages-generic.adoc b/docs/manual/adding-packages-generic.adoc
index 7e2e066c16..881beab6e1 100644
--- a/docs/manual/adding-packages-generic.adoc
+++ b/docs/manual/adding-packages-generic.adoc
@@ -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
still patch the source code, use +LIBFOO_POST_RSYNC_HOOKS+, see
xref:hooks-rsync[].
+ ** +smb+ for retrieving source code from 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 informations, please refer to the curl documentation in
+ +https://curl.se/docs/tutorial.html+
* +LIBFOO_GIT_SUBMODULES+ can be set to +YES+ to create an archive
with the git submodules in the repository. This is only available
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index f22b6e981a..95ff9135bd 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -1260,7 +1260,7 @@ else ifeq ($$($(2)_SITE_METHOD),hg)
DL_TOOLS_DEPENDENCIES += hg
else ifeq ($$($(2)_SITE_METHOD),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
endif # SITE_METHOD
diff --git a/support/download/dl-wrapper b/support/download/dl-wrapper
index 5445aad5a7..b70c8edbd9 100755
--- a/support/download/dl-wrapper
+++ b/support/download/dl-wrapper
@@ -96,7 +96,7 @@ main() {
backend="${backend_urlencode%|*}"
case "${backend}" in
git|svn|cvs|bzr|file|scp|hg|sftp) ;;
- ftp|ftps) backend="curl" ;;
+ ftp|ftps|smb) backend="curl" ;;
*) backend="wget" ;;
esac
uri=${uri#*+}
--
2.39.5
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCHv2 1/1] support/download/dl-wrapper: add basic support for smb file download using curl
2025-04-25 16:49 [Buildroot] [PATCHv2 1/1] support/download/dl-wrapper: add basic support for smb file download using curl Guillaume Chaye
@ 2025-05-18 9:27 ` Peter Korsgaard
2025-06-04 17:15 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2025-05-18 9:27 UTC (permalink / raw)
To: Guillaume Chaye; +Cc: buildroot, Julien Olivain, Thomas Petazzoni
>>>>> "Guillaume" == Guillaume Chaye <guillaume.chaye@zeetim.com> writes:
> 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>
Committed after reworking the documentation a bit, thanks.
> ---
> docs/manual/adding-packages-generic.adoc | 7 +++++++
> package/pkg-generic.mk | 2 +-
> support/download/dl-wrapper | 2 +-
> 3 files changed, 9 insertions(+), 2 deletions(-)
> diff --git a/docs/manual/adding-packages-generic.adoc b/docs/manual/adding-packages-generic.adoc
> index 7e2e066c16..881beab6e1 100644
> --- a/docs/manual/adding-packages-generic.adoc
> +++ b/docs/manual/adding-packages-generic.adoc
> @@ -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
> still patch the source code, use +LIBFOO_POST_RSYNC_HOOKS+, see
> xref:hooks-rsync[].
> + ** +smb+ for retrieving source code from 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 informations, please refer to the curl documentation in
> + +https://curl.se/docs/tutorial.html+
> * +LIBFOO_GIT_SUBMODULES+ can be set to +YES+ to create an archive
> with the git submodules in the repository. This is only available
> diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
> index f22b6e981a..95ff9135bd 100644
> --- a/package/pkg-generic.mk
> +++ b/package/pkg-generic.mk
> @@ -1260,7 +1260,7 @@ else ifeq ($$($(2)_SITE_METHOD),hg)
> DL_TOOLS_DEPENDENCIES += hg
> else ifeq ($$($(2)_SITE_METHOD),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
> endif # SITE_METHOD
> diff --git a/support/download/dl-wrapper b/support/download/dl-wrapper
> index 5445aad5a7..b70c8edbd9 100755
> --- a/support/download/dl-wrapper
> +++ b/support/download/dl-wrapper
> @@ -96,7 +96,7 @@ main() {
> backend="${backend_urlencode%|*}"
> case "${backend}" in
> git|svn|cvs|bzr|file|scp|hg|sftp) ;;
> - ftp|ftps) backend="curl" ;;
> + ftp|ftps|smb) backend="curl" ;;
> *) backend="wget" ;;
> esac
> uri=${uri#*+}
> --
> 2.39.5
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCHv2 1/1] support/download/dl-wrapper: add basic support for smb file download using curl
2025-04-25 16:49 [Buildroot] [PATCHv2 1/1] support/download/dl-wrapper: add basic support for smb file download using curl Guillaume Chaye
2025-05-18 9:27 ` Peter Korsgaard
@ 2025-06-04 17:15 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-06-04 17:15 UTC (permalink / raw)
To: Guillaume Chaye, buildroot; +Cc: Julien Olivain, Thomas Petazzoni
On 25/04/2025 18:49, Guillaume Chaye wrote:
> 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>
Applied to 2025.02.x, thanks.
Regards,
Arnout
> ---
> docs/manual/adding-packages-generic.adoc | 7 +++++++
> package/pkg-generic.mk | 2 +-
> support/download/dl-wrapper | 2 +-
> 3 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/docs/manual/adding-packages-generic.adoc b/docs/manual/adding-packages-generic.adoc
> index 7e2e066c16..881beab6e1 100644
> --- a/docs/manual/adding-packages-generic.adoc
> +++ b/docs/manual/adding-packages-generic.adoc
> @@ -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
> still patch the source code, use +LIBFOO_POST_RSYNC_HOOKS+, see
> xref:hooks-rsync[].
> + ** +smb+ for retrieving source code from 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 informations, please refer to the curl documentation in
> + +https://curl.se/docs/tutorial.html+
>
> * +LIBFOO_GIT_SUBMODULES+ can be set to +YES+ to create an archive
> with the git submodules in the repository. This is only available
> diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
> index f22b6e981a..95ff9135bd 100644
> --- a/package/pkg-generic.mk
> +++ b/package/pkg-generic.mk
> @@ -1260,7 +1260,7 @@ else ifeq ($$($(2)_SITE_METHOD),hg)
> DL_TOOLS_DEPENDENCIES += hg
> else ifeq ($$($(2)_SITE_METHOD),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
> endif # SITE_METHOD
>
> diff --git a/support/download/dl-wrapper b/support/download/dl-wrapper
> index 5445aad5a7..b70c8edbd9 100755
> --- a/support/download/dl-wrapper
> +++ b/support/download/dl-wrapper
> @@ -96,7 +96,7 @@ main() {
> backend="${backend_urlencode%|*}"
> case "${backend}" in
> git|svn|cvs|bzr|file|scp|hg|sftp) ;;
> - ftp|ftps) backend="curl" ;;
> + ftp|ftps|smb) backend="curl" ;;
> *) backend="wget" ;;
> esac
> uri=${uri#*+}
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-04 17:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-25 16:49 [Buildroot] [PATCHv2 1/1] support/download/dl-wrapper: add basic support for smb file download using curl Guillaume Chaye
2025-05-18 9:27 ` Peter Korsgaard
2025-06-04 17:15 ` Arnout Vandecappelle via buildroot
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.