1 |
commit: b3a80ba13ba3008264ec34de66ad3365ffe7e3b8 |
2 |
Author: Philip Miess <Philip_Miess <AT> yahoo <DOT> com> |
3 |
AuthorDate: Sat Nov 2 16:57:22 2019 +0000 |
4 |
Commit: Philip Miess <Phil_miess <AT> yahoo <DOT> com> |
5 |
CommitDate: Sat Nov 2 16:57:22 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/superposition.git/commit/?id=b3a80ba1 |
7 |
|
8 |
add rig |
9 |
|
10 |
Signed-off-by: Philip Miess <Philip_Miess <AT> yahoo.com> |
11 |
|
12 |
app-text/rig/Manifest | 4 ++ |
13 |
.../files/rig-1.11-useDestDirAndImportMemcpy.patch | 23 ++++++++++ |
14 |
app-text/rig/metadata.xml | 14 ++++++ |
15 |
app-text/rig/rig-1.11.ebuild | 50 ++++++++++++++++++++++ |
16 |
4 files changed, 91 insertions(+) |
17 |
|
18 |
diff --git a/app-text/rig/Manifest b/app-text/rig/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..76ad669 |
21 |
--- /dev/null |
22 |
+++ b/app-text/rig/Manifest |
23 |
@@ -0,0 +1,4 @@ |
24 |
+AUX rig-1.11-useDestDirAndImportMemcpy.patch 674 BLAKE2B 92c64551d8ca030a21c0a33e993980583c96064ac7f0a8040f95041cc76dbc25aa7094f638f58a5e9797c97310d73b2aa16d9cc45a0b2e774fce270cc3eca21d SHA512 958e13d420b5c91506b953a30be662d459d0c53faab36912a58658356ab019107b6b6ec1242ef23bf2e5ba03eb18e1a4c5170fca494a295272f855bbf797baba |
25 |
+DIST rig-1.11.tar.gz 23112 BLAKE2B 4682581f4d0150040db29371a7d0fbb6b63072513038de37ad52195a2b83ef671d15a00e1024bc32b82c847af750d57a96ff6a6cdb08ed288e0d9d05823be445 SHA512 95bab873404fd4498f7895026b7cdda5b182dd3c33a17c4ad81389f5ed6cc0e9429cd1abaa51a023fedc472c611a66674c698d23b57515ed30d7f92e5f280b87 |
26 |
+EBUILD rig-1.11.ebuild 973 BLAKE2B d8bfc1034262a6407fbe680c3b4736acaacbf13e62b8d91d3b1c1faee86f94d37c7d468a2ba4f95601ecad65b5caa24fd98315d71f7d91ce7d87377f2d8a3b6e SHA512 9a66a36b9c686d1a6e19c15fb8c2b335b31b70a9f7a13e7ce5a826cdb445bc488d8bb3f98173e58bd78c1e040f5576788d3a9846f101cae751e36fa0bf19e888 |
27 |
+MISC metadata.xml 402 BLAKE2B 93231d98ea75439ff9eb1713ab8a6bcd62142b5c01109a17715f9d6710ac90477a2f6546614c25a4e2af4cfa8af52e5035d4e6dfc2e458b11591e154d64921db SHA512 562bb78240696acf97707ce309bcd967b0608d0b90af26763b300c5aaefd8c68ece65dabfc8e13d72b00d2ce6785e83c36dcf372d2176286a47de62dd464eb65 |
28 |
|
29 |
diff --git a/app-text/rig/files/rig-1.11-useDestDirAndImportMemcpy.patch b/app-text/rig/files/rig-1.11-useDestDirAndImportMemcpy.patch |
30 |
new file mode 100755 |
31 |
index 0000000..415fbbd |
32 |
--- /dev/null |
33 |
+++ b/app-text/rig/files/rig-1.11-useDestDirAndImportMemcpy.patch |
34 |
@@ -0,0 +1,23 @@ |
35 |
+Use DestDir for install, dont install into /usr/local, |
36 |
+and #include cstring for memcpy to fix compilation error |
37 |
+FROM:Phil Miess <pmiess@×××××.com> |
38 |
+Bug found by pmiess |
39 |
+ |
40 |
+--- before/Makefile 2002-06-04 22:07:50.000000000 -0400 |
41 |
++++ after/Makefile 2019-11-02 07:28:13.787725115 -0400 |
42 |
+@@ -1,4 +1,4 @@ |
43 |
+-PREFIX=/usr/local |
44 |
++PREFIX=$(DESTDIR)/usr |
45 |
+ BINDIR=${PREFIX}/bin |
46 |
+ MANDIR=${PREFIX}/man |
47 |
+ DATADIR=${PREFIX}/share/rig |
48 |
+--- before/rig.cc 2006-04-23 10:42:22.000000000 -0400 |
49 |
++++ after/rig.cc 2019-11-01 16:52:47.025118177 -0400 |
50 |
+@@ -21,6 +21,7 @@ |
51 |
+ #include <fstream> |
52 |
+ #include <vector> |
53 |
+ #include <string> |
54 |
++#include <cstring> |
55 |
+ #include <stdlib.h> |
56 |
+ #include <unistd.h> |
57 |
+ #include <time.h> |
58 |
|
59 |
diff --git a/app-text/rig/metadata.xml b/app-text/rig/metadata.xml |
60 |
new file mode 100644 |
61 |
index 0000000..a7adb80 |
62 |
--- /dev/null |
63 |
+++ b/app-text/rig/metadata.xml |
64 |
@@ -0,0 +1,14 @@ |
65 |
+<?xml version="1.0" encoding="UTF-8"?> |
66 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
67 |
+<pkgmetadata> |
68 |
+<longdescription lang="en"> |
69 |
+A program that generates fake identities. |
70 |
+RIG comes with the top 1000 names from the US census at |
71 |
+http://www.census.gov/genealogy/names/ |
72 |
+</longdescription> |
73 |
+<use> |
74 |
+ <flag name="devrandom"> |
75 |
+ Use /dev/random for randomness |
76 |
+ </flag> |
77 |
+</use> |
78 |
+</pkgmetadata> |
79 |
|
80 |
diff --git a/app-text/rig/rig-1.11.ebuild b/app-text/rig/rig-1.11.ebuild |
81 |
new file mode 100644 |
82 |
index 0000000..382e455 |
83 |
--- /dev/null |
84 |
+++ b/app-text/rig/rig-1.11.ebuild |
85 |
@@ -0,0 +1,50 @@ |
86 |
+# Copyright 2019 Gentoo Authors |
87 |
+# Distributed under the terms of the GNU General Public License v2 |
88 |
+ |
89 |
+EAPI=7 |
90 |
+ |
91 |
+inherit toolchain-funcs |
92 |
+ |
93 |
+DESCRIPTION="generate random, yet real-looking, personal data" |
94 |
+HOMEPAGE="https://sourceforge.net/projects/rig/ " |
95 |
+SRC_URI="https://sourceforge.net/projects/rig/files/rig/1.11/rig-1.11.tar.gz" |
96 |
+ |
97 |
+LICENSE="GPL-2" |
98 |
+SLOT="0" |
99 |
+KEYWORDS="~amd64 ~x86" |
100 |
+IUSE="+devrandom" |
101 |
+ |
102 |
+DEPEND="" |
103 |
+RDEPEND="${DEPEND}" |
104 |
+BDEPEND="" |
105 |
+ |
106 |
+PATCHES=( |
107 |
+ "${FILESDIR}/${P}-useDestDirAndImportMemcpy.patch" |
108 |
+) |
109 |
+ |
110 |
+DOCS=( "README" "Changlelog" "rig.6" ) |
111 |
+ |
112 |
+src_configure() { |
113 |
+ if use devrandom ; then |
114 |
+ append-cxxflags "-DDEVRANDOM" |
115 |
+ fi |
116 |
+} |
117 |
+ |
118 |
+src_compile() { |
119 |
+ sed -i -e "s:g++ :$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} :" Makefile \ |
120 |
+ || die "sed fix failed. Uh-oh..." |
121 |
+ emake |
122 |
+ echo 'hello' |
123 |
+} |
124 |
+ |
125 |
+src_install() { |
126 |
+ echo 'hi' |
127 |
+ dodir /usr/bin |
128 |
+ dodir /usr/man |
129 |
+ dodir /usr/share/rig |
130 |
+ |
131 |
+ if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then |
132 |
+ emake DESTDIR="${D}" install |
133 |
+ fi |
134 |
+ einstalldocs |
135 |
+} |