From eb4fcc81836a0f37d57e70a1e2886b7c28f780d0 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 21 Jul 2017 11:05:25 +0200 Subject: [PATCH] Import zeromq and its dependency libsodium from meta-oe.git http://cgit.openembedded.org/meta-openembedded/plain/meta-oe/recipes-support/libsodium/libsodium_1.0.11.bb http://cgit.openembedded.org/meta-openembedded/plain/meta-oe/recipes-connectivity/zeromq/zeromq_4.1.6.bb --- recipes-connectivity/zeromq/files/run-ptest | 10 ++++++ recipes-connectivity/zeromq/zeromq_4.1.6.bb | 32 +++++++++++++++++++ recipes-support/libsodium/libsodium_1.0.11.bb | 12 +++++++ 3 files changed, 54 insertions(+) create mode 100644 recipes-connectivity/zeromq/files/run-ptest create mode 100644 recipes-connectivity/zeromq/zeromq_4.1.6.bb create mode 100644 recipes-support/libsodium/libsodium_1.0.11.bb diff --git a/recipes-connectivity/zeromq/files/run-ptest b/recipes-connectivity/zeromq/files/run-ptest new file mode 100644 index 0000000..48b9cd9 --- /dev/null +++ b/recipes-connectivity/zeromq/files/run-ptest @@ -0,0 +1,10 @@ +#!/bin/sh + +cd tests +for i in `ls *`; do + if [ ./$i ] ; then + echo "PASS: $i" + else + echo "FAIL: $i" + fi +done diff --git a/recipes-connectivity/zeromq/zeromq_4.1.6.bb b/recipes-connectivity/zeromq/zeromq_4.1.6.bb new file mode 100644 index 0000000..e126f32 --- /dev/null +++ b/recipes-connectivity/zeromq/zeromq_4.1.6.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "ZeroMQ looks like an embeddable networking library but acts like a concurrency framework" +HOMEPAGE = "http://www.zeromq.org" +LICENSE = "LGPLv3+" +LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=d5311495d952062e0e4fbba39cbf3de1" + +PACKAGECONFIG ??= "libsodium" +PACKAGECONFIG[libsodium] = "--with-libsodium, --without-libsodium, libsodium" + +SRC_URI = "http://github.com/zeromq/zeromq4-1/releases/download/v${PV}/zeromq-${PV}.tar.gz \ + file://run-ptest \ +" +SRC_URI[md5sum] = "c89db4dbc0b90c34c9f4983cbff6d321" +SRC_URI[sha256sum] = "02ebf60a43011e770799336365bcbce2eb85569e9b5f52aa0d8cc04672438a0a" + +S = "${WORKDIR}/zeromq-${PV}" + +#Uncomment to choose polling system manually. valid values are kqueue, epoll, devpoll, poll or select +#EXTRA_OECONF += "--with-poller=kqueue" +#CFLAGS_append = " -O0" +#CXXFLAGS_append = " -O0" + +inherit autotools ptest pkgconfig + +do_compile_ptest () { + echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${B}/Makefile + oe_runmake buildtest-TESTS +} + +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/.libs/test_* ${D}${PTEST_PATH}/tests +} diff --git a/recipes-support/libsodium/libsodium_1.0.11.bb b/recipes-support/libsodium/libsodium_1.0.11.bb new file mode 100644 index 0000000..cbcbe96 --- /dev/null +++ b/recipes-support/libsodium/libsodium_1.0.11.bb @@ -0,0 +1,12 @@ +SUMMARY = "The Sodium crypto library" +HOMEPAGE = "http://libsodium.org/" +LICENSE = "ISC" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c9f00492f01f5610253fde01c3d2e866" + +SRC_URI = "https://download.libsodium.org/libsodium/releases/${BPN}-${PV}.tar.gz" +SRC_URI[md5sum] = "b58928d035064b2a46fb564937b83540" +SRC_URI[sha256sum] = "a14549db3c49f6ae2170cbbf4664bd48ace50681045e8dbea7c8d9fb96f9c765" + +inherit autotools + +BBCLASSEXTEND = "native nativesdk"