diff options
Diffstat (limited to 'app-crypt/jitterentropy')
-rw-r--r-- | app-crypt/jitterentropy/Manifest | 3 | ||||
-rw-r--r-- | app-crypt/jitterentropy/jitterentropy-2.2.0.ebuild | 37 | ||||
-rw-r--r-- | app-crypt/jitterentropy/jitterentropy-3.0.1.ebuild | 38 | ||||
-rw-r--r-- | app-crypt/jitterentropy/jitterentropy-3.4.1.ebuild | 49 | ||||
-rw-r--r-- | app-crypt/jitterentropy/metadata.xml | 28 |
5 files changed, 64 insertions, 91 deletions
diff --git a/app-crypt/jitterentropy/Manifest b/app-crypt/jitterentropy/Manifest index f39d50927dae..7da1002321d2 100644 --- a/app-crypt/jitterentropy/Manifest +++ b/app-crypt/jitterentropy/Manifest @@ -1,2 +1 @@ -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.4.1.tar.gz 86110 BLAKE2B 729ef7d01a17c9eb16cc352da0286bd292f2faae63754b06036dbb44d52e85e2e2e0d2a38ac57d4350eaebbc47457f0457a988a657f7fe6c5d782d50922552d2 SHA512 c832b33c084a8c56fb9ee0c0f7397fa9206cbd6fcbea047495e543566fc0d9b5d8978c8668103203d87b5b70c0e177f9ef7cc614b3ce689b90fbb8b85e6fedbb diff --git a/app-crypt/jitterentropy/jitterentropy-2.2.0.ebuild b/app-crypt/jitterentropy/jitterentropy-2.2.0.ebuild deleted file mode 100644 index 5871f3580a1c..000000000000 --- a/app-crypt/jitterentropy/jitterentropy-2.2.0.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit 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" - -LICENSE="BSD" -SLOT="0" -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 - # Let the package manager handle stripping - sed -e '/\tinstall.*-s / s/-s //g' -i Makefile || die -} - -src_compile() { - emake AR="$(tc-getAR)" CC="$(tc-getCC)" -} - -src_install() { - emake PREFIX="${EPREFIX}/usr" \ - LIBDIR="$(get_libdir)" \ - DESTDIR="${D}" install - use static-libs && dolib.a lib${PN}.a -} diff --git a/app-crypt/jitterentropy/jitterentropy-3.0.1.ebuild b/app-crypt/jitterentropy/jitterentropy-3.0.1.ebuild deleted file mode 100644 index 921bb7705ddf..000000000000 --- a/app-crypt/jitterentropy/jitterentropy-3.0.1.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit 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" - -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 - # Remove the default upstream optimization level - sed -e '/^CFLAGS +=/ s|-O2||' -i Makefile || die -} - -src_compile() { - 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 '') -} diff --git a/app-crypt/jitterentropy/jitterentropy-3.4.1.ebuild b/app-crypt/jitterentropy/jitterentropy-3.4.1.ebuild new file mode 100644 index 000000000000..42a147c26dbe --- /dev/null +++ b/app-crypt/jitterentropy/jitterentropy-3.4.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 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 ~sparc 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 '') +} diff --git a/app-crypt/jitterentropy/metadata.xml b/app-crypt/jitterentropy/metadata.xml index fce25169ae8f..9025bc9ab092 100644 --- a/app-crypt/jitterentropy/metadata.xml +++ b/app-crypt/jitterentropy/metadata.xml @@ -1,18 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="person"> - <email>gokturk@gentoo.org</email> - <name>Göktürk Yüksek</name> -</maintainer> -<longdescription> - The Jitter RNG provides a noise source using the CPU execution - timing jitter. It does not depend on any system resource other - than a high-resolution time stamp. It is a small-scale, yet - fast entropy source that is viable in almost all environments - and on a lot of CPU architectures. -</longdescription> -<upstream> - <remote-id type="github">smuellerDD/jitterentropy-library</remote-id> -</upstream> + <maintainer type="person"> + <email>gokturk@gentoo.org</email> + <name>Göktürk Yüksek</name> + </maintainer> + <longdescription> + The Jitter RNG provides a noise source using the CPU execution + timing jitter. It does not depend on any system resource other + than a high-resolution time stamp. It is a small-scale, yet + fast entropy source that is viable in almost all environments + and on a lot of CPU architectures. + </longdescription> + <upstream> + <remote-id type="github">smuellerDD/jitterentropy-library</remote-id> + </upstream> </pkgmetadata> |