diff options
| -rw-r--r-- | meta/recipes-support/rng-tools/rng-tools/rng-tools.service (renamed from meta/recipes-support/rng-tools/rng-tools/rngd.service) | 0 | ||||
| -rw-r--r-- | meta/recipes-support/rng-tools/rng-tools_6.15.bb | 12 |
2 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service b/meta/recipes-support/rng-tools/rng-tools/rng-tools.service index 568686e80e..568686e80e 100644 --- a/meta/recipes-support/rng-tools/rng-tools/rngd.service +++ b/meta/recipes-support/rng-tools/rng-tools/rng-tools.service | |||
diff --git a/meta/recipes-support/rng-tools/rng-tools_6.15.bb b/meta/recipes-support/rng-tools/rng-tools_6.15.bb index 0696351903..efc08b5e0a 100644 --- a/meta/recipes-support/rng-tools/rng-tools_6.15.bb +++ b/meta/recipes-support/rng-tools/rng-tools_6.15.bb | |||
| @@ -11,7 +11,7 @@ DEPENDS = "sysfsutils openssl" | |||
| 11 | SRC_URI = "git://github.com/nhorman/rng-tools.git;branch=master;protocol=https \ | 11 | SRC_URI = "git://github.com/nhorman/rng-tools.git;branch=master;protocol=https \ |
| 12 | file://init \ | 12 | file://init \ |
| 13 | file://default \ | 13 | file://default \ |
| 14 | file://rngd.service \ | 14 | file://rng-tools.service \ |
| 15 | " | 15 | " |
| 16 | SRCREV = "381f69828b782afda574f259c1b7549f48f9bb77" | 16 | SRCREV = "381f69828b782afda574f259c1b7549f48f9bb77" |
| 17 | 17 | ||
| @@ -32,7 +32,7 @@ PACKAGECONFIG[nistbeacon] = "--with-nistbeacon,--without-nistbeacon,curl libxml2 | |||
| 32 | INITSCRIPT_NAME = "rng-tools" | 32 | INITSCRIPT_NAME = "rng-tools" |
| 33 | INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ." | 33 | INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ." |
| 34 | 34 | ||
| 35 | SYSTEMD_SERVICE:${PN} = "rngd.service" | 35 | SYSTEMD_SERVICE:${PN} = "rng-tools.service" |
| 36 | 36 | ||
| 37 | CFLAGS += " -DJENT_CONF_ENABLE_INTERNAL_TIMER " | 37 | CFLAGS += " -DJENT_CONF_ENABLE_INTERNAL_TIMER " |
| 38 | 38 | ||
| @@ -44,18 +44,18 @@ do_configure:prepend() { | |||
| 44 | do_install:append() { | 44 | do_install:append() { |
| 45 | install -Dm 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/rng-tools | 45 | install -Dm 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/rng-tools |
| 46 | install -Dm 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools | 46 | install -Dm 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools |
| 47 | install -Dm 0644 ${WORKDIR}/rngd.service \ | 47 | install -Dm 0644 ${WORKDIR}/rng-tools.service \ |
| 48 | ${D}${systemd_system_unitdir}/rngd.service | 48 | ${D}${systemd_system_unitdir}/rng-tools.service |
| 49 | sed -i \ | 49 | sed -i \ |
| 50 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | 50 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ |
| 51 | -e 's,@SBINDIR@,${sbindir},g' \ | 51 | -e 's,@SBINDIR@,${sbindir},g' \ |
| 52 | ${D}${sysconfdir}/init.d/rng-tools \ | 52 | ${D}${sysconfdir}/init.d/rng-tools \ |
| 53 | ${D}${systemd_system_unitdir}/rngd.service | 53 | ${D}${systemd_system_unitdir}/rng-tools.service |
| 54 | 54 | ||
| 55 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'nistbeacon', 'yes', 'no', d)}" = "yes" ]; then | 55 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'nistbeacon', 'yes', 'no', d)}" = "yes" ]; then |
| 56 | sed -i \ | 56 | sed -i \ |
| 57 | -e '/^IPAddressDeny=any/d' \ | 57 | -e '/^IPAddressDeny=any/d' \ |
| 58 | -e '/^RestrictAddressFamilies=/ s/$/ AF_INET AF_INET6/' \ | 58 | -e '/^RestrictAddressFamilies=/ s/$/ AF_INET AF_INET6/' \ |
| 59 | ${D}${systemd_system_unitdir}/rngd.service | 59 | ${D}${systemd_system_unitdir}/rng-tools.service |
| 60 | fi | 60 | fi |
| 61 | } | 61 | } |
