summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorNicola Lunghi <nick83ola@gmail.com>2019-06-06 11:40:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-12 10:54:40 +0100
commiteb92c1342115eb7d5d2c746b45bdcd41dd714b83 (patch)
treefe70152f38118e553fc6fa926efae6bef4aebe70 /meta/recipes-support
parentc85b26941675d3380be1f2b0032a44251ede1abb (diff)
downloadpoky-eb92c1342115eb7d5d2c746b45bdcd41dd714b83.tar.gz
rng-tools: recipe cleanup
- add missing DESCRIPTION, AUTHOR, HOMEPAGE - cleanup DEPENDS - fix variable ordering as per https://www.openembedded.org/wiki/Styleguide - remove unneeded checks for systemd, sysvinit in do_install (From OE-Core rev: 8e36880e8a36f828d4670c45f1c4d934d03d4645) Signed-off-by: Nicola Lunghi <nick83ola@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/rng-tools/rng-tools_6.6.bb63
1 files changed, 33 insertions, 30 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools_6.6.bb b/meta/recipes-support/rng-tools/rng-tools_6.6.bb
index 6796c9be9e..41959a2695 100644
--- a/meta/recipes-support/rng-tools/rng-tools_6.6.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_6.6.bb
@@ -1,58 +1,61 @@
1SUMMARY = "Random number generator daemon" 1SUMMARY = "Random number generator daemon"
2DESCRIPTION = "Check and feed random data from hardware device to kernel"
3AUTHOR = "Philipp Rumpf, Jeff Garzik <jgarzik@pobox.com>, \
4 Henrique de Moraes Holschuh <hmh@debian.org>"
5HOMEPAGE = "https://github.com/nhorman/rng-tools"
6BUGTRACKER = "https://github.com/nhorman/rng-tools/issues"
2LICENSE = "GPLv2" 7LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 8LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4 9DEPENDS = "sysfsutils"
5SRC_URI = "git://github.com/nhorman/rng-tools.git \ 10
6 file://0001-If-the-libc-is-lacking-argp-use-libargp.patch \ 11SRC_URI = "\
7 file://0002-Add-argument-to-control-the-libargp-dependency.patch \ 12 git://github.com/nhorman/rng-tools.git \
8 file://underquote.patch \ 13 file://0001-If-the-libc-is-lacking-argp-use-libargp.patch \
9 file://rng-tools-5-fix-textrels-on-PIC-x86.patch \ 14 file://0002-Add-argument-to-control-the-libargp-dependency.patch \
10 file://0001-configure.ac-fix-typo.patch \ 15 file://underquote.patch \
11 file://init \ 16 file://rng-tools-5-fix-textrels-on-PIC-x86.patch \
12 file://default \ 17 file://0001-configure.ac-fix-typo.patch \
13 file://rngd.service \ 18 file://init \
19 file://default \
20 file://rngd.service \
14" 21"
15SRCREV = "4ebc21d6f387bb7b4b3f6badc429e27b21c0a6ee" 22SRCREV = "4ebc21d6f387bb7b4b3f6badc429e27b21c0a6ee"
23
16S = "${WORKDIR}/git" 24S = "${WORKDIR}/git"
17 25
18inherit autotools update-rc.d systemd pkgconfig 26inherit autotools update-rc.d systemd pkgconfig
19 27
20DEPENDS = " \
21 sysfsutils \
22 "
23
24PACKAGECONFIG ??= "libgcrypt libjitterentropy" 28PACKAGECONFIG ??= "libgcrypt libjitterentropy"
25PACKAGECONFIG_libc-musl = "libargp libjitterentropy" 29PACKAGECONFIG_libc-musl = "libargp libjitterentropy"
30
26PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone," 31PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone,"
27PACKAGECONFIG[libgcrypt] = "--with-libgcrypt,--without-libgcrypt,libgcrypt," 32PACKAGECONFIG[libgcrypt] = "--with-libgcrypt,--without-libgcrypt,libgcrypt,"
28PACKAGECONFIG[libjitterentropy] = "--enable-jitterentropy,--disable-jitterentropy,libjitterentropy" 33PACKAGECONFIG[libjitterentropy] = "--enable-jitterentropy,--disable-jitterentropy,libjitterentropy"
29PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2 openssl" 34PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2 openssl"
30 35
36INITSCRIPT_NAME = "rng-tools"
37INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ."
38
39SYSTEMD_SERVICE_${PN} = "rngd.service"
40
31# Refer autogen.sh in rng-tools 41# Refer autogen.sh in rng-tools
32do_configure_prepend() { 42do_configure_prepend() {
33 cp ${S}/README.md ${S}/README 43 cp ${S}/README.md ${S}/README
34} 44}
35 45
36do_install_append() { 46do_install_append() {
37 # Only install the init script when 'sysvinit' is in DISTRO_FEATURES. 47 install -d "${D}${sysconfdir}/init.d"
38 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 48 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools
39 install -d "${D}${sysconfdir}/init.d" 49 sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \
40 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools 50 ${D}${sysconfdir}/init.d/rng-tools
41 sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \
42 ${D}${sysconfdir}/init.d/rng-tools
43 51
52 # Only install the default script when 'sysvinit' is in DISTRO_FEATURES.
53 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
44 install -d "${D}${sysconfdir}/default" 54 install -d "${D}${sysconfdir}/default"
45 install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/rng-tools 55 install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/rng-tools
46 fi 56 fi
47 57
48 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 58 install -d ${D}${systemd_unitdir}/system
49 install -d ${D}${systemd_unitdir}/system 59 install -m 644 ${WORKDIR}/rngd.service ${D}${systemd_unitdir}/system
50 install -m 644 ${WORKDIR}/rngd.service ${D}${systemd_unitdir}/system 60 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/rngd.service
51 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/rngd.service
52 fi
53} 61}
54
55INITSCRIPT_NAME = "rng-tools"
56INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ."
57
58SYSTEMD_SERVICE_${PN} = "rngd.service"