Return-Path: Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by mail.openembedded.org (Postfix) with ESMTP id 6B550605BD for ; Mon, 8 Sep 2014 08:28:40 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id m15so1093675wgh.32 for ; Mon, 08 Sep 2014 01:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=SFA465/ciuU901nN8mh+nmJ2P7L8q3svjy8Uel2UVHM=; b=gNH4GAfHmeJjj2+BspDMw0ve3Nirw2u3VEp8lTOdLFLEiqxLi71qu9+OAvVSCC0kGW gzPU9R0ARfWELSyd7CidMQLkGdCQkYVT2+wAoeri5VYpszpJ9F1p3d0qvg3G7lABxwZ8 +ThAi3Efbt5LOEpZjIis4IR9nqTWwSyL4BsZQIt3euy1QNSqfC81KuMmaK/L3/OVo5yf YscvnHZhWa6e0gNNj5cUx2F/mdKs9OqfVL1ZxofatyHH5pbAaOsEmVT0jMW6aXcoyTSQ AbTcKIf0O0kOS+4xNHx1regT5ibTNUUlY9scz8e/FUV0npiwcU94tOMGz3f6vSiep/94 eUqQ== X-Received: by 10.180.37.16 with SMTP id u16mr21133642wij.72.1410164921933; Mon, 08 Sep 2014 01:28:41 -0700 (PDT) Received: from localhost.localdomain (pD9F9B8DB.dip0.t-ipconnect.de. [217.249.184.219]) by mx.google.com with ESMTPSA id bg10sm10241977wjc.47.2014.09.08.01.28.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Sep 2014 01:28:41 -0700 (PDT) From: Sven Ebenfeld To: openembedded-devel@lists.openembedded.org Date: Mon, 8 Sep 2014 10:27:55 +0200 Message-Id: <1410164875-15155-1-git-send-email-sven.ebenfeld@gmail.com> X-Mailer: git-send-email 1.8.1.rc3 Subject: [meta-oe][PATCH] haveged: Add recipe for haveged entropy daemon v1.9.1 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 08:28:47 -0000 As we are building software for headless embedded devices, we don't want to rely on the entropy generated by default linux kernel mechanisms. Haveged seems to be a good solution in providing more entropy for headless devices. Upstream-Status: Pending Signed-off-by: Sven Ebenfeld --- .../haveged/files/remove-systemd-unit.patch | 20 +++++++++++++++ meta-oe/recipes-extended/haveged/haveged_1.9.1.bb | 29 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 meta-oe/recipes-extended/haveged/files/remove-systemd-unit.patch create mode 100644 meta-oe/recipes-extended/haveged/haveged_1.9.1.bb diff --git a/meta-oe/recipes-extended/haveged/files/remove-systemd-unit.patch b/meta-oe/recipes-extended/haveged/files/remove-systemd-unit.patch new file mode 100644 index 0000000..df27bcb --- /dev/null +++ b/meta-oe/recipes-extended/haveged/files/remove-systemd-unit.patch @@ -0,0 +1,20 @@ +--- a/init.d/Makefile.am 2014-01-02 18:55:53.000000000 +0100 ++++ b/init.d/Makefile.am 2014-08-11 10:59:40.000000000 +0200 +@@ -34,11 +34,11 @@ + $(do_subst) < $(srcdir)/$(src_tmpl) > haveged.service; + + install-data-hook: +-if ENABLE_SYSTEMD_LOOKUP +- install -p -m644 haveged.service `pkg-config --variable=systemdsystemunitdir systemd`/haveged.service; +-else +- install -p -m644 haveged.service ($unit_dir)/haveged.service; +-endif +- systemctl enable haveged.service; ++#if ENABLE_SYSTEMD_LOOKUP ++# install -p -m644 haveged.service `pkg-config --variable=systemdsystemunitdir systemd`/haveged.service; ++#else ++# install -p -m644 haveged.service ($unit_dir)/haveged.service; ++#endif ++# systemctl enable haveged.service; + + endif diff --git a/meta-oe/recipes-extended/haveged/haveged_1.9.1.bb b/meta-oe/recipes-extended/haveged/haveged_1.9.1.bb new file mode 100644 index 0000000..10bfbaa --- /dev/null +++ b/meta-oe/recipes-extended/haveged/haveged_1.9.1.bb @@ -0,0 +1,29 @@ +SUMMARY = "haveged - A simple entropy daemon" +DESCRIPTION = "The haveged project is an attempt to provide an easy-to-use, unpredictable random number generator based upon an adaptation of the HAVEGE algorithm. Haveged was created to remedy low-entropy conditions in the Linux random device that can occur under some workloads, especially on headless servers." +AUTHOR = "Gary Wuertz" +HOMEPAGE = "http://www.issihosts.com/haveged/index.html" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +SRC_URI = "http://www.issihosts.com/haveged/haveged-${PV}.tar.gz \ + file://remove-systemd-unit.patch \ + " +SRC_URI[md5sum] = "015ff58cd10607db0e0de60aeca2f5f8" +SRC_URI[sha256sum] = "9c2363ed9542a6784ff08e247182137e71f2ddb79e8e6c1ac4ad50d21ced3715" + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "haveged.service" + +inherit autotools systemd + +EXTRA_OECONF = "\ + --enable-init=service.redhat \ + --enable-nistest=yes \ + --enable-olt=yes \ + --enable-threads=no \ + " + +do_install_append() { + mkdir -p ${D}${systemd_unitdir}/system + install -p -m644 ${S}/init.d/haveged.service ${D}${systemd_unitdir}/system +} -- 1.8.1.rc3