summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/haveged/haveged_1.9.14.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/haveged/haveged_1.9.14.bb')
-rw-r--r--meta-oe/recipes-extended/haveged/haveged_1.9.14.bb47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/haveged/haveged_1.9.14.bb b/meta-oe/recipes-extended/haveged/haveged_1.9.14.bb
new file mode 100644
index 0000000000..b56b2271b1
--- /dev/null
+++ b/meta-oe/recipes-extended/haveged/haveged_1.9.14.bb
@@ -0,0 +1,47 @@
1SUMMARY = "haveged - A simple entropy daemon"
2DESCRIPTION = "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."
3AUTHOR = "Gary Wuertz"
4HOMEPAGE = "http://www.issihosts.com/haveged/index.html"
5LICENSE = "GPLv3"
6LIC_FILES_CHKSUM="file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
7
8# v1.9.14
9SRCREV = "4da3080ad4587860e5da73072d6ed54d0052938c"
10SRC_URI = "git://github.com/jirka-h/haveged.git \
11"
12S = "${WORKDIR}/git"
13
14UPSTREAM_CHECK_URI = "https://github.com/jirka-h/haveged/releases"
15
16inherit autotools update-rc.d systemd
17
18EXTRA_OECONF = "\
19 --enable-nistest=yes \
20 --enable-olt=yes \
21 --enable-threads=no \
22"
23
24PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
25PACKAGECONFIG[systemd] = "--enable-init=service.fedora --enable-initdir=${systemd_system_unitdir}, --enable-init=sysv.redhat, systemd"
26
27INITSCRIPT_PACKAGES = "${PN}"
28INITSCRIPT_NAME = "haveged"
29INITSCRIPT_PARAMS_${PN} = "defaults 9"
30
31SYSTEMD_PACKAGES = "${PN}"
32SYSTEMD_SERVICE_${PN} = "haveged.service"
33
34do_install_append() {
35 # The exit status is 143 when the service is stopped
36 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
37 sed -i '/ExecStart/a SuccessExitStatus=143' ${D}${systemd_system_unitdir}/haveged.service
38 # Hybrid systemd-sysvinit distros must install the initscript manually
39 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
40 install -d ${D}${INIT_D_DIR}
41 sed -e "s,@SBINDIR@,${sbindir},g" <${S}/init.d/sysv.redhat >${D}${INIT_D_DIR}/haveged
42 chmod 755 ${D}${INIT_D_DIR}/haveged
43 fi
44 fi
45}
46
47MIPS_INSTRUCTION_SET = "mips"