diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2011-01-05 03:30:30 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2011-01-05 03:30:30 +0000 |
commit | 734e84048ca48d4329dd955ed309d325c07ef597 (patch) | |
tree | 6d576f978d52a0bbb6be06e261de10d440983f3b /sys-apps/haveged | |
parent | specify zsh-completion version needed for upgrade path, bug 350129 (diff) | |
download | gentoo-2-734e84048ca48d4329dd955ed309d325c07ef597.tar.gz gentoo-2-734e84048ca48d4329dd955ed309d325c07ef597.tar.bz2 gentoo-2-734e84048ca48d4329dd955ed309d325c07ef597.zip |
Add another entropy daemon.
(Portage version: 2.2.0_alpha6/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/haveged')
-rw-r--r-- | sys-apps/haveged/ChangeLog | 10 | ||||
-rw-r--r-- | sys-apps/haveged/files/haveged-conf.d | 10 | ||||
-rw-r--r-- | sys-apps/haveged/files/haveged-init.d | 22 | ||||
-rw-r--r-- | sys-apps/haveged/haveged-1.01.ebuild | 34 | ||||
-rw-r--r-- | sys-apps/haveged/metadata.xml | 8 |
5 files changed, 84 insertions, 0 deletions
diff --git a/sys-apps/haveged/ChangeLog b/sys-apps/haveged/ChangeLog new file mode 100644 index 000000000000..14839dda9e07 --- /dev/null +++ b/sys-apps/haveged/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-apps/haveged +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/haveged/ChangeLog,v 1.1 2011/01/05 03:30:30 robbat2 Exp $ + +*haveged-1.01 (05 Jan 2011) + + 05 Jan 2011; Robin H. Johnson <robbat2@gentoo.org> +haveged-1.01.ebuild, + +files/haveged-conf.d, +files/haveged-init.d, +metadata.xml: + Add another entropy daemon. + diff --git a/sys-apps/haveged/files/haveged-conf.d b/sys-apps/haveged/files/haveged-conf.d new file mode 100644 index 000000000000..3d9863c521e1 --- /dev/null +++ b/sys-apps/haveged/files/haveged-conf.d @@ -0,0 +1,10 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/haveged/files/haveged-conf.d,v 1.1 2011/01/05 03:30:30 robbat2 Exp $ + +WATERMARK=1024 + +# -r0 is added always +HAVEGED_OPTS="-w ${WATERMARK} -v 1" + +# vim:ft=gentoo-conf-d: diff --git a/sys-apps/haveged/files/haveged-init.d b/sys-apps/haveged/files/haveged-init.d new file mode 100644 index 000000000000..0ad1df286ade --- /dev/null +++ b/sys-apps/haveged/files/haveged-init.d @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/haveged/files/haveged-init.d,v 1.1 2011/01/05 03:30:30 robbat2 Exp $ + +DAEMON=haveged +HAVEGED_OPTS="-r 0 ${HAVEGED_OPTS}" +PIDFILE=/var/run/${DAEMON}.pid + +start() { + ebegin "Starting ${DAEMON}" + start-stop-daemon --start --quiet --exec "/usr/sbin/${DAEMON}" -- ${HAVEGED_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${DAEMON}" + start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" + eend $? +} + +# vim:ft=gentoo-init-d: diff --git a/sys-apps/haveged/haveged-1.01.ebuild b/sys-apps/haveged/haveged-1.01.ebuild new file mode 100644 index 000000000000..020bab69d99a --- /dev/null +++ b/sys-apps/haveged/haveged-1.01.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/haveged/haveged-1.01.ebuild,v 1.1 2011/01/05 03:30:30 robbat2 Exp $ + +EAPI=3 +DESCRIPTION="A simple entropy daemon using the HAVEGE algorithm" +HOMEPAGE="http://www.issihosts.com/haveged/" +SRC_URI="http://www.issihosts.com/haveged/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-devel/gcc" +RDEPEND="" + +src_configure() { + econf --bindir=/usr/sbin || die +} + +src_compile() { + emake || die +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog NEWS README + # This is a RedHat init script + rm -rf "${D}"/etc/init.d/haveged + # Install gentoo ones instead + newinitd "${FILESDIR}"/haveged-init.d haveged + newconfd "${FILESDIR}"/haveged-conf.d haveged +} diff --git a/sys-apps/haveged/metadata.xml b/sys-apps/haveged/metadata.xml new file mode 100644 index 000000000000..5d9f5be9d49d --- /dev/null +++ b/sys-apps/haveged/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> |