All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH meta-oe 8/9] rng-tools: add
Date: Fri, 16 Dec 2011 08:53:53 +0100	[thread overview]
Message-ID: <jcetef$4n1$8@dough.gmane.org> (raw)
In-Reply-To: <1324003173-13994-8-git-send-email-b19537@freescale.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 16-12-11 03:39, b19537@freescale.com schreef:
> From: Zhenhua Luo <b19537@freescale.com>
> 
> Random number generator daemo.
> 
> Signed-off-by: Zhenhua Luo <b19537@freescale.com> --- 
> meta-oe/recipes-support/rng-tools/files/default  |    2 + 
> meta-oe/recipes-support/rng-tools/files/init     |   49
> ++++++++++++++++++++++ meta-oe/recipes-support/rng-tools/rng-tools_2.bb |
> 28 ++++++++++++ 3 files changed, 79 insertions(+), 0 deletions(-) create
> mode 100644 meta-oe/recipes-support/rng-tools/files/default create mode
> 100755 meta-oe/recipes-support/rng-tools/files/init create mode 100644
> meta-oe/recipes-support/rng-tools/rng-tools_2.bb
> 
> diff --git a/meta-oe/recipes-support/rng-tools/files/default
> b/meta-oe/recipes-support/rng-tools/files/default new file mode 100644 
> index 0000000..ab7cd93 --- /dev/null +++
> b/meta-oe/recipes-support/rng-tools/files/default @@ -0,0 +1,2 @@ +#
> Specify rng device +RNG_DEVICE=/dev/hwrng diff --git
> a/meta-oe/recipes-support/rng-tools/files/init
> b/meta-oe/recipes-support/rng-tools/files/init new file mode 100755 index
> 0000000..5fa5959 --- /dev/null +++
> b/meta-oe/recipes-support/rng-tools/files/init @@ -0,0 +1,49 @@ +#!
> /bin/sh +# +# This is an init script for openembedded +# Copy it to
> /etc/init.d/rng-tools and type +# > update-rc.d rng-tools defaults 60 +# 
> + +rngd=/usr/sbin/rngd +test -x "$rngd" || exit 1 + +if [ -e
> /etc/default/rng-tools ]; then +    . /etc/default/rng-tools +fi + +if [
> -n "$RNG_DEVICE" ]; then +    EXTRA_ARGS="-- -r $RNG_DEVICE" +fi + + 
> +case "$1" in +  start) +    echo -n "Starting random number generator
> daemon" +    start-stop-daemon -S -q -x $rngd $EXTRA_ARGS +    echo "." +
> ;; +  stop) +    echo -n "Stopping random number generator daemon" +
> start-stop-daemon -K -q -n rngd +    echo "." +    ;; +
> reload|force-reload) +    echo -n "Signalling rng daemon restart" +
> start-stop-daemon -K -q -s 1 -x $rngd +    start-stop-daemon -K -q -s 1
> -x $rngd +    ;; +  restart) +    echo -n "Stopping random number
> generator daemon" +    start-stop-daemon -K -q -n rngd +    echo "." +
> echo -n "Starting random number generator daemon" +    start-stop-daemon
> -S -q -x $rngd $EXTRA_ARGS +    echo "." +    ;; +  *) +    echo "Usage:
> /etc/init.d/rng-tools {start|stop|reload|restart|force-reload}" +    exit
> 1 +esac + +exit 0 \ No newline at end of file diff --git
> a/meta-oe/recipes-support/rng-tools/rng-tools_2.bb
> b/meta-oe/recipes-support/rng-tools/rng-tools_2.bb new file mode 100644 
> index 0000000..fc6c8ab --- /dev/null +++
> b/meta-oe/recipes-support/rng-tools/rng-tools_2.bb @@ -0,0 +1,28 @@ 
> +DESCRIPTION = "Random number generator daemon" +LICENSE = "GPL"

not a valid license

> +DEPENDS_append_libc-uclibc = " argp-standalone" +PR = "r4"

drop

> + +LIC_FILES_CHKSUM =
> "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

move next to LICENSE

> + +SRC_URI =
> "http://heanet.dl.sourceforge.net/sourceforge/gkernel/${P}.tar.gz \ +
> file://init \ +           file://default" + +inherit autotools
> update-rc.d + +INITSCRIPT_NAME = "rng-tools" +INITSCRIPT_PARAMS =
> "defaults"

move below do_install

> + +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},' \ +
> ${D}${sysconfdir}/init.d/rng-tools + +        install -d
> "${D}${sysconfdir}/default" +        install -m 0644 ${WORKDIR}/default
> ${D}${sysconfdir}/default +} + +SRC_URI[md5sum] =
> "63d503191eabed630324c104cc024475" +SRC_URI[sha256sum] =
> "1126f0ecc8cab3af14a562cddc5d8ffeef47df7eba34a7aadcdee35a25ec2b1e"

move next to SRC_URI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk7q+REACgkQMkyGM64RGpEleQCeLpiC3BmucY+EXjYuN9DrG/Ed
C8IAnA1qpgRM9BKaHkTyv0kD1XQHB8o0
=thLO
-----END PGP SIGNATURE-----




  reply	other threads:[~2011-12-16  8:22 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16  2:39 [PATCH meta-oe 1/9] bridge-utils: add b19537
2011-12-16  2:39 ` [PATCH meta-oe 2/9] ietutils: add b19537
2011-12-16  7:48   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 3/9] ipsec-tools: add b19537
2011-12-16  7:49   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 4/9] libnfnetlink: add b19537
2011-12-16  7:50   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 5/9] nerperf: add b19537
2011-12-16  7:51   ` Koen Kooi
2011-12-16  9:19     ` Luo Zhenhua-B19537
2011-12-16  9:22       ` Koen Kooi
2011-12-16 21:54         ` Khem Raj
2011-12-19  9:52           ` Luo Zhenhua-B19537
2011-12-19 19:20             ` Khem Raj
2011-12-19 22:31           ` Flanagan, Elizabeth
2011-12-20  2:31             ` Luo Zhenhua-B19537
2011-12-21  6:26             ` Luo Zhenhua-B19537
2011-12-21 17:37               ` Flanagan, Elizabeth
2011-12-22  2:44                 ` Luo Zhenhua-B19537
2011-12-29 18:19                   ` Flanagan, Elizabeth
2011-12-16  2:39 ` [PATCH meta-oe 6/9] ptpd: add b19537
2011-12-16  7:52   ` Koen Kooi
2011-12-16 21:57   ` Khem Raj
2011-12-16  2:39 ` [PATCH meta-oe 7/9] strongswan: add b19537
2011-12-16  7:53   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 8/9] rng-tools: add b19537
2011-12-16  7:53   ` Koen Kooi [this message]
2011-12-16  2:39 ` [PATCH meta-oe 9/9] xfsprogs: add b19537
2011-12-16  7:54   ` Koen Kooi
2011-12-16  7:45 ` [PATCH meta-oe 1/9] bridge-utils: add Koen Kooi
2011-12-16  8:48   ` Luo Zhenhua-B19537

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='jcetef$4n1$8@dough.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --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 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.