From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- app-crypt/jitterentropy/Manifest | 2 + app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild | 49 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild (limited to 'app-crypt/jitterentropy') diff --git a/app-crypt/jitterentropy/Manifest b/app-crypt/jitterentropy/Manifest index 64bbbbb91d61..4b99ebde94cb 100644 --- a/app-crypt/jitterentropy/Manifest +++ b/app-crypt/jitterentropy/Manifest @@ -1,5 +1,7 @@ DIST jitterentropy-2.2.0.tar.gz 25556 BLAKE2B d0a8faa9131e9fd5712fad4179725ac29ba813e0d77e5ae9dc905841b92f67fc51e79c407142b2e8c3473f92a59a5b03f03d2013bd7e5d1ae07110da52461255 SHA512 4701a7e0a82ee583cbde5edfdacb737a5f588b42c61b16434b5a11bdfb1a108e7b9df8b8b38d9e92290e702b33f2ae8774580d6a71e6e8ac3af295ffc8ff5ff9 DIST jitterentropy-3.0.1.tar.gz 31212 BLAKE2B 522e9b88e96ed1e6f57e793779c46f7799185f9d25390268f628eb309239a3522ac13277a037acf54dcce7e7b1364b2ec6e15d21a5f13aaa5a87ece7690d57fd SHA512 fd195e150ea861fcd5ff72a84f48ef8b7d0d8a3d44aae51f0fe5c39a1d1409ca98271a6cf06140fa8b6aba08d8bbbddf097cd7d99b5c1b698db08f056236e547 +DIST jitterentropy-3.3.1.tar.gz 81596 BLAKE2B ad8bf87d5a30b4bc98a3af7c1dcff442516c0330050aea90f2f05d68c4c2f1e9fe4b8db885f00dcd138ae7cb5a6ca58800686ae507f0e41596c95176a33e2b96 SHA512 7dc17c377cf90d38057bbc135e00730a3f84bc66aeed83eca1ad1b0e1c2fb89c5346ec20bdf25d3ce27f1d21893d44e52c08e96175554c18dfa1934a8d4fd9f7 EBUILD jitterentropy-2.2.0.ebuild 923 BLAKE2B 2cdcfbc5e413a0049b0743aeba0f905c7eb274de0fe2b775d65f8b5fd6c576595b796745b5ed55a4c006774412a2948e8fc75720b3fef9e233719b1dd48c2dfa SHA512 1aa071401c70f21315e819adc18b139af5c294f19bed9a6f2481b24c102654571cbc2dbfde46ef74927b2c1680cd615bf989d880d9e857d951e0f13b46c81d92 EBUILD jitterentropy-3.0.1.ebuild 967 BLAKE2B d8d88a202b58736e7c26733f5877c19924865e350fdeb317fa6d91f3c98734c609dfa9a9d11e2ef1e7494237f662660e362f33c3e49779f77a838d2fb12b3429 SHA512 951dbe3572d366f35f326790a9243597eab572739b234865390121b4e6056e17dc3c415dd44fc87b13ff0b72c119625cebaa8e326ab18f106479e1e3117e6a67 +EBUILD jitterentropy-3.3.1.ebuild 1617 BLAKE2B 5eaa309e01186953ce0e0a15164425755d3f3f579a63387d43b7b7b980ee327f8d3f8f8b121e86e141b2ebebd5d0e4ba68efab7b46fe736af53b39e8f7086981 SHA512 dd26125a48ce890ff674c6ba6764ad394cd6a6c78440380fc229a78d8fe1d442df6c5c2a6a1ad61f2bbc54b8e642372cf9356403c175470f73a500eba4004913 MISC metadata.xml 667 BLAKE2B 9133417986fe9e64d3fd5abe0cae7b0e8e8d9fa792645c13599856b1a30f929f4291f05b58d38f7ef1cf99a91fb60ff56a61571bd48da801c9b5a5ff87166447 SHA512 47cbaa73c37c0eb2b6ad0321b716e31342e721828413f6523fda7d688d3851c83ad714cd23a6ba7d0147367c09ec2a45f6c2da44ffa7f7b2905cd41d18502b7d diff --git a/app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild b/app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild new file mode 100644 index 000000000000..4f867c12ca00 --- /dev/null +++ b/app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Hardware RNG based on CPU timing jitter" +HOMEPAGE="https://github.com/smuellerDD/jitterentropy-library" +SRC_URI="https://github.com/smuellerDD/jitterentropy-library/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +# For future reference, tests/raw-entropy/validation-{restart,runtime} +# have a weird license clause where it says: +# The licensee IS NOT granted permission to redistribute the source code or +# derivatives of the source code, and the binaries compiled from the source +# code or its derivatives to any third parties. +# Do not package these two components! +LICENSE="BSD" +SLOT="0/3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86" +IUSE="static-libs" + +S="${WORKDIR}/${PN}-library-${PV}" + +src_prepare() { + default + + # Disable man page compression on install + sed -e '/\tgzip.*man/ d' -i Makefile || die +} + +src_compile() { + # Upstream defines some of CFLAGS in the Makefile using '?=' + # This allows those default flags to be overwritten by + # user-defined CFLAGS. Restore some of the defaults. + append-cflags '-fwrapv' '-fvisibility=hidden' '-fPIE' + # Optimizations are not allowed by upstream, which already + # overrides CFLAGS in Makefile. We need to handle CPPFLAGS here. + append-cppflags '-O0' + emake AR="$(tc-getAR)" CC="$(tc-getCC)" +} + +src_install() { + emake PREFIX="${EPREFIX}/usr" \ + LIBDIR="$(get_libdir)" \ + DESTDIR="${D}" \ + INSTALL_STRIP="install" \ + install $(usex static-libs install-static '') +} -- cgit v1.2.3