summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2017-10-25 21:05:05 -0400
committerGöktürk Yüksek <gokturk@gentoo.org>2017-10-25 21:05:37 -0400
commit2a5ab18f1a74b1d1e59e5d45ee425da8808eb289 (patch)
tree2dff14edd3d0c009e881c4372288971f24116ffd /sys-apps/rng-tools/files
parentdev-perl/HTML-Template-JIT: Fix missing RDEP on Inline-C (diff)
downloadgentoo-2a5ab18f1a74b1d1e59e5d45ee425da8808eb289.tar.gz
gentoo-2a5ab18f1a74b1d1e59e5d45ee425da8808eb289.tar.bz2
gentoo-2a5ab18f1a74b1d1e59e5d45ee425da8808eb289.zip
sys-apps/rng-tools: add support for NP_TPM and NO_DRNG options in v6
rng-tools-6 removes the command line options '--no-tpm' and '--no-drng'. Instead, it allows the inclusion and exclusion of a particular entropy source using the command line options '-n' and 'x' respectively. Maintain backwards compatibility by translating the NP_TPM and NO_DRNG options in the conf file to exclusion options. Closes: https://bugs.gentoo.org/630798 Package-Manager: Portage-2.3.8, Repoman-2.3.2
Diffstat (limited to 'sys-apps/rng-tools/files')
-rw-r--r--sys-apps/rng-tools/files/rngd-initd-616
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/rng-tools/files/rngd-initd-6 b/sys-apps/rng-tools/files/rngd-initd-6
new file mode 100644
index 000000000000..c3b48bf22099
--- /dev/null
+++ b/sys-apps/rng-tools/files/rngd-initd-6
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need localmount
+ after urandom
+ provide entropy
+}
+
+command=/usr/sbin/rngd
+pidfile="/var/run/${SVCNAME}.pid"
+command_args="--pid-file ${pidfile} --background --random-step ${STEP:-64} ${NO_TPM:+-x 1} \
+ ${NO_DRNG:+-x 2} --fill-watermark ${WATERMARK} ${DEVICE:+--rng-device ${DEVICE}}"
+start_stop_daemon_args="--wait 1000"
+retry="SIGKILL/5000"