Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/rainbowcrack/
Date: Wed, 07 Oct 2020 16:16:40
Message-Id: 1602087389.054081659d643ab536a426959ea3de9262514bf1.marecki@gentoo
1 commit: 054081659d643ab536a426959ea3de9262514bf1
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 16:13:45 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 16:16:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05408165
7
8 app-crypt/rainbowcrack: bump to 1.8
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 app-crypt/rainbowcrack/Manifest | 1 +
13 app-crypt/rainbowcrack/rainbowcrack-1.8.ebuild | 70 ++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/app-crypt/rainbowcrack/Manifest b/app-crypt/rainbowcrack/Manifest
17 index d5245f6c9e5..7877552ca0b 100644
18 --- a/app-crypt/rainbowcrack/Manifest
19 +++ b/app-crypt/rainbowcrack/Manifest
20 @@ -1 +1,2 @@
21 DIST rainbowcrack-1.7-linux64.zip 208726 BLAKE2B 842e0a3ee74a8576a5331cc86259178b382e82f465f3093e7d1fa1b44907c1c30a73f53c2f7f527e052bc6266ceffd350c42b9b80b1298072a02c0cbd25e660d SHA512 068fe9d31004e08c0fcbe5a11500bd6248eca2f204a8d99a7343824ebc1dd847a01eb459f28d77fdd84eae98b05169a69e10b8893b9b5dd027381965c19b7bdb
22 +DIST rainbowcrack-1.8-linux64.zip 220109 BLAKE2B 164894ccb07490756a0c9b297b1497d6305fade66b31fd712914261219dd957632cd285ab2e7ad7a683dd3c0a425eb1969676ea23136abf7d688fcde9e445e74 SHA512 84dbf3431605fb5dcc8e7cd305a43e9b239ebd6e5ef120edd951a3180c38498fe3a26157e3b55d114c6630f8ac1382a610d8e6230779c5b12cbc42c04e9aff57
23
24 diff --git a/app-crypt/rainbowcrack/rainbowcrack-1.8.ebuild b/app-crypt/rainbowcrack/rainbowcrack-1.8.ebuild
25 new file mode 100644
26 index 00000000000..7a4aba0ea14
27 --- /dev/null
28 +++ b/app-crypt/rainbowcrack/rainbowcrack-1.8.ebuild
29 @@ -0,0 +1,70 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit wrapper
36 +
37 +DESCRIPTION="Hash cracker that precomputes plaintext - ciphertext pairs in advance"
38 +HOMEPAGE="https://project-rainbowcrack.com/"
39 +SRC_URI="https://project-${PN}.com/${P}-linux64.zip"
40 +
41 +LICENSE="all-rights-reserved"
42 +SLOT="0"
43 +KEYWORDS="-* ~amd64"
44 +IUSE=""
45 +
46 +RESTRICT="bindist mirror" #444426
47 +
48 +RAINBOW_DESTDIR="opt/${PN}"
49 +
50 +QA_FLAGS_IGNORED="${RAINBOW_DESTDIR}/.*"
51 +QA_PRESTRIPPED="${RAINBOW_DESTDIR}/.*"
52 +
53 +DEPEND="app-arch/unzip"
54 +
55 +DOCS=(
56 + readme.txt
57 +)
58 +
59 +S="${WORKDIR}"/${P}-linux64
60 +
61 +# rainbowcrack-1.8 zipfiles, including the ones for Linux, use backslashes as path separators.
62 +# unzip handles it just fine but produces a warning, the side effect of which is that it exits
63 +# with code 1 rather than 0.
64 +# Don't bother with iterating over A, we already assume the file to be a .zip so we might as well
65 +# assume there is only one.
66 +src_unpack() {
67 + unzip -qo "${DISTDIR}/${A}"
68 + local unzip_retval="${?}"
69 + case "${unzip_retval}" in
70 + 0|1)
71 + ;;
72 + *)
73 + die "Failed to unpack the source archive"
74 + ;;
75 + esac
76 +}
77 +
78 +src_install() {
79 + einstalldocs
80 +
81 + local bin bins="
82 + rcrack
83 + rt2rtc
84 + rtc2rt
85 + rtgen
86 + rtmerge
87 + rtsort
88 + "
89 +
90 + exeinto "/${RAINBOW_DESTDIR}"
91 + doexe alglib0.so ${bins}
92 +
93 + for bin in ${bins}; do
94 + make_wrapper ${bin} ./${bin} "/${RAINBOW_DESTDIR}" "/${RAINBOW_DESTDIR}"
95 + done
96 +
97 + insinto "/${RAINBOW_DESTDIR}"
98 + doins charset.txt
99 +}