summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2019-11-07 19:22:44 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2019-11-07 19:24:45 -0500
commitc4228a68445fa9b6faed2309d0119f3c05f07b62 (patch)
tree98c096d6b69ba50f9ad6862ef20a106ec5e46404 /sys-apps/rng-tools/rng-tools-6.8.ebuild
parentdev-perl/libintl-perl: arm64 stable (bug #661768) (diff)
downloadgentoo-c4228a68445fa9b6faed2309d0119f3c05f07b62.tar.gz
gentoo-c4228a68445fa9b6faed2309d0119f3c05f07b62.tar.bz2
gentoo-c4228a68445fa9b6faed2309d0119f3c05f07b62.zip
sys-apps/rng-tools: bump to 6.8
Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
Diffstat (limited to 'sys-apps/rng-tools/rng-tools-6.8.ebuild')
-rw-r--r--sys-apps/rng-tools/rng-tools-6.8.ebuild86
1 files changed, 86 insertions, 0 deletions
diff --git a/sys-apps/rng-tools/rng-tools-6.8.ebuild b/sys-apps/rng-tools/rng-tools-6.8.ebuild
new file mode 100644
index 000000000000..85c8eb05db86
--- /dev/null
+++ b/sys-apps/rng-tools/rng-tools-6.8.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd readme.gentoo-r1 toolchain-funcs
+
+DESCRIPTION="Daemon to use hardware random number generators"
+HOMEPAGE="https://github.com/nhorman/rng-tools"
+SRC_URI="https://github.com/nhorman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86"
+IUSE="jitterentropy nistbeacon pkcs11 selinux"
+
+DEPEND="dev-libs/libgcrypt:0
+ dev-libs/libgpg-error
+ sys-fs/sysfsutils
+ jitterentropy? (
+ app-crypt/jitterentropy:=
+ )
+ nistbeacon? (
+ net-misc/curl[ssl]
+ dev-libs/libxml2:2=
+ dev-libs/openssl:0=
+ )
+ pkcs11? (
+ dev-libs/libp11:=
+ dev-libs/openssl:0=
+ )
+ elibc_musl? ( sys-libs/argp-standalone )
+"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-rngd )"
+DEPEND="${DEPEND}
+ nistbeacon? (
+ virtual/pkgconfig
+ )
+"
+
+src_prepare() {
+ echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am || die
+
+ default
+
+ mv README.md README || die
+
+ eautoreconf
+
+ sed -i '/^AR /d' Makefile.in || die
+ tc-export AR
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable jitterentropy)
+ $(use_with nistbeacon)
+ $(use_with pkcs11)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ newinitd "${FILESDIR}"/rngd-initd-6.7-r1 rngd
+ newconfd "${FILESDIR}"/rngd-confd-6.7 rngd
+ systemd_dounit "${FILESDIR}"/rngd.service
+
+ if use pkcs11; then
+ local DISABLE_AUTOFORMATTING=1
+ local DOC_CONTENTS="
+The PKCS11 entropy source may require extra packages (e.g. 'dev-libs/opensc')
+to support various smartcard readers. Make sure 'PKCS11_OPTIONS' in:
+ '${EROOT%/}/etc/conf.d/rngd'
+reflects the correct PKCS11 engine path to be used by rngd.
+"
+ readme.gentoo_create_doc
+ fi
+
+}
+
+pkg_postinst() {
+ use pkcs11 && readme.gentoo_print_elog
+}