Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] rng-tools: Fixes for latest OE layouts
Date: Sun, 16 Dec 2012 19:00:22 +0100	[thread overview]
Message-ID: <20121216180022.GC3448@jama> (raw)
In-Reply-To: <1355519149-23005-1-git-send-email-gary@mlbassoc.com>

[-- Attachment #1: Type: text/plain, Size: 2177 bytes --]

On Fri, Dec 14, 2012 at 02:05:48PM -0700, Gary Thomas wrote:
> The current recipe has a few installation errors:
>   * The manipulation of configurable paths drops a '/'
>   * The init script defaults are placed in the wrong file
>   * Finer control over init script start/stop
>   * The default device is non-standard
> 
> This patch fixes these little nits and makes the package usable again.
> 
> Signed-off-by: Gary Thomas <gary@mlbassoc.com>
> ---
>  meta-oe/recipes-support/rng-tools/files/default  |    3 ++-
>  meta-oe/recipes-support/rng-tools/rng-tools_2.bb |    5 +++--
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/meta-oe/recipes-support/rng-tools/files/default b/meta-oe/recipes-support/rng-tools/files/default
> index ab7cd93..7aede9b 100644
> --- a/meta-oe/recipes-support/rng-tools/files/default
> +++ b/meta-oe/recipes-support/rng-tools/files/default
> @@ -1,2 +1,3 @@
>  # Specify rng device
> -RNG_DEVICE=/dev/hwrng
> +#RNG_DEVICE=/dev/hwrng
> +RNG_DEVICE=/dev/urandom
> diff --git a/meta-oe/recipes-support/rng-tools/rng-tools_2.bb b/meta-oe/recipes-support/rng-tools/rng-tools_2.bb
> index ef753cf..b94854a 100644
> --- a/meta-oe/recipes-support/rng-tools/rng-tools_2.bb
> +++ b/meta-oe/recipes-support/rng-tools/rng-tools_2.bb
> @@ -15,12 +15,13 @@ inherit autotools update-rc.d
>  do_install_append() {
>          install -d "${D}${sysconfdir}/init.d"
>          install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/rng-tools
> -        sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir},' \
> +        sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \
>              ${D}${sysconfdir}/init.d/rng-tools
>  
>          install -d "${D}${sysconfdir}/default"
> -        install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default
> +        install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/rng-tools
>  }
>  
>  INITSCRIPT_NAME = "rng-tools"
>  INITSCRIPT_PARAMS = "defaults"
> +INITSCRIPT_PARAMS = "start 30 S . stop 30 0 6 1 ."

Why do you add 2nd INITSCRIPT_PARAMS ?

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

  reply	other threads:[~2012-12-16 18:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-14 21:05 [meta-oe][PATCH] rng-tools: Fixes for latest OE layouts Gary Thomas
2012-12-16 18:00 ` Martin Jansa [this message]
2013-01-09 14:21   ` Martin Jansa
2013-01-09 14:34     ` Gary Thomas
2013-01-10 11:27       ` Martin Jansa
2013-02-25 19:26         ` Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121216180022.GC3448@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox