1 |
commit: 1d96caceaee2cd5902a34c8b563236216939c23b |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 14 05:10:01 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Apr 15 00:51:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1d96cace |
7 |
|
8 |
app-crypt/tomb: add tray |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
app-crypt/tomb/metadata.xml | 5 ++ |
14 |
app-crypt/tomb/tomb-2.9-r2.ebuild | 126 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 131 insertions(+) |
16 |
|
17 |
diff --git a/app-crypt/tomb/metadata.xml b/app-crypt/tomb/metadata.xml |
18 |
index c5e7c824b..a37638635 100644 |
19 |
--- a/app-crypt/tomb/metadata.xml |
20 |
+++ b/app-crypt/tomb/metadata.xml |
21 |
@@ -10,6 +10,8 @@ |
22 |
<email>J@××××.org</email> |
23 |
<name>Denis Roio</name> |
24 |
</maintainer> |
25 |
+ <bugs-to>https://github.com/dyne/Tomb/issues</bugs-to> |
26 |
+ <remote-id type="github">dyne/Tomb</remote-id> |
27 |
</upstream> |
28 |
<longdescription lang="en"> |
29 |
Tomb is an 100% free and open source system for file encryption on GNU/Linux, facilitating the backup of secret files. Tomb is written in code that is easy to review and links commonly shared components. |
30 |
@@ -17,4 +19,7 @@ Tomb generates encrypted storage folders to be opened and closed using their ass |
31 |
A tomb is like a locked folder that can be safely transported and hidden in a filesystem; its keys can be kept separate, for instance keeping the tomb file on your computer harddisk and the key files on a USB stick. |
32 |
Tomb is a simple tool to manage encrypted storage on GNU/Linux, from the hashes of the dyne:bolic nesting mechanism. |
33 |
</longdescription> |
34 |
+ <use> |
35 |
+ <flag name="tray">add a tomb tray in a QT desktop toolbar</flag> |
36 |
+ </use> |
37 |
</pkgmetadata> |
38 |
|
39 |
diff --git a/app-crypt/tomb/tomb-2.9-r2.ebuild b/app-crypt/tomb/tomb-2.9-r2.ebuild |
40 |
new file mode 100644 |
41 |
index 000000000..7f2cd400d |
42 |
--- /dev/null |
43 |
+++ b/app-crypt/tomb/tomb-2.9-r2.ebuild |
44 |
@@ -0,0 +1,126 @@ |
45 |
+# Copyright 1999-2021 Gentoo Authors |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI="7" |
49 |
+ |
50 |
+inherit qmake-utils |
51 |
+ |
52 |
+MYP="${P^}" |
53 |
+DESCRIPTION="Tomb :: File Encryption on GNU/Linux" |
54 |
+HOMEPAGE=" |
55 |
+ https://www.dyne.org/software/tomb |
56 |
+ https://github.com/dyne/Tomb |
57 |
+" |
58 |
+SRC_URI="https://files.dyne.org/tomb/releases/Tomb-${PV}.tar.gz" |
59 |
+LICENSE=" |
60 |
+ GPL-3 |
61 |
+ gui? ( GPL-3+ ) |
62 |
+" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64" |
65 |
+#todo extras/desktop |
66 |
+IUSE="gui test tray" |
67 |
+#test require sudo, can't be done non interactively |
68 |
+RESTRICT="test" |
69 |
+PATCHES=( "${FILESDIR}/gtomb.patch" ) |
70 |
+DOCS=( |
71 |
+ AUTHORS.txt |
72 |
+ ChangeLog.txt |
73 |
+ KNOWN_BUGS.txt |
74 |
+ README.txt |
75 |
+ doc/bertini_thesis.pdf |
76 |
+ doc/HACKING.txt |
77 |
+ doc/KEY_SPECIFICATIONS.txt |
78 |
+ doc/LinuxHDEncSettings.txt |
79 |
+ doc/Luks_on_disk_format.pdf |
80 |
+ doc/New_methods_in_HD_encryption.pdf |
81 |
+ doc/TKS1-draft.pdf |
82 |
+ doc/tomb_manpage.pdf |
83 |
+) |
84 |
+S="${WORKDIR}/${MYP}" |
85 |
+CDEPEND=" |
86 |
+ dev-libs/libgcrypt |
87 |
+ dev-qt/qtcore:5 |
88 |
+ dev-qt/qtgui:5 |
89 |
+ dev-qt/qtwidgets:5 |
90 |
+" |
91 |
+RDEPEND=" |
92 |
+ ${CDEPEND} |
93 |
+ app-admin/sudo |
94 |
+ app-crypt/gnupg |
95 |
+ app-crypt/pinentry |
96 |
+ app-shells/zsh |
97 |
+ sys-fs/cryptsetup |
98 |
+ gui? ( gnome-extra/zenity ) |
99 |
+" |
100 |
+DEPEND="${CDEPEND}" |
101 |
+BDEPEND=" |
102 |
+ dev-python/pygments |
103 |
+ sys-devel/gettext |
104 |
+" |
105 |
+ |
106 |
+src_compile() { |
107 |
+ export PREFIX="${EPREFIX}/usr" |
108 |
+ emake |
109 |
+ |
110 |
+ pushd extras/kdf-keys || die |
111 |
+ emake all |
112 |
+ popd || die |
113 |
+ |
114 |
+ if use tray ; then |
115 |
+ pushd extras/qt-tray || die |
116 |
+ eqmake5 |
117 |
+ emake all |
118 |
+ popd || die |
119 |
+ fi |
120 |
+ |
121 |
+ #translations |
122 |
+ pushd extras/translations || die |
123 |
+ emake all |
124 |
+ popd || die |
125 |
+ |
126 |
+ #documentation |
127 |
+ cd doc/literate || die |
128 |
+ emake |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ default |
133 |
+ |
134 |
+ #translations |
135 |
+ export PREFIX="${ED}/usr" |
136 |
+ pushd extras/translations || die |
137 |
+ emake |
138 |
+ popd || die |
139 |
+ |
140 |
+ #zenity gui |
141 |
+ if use gui ; then |
142 |
+ pushd extras/gtomb || die |
143 |
+ dobin gtomb |
144 |
+ newdoc README.md README-gtomb |
145 |
+ popd || die |
146 |
+ fi |
147 |
+ |
148 |
+ if use tray ; then |
149 |
+ pushd extras/qt-tray || die |
150 |
+ dobin tomb-qt-tray |
151 |
+ popd || die |
152 |
+ fi |
153 |
+ |
154 |
+ pushd extras/kdf-keys || die |
155 |
+ emake install |
156 |
+ popd || die |
157 |
+ |
158 |
+ #documentation |
159 |
+ einstalldocs |
160 |
+ cd doc/literate || die |
161 |
+ insinto "/usr/share/doc/${PF}/html" |
162 |
+ doins -r *.html *.css public |
163 |
+} |
164 |
+ |
165 |
+src_test() { |
166 |
+ emake test |
167 |
+ |
168 |
+ pushd extras/kdf-keys || die |
169 |
+ emake test |
170 |
+} |