Skip to content

Commit

Permalink
app-crypt/jitterentropy-rngd: added openrc file
Browse files Browse the repository at this point in the history
Signed-off-by: Toralf Förster <[email protected]>
Signed-off-by: Matthias Maier <[email protected]>
  • Loading branch information
Toralf Förster authored and tamiko committed Apr 11, 2020
1 parent 119f9d6 commit c1c6e0e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app-crypt/jitterentropy-rngd/files/jitterentropy-rngd-initd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

name="jitterentropy daemon"
command="/usr/sbin/jitterentropy-rngd"
pidfile="/run/jitterentropy-rngd.pid"
command_args="--pid ${pidfile}"

depend() {
need localmount
before net
use logger

provide entropy
}

2 changes: 2 additions & 0 deletions app-crypt/jitterentropy-rngd/jitterentropy-rngd-1.1.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ PATCHES=(
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" \
UNITDIR="$(systemd_get_systemunitdir)" install
newinitd "${FILESDIR}"/jitterentropy-rngd-initd jitterentropy-rngd
}

0 comments on commit c1c6e0e

Please sign in to comment.