diff options
author | Hanno Böck <hanno@gentoo.org> | 2003-08-20 14:06:58 +0000 |
---|---|---|
committer | Hanno Böck <hanno@gentoo.org> | 2003-08-20 14:06:58 +0000 |
commit | 4f13a72d2d7bbdb968150f5891ddfde578dc3688 (patch) | |
tree | 42ff9b5d0b3c49ca44148d94095901301fa0d00c /sys-apps | |
parent | new ebuild (diff) | |
download | gentoo-2-4f13a72d2d7bbdb968150f5891ddfde578dc3688.tar.gz gentoo-2-4f13a72d2d7bbdb968150f5891ddfde578dc3688.tar.bz2 gentoo-2-4f13a72d2d7bbdb968150f5891ddfde578dc3688.zip |
added rng-tools
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/rng-tools/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/rng-tools/files/digest-rng-tools-1.0 | 1 | ||||
-rw-r--r-- | sys-apps/rng-tools/files/rngd | 30 | ||||
-rw-r--r-- | sys-apps/rng-tools/rng-tools-1.0.ebuild | 26 |
4 files changed, 64 insertions, 0 deletions
diff --git a/sys-apps/rng-tools/ChangeLog b/sys-apps/rng-tools/ChangeLog new file mode 100644 index 000000000000..eb5f7f8fb417 --- /dev/null +++ b/sys-apps/rng-tools/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for sys-apps/rng-tools +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/ChangeLog,v 1.1 2003/08/20 14:06:58 hanno Exp $ + + 20 Aug 2003; Hanno Boeck <hanno@gentoo.org> files/rngd: + New package for using random number generators. + diff --git a/sys-apps/rng-tools/files/digest-rng-tools-1.0 b/sys-apps/rng-tools/files/digest-rng-tools-1.0 new file mode 100644 index 000000000000..c95c4287a014 --- /dev/null +++ b/sys-apps/rng-tools/files/digest-rng-tools-1.0 @@ -0,0 +1 @@ +MD5 684ef79f306b9ffc2e3d7b7b80aafeb5 rng-tools-1.0.tar.gz 41400 diff --git a/sys-apps/rng-tools/files/rngd b/sys-apps/rng-tools/files/rngd new file mode 100644 index 000000000000..738f8fe63068 --- /dev/null +++ b/sys-apps/rng-tools/files/rngd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/files/rngd,v 1.1 2003/08/20 14:06:58 hanno Exp $ + +depend() { + need localmount + after random +} + +start() { + ebegin "Starting hardware RNG daemon" + if [ -e /dev/hwrandom ]; then + start-stop-daemon --start --quiet --exec /usr/sbin/rngd -- -b -r /dev/hwrandom + eend $? "Failed to start hardware RNG daemon" + elif [ -e /dev/i810_rng ]; then + start-stop-daemon --start --quiet --exec /usr/sbin/rngd -- -b -r /dev/i810_rng + eend $? "Failed to start hardware RNG daemon" + else + eerror "No hardware RNG found!" + return 1 + fi +} + +stop() { + ebegin "Stopping hardware RNG daemon" + start-stop-daemon --stop --quiet --exec /usr/sbin/rngd + eend $? "Failed to stop hardware RNG daemon" +} + diff --git a/sys-apps/rng-tools/rng-tools-1.0.ebuild b/sys-apps/rng-tools/rng-tools-1.0.ebuild new file mode 100644 index 000000000000..4c2ef1eeb04d --- /dev/null +++ b/sys-apps/rng-tools/rng-tools-1.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/rng-tools-1.0.ebuild,v 1.1 2003/08/20 14:06:58 hanno Exp $ + +DESCRIPTION="Daemon to use hardware random number generators." +HOMEPAGE="http://gkernel.sourceforge.net/" +SRC_URI="mirror://sourceforge/gkernel/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="virtual/glibc" +S=${WORKDIR}/${P} + +src_compile() { + econf || die + emake || die +} + +src_install() { + einstall || die + doman rngd.8 + dodoc AUTHORS ChangeLog + exeinto /etc/init.d + doexe ${FILESDIR}/rngd +} |