1 |
commit: c478e16b2ca105a84815cd45dbc4e588b9328c95 |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Thu Feb 21 19:40:35 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 22 21:08:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c478e16b |
7 |
|
8 |
app-crypt/ssss: new package. |
9 |
|
10 |
SSSS is an implementation of Shamir's Secret Sharing Scheme. |
11 |
|
12 |
The program suite does both: the generation of shares for a know secret, and |
13 |
the reconstruction of a secret using user-pro-vided shares. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/106932 |
16 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
17 |
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com> |
18 |
Closes: https://github.com/gentoo/gentoo/pull/10243 |
19 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
20 |
|
21 |
app-crypt/ssss/Manifest | 1 + |
22 |
app-crypt/ssss/metadata.xml | 17 +++++++++++++++++ |
23 |
app-crypt/ssss/ssss-0.5.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ |
24 |
3 files changed, 57 insertions(+) |
25 |
|
26 |
diff --git a/app-crypt/ssss/Manifest b/app-crypt/ssss/Manifest |
27 |
new file mode 100644 |
28 |
index 00000000000..c24684b3ff8 |
29 |
--- /dev/null |
30 |
+++ b/app-crypt/ssss/Manifest |
31 |
@@ -0,0 +1 @@ |
32 |
+DIST ssss-0.5.tar.gz 17435 BLAKE2B 76aae463ce11341f8b0336526f7d19c9921025cabc05bc9e00005b0bdeb676ed5e069226962232f277de2fecb1cd71bafbd4b2fa0c03ef4faf0f66daa24599d1 SHA512 be8df1666ac61d4097b5fd54f2cee3640db8f85ec21411f1b208a35b671c5699bc692079525d8d313d1cf2500da31bfb03771829a9fdccc0bb6d806749526ec9 |
33 |
|
34 |
diff --git a/app-crypt/ssss/metadata.xml b/app-crypt/ssss/metadata.xml |
35 |
new file mode 100644 |
36 |
index 00000000000..108893a39ca |
37 |
--- /dev/null |
38 |
+++ b/app-crypt/ssss/metadata.xml |
39 |
@@ -0,0 +1,17 @@ |
40 |
+<?xml version="1.0" encoding="UTF-8"?> |
41 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
42 |
+<pkgmetadata> |
43 |
+ <maintainer type="person"> |
44 |
+ <email>ck+gentoo@××××××××.de</email> |
45 |
+ <name>Conrad Kostecki</name> |
46 |
+ </maintainer> |
47 |
+ <maintainer type="project"> |
48 |
+ <email>proxy-maint@g.o</email> |
49 |
+ <name>Proxy Maintainers</name> |
50 |
+ </maintainer> |
51 |
+ <longdescription> |
52 |
+ SSSS is an implementation of Shamir's Secret Sharing Scheme. |
53 |
+ The program suite does both: the generation of shares for a known secret, |
54 |
+ and the reconstruction of a secret using user-pro‐vided shares. |
55 |
+ </longdescription> |
56 |
+</pkgmetadata> |
57 |
|
58 |
diff --git a/app-crypt/ssss/ssss-0.5.ebuild b/app-crypt/ssss/ssss-0.5.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..55fa43d76cb |
61 |
--- /dev/null |
62 |
+++ b/app-crypt/ssss/ssss-0.5.ebuild |
63 |
@@ -0,0 +1,39 @@ |
64 |
+# Copyright 1999-2019 Gentoo Authors |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=7 |
68 |
+ |
69 |
+inherit toolchain-funcs |
70 |
+ |
71 |
+DESCRIPTION="Shamir's Secret Sharing Scheme" |
72 |
+HOMEPAGE="http://point-at-infinity.org/ssss/" |
73 |
+SRC_URI="http://point-at-infinity.org/${PN}/${P}.tar.gz" |
74 |
+ |
75 |
+KEYWORDS="~amd64 ~x86" |
76 |
+LICENSE="GPL-2" |
77 |
+SLOT="0" |
78 |
+ |
79 |
+RDEPEND="dev-libs/gmp:0=" |
80 |
+DEPEND="${RDEPEND}" |
81 |
+BDEPEND="app-doc/xmltoman" |
82 |
+ |
83 |
+DOCS=( "HISTORY" "THANKS" ) |
84 |
+HTML_DOCS=( "doc.html" "ssss.1.html" ) |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ default |
88 |
+ |
89 |
+ tc-export CC |
90 |
+ |
91 |
+ # Respect users CFLAGS and don't strip, as portage does this part. |
92 |
+ sed -e 's/-O2/$(CFLAGS)/g' -e '/strip/d' -i Makefile || die |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ dobin ssss-split |
97 |
+ dosym ssss-split /usr/bin/ssss-combine |
98 |
+ |
99 |
+ doman ssss.1 |
100 |
+ |
101 |
+ einstalldocs |
102 |
+} |