From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3E3C8138334 for ; Fri, 6 Jul 2018 22:07:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58A39E0882; Fri, 6 Jul 2018 22:07:32 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0FC66E0882 for ; Fri, 6 Jul 2018 22:07:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1F015335C7D for ; Fri, 6 Jul 2018 22:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 804772E5 for ; Fri, 6 Jul 2018 22:07:28 +0000 (UTC) From: "Göktürk Yüksek" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Göktürk Yüksek" Message-ID: <1530914775.0c858706cfe15be83cbf86ff847c8f2ed2565c89.gokturk@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/jitterentropy/, app-crypt/jitterentropy/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/jitterentropy/Manifest app-crypt/jitterentropy/files/jitterentropy-2.1.1-destdir-fix.patch app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild app-crypt/jitterentropy/metadata.xml X-VCS-Directories: app-crypt/jitterentropy/files/ app-crypt/jitterentropy/ X-VCS-Committer: gokturk X-VCS-Committer-Name: Göktürk Yüksek X-VCS-Revision: 0c858706cfe15be83cbf86ff847c8f2ed2565c89 X-VCS-Branch: master Date: Fri, 6 Jul 2018 22:07:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e034bba6-89a6-4d15-9576-df7332d45870 X-Archives-Hash: e5a14d6d697768206ddbf64ac372b457 commit: 0c858706cfe15be83cbf86ff847c8f2ed2565c89 Author: Göktürk Yüksek gentoo org> AuthorDate: Fri Jul 6 19:24:15 2018 +0000 Commit: Göktürk Yüksek gentoo org> CommitDate: Fri Jul 6 22:06:15 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c858706 app-crypt/jitterentropy: initial commit with version 2.1.1 The Jitter RNG provides a noise source using the CPU execution timing jitter. It is an optional dependency for >=rng-tools-6.3. Package-Manager: Portage-2.3.41, Repoman-2.3.9 app-crypt/jitterentropy/Manifest | 1 + .../files/jitterentropy-2.1.1-destdir-fix.patch | 37 +++++++++++++++++++ app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild | 41 ++++++++++++++++++++++ app-crypt/jitterentropy/metadata.xml | 18 ++++++++++ 4 files changed, 97 insertions(+) diff --git a/app-crypt/jitterentropy/Manifest b/app-crypt/jitterentropy/Manifest new file mode 100644 index 00000000000..32b6d5221e5 --- /dev/null +++ b/app-crypt/jitterentropy/Manifest @@ -0,0 +1 @@ +DIST jitterentropy-2.1.1.tar.gz 23804 BLAKE2B e208c87b414939485c16c6e94460020164e77089d5ac69f8627f8f1dfb38f211ff985c7fa5d32f647f1b06f065f86dc9070aea9b481e8251ecdecbfb4724ce08 SHA512 fb1b76278e03f425be06c8b66532e3997a07f91645393317f42681b1113bd31dfdf348bd18c92d0dfc153c85b75f8f968fe070e988f1a02e4ef4e09435b6cef8 diff --git a/app-crypt/jitterentropy/files/jitterentropy-2.1.1-destdir-fix.patch b/app-crypt/jitterentropy/files/jitterentropy-2.1.1-destdir-fix.patch new file mode 100644 index 00000000000..cdcc2a57756 --- /dev/null +++ b/app-crypt/jitterentropy/files/jitterentropy-2.1.1-destdir-fix.patch @@ -0,0 +1,37 @@ +From 4b5dc596547e0833e2cccf65efa46ecbe7d0b99c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= +Date: Fri, 6 Jul 2018 14:41:52 -0400 +Subject: [PATCH] Makefile: add support for $(DESTDIR) in install target + +Allow install target to install into an arbitrary root instead of '/' +by prefixing $(PREFIX) with $(DESTDIR). +--- + Makefile | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +diff --git a/Makefile b/Makefile +index c38b800..2c778f2 100644 +--- a/Makefile ++++ b/Makefile +@@ -44,11 +44,13 @@ scan: $(OBJS) + scan-build --use-analyzer=/usr/bin/clang $(CC) -shared -Wl,-soname,lib$(NAME).so.$(LIBMAJOR) -o lib$(NAME).so.$(LIBVERSION) $(OBJS) $(LDFLAGS) + + install: +- install -m 644 doc/$(NAME).3 $(PREFIX)/share/man/man3/ +- gzip -9 $(PREFIX)/share/man/man3/$(NAME).3 +- install -m 0755 -s lib$(NAME).so.$(LIBVERSION) $(PREFIX)/$(LIBDIR)/ +- $(RM) $(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) +- ln -s lib$(NAME).so.$(LIBVERSION) $(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) ++ install -d -m 0755 $(DESTDIR)$(PREFIX)/share/man/man3 ++ install -m 644 doc/$(NAME).3 $(DESTDIR)$(PREFIX)/share/man/man3/ ++ gzip -9 $(DESTDIR)$(PREFIX)/share/man/man3/$(NAME).3 ++ install -d -m 0755 $(DESTDIR)$(PREFIX)/$(LIBDIR) ++ install -m 0755 -s lib$(NAME).so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/$(LIBDIR)/ ++ $(RM) $(DESTDIR)$(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) ++ ln -s lib$(NAME).so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) + + clean: + @- $(RM) $(NAME) +-- +2.17.0 + diff --git a/app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild b/app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild new file mode 100644 index 00000000000..70e643f4080 --- /dev/null +++ b/app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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/gktrk/jitterentropy-library/archive/v2.1.1.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.1-destdir-fix.patch +) + +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 CC="$(tc-getCC)" +} + +src_install() { + emake PREFIX="${EPREFIX}/usr" \ + LIBDIR="$(get_libdir)" \ + DESTDIR="${D}" install + dosym lib${PN}.so.${PV} "/usr/$(get_libdir)"/lib${PN}.so + doheader ${PN}.h ${PN}-base-user.h +} diff --git a/app-crypt/jitterentropy/metadata.xml b/app-crypt/jitterentropy/metadata.xml new file mode 100644 index 00000000000..4cf1945b408 --- /dev/null +++ b/app-crypt/jitterentropy/metadata.xml @@ -0,0 +1,18 @@ + + + + + gokturk@gentoo.org + Göktürk Yüksek + + + 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. + + + smuellerDD/jitterentropy-library + +