summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2018-07-06 15:24:15 -0400
committerGöktürk Yüksek <gokturk@gentoo.org>2018-07-06 18:06:15 -0400
commit0c858706cfe15be83cbf86ff847c8f2ed2565c89 (patch)
tree62451707ef7d6eafd120665d1e912be8b657450e /app-crypt/jitterentropy/files
parentdev-java/dnsjava: version bump. (diff)
downloadgentoo-0c858706cfe15be83cbf86ff847c8f2ed2565c89.tar.gz
gentoo-0c858706cfe15be83cbf86ff847c8f2ed2565c89.tar.bz2
gentoo-0c858706cfe15be83cbf86ff847c8f2ed2565c89.zip
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
Diffstat (limited to 'app-crypt/jitterentropy/files')
-rw-r--r--app-crypt/jitterentropy/files/jitterentropy-2.1.1-destdir-fix.patch37
1 files changed, 37 insertions, 0 deletions
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 000000000000..cdcc2a57756f
--- /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?= <gokturk@gentoo.org>
+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
+