Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] package/davici: new package
@ 2018-10-24 17:59 Jared Bents
  2018-11-02 21:51 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Jared Bents @ 2018-10-24 17:59 UTC (permalink / raw)
  To: buildroot

This patch adds davici which is an alternative implementation of the
VICI client protocal used by Strongswan.  It targets better integration
with software stacks and uses a asynchronous, non-blocking API that can
be integrated in third-party main dispatching loops without the use of
threads.

Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
---
Supersedes: https://patchwork.ozlabs.org/patch/972496/
---
 package/Config.in          |  1 +
 package/davici/Config.in   | 18 ++++++++++++++++++
 package/davici/davici.hash |  3 +++
 package/davici/davici.mk   | 20 ++++++++++++++++++++
 4 files changed, 42 insertions(+)
 create mode 100644 package/davici/Config.in
 create mode 100644 package/davici/davici.hash
 create mode 100644 package/davici/davici.mk

diff --git a/package/Config.in b/package/Config.in
index fd86e37a52..56f3b8ff92 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1480,6 +1480,7 @@ menu "Networking"
 	source "package/curlpp/Config.in"
 	source "package/czmq/Config.in"
 	source "package/daq/Config.in"
+	source "package/davici/Config.in"
 	source "package/filemq/Config.in"
 	source "package/flickcurl/Config.in"
 	source "package/fmlib/Config.in"
diff --git a/package/davici/Config.in b/package/davici/Config.in
new file mode 100644
index 0000000000..9dfa0ec130
--- /dev/null
+++ b/package/davici/Config.in
@@ -0,0 +1,18 @@
+comment "davici needs a toolchain w/ threads, dynamic library"
+	depends on BR2_USE_MMU
+	depends on BR2_TOOLCHAIN_HAS_ATOMIC
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+
+config BR2_PACKAGE_DAVICI
+	bool "davici"
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_TOOLCHAIN_HAS_ATOMIC
+	depends on !BR2_STATIC_LIBS
+	select BR2_PACKAGE_STRONGSWAN
+	help
+	  davici is an alternative implementation of the VICI
+	  client protocol, targeting better integration in other
+	  software stacks.
+
+	  https://github.com/strongswan/davici
diff --git a/package/davici/davici.hash b/package/davici/davici.hash
new file mode 100644
index 0000000000..257e902ce7
--- /dev/null
+++ b/package/davici/davici.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 d3e5e806ecca841d7e133a3df768062df59f4b4c76bf98e0f90aa8064721b3bd  davici-v1.3.tar.gz
+sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
diff --git a/package/davici/davici.mk b/package/davici/davici.mk
new file mode 100644
index 0000000000..ab9d2ba176
--- /dev/null
+++ b/package/davici/davici.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# davici
+#
+################################################################################
+
+DAVICI_VERSION = v1.3
+DAVICI_SITE = $(call github,strongswan,davici,$(DAVICI_VERSION))
+DAVICI_LICENSE = LGPL-2.1
+DAVICI_LICENSE_FILES = COPYING
+DAVICI_DEPENDENCIES = strongswan
+DAVICI_INSTALL_STAGING=YES
+DAVICI_AUTORECONF = YES
+
+define DAVICI_CREATE_M4
+	mkdir -p $(@D)/m4
+endef
+DAVICI_POST_PATCH_HOOKS += DAVICI_CREATE_M4
+
+$(eval $(autotools-package))
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/davici: new package
  2018-10-24 17:59 [Buildroot] [PATCH v2 1/1] package/davici: new package Jared Bents
@ 2018-11-02 21:51 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-11-02 21:51 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 24 Oct 2018 12:59:36 -0500, Jared Bents wrote:
> This patch adds davici which is an alternative implementation of the
> VICI client protocal used by Strongswan.  It targets better integration
> with software stacks and uses a asynchronous, non-blocking API that can
> be integrated in third-party main dispatching loops without the use of
> threads.
> 
> Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>

I've applied, with a few changes, see below.

>  package/Config.in          |  1 +
>  package/davici/Config.in   | 18 ++++++++++++++++++
>  package/davici/davici.hash |  3 +++
>  package/davici/davici.mk   | 20 ++++++++++++++++++++

An entry to the DEVELOPERS file was missing.

> diff --git a/package/davici/Config.in b/package/davici/Config.in
> new file mode 100644
> index 0000000000..9dfa0ec130
> --- /dev/null
> +++ b/package/davici/Config.in
> @@ -0,0 +1,18 @@
> +comment "davici needs a toolchain w/ threads, dynamic library"
> +	depends on BR2_USE_MMU
> +	depends on BR2_TOOLCHAIN_HAS_ATOMIC
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> +
> +config BR2_PACKAGE_DAVICI
> +	bool "davici"
> +	depends on BR2_USE_MMU # fork()
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_TOOLCHAIN_HAS_ATOMIC
> +	depends on !BR2_STATIC_LIBS
> +	select BR2_PACKAGE_STRONGSWAN

Here I hesitated between keeping your select, or switching to a
"depends on". Indeed, in the case of this library, it's pretty clear
that the user willing to use it will know that he needs strongswan. But
it's a matter of taste, so in the end, I kept your select.

> +DAVICI_VERSION = v1.3
> +DAVICI_SITE = $(call github,strongswan,davici,$(DAVICI_VERSION))
> +DAVICI_LICENSE = LGPL-2.1

The license is LGPL-2.1+, the source files carry the "or later"
indication.

> +DAVICI_LICENSE_FILES = COPYING
> +DAVICI_DEPENDENCIES = strongswan
> +DAVICI_INSTALL_STAGING=YES

Missing spaces around the = sign.

Applied with those issues fixed. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-02 21:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-24 17:59 [Buildroot] [PATCH v2 1/1] package/davici: new package Jared Bents
2018-11-02 21:51 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox