summaryrefslogtreecommitdiff
path: root/sys-apps/timer_entropyd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/timer_entropyd
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/timer_entropyd')
-rw-r--r--sys-apps/timer_entropyd/Manifest9
-rw-r--r--sys-apps/timer_entropyd/files/timer_entropyd-0.1-syslog.patch28
-rw-r--r--sys-apps/timer_entropyd/files/timer_entropyd.initd.113
-rw-r--r--sys-apps/timer_entropyd/metadata.xml8
-rw-r--r--sys-apps/timer_entropyd/timer_entropyd-0.2.ebuild42
-rw-r--r--sys-apps/timer_entropyd/timer_entropyd-0.3.ebuild42
6 files changed, 142 insertions, 0 deletions
diff --git a/sys-apps/timer_entropyd/Manifest b/sys-apps/timer_entropyd/Manifest
new file mode 100644
index 000000000000..687d0b8bd251
--- /dev/null
+++ b/sys-apps/timer_entropyd/Manifest
@@ -0,0 +1,9 @@
+AUX timer_entropyd-0.1-syslog.patch 833 SHA256 996148cde4eec366077bdd72791daf777236c3080ad97bd87c9a29b1ce4a82a1 SHA512 93eefcd75c2c61515d8304f13d196022d76a8244c9b74764247d330e518a2c06fd93e6c9859cde7d6be2ae7e50c05f9e45d5a0c68bf2aa057821b52f588187c7 WHIRLPOOL d030fd3c06e80e3b7c26a7bbb98a422594e3613796e029c5d0f0ac2d909363d599fc53bb70f994131d60720d836721eaf4828d120732ff72db437acc9429424d
+AUX timer_entropyd.initd.1 236 SHA256 c6c458c6c853e7b3c03ad3f93251580d0da9ec8d96ff67c645f7fd4a50260413 SHA512 78f0ef265ec514a781e9c53d4938a56fd83196c4e923882aaa368c40545f59196cd74aa63be08d500db083603ab871434365583b23932e284fffcf7a4f897f1d WHIRLPOOL 5317acc5891fd60ba46dd26a61ecad8713525bfccd3c6dffa6777d32ca4f4ddc5187c7b872fc24a27fdf7f59c35866aa584f189969a5d659a3cac1ea613c1b96
+DIST timer_entropyd-0.2.tgz 8323 SHA256 0cf2b976b78c1b1169a4bec5a6fc71d8b118de927bc05002686376a61f73989a SHA512 789f19c2652781593b9ce91c584eab4ef9210bb47f1afb6186311416a67c84235ed1a163ffdc017b6d50ff706bf7ff6a84013b4b31fe6c09eabe95a484805898 WHIRLPOOL 8fa8233d8a867f7f5290ba1fbd39a2ed80756cfe0948fcc5038c256b4f62b39bd1592a639e6c13ce11c481a9a85288dd30568fd082c36bd09f6ad5986c421d15
+DIST timer_entropyd-0.3.tgz 8329 SHA256 3a022b82363c3ecdd005cd6c5a7441d62a46aa88059581c2f7677bd84f393560 SHA512 bdfedb594ee32daf7fb961a703842ca3479de158fc19bd75664b183e44bcf2ef3e74645cc6097f340834933db6f9133710df7d433ac062b2375494de5c052dcc WHIRLPOOL 8806784ffc7ce6c370d15980dfe00e4afd89dcfdfd2d06b5eb9f8d9d8b46e4974d429e93703fb26ad9ade4b5d53c2c25c88356b31aec08ed16340711d1025142
+EBUILD timer_entropyd-0.2.ebuild 975 SHA256 62a2d539b90b5fccb60fb8162aacad071044f0ff1e2c8787ca781cd7c57ad875 SHA512 b529143760436b945583a8eddd0f4b0b26f772670b5e44f37262c2f13408c4c3997a59adb09f6db083c4a59001e0d1ca21e47a6cbdf5cf261ac821d9f3e7ba28 WHIRLPOOL 33780c698671a5417cd5f5976ca50adc9f6b850b35f8cfd9ff64427ae90873a25b86dffbda41082c490d6fcbf999294261e47efa627d364c6f11fd8f0c65d6b3
+EBUILD timer_entropyd-0.3.ebuild 977 SHA256 98447f32a30103668ede88031e68f6271590605d06967201c84de6ad530077e8 SHA512 6a5c0b79e7382c9d9c0a845ea4eb491285a826eb3e64ca5b037bff586898fb22dbc9706fbb198c08a9857a99ee14440dc8370505e6be3de7479f68587466da94 WHIRLPOOL 36998fe3896c46fb15ec5f24cd1a2b7ddf333fed9a264fbe9c47ee230dd54c16ebf769b3dec47a13916eb9375b3367e8f8d85876776f1fe17d40f0acc33dc26d
+MISC ChangeLog 3171 SHA256 86b1e040c489d3c8106d7523ce0ef2827c212adbaa7860cdeaa4aa7ac9f65df4 SHA512 42ee735aa2fd0e7d781db1db824ec229267c8c97280e54290728e55a5bfc33ab88b6bc77baf031c69d786d70fabd979ceedc0dffe2a6bc8d4c35a0f7730b6f4e WHIRLPOOL 6ea15ef31ed2b6f01dc96b58516c254d57f28600ecb2d4d8cdc934ee18c6263140a1ee63b78f7a7d20ce2a2239f23a5257d64865c46b1ad5ac4a5e6baefd9fbb
+MISC ChangeLog-2015 2994 SHA256 600f5aa4489b5c0a34089897dde8d8f8f106ee89bae9c4944c603933c83e108e SHA512 00ed49c574713e1520b26010ab0d895e6a02adff05a30e0653075935081aa2a6a6cb78bf8dd9eb142a343fbd20574266033879abdbcc5119a77b7c9dc83a8c07 WHIRLPOOL e111940d0e4c1afe58e3bfa8dfcce45462ac9841951fa9cde38206501252a66abfc80eb8903a92deaf2f03407867e9faf13d2c0511964da3c66d43aeb104d919
+MISC metadata.xml 274 SHA256 9ed0fe1c82284c6787b06b106db4687cf1802becbe9f7be9dff958461f7bd329 SHA512 22599f724e804e72e8db6fcab11ee7495bb5cd3c3a6e25a6424c33bc0ba343859cb88664ecfccb9805c3f35128342aba446f1145edfee5b0a39a92f20a48ad81 WHIRLPOOL ba422005d91bdd12f4c01326681d82d55acfba23c38c10dae1f9534445090b01679fa3151a5b952128ce5fa1dc1dd8ffb3edb71128870164b081ea9378bb10a3
diff --git a/sys-apps/timer_entropyd/files/timer_entropyd-0.1-syslog.patch b/sys-apps/timer_entropyd/files/timer_entropyd-0.1-syslog.patch
new file mode 100644
index 000000000000..91be4a2ffdf0
--- /dev/null
+++ b/sys-apps/timer_entropyd/files/timer_entropyd-0.1-syslog.patch
@@ -0,0 +1,28 @@
+From 51dc916e4466d0033728dd14f318203f995b3ad0 Mon Sep 17 00:00:00 2001
+From: Jeremy Olexa <darkside@gentoo.org>
+Date: Tue, 5 Apr 2011 14:19:49 +0000
+Subject: [PATCH] Move syslog call to ifdef _DEBUG
+
+In order to prevent logfile spamming (once every 7 seconds), move the
+syslog call only be used if compiled with -D_DEBUG
+---
+ main.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/main.c b/main.c
+index 13b95dd..781b321 100644
+--- a/main.c
++++ b/main.c
+@@ -66,8 +66,8 @@ int main(int argc, char *argv[])
+
+ kernel_rng_add_entropy(bytes, sizeof(bytes), cur_n_bits);
+
+- syslog(LOG_DEBUG, "added %d bits of entropy data", cur_n_bits);
+ #ifdef _DEBUG
++ syslog(LOG_DEBUG, "added %d bits of entropy data", cur_n_bits);
+ printf("added %d bits of entropy data\n", cur_n_bits);
+ #endif
+
+--
+1.7.3.4
+
diff --git a/sys-apps/timer_entropyd/files/timer_entropyd.initd.1 b/sys-apps/timer_entropyd/files/timer_entropyd.initd.1
new file mode 100644
index 000000000000..57178ca4b36f
--- /dev/null
+++ b/sys-apps/timer_entropyd/files/timer_entropyd.initd.1
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/libexec/timer_entropyd
+
+depend() {
+ need localmount
+ before net
+ use logger
+
+ provide entropy
+}
diff --git a/sys-apps/timer_entropyd/metadata.xml b/sys-apps/timer_entropyd/metadata.xml
new file mode 100644
index 000000000000..1173ca1a509c
--- /dev/null
+++ b/sys-apps/timer_entropyd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+ <use>
+ <flag name="debug">Enable printf debugging and logging to the syslog at DEBUG level</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-apps/timer_entropyd/timer_entropyd-0.2.ebuild b/sys-apps/timer_entropyd/timer_entropyd-0.2.ebuild
new file mode 100644
index 000000000000..2b3bcbaaca69
--- /dev/null
+++ b/sys-apps/timer_entropyd/timer_entropyd-0.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils 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 ~mips x86"
+IUSE="debug selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-entropyd )"
+
+src_prepare() {
+ sed -i -e 's:-O2::' Makefile || die
+ epatch "${FILESDIR}"/${PN}-0.1-syslog.patch
+}
+
+src_compile() {
+ use debug && append-cppflags -D_DEBUG
+
+ tc-export CC
+ emake DEBUG= || die
+}
+
+src_install() {
+ exeinto /usr/libexec
+ doexe ${PN}
+ dodoc Changes readme.txt
+ newinitd "${FILESDIR}/timer_entropyd.initd.1" ${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"
+}
diff --git a/sys-apps/timer_entropyd/timer_entropyd-0.3.ebuild b/sys-apps/timer_entropyd/timer_entropyd-0.3.ebuild
new file mode 100644
index 000000000000..d1a0febbc6a9
--- /dev/null
+++ b/sys-apps/timer_entropyd/timer_entropyd-0.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils 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 ~mips ~x86"
+IUSE="debug selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-entropyd )"
+
+src_prepare() {
+ sed -i -e 's:-O2::' Makefile || die
+ epatch "${FILESDIR}"/${PN}-0.1-syslog.patch
+}
+
+src_compile() {
+ use debug && append-cppflags -D_DEBUG
+
+ tc-export CC
+ emake DEBUG= || die
+}
+
+src_install() {
+ exeinto /usr/libexec
+ doexe ${PN}
+ dodoc Changes readme.txt
+ newinitd "${FILESDIR}/timer_entropyd.initd.1" ${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"
+}