diff options
-rw-r--r-- | meta-oe/recipes-extended/haveged/haveged/remove-systemd-unit-503.patch | 20 | ||||
-rw-r--r-- | meta-oe/recipes-extended/haveged/haveged_1.9.1.bb | 32 |
2 files changed, 52 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/haveged/haveged/remove-systemd-unit-503.patch b/meta-oe/recipes-extended/haveged/haveged/remove-systemd-unit-503.patch new file mode 100644 index 0000000000..df27bcb091 --- /dev/null +++ b/meta-oe/recipes-extended/haveged/haveged/remove-systemd-unit-503.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | --- a/init.d/Makefile.am 2014-01-02 18:55:53.000000000 +0100 | ||
2 | +++ b/init.d/Makefile.am 2014-08-11 10:59:40.000000000 +0200 | ||
3 | @@ -34,11 +34,11 @@ | ||
4 | $(do_subst) < $(srcdir)/$(src_tmpl) > haveged.service; | ||
5 | |||
6 | install-data-hook: | ||
7 | -if ENABLE_SYSTEMD_LOOKUP | ||
8 | - install -p -m644 haveged.service `pkg-config --variable=systemdsystemunitdir systemd`/haveged.service; | ||
9 | -else | ||
10 | - install -p -m644 haveged.service ($unit_dir)/haveged.service; | ||
11 | -endif | ||
12 | - systemctl enable haveged.service; | ||
13 | +#if ENABLE_SYSTEMD_LOOKUP | ||
14 | +# install -p -m644 haveged.service `pkg-config --variable=systemdsystemunitdir systemd`/haveged.service; | ||
15 | +#else | ||
16 | +# install -p -m644 haveged.service ($unit_dir)/haveged.service; | ||
17 | +#endif | ||
18 | +# systemctl enable haveged.service; | ||
19 | |||
20 | 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 0000000000..fbd1992d63 --- /dev/null +++ b/meta-oe/recipes-extended/haveged/haveged_1.9.1.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "haveged - A simple entropy daemon" | ||
2 | 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." | ||
3 | AUTHOR = "Gary Wuertz" | ||
4 | HOMEPAGE = "http://www.issihosts.com/haveged/index.html" | ||
5 | LICENSE = "GPLv3" | ||
6 | LIC_FILES_CHKSUM="file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
7 | |||
8 | SRC_URI = "http://www.issihosts.com/haveged/haveged-${PV}.tar.gz \ | ||
9 | file://remove-systemd-unit-503.patch \ | ||
10 | " | ||
11 | |||
12 | SRC_URI[md5sum] = "015ff58cd10607db0e0de60aeca2f5f8" | ||
13 | SRC_URI[sha256sum] = "9c2363ed9542a6784ff08e247182137e71f2ddb79e8e6c1ac4ad50d21ced3715" | ||
14 | |||
15 | PR = "r0" | ||
16 | |||
17 | inherit autotools systemd | ||
18 | |||
19 | EXTRA_OECONF = "\ | ||
20 | --enable-init=service.redhat \ | ||
21 | --enable-nistest=yes \ | ||
22 | --enable-olt=yes \ | ||
23 | --enable-threads=no \ | ||
24 | " | ||
25 | |||
26 | SYSTEMD_PACKAGES = "${PN}" | ||
27 | SYSTEMD_SERVICE_${PN} = "haveged.service" | ||
28 | |||
29 | do_install_append() { | ||
30 | mkdir -p ${D}${systemd_unitdir}/system | ||
31 | install -p -m644 ${B}/init.d/haveged.service ${D}${systemd_unitdir}/system | ||
32 | } | ||