1 |
commit: 0c858706cfe15be83cbf86ff847c8f2ed2565c89 |
2 |
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 6 19:24:15 2018 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 6 22:06:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c858706 |
7 |
|
8 |
app-crypt/jitterentropy: initial commit with version 2.1.1 |
9 |
|
10 |
The Jitter RNG provides a noise source using the CPU execution timing |
11 |
jitter. |
12 |
|
13 |
It is an optional dependency for >=rng-tools-6.3. |
14 |
|
15 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
16 |
|
17 |
app-crypt/jitterentropy/Manifest | 1 + |
18 |
.../files/jitterentropy-2.1.1-destdir-fix.patch | 37 +++++++++++++++++++ |
19 |
app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild | 41 ++++++++++++++++++++++ |
20 |
app-crypt/jitterentropy/metadata.xml | 18 ++++++++++ |
21 |
4 files changed, 97 insertions(+) |
22 |
|
23 |
diff --git a/app-crypt/jitterentropy/Manifest b/app-crypt/jitterentropy/Manifest |
24 |
new file mode 100644 |
25 |
index 00000000000..32b6d5221e5 |
26 |
--- /dev/null |
27 |
+++ b/app-crypt/jitterentropy/Manifest |
28 |
@@ -0,0 +1 @@ |
29 |
+DIST jitterentropy-2.1.1.tar.gz 23804 BLAKE2B e208c87b414939485c16c6e94460020164e77089d5ac69f8627f8f1dfb38f211ff985c7fa5d32f647f1b06f065f86dc9070aea9b481e8251ecdecbfb4724ce08 SHA512 fb1b76278e03f425be06c8b66532e3997a07f91645393317f42681b1113bd31dfdf348bd18c92d0dfc153c85b75f8f968fe070e988f1a02e4ef4e09435b6cef8 |
30 |
|
31 |
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 |
32 |
new file mode 100644 |
33 |
index 00000000000..cdcc2a57756 |
34 |
--- /dev/null |
35 |
+++ b/app-crypt/jitterentropy/files/jitterentropy-2.1.1-destdir-fix.patch |
36 |
@@ -0,0 +1,37 @@ |
37 |
+From 4b5dc596547e0833e2cccf65efa46ecbe7d0b99c Mon Sep 17 00:00:00 2001 |
38 |
+From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= <gokturk@g.o> |
39 |
+Date: Fri, 6 Jul 2018 14:41:52 -0400 |
40 |
+Subject: [PATCH] Makefile: add support for $(DESTDIR) in install target |
41 |
+ |
42 |
+Allow install target to install into an arbitrary root instead of '/' |
43 |
+by prefixing $(PREFIX) with $(DESTDIR). |
44 |
+--- |
45 |
+ Makefile | 12 +++++++----- |
46 |
+ 1 file changed, 7 insertions(+), 5 deletions(-) |
47 |
+ |
48 |
+diff --git a/Makefile b/Makefile |
49 |
+index c38b800..2c778f2 100644 |
50 |
+--- a/Makefile |
51 |
++++ b/Makefile |
52 |
+@@ -44,11 +44,13 @@ scan: $(OBJS) |
53 |
+ scan-build --use-analyzer=/usr/bin/clang $(CC) -shared -Wl,-soname,lib$(NAME).so.$(LIBMAJOR) -o lib$(NAME).so.$(LIBVERSION) $(OBJS) $(LDFLAGS) |
54 |
+ |
55 |
+ install: |
56 |
+- install -m 644 doc/$(NAME).3 $(PREFIX)/share/man/man3/ |
57 |
+- gzip -9 $(PREFIX)/share/man/man3/$(NAME).3 |
58 |
+- install -m 0755 -s lib$(NAME).so.$(LIBVERSION) $(PREFIX)/$(LIBDIR)/ |
59 |
+- $(RM) $(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) |
60 |
+- ln -s lib$(NAME).so.$(LIBVERSION) $(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) |
61 |
++ install -d -m 0755 $(DESTDIR)$(PREFIX)/share/man/man3 |
62 |
++ install -m 644 doc/$(NAME).3 $(DESTDIR)$(PREFIX)/share/man/man3/ |
63 |
++ gzip -9 $(DESTDIR)$(PREFIX)/share/man/man3/$(NAME).3 |
64 |
++ install -d -m 0755 $(DESTDIR)$(PREFIX)/$(LIBDIR) |
65 |
++ install -m 0755 -s lib$(NAME).so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/$(LIBDIR)/ |
66 |
++ $(RM) $(DESTDIR)$(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) |
67 |
++ ln -s lib$(NAME).so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/$(LIBDIR)/lib$(NAME).so.$(LIBMAJOR) |
68 |
+ |
69 |
+ clean: |
70 |
+ @- $(RM) $(NAME) |
71 |
+-- |
72 |
+2.17.0 |
73 |
+ |
74 |
|
75 |
diff --git a/app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild b/app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild |
76 |
new file mode 100644 |
77 |
index 00000000000..70e643f4080 |
78 |
--- /dev/null |
79 |
+++ b/app-crypt/jitterentropy/jitterentropy-2.1.1.ebuild |
80 |
@@ -0,0 +1,41 @@ |
81 |
+# Copyright 1999-2018 Gentoo Foundation |
82 |
+# Distributed under the terms of the GNU General Public License v2 |
83 |
+ |
84 |
+EAPI=7 |
85 |
+ |
86 |
+inherit toolchain-funcs |
87 |
+ |
88 |
+DESCRIPTION="Hardware RNG based on CPU timing jitter" |
89 |
+HOMEPAGE="https://github.com/smuellerDD/jitterentropy-library" |
90 |
+SRC_URI="https://github.com/gktrk/jitterentropy-library/archive/v2.1.1.tar.gz -> ${P}.tar.gz" |
91 |
+ |
92 |
+LICENSE="BSD" |
93 |
+SLOT="0" |
94 |
+KEYWORDS="~amd64" |
95 |
+ |
96 |
+PATCHES=( |
97 |
+ "${FILESDIR}"/${PN}-2.1.1-destdir-fix.patch |
98 |
+) |
99 |
+ |
100 |
+S="${WORKDIR}/${PN}-library-${PV}" |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ default |
104 |
+ |
105 |
+ # Disable man page compression on install |
106 |
+ sed -e '/\tgzip.*man/ d' -i Makefile || die |
107 |
+ # Let the package manager handle stripping |
108 |
+ sed -e '/\tinstall.*-s / s/-s //g' -i Makefile || die |
109 |
+} |
110 |
+ |
111 |
+src_compile() { |
112 |
+ emake CC="$(tc-getCC)" |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ emake PREFIX="${EPREFIX}/usr" \ |
117 |
+ LIBDIR="$(get_libdir)" \ |
118 |
+ DESTDIR="${D}" install |
119 |
+ dosym lib${PN}.so.${PV} "/usr/$(get_libdir)"/lib${PN}.so |
120 |
+ doheader ${PN}.h ${PN}-base-user.h |
121 |
+} |
122 |
|
123 |
diff --git a/app-crypt/jitterentropy/metadata.xml b/app-crypt/jitterentropy/metadata.xml |
124 |
new file mode 100644 |
125 |
index 00000000000..4cf1945b408 |
126 |
--- /dev/null |
127 |
+++ b/app-crypt/jitterentropy/metadata.xml |
128 |
@@ -0,0 +1,18 @@ |
129 |
+<?xml version="1.0" encoding="UTF-8"?> |
130 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
131 |
+<pkgmetadata> |
132 |
+<maintainer type="person"> |
133 |
+ <email>gokturk@g.o</email> |
134 |
+ <name>Göktürk Yüksek</name> |
135 |
+</maintainer> |
136 |
+<longdescription> |
137 |
+ The Jitter RNG provides a noise source using the CPU execution |
138 |
+ timing jitter. It does not depend on any system resource other |
139 |
+ than a high-resolution time stamp. It is a small-scale, yet |
140 |
+ fast entropy source that is viable in almost all environments |
141 |
+ and on a lot of CPU architectures. |
142 |
+</longdescription> |
143 |
+<upstream> |
144 |
+ <remote-id type="github">smuellerDD/jitterentropy-library</remote-id> |
145 |
+</upstream> |
146 |
+</pkgmetadata> |