* [Buildroot] [PATCH v3 1/2] libsodium: new package
@ 2015-05-19 12:01 Frank Hunleth
2015-05-19 12:01 ` [Buildroot] [PATCH v3 2/2] zeromq: depend on libsodium if available Frank Hunleth
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Frank Hunleth @ 2015-05-19 12:01 UTC (permalink / raw)
To: buildroot
Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
---
Changes v1 -> v2:
- fix curly braces on variables (thanks to Thomas for noticing)
- added patch for zeromq (in separate patch) to address libsodium
dependency in that library (thanks to Romain for this). I didn't
find any other packages with a similar dependency, but it's not
that easy to do that search.
Changes v2 -> v3:
- removed host build (thanks to Baruch and Thomas)
package/Config.in | 1 +
package/libsodium/Config.in | 6 ++++++
package/libsodium/libsodium.hash | 2 ++
package/libsodium/libsodium.mk | 13 +++++++++++++
4 files changed, 22 insertions(+)
create mode 100644 package/libsodium/Config.in
create mode 100644 package/libsodium/libsodium.hash
create mode 100644 package/libsodium/libsodium.mk
diff --git a/package/Config.in b/package/Config.in
index e0c2e2a..5b99639 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -723,6 +723,7 @@ menu "Crypto"
source "package/libnss/Config.in"
source "package/libsecret/Config.in"
source "package/libsha1/Config.in"
+ source "package/libsodium/Config.in"
source "package/libssh2/Config.in"
source "package/nettle/Config.in"
source "package/openssl/Config.in"
diff --git a/package/libsodium/Config.in b/package/libsodium/Config.in
new file mode 100644
index 0000000..47b9bb3
--- /dev/null
+++ b/package/libsodium/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBSODIUM
+ bool "libsodium"
+ help
+ A modern and easy-to-use crypto library.
+
+ http://libsodium.org/
diff --git a/package/libsodium/libsodium.hash b/package/libsodium/libsodium.hash
new file mode 100644
index 0000000..089dc03
--- /dev/null
+++ b/package/libsodium/libsodium.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 cbcfc63cc90c05d18a20f229a62c7e7054a73731d0aa858c0517152c549b1288 libsodium-1.0.3.tar.gz
diff --git a/package/libsodium/libsodium.mk b/package/libsodium/libsodium.mk
new file mode 100644
index 0000000..c032863
--- /dev/null
+++ b/package/libsodium/libsodium.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# libsodium
+#
+################################################################################
+
+LIBSODIUM_VERSION = 1.0.3
+LIBSODIUM_SITE = https://github.com/jedisct1/libsodium/releases/download/$(LIBSODIUM_VERSION)
+LIBSODIUM_LICENSE = ISC
+LIBSODIUM_LICENSE_FILES = LICENSE
+LIBSODIUM_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* [Buildroot] [PATCH v3 2/2] zeromq: depend on libsodium if available
2015-05-19 12:01 [Buildroot] [PATCH v3 1/2] libsodium: new package Frank Hunleth
@ 2015-05-19 12:01 ` Frank Hunleth
2015-07-10 17:02 ` Romain Naour
2015-07-10 16:47 ` [Buildroot] [PATCH v3 1/2] libsodium: new package Romain Naour
2015-07-10 20:44 ` Thomas Petazzoni
2 siblings, 1 reply; 5+ messages in thread
From: Frank Hunleth @ 2015-05-19 12:01 UTC (permalink / raw)
To: buildroot
ZeroMQ doesn't require libsodium, but will enable CURVE security if it's
available. This patch adds the optional dependency.
Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
---
Changes v1 -> v2:
- added patch to series
Changes v2 -> v3:
- no changes
package/zeromq/zeromq.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk
index 7e9ed19..a876d5e 100644
--- a/package/zeromq/zeromq.mk
+++ b/package/zeromq/zeromq.mk
@@ -34,4 +34,10 @@ ZEROMQ_DEPENDENCIES += host-pkgconf openpgm
ZEROMQ_CONF_OPTS += --with-system-pgm
endif
+# ZeroMQ uses libsodium if it's available.
+ifeq ($(BR2_PACKAGE_LIBSODIUM), y)
+ZEROMQ_DEPENDENCIES += libsodium
+ZEROMQ_CONF_OPTS += --with-libsodium="$(STAGING_DIR)/usr"
+endif
+
$(eval $(autotools-package))
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v3 2/2] zeromq: depend on libsodium if available
2015-05-19 12:01 ` [Buildroot] [PATCH v3 2/2] zeromq: depend on libsodium if available Frank Hunleth
@ 2015-07-10 17:02 ` Romain Naour
0 siblings, 0 replies; 5+ messages in thread
From: Romain Naour @ 2015-07-10 17:02 UTC (permalink / raw)
To: buildroot
Hi Frank,
Le 19/05/2015 14:01, Frank Hunleth a ?crit :
> ZeroMQ doesn't require libsodium, but will enable CURVE security if it's
> available. This patch adds the optional dependency.
>
> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Best regards,
Romain Naour
> ---
> Changes v1 -> v2:
> - added patch to series
> Changes v2 -> v3:
> - no changes
>
> package/zeromq/zeromq.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk
> index 7e9ed19..a876d5e 100644
> --- a/package/zeromq/zeromq.mk
> +++ b/package/zeromq/zeromq.mk
> @@ -34,4 +34,10 @@ ZEROMQ_DEPENDENCIES += host-pkgconf openpgm
> ZEROMQ_CONF_OPTS += --with-system-pgm
> endif
>
> +# ZeroMQ uses libsodium if it's available.
> +ifeq ($(BR2_PACKAGE_LIBSODIUM), y)
> +ZEROMQ_DEPENDENCIES += libsodium
> +ZEROMQ_CONF_OPTS += --with-libsodium="$(STAGING_DIR)/usr"
> +endif
> +
> $(eval $(autotools-package))
> --
> 2.1.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v3 1/2] libsodium: new package
2015-05-19 12:01 [Buildroot] [PATCH v3 1/2] libsodium: new package Frank Hunleth
2015-05-19 12:01 ` [Buildroot] [PATCH v3 2/2] zeromq: depend on libsodium if available Frank Hunleth
@ 2015-07-10 16:47 ` Romain Naour
2015-07-10 20:44 ` Thomas Petazzoni
2 siblings, 0 replies; 5+ messages in thread
From: Romain Naour @ 2015-07-10 16:47 UTC (permalink / raw)
To: buildroot
Hi Frank,
Le 19/05/2015 14:01, Frank Hunleth a ?crit :
> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
> ---
> Changes v1 -> v2:
> - fix curly braces on variables (thanks to Thomas for noticing)
> - added patch for zeromq (in separate patch) to address libsodium
> dependency in that library (thanks to Romain for this). I didn't
> find any other packages with a similar dependency, but it's not
> that easy to do that search.
> Changes v2 -> v3:
> - removed host build (thanks to Baruch and Thomas)
>
> package/Config.in | 1 +
> package/libsodium/Config.in | 6 ++++++
> package/libsodium/libsodium.hash | 2 ++
> package/libsodium/libsodium.mk | 13 +++++++++++++
> 4 files changed, 22 insertions(+)
> create mode 100644 package/libsodium/Config.in
> create mode 100644 package/libsodium/libsodium.hash
> create mode 100644 package/libsodium/libsodium.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index e0c2e2a..5b99639 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -723,6 +723,7 @@ menu "Crypto"
> source "package/libnss/Config.in"
> source "package/libsecret/Config.in"
> source "package/libsha1/Config.in"
> + source "package/libsodium/Config.in"
> source "package/libssh2/Config.in"
> source "package/nettle/Config.in"
> source "package/openssl/Config.in"
> diff --git a/package/libsodium/Config.in b/package/libsodium/Config.in
> new file mode 100644
> index 0000000..47b9bb3
> --- /dev/null
> +++ b/package/libsodium/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_LIBSODIUM
> + bool "libsodium"
> + help
> + A modern and easy-to-use crypto library.
> +
> + http://libsodium.org/
> diff --git a/package/libsodium/libsodium.hash b/package/libsodium/libsodium.hash
> new file mode 100644
> index 0000000..089dc03
> --- /dev/null
> +++ b/package/libsodium/libsodium.hash
> @@ -0,0 +1,2 @@
> +# Locally computed:
> +sha256 cbcfc63cc90c05d18a20f229a62c7e7054a73731d0aa858c0517152c549b1288 libsodium-1.0.3.tar.gz
> diff --git a/package/libsodium/libsodium.mk b/package/libsodium/libsodium.mk
> new file mode 100644
> index 0000000..c032863
> --- /dev/null
> +++ b/package/libsodium/libsodium.mk
> @@ -0,0 +1,13 @@
> +################################################################################
> +#
> +# libsodium
> +#
> +################################################################################
> +
> +LIBSODIUM_VERSION = 1.0.3
> +LIBSODIUM_SITE = https://github.com/jedisct1/libsodium/releases/download/$(LIBSODIUM_VERSION)
Sorry for the long delay.
I think this patch is ok, so:
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Best regards,
Romain Naour
> +LIBSODIUM_LICENSE = ISC
> +LIBSODIUM_LICENSE_FILES = LICENSE
> +LIBSODIUM_INSTALL_STAGING = YES
> +
> +$(eval $(autotools-package))
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v3 1/2] libsodium: new package
2015-05-19 12:01 [Buildroot] [PATCH v3 1/2] libsodium: new package Frank Hunleth
2015-05-19 12:01 ` [Buildroot] [PATCH v3 2/2] zeromq: depend on libsodium if available Frank Hunleth
2015-07-10 16:47 ` [Buildroot] [PATCH v3 1/2] libsodium: new package Romain Naour
@ 2015-07-10 20:44 ` Thomas Petazzoni
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2015-07-10 20:44 UTC (permalink / raw)
To: buildroot
Dear Frank Hunleth,
On Tue, 19 May 2015 08:01:10 -0400, Frank Hunleth wrote:
> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
> ---
> Changes v1 -> v2:
> - fix curly braces on variables (thanks to Thomas for noticing)
> - added patch for zeromq (in separate patch) to address libsodium
> dependency in that library (thanks to Romain for this). I didn't
> find any other packages with a similar dependency, but it's not
> that easy to do that search.
> Changes v2 -> v3:
> - removed host build (thanks to Baruch and Thomas)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-10 20:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 12:01 [Buildroot] [PATCH v3 1/2] libsodium: new package Frank Hunleth
2015-05-19 12:01 ` [Buildroot] [PATCH v3 2/2] zeromq: depend on libsodium if available Frank Hunleth
2015-07-10 17:02 ` Romain Naour
2015-07-10 16:47 ` [Buildroot] [PATCH v3 1/2] libsodium: new package Romain Naour
2015-07-10 20:44 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox