diff options
author | Nicola Lunghi <nick83ola@gmail.com> | 2019-06-06 11:40:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-12 10:54:40 +0100 |
commit | eb92c1342115eb7d5d2c746b45bdcd41dd714b83 (patch) | |
tree | fe70152f38118e553fc6fa926efae6bef4aebe70 /meta/recipes-support | |
parent | c85b26941675d3380be1f2b0032a44251ede1abb (diff) | |
download | poky-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.bb | 63 |
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 @@ | |||
1 | SUMMARY = "Random number generator daemon" | 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" | ||
2 | LICENSE = "GPLv2" | 7 | LICENSE = "GPLv2" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
4 | 9 | DEPENDS = "sysfsutils" | |
5 | SRC_URI = "git://github.com/nhorman/rng-tools.git \ | 10 | |
6 | file://0001-If-the-libc-is-lacking-argp-use-libargp.patch \ | 11 | SRC_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 | " |
15 | SRCREV = "4ebc21d6f387bb7b4b3f6badc429e27b21c0a6ee" | 22 | SRCREV = "4ebc21d6f387bb7b4b3f6badc429e27b21c0a6ee" |
23 | |||
16 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
17 | 25 | ||
18 | inherit autotools update-rc.d systemd pkgconfig | 26 | inherit autotools update-rc.d systemd pkgconfig |
19 | 27 | ||
20 | DEPENDS = " \ | ||
21 | sysfsutils \ | ||
22 | " | ||
23 | |||
24 | PACKAGECONFIG ??= "libgcrypt libjitterentropy" | 28 | PACKAGECONFIG ??= "libgcrypt libjitterentropy" |
25 | PACKAGECONFIG_libc-musl = "libargp libjitterentropy" | 29 | PACKAGECONFIG_libc-musl = "libargp libjitterentropy" |
30 | |||
26 | PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone," | 31 | PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone," |
27 | PACKAGECONFIG[libgcrypt] = "--with-libgcrypt,--without-libgcrypt,libgcrypt," | 32 | PACKAGECONFIG[libgcrypt] = "--with-libgcrypt,--without-libgcrypt,libgcrypt," |
28 | PACKAGECONFIG[libjitterentropy] = "--enable-jitterentropy,--disable-jitterentropy,libjitterentropy" | 33 | PACKAGECONFIG[libjitterentropy] = "--enable-jitterentropy,--disable-jitterentropy,libjitterentropy" |
29 | PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2 openssl" | 34 | PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2 openssl" |
30 | 35 | ||
36 | INITSCRIPT_NAME = "rng-tools" | ||
37 | INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ." | ||
38 | |||
39 | SYSTEMD_SERVICE_${PN} = "rngd.service" | ||
40 | |||
31 | # Refer autogen.sh in rng-tools | 41 | # Refer autogen.sh in rng-tools |
32 | do_configure_prepend() { | 42 | do_configure_prepend() { |
33 | cp ${S}/README.md ${S}/README | 43 | cp ${S}/README.md ${S}/README |
34 | } | 44 | } |
35 | 45 | ||
36 | do_install_append() { | 46 | do_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 | |||
55 | INITSCRIPT_NAME = "rng-tools" | ||
56 | INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ." | ||
57 | |||
58 | SYSTEMD_SERVICE_${PN} = "rngd.service" | ||