All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] rng-tools: add systemd service file
@ 2016-09-30  5:05 Dengke Du
  2016-09-30  5:05 ` [PATCH 1/1] " Dengke Du
  0 siblings, 1 reply; 4+ messages in thread
From: Dengke Du @ 2016-09-30  5:05 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 5d8a968ecdf40babe452b0ac63d94a7a163710ae:

  dev-manual: Applied review changes to GNU debugging section. (2016-09-28 15:02:33 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib dengke/add-systemd-service-for-rng_tools
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=dengke/add-systemd-service-for-rng_tools

Dengke Du (1):
  rng-tools: add systemd service file

 meta/recipes-support/rng-tools/rng-tools/rngd.service |  9 +++++++++
 meta/recipes-support/rng-tools/rng-tools_5.bb         | 14 ++++++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/rng-tools/rng-tools/rngd.service

-- 
2.8.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] rng-tools: add systemd service file
  2016-09-30  5:05 [PATCH 0/1] rng-tools: add systemd service file Dengke Du
@ 2016-09-30  5:05 ` Dengke Du
  2016-10-28  1:53   ` Dengke Du
  0 siblings, 1 reply; 4+ messages in thread
From: Dengke Du @ 2016-09-30  5:05 UTC (permalink / raw)
  To: openembedded-core

Add systemd service file for rng-tools.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 meta/recipes-support/rng-tools/rng-tools/rngd.service |  9 +++++++++
 meta/recipes-support/rng-tools/rng-tools_5.bb         | 14 ++++++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/rng-tools/rng-tools/rngd.service

diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service b/meta/recipes-support/rng-tools/rng-tools/rngd.service
new file mode 100644
index 0000000..b94ad50
--- /dev/null
+++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Hardware RNG Entropy Gatherer Daemon
+
+[Service]
+ExecStart=@SBINDIR@/rngd -f -r /dev/urandom
+SuccessExitStatus=66
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta/recipes-support/rng-tools/rng-tools_5.bb b/meta/recipes-support/rng-tools/rng-tools_5.bb
index 913a092..e9786f9 100644
--- a/meta/recipes-support/rng-tools/rng-tools_5.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_5.bb
@@ -8,7 +8,9 @@ SRC_URI = "http://heanet.dl.sourceforge.net/sourceforge/gkernel/${BP}.tar.gz \
            file://underquote.patch \
            file://uclibc-libuargp-configure.patch \
            file://init \
-           file://default"
+           file://default \
+           file://rngd.service \
+"
 
 SRC_URI[md5sum] = "6726cdc6fae1f5122463f24ae980dd68"
 SRC_URI[sha256sum] = "60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e"
@@ -20,7 +22,7 @@ python () {
         d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
 }
 
-inherit autotools update-rc.d
+inherit autotools update-rc.d systemd
 
 PACKAGECONFIG = "libgcrypt"
 PACKAGECONFIG_libc-musl = "libargp"
@@ -40,7 +42,15 @@ do_install_append() {
         install -d "${D}${sysconfdir}/default"
         install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/rng-tools
     fi
+
+    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
+        install -d ${D}${systemd_unitdir}/system
+        install -m 644 ${WORKDIR}/rngd.service ${D}${systemd_unitdir}/system
+        sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/rngd.service
+    fi
 }
 
 INITSCRIPT_NAME = "rng-tools"
 INITSCRIPT_PARAMS = "start 30 2 3 4 5 . stop 30 0 6 1 ."
+
+SYSTEMD_SERVICE_${PN} = "rngd.service"
-- 
2.8.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] rng-tools: add systemd service file
  2016-09-30  5:05 ` [PATCH 1/1] " Dengke Du
@ 2016-10-28  1:53   ` Dengke Du
  0 siblings, 0 replies; 4+ messages in thread
From: Dengke Du @ 2016-10-28  1:53 UTC (permalink / raw)
  To: openembedded-core

Ping.

// Dengke


On 2016年09月30日 13:05, Dengke Du wrote:
> Add systemd service file for rng-tools.
>
> Signed-off-by: Dengke Du <dengke.du@windriver.com>
> ---
>   meta/recipes-support/rng-tools/rng-tools/rngd.service |  9 +++++++++
>   meta/recipes-support/rng-tools/rng-tools_5.bb         | 14 ++++++++++++--
>   2 files changed, 21 insertions(+), 2 deletions(-)
>   create mode 100644 meta/recipes-support/rng-tools/rng-tools/rngd.service
>
> diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service b/meta/recipes-support/rng-tools/rng-tools/rngd.service
> new file mode 100644
> index 0000000..b94ad50
> --- /dev/null
> +++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
> @@ -0,0 +1,9 @@
> +[Unit]
> +Description=Hardware RNG Entropy Gatherer Daemon
> +
> +[Service]
> +ExecStart=@SBINDIR@/rngd -f -r /dev/urandom
> +SuccessExitStatus=66
> +
> +[Install]
> +WantedBy=multi-user.target
> diff --git a/meta/recipes-support/rng-tools/rng-tools_5.bb b/meta/recipes-support/rng-tools/rng-tools_5.bb
> index 913a092..e9786f9 100644
> --- a/meta/recipes-support/rng-tools/rng-tools_5.bb
> +++ b/meta/recipes-support/rng-tools/rng-tools_5.bb
> @@ -8,7 +8,9 @@ SRC_URI = "http://heanet.dl.sourceforge.net/sourceforge/gkernel/${BP}.tar.gz \
>              file://underquote.patch \
>              file://uclibc-libuargp-configure.patch \
>              file://init \
> -           file://default"
> +           file://default \
> +           file://rngd.service \
> +"
>   
>   SRC_URI[md5sum] = "6726cdc6fae1f5122463f24ae980dd68"
>   SRC_URI[sha256sum] = "60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e"
> @@ -20,7 +22,7 @@ python () {
>           d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
>   }
>   
> -inherit autotools update-rc.d
> +inherit autotools update-rc.d systemd
>   
>   PACKAGECONFIG = "libgcrypt"
>   PACKAGECONFIG_libc-musl = "libargp"
> @@ -40,7 +42,15 @@ do_install_append() {
>           install -d "${D}${sysconfdir}/default"
>           install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/rng-tools
>       fi
> +
> +    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
> +        install -d ${D}${systemd_unitdir}/system
> +        install -m 644 ${WORKDIR}/rngd.service ${D}${systemd_unitdir}/system
> +        sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/rngd.service
> +    fi
>   }
>   
>   INITSCRIPT_NAME = "rng-tools"
>   INITSCRIPT_PARAMS = "start 30 2 3 4 5 . stop 30 0 6 1 ."
> +
> +SYSTEMD_SERVICE_${PN} = "rngd.service"



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 0/1] rng-tools: add systemd service file
@ 2017-08-25  6:14 Dengke Du
  0 siblings, 0 replies; 4+ messages in thread
From: Dengke Du @ 2017-08-25  6:14 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit a087e0bc765ade6386720f22d842e2fc0bd5f128:

  maintainers.inc: assign newly added recipes (2017-08-24 16:49:57 +0100)

are available in the git repository at:

  https://github.com/DengkeDu/openembedded-core.git dengke/rng-tools-add-systemd-service-file
  https://github.com//tree/dengke/rng-tools-add-systemd-service-file

Dengke Du (1):
  rng-tools: add systemd service file

 meta/recipes-support/rng-tools/rng-tools/rngd.service |  9 +++++++++
 meta/recipes-support/rng-tools/rng-tools_5.bb         | 14 ++++++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/rng-tools/rng-tools/rngd.service

-- 
2.8.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-25  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-30  5:05 [PATCH 0/1] rng-tools: add systemd service file Dengke Du
2016-09-30  5:05 ` [PATCH 1/1] " Dengke Du
2016-10-28  1:53   ` Dengke Du
2017-08-25  6:14 [PATCH 0/1] " Dengke Du

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.