haveged: Add recipe for haveged entropy daemon v1.9.1
PATCH 1/1 haveged: Add recipe for haveged entropy daemon v1.9.1
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
--- .../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
meta-oe/recipes-extended/haveged/files/remove-systemd-unit.patch new file +20 -0
@@ -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
meta-oe/recipes-extended/haveged/haveged_1.9.1.bb new file +29 -0
@@ -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 +}
Signature · 1 line
1.8.1.rc3
Quoted 3 lines · Sven Ebenfeld
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.
Fails to build:
| make[2]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/haveged/1.9.1-r0/build' | make[1]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/haveged/1.9.1-r0/build' | install: cannot stat `/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/haveged/1.9.1-r0/haveged-1.9.1/init.d/haveged.service': No such file or directory | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_install (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/haveged/1.9.1-r0/temp/log.do_install.22662)
NOTE: recipe haveged-1.9.1-r0: task do_install: Failed
ERROR: Task 24474 (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/haveged/haveged_1.9.1.bb, do_install) failed with exit code '1'
Quoted 80 lines
Upstream-Status: Pending
Signed-off-by Sven Ebenfeld <[email protected]>--- .../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.bbmeta-oe/recipes-extended/haveged/files/remove-systemd-unit.patch new file +20
-0@@ -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; + + endifmeta-oe/recipes-extended/haveged/haveged_1.9.1.bb new file +29
-0@@ -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 +}Signature · 7 lines
1.8.1.rc3 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]