diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-05-22 17:53:44 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-05-22 17:53:44 +0000 |
commit | 11b501fbf5133cebe1a976f7251108a85345f2e2 (patch) | |
tree | 6fe3137ae8440dd2ad80dbc2e003c6860ef89f11 /sys-apps/timer_entropyd | |
parent | Fix ebuild for Prefix, bump to EAPI=3 (diff) | |
download | gentoo-2-11b501fbf5133cebe1a976f7251108a85345f2e2.tar.gz gentoo-2-11b501fbf5133cebe1a976f7251108a85345f2e2.tar.bz2 gentoo-2-11b501fbf5133cebe1a976f7251108a85345f2e2.zip |
Initial import to portage of timer_entropyd; ebuild proxy-maintained and submitted by Pavel Stratil, and polished by me. Using -r1 as base revision to override sunrise-provided ebuild.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/timer_entropyd')
-rw-r--r-- | sys-apps/timer_entropyd/ChangeLog | 12 | ||||
-rw-r--r-- | sys-apps/timer_entropyd/files/timer_entropyd.initd | 22 | ||||
-rw-r--r-- | sys-apps/timer_entropyd/metadata.xml | 12 | ||||
-rw-r--r-- | sys-apps/timer_entropyd/timer_entropyd-0.1-r1.ebuild | 40 |
4 files changed, 86 insertions, 0 deletions
diff --git a/sys-apps/timer_entropyd/ChangeLog b/sys-apps/timer_entropyd/ChangeLog new file mode 100644 index 000000000000..2bd65bebdbe8 --- /dev/null +++ b/sys-apps/timer_entropyd/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sys-apps/timer_entropyd +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/timer_entropyd/ChangeLog,v 1.1 2010/05/22 17:53:44 flameeyes Exp $ + +*timer_entropyd-0.1-r1 (22 May 2010) + + 22 May 2010; Diego E. Pettenò <flameeyes@gentoo.org> + +timer_entropyd-0.1-r1.ebuild, +files/timer_entropyd.initd, +metadata.xml: + Initial import to portage of timer_entropyd; ebuild proxy-maintained and + submitted by Pavel Stratil, and polished by me. Using -r1 as base revision + to override sunrise-provided ebuild. + diff --git a/sys-apps/timer_entropyd/files/timer_entropyd.initd b/sys-apps/timer_entropyd/files/timer_entropyd.initd new file mode 100644 index 000000000000..5d9a12fcabc7 --- /dev/null +++ b/sys-apps/timer_entropyd/files/timer_entropyd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/timer_entropyd/files/timer_entropyd.initd,v 1.1 2010/05/22 17:53:44 flameeyes Exp $ + +depend() { + need localmount + before net + use logger +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/libexec/timer_entropyd + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec /usr/libexec/timer_entropyd + eend $? +} diff --git a/sys-apps/timer_entropyd/metadata.xml b/sys-apps/timer_entropyd/metadata.xml new file mode 100644 index 000000000000..e12def24c0a2 --- /dev/null +++ b/sys-apps/timer_entropyd/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> + <maintainer> + <email>pavel.stratil-jun@fenix.cz</email> + <description>Proxied co-maintainer, CC on all bugs</description> + </maintainer> +</pkgmetadata> diff --git a/sys-apps/timer_entropyd/timer_entropyd-0.1-r1.ebuild b/sys-apps/timer_entropyd/timer_entropyd-0.1-r1.ebuild new file mode 100644 index 000000000000..d8a6600cb3ee --- /dev/null +++ b/sys-apps/timer_entropyd/timer_entropyd-0.1-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/timer_entropyd/timer_entropyd-0.1-r1.ebuild,v 1.1 2010/05/22 17:53:44 flameeyes Exp $ + +EAPI=2 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="A timer-based entropy generator" +HOMEPAGE="http://www.vanheusden.com/te/" +SRC_URI="http://www.vanheusden.com/te/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +src_prepare() { + sed -i -e 's:-O2::' Makefile || die +} + +src_compile() { + use debug && append-flags -D_DEBUG + + tc-export CC + emake DEBUG= || die +} + +src_install() { + exeinto /usr/libexec + doexe ${PN} || die "doexe failed" + dodoc Changes readme.txt || die + newinitd "${FILESDIR}/timer_entropyd.initd" ${PN} || die +} + +pkg_postinst() { + elog "To start ${PN} at boot do rc-update add ${PN} default" + elog "To start ${PN} now do /etc/init.d/${PN} start" + elog "To check the amount of entropy, cat /proc/sys/kernel/random/entropy_avail" +} |