diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-05-31 17:52:30 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-04 13:27:30 +0100 |
commit | a3a6c10bd539868bf3de04f0848364e96fb5a313 (patch) | |
tree | def5084774dd9a209cbdd06490e88497aa132913 /meta/recipes-support/rng-tools/rng-tools_6.10.bb | |
parent | 36aa1ce0ca58c7ef5fec3d69ae53b4037f15f4dc (diff) | |
download | poky-a3a6c10bd539868bf3de04f0848364e96fb5a313.tar.gz |
rng-tools: upgrade 6.9 -> 6.10
(From OE-Core rev: 368405e33a3db97a85cfd4cb06cb5a105b924d3e)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/rng-tools/rng-tools_6.10.bb')
-rw-r--r-- | meta/recipes-support/rng-tools/rng-tools_6.10.bb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools_6.10.bb b/meta/recipes-support/rng-tools/rng-tools_6.10.bb new file mode 100644 index 0000000000..3f9720e406 --- /dev/null +++ b/meta/recipes-support/rng-tools/rng-tools_6.10.bb | |||
@@ -0,0 +1,62 @@ | |||
1 | SUMMARY = "Random number generator daemon" | ||
2 | DESCRIPTION = "Check and feed random data from hardware device to kernel" | ||
3 | AUTHOR = "Philipp Rumpf, Jeff Garzik <jgarzik@pobox.com>, \ | ||
4 | Henrique de Moraes Holschuh <hmh@debian.org>" | ||
5 | HOMEPAGE = "https://github.com/nhorman/rng-tools" | ||
6 | BUGTRACKER = "https://github.com/nhorman/rng-tools/issues" | ||
7 | LICENSE = "GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
9 | DEPENDS = "sysfsutils openssl" | ||
10 | |||
11 | SRC_URI = "\ | ||
12 | git://github.com/nhorman/rng-tools.git \ | ||
13 | file://a4b6d9ce64f132e463b9091d0536913ddaf11516.patch \ | ||
14 | file://dab16a5fd4efde8ef569b358e19b1fcbc7d0d938.patch \ | ||
15 | file://init \ | ||
16 | file://default \ | ||
17 | file://rngd.service \ | ||
18 | " | ||
19 | SRCREV = "0be82200a66d9321451e0a0785bfae350b9cffdc" | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | |||
23 | inherit autotools update-rc.d systemd pkgconfig | ||
24 | |||
25 | EXTRA_OECONF = "--without-rtlsdr" | ||
26 | |||
27 | PACKAGECONFIG ??= "libjitterentropy" | ||
28 | PACKAGECONFIG_libc-musl = "libargp libjitterentropy" | ||
29 | |||
30 | PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone," | ||
31 | PACKAGECONFIG[libjitterentropy] = "--enable-jitterentropy,--disable-jitterentropy,libjitterentropy" | ||
32 | PACKAGECONFIG[libp11] = "--with-pkcs11,--without-pkcs11,libp11 openssl" | ||
33 | PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2 openssl" | ||
34 | |||
35 | INITSCRIPT_NAME = "rng-tools" | ||
36 | INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ." | ||
37 | |||
38 | SYSTEMD_SERVICE_${PN} = "rngd.service" | ||
39 | |||
40 | # Refer autogen.sh in rng-tools | ||
41 | do_configure_prepend() { | ||
42 | cp ${S}/README.md ${S}/README | ||
43 | } | ||
44 | |||
45 | do_install_append() { | ||
46 | install -Dm 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/rng-tools | ||
47 | install -Dm 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools | ||
48 | install -Dm 0644 ${WORKDIR}/rngd.service \ | ||
49 | ${D}${systemd_system_unitdir}/rngd.service | ||
50 | sed -i \ | ||
51 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
52 | -e 's,@SBINDIR@,${sbindir},g' \ | ||
53 | ${D}${sysconfdir}/init.d/rng-tools \ | ||
54 | ${D}${systemd_system_unitdir}/rngd.service | ||
55 | |||
56 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'nistbeacon', 'yes', 'no', d)}" = "yes" ]; then | ||
57 | sed -i \ | ||
58 | -e '/^IPAddressDeny=any/d' \ | ||
59 | -e '/^RestrictAddressFamilies=/ s/$/ AF_INET AF_INET6/' \ | ||
60 | ${D}${systemd_system_unitdir}/rngd.service | ||
61 | fi | ||
62 | } | ||