summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Bents <jared.bents@rockwellcollins.com>2018-10-24 17:59:36 (GMT)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-02 21:41:03 (GMT)
commit0ddbe7f5364e6b88da8c87d32051c9db4e5dc8d6 (patch)
treea2dbdf02c5accea010db786ec2d0128b85ec7fe0
parentfb59a8857ed12813d5d6ab26ef118dc4262f869b (diff)
downloadbuildroot-0ddbe7f5364e6b88da8c87d32051c9db4e5dc8d6.tar.gz
buildroot-0ddbe7f5364e6b88da8c87d32051c9db4e5dc8d6.tar.bz2
package/davici: new package
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> [Thomas: fix license, it's LGPL-2.1+, add entry in DEVELOPERS file.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--DEVELOPERS3
-rw-r--r--package/Config.in1
-rw-r--r--package/davici/Config.in18
-rw-r--r--package/davici/davici.hash3
-rw-r--r--package/davici/davici.mk20
5 files changed, 45 insertions, 0 deletions
diff --git a/DEVELOPERS b/DEVELOPERS
index 2ff13b3..49ff248 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1014,6 +1014,9 @@ F: package/python-pexpect/
F: package/python-ptyprocess/
F: package/zynq-boot-bin/
+N: Jared Bents <jared.bents@rockwellcollins.com>
+F: package/davici/
+
N: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
F: package/quota/
diff --git a/package/Config.in b/package/Config.in
index 8f561b3..712e360 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1488,6 +1488,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 0000000..9dfa0ec
--- /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 0000000..257e902
--- /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 0000000..5c4b977
--- /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))