Gentoo Archives: gentoo-musl

From: Felix Janda <felix.janda@××××××.de>
To: gentoo-musl@l.g.o
Subject: [gentoo-musl] [PATCH] app-crypt/shash: in tree version works
Date: Mon, 25 Apr 2016 19:48:19
Message-Id: 20160425194725.GA30319@nyan
1 ---
2 I don't quite understand why I added it in the first place...
3 ---
4 app-crypt/shash/Manifest | 7 ----
5 app-crypt/shash/files/0.2.6-manpage-fixes.patch | 30 ----------------
6 .../shash/files/shash-0.2.6-binary-files.patch | 34 ------------------
7 .../shash/files/shash-0.2.6-missing-includes.patch | 27 ---------------
8 app-crypt/shash/files/shash.bash-completion | 40 ----------------------
9 app-crypt/shash/metadata.xml | 10 ------
10 app-crypt/shash/shash-0.2.6-r99.ebuild | 35 -------------------
11 7 files changed, 183 deletions(-)
12 delete mode 100644 app-crypt/shash/Manifest
13 delete mode 100644 app-crypt/shash/files/0.2.6-manpage-fixes.patch
14 delete mode 100644 app-crypt/shash/files/shash-0.2.6-binary-files.patch
15 delete mode 100644 app-crypt/shash/files/shash-0.2.6-missing-includes.patch
16 delete mode 100644 app-crypt/shash/files/shash.bash-completion
17 delete mode 100644 app-crypt/shash/metadata.xml
18 delete mode 100644 app-crypt/shash/shash-0.2.6-r99.ebuild
19
20 diff --git a/app-crypt/shash/Manifest b/app-crypt/shash/Manifest
21 deleted file mode 100644
22 index c2a7944..0000000
23 --- a/app-crypt/shash/Manifest
24 +++ /dev/null
25 @@ -1,7 +0,0 @@
26 -AUX 0.2.6-manpage-fixes.patch 1451 SHA256 12619eaba8cfd99917658139306fb8c0ff087f10ce05bd285aa3c8e66f88e317 SHA512 10dbcfa52a7df57ef68dc58f21e1b2931adf0479697e13f99c56ccfbbd1c79188751d1ce7e2b160261170a678a4130a71a6b531820aa59e4ddbd131d5d9cb551 WHIRLPOOL 11b4d1aaf6feae4dd00d7abfbe704fcb8ba665d0de46de724098fa57b60960060c6df7661c9e3735c9ccd5865ab6c66cad3527395fec4279822e114dc59ab92d
27 -AUX shash-0.2.6-binary-files.patch 898 SHA256 e06660afe1afb338bf4f209d39ac33c412ecc6fb22feec684c0a7b5fd80f46a6 SHA512 47f299097b8a9907ccfe2f877c42ab8f76f02546211643573796b378d67dd7941518341f8fd07e646c1aa11a665ddbca6ae113a4d58f6995007d9b5aec171d8b WHIRLPOOL 0bbe198601dd7b1ce55719936d8670975505b9b31baa68f0663d25c9988026587b8bc1dcfb18d188b598298715f57716c334b875ac6ff5075ff3a79dc121e7f9
28 -AUX shash-0.2.6-missing-includes.patch 483 SHA256 c00017237b6f6176424f9738ec7d97ecdde8994916aaa62d0138d7901cc1131d SHA512 3adf22d3a886d703a51d614f1106f20bf3f7b068e416317ba5cbd4def91f60b31a6737c11d7f44a44c48e1a713df4b2074b3ad68653be5dd117486148fbab81e WHIRLPOOL 1932da3b2905b6405d5bfa5dfea878a584f01b2e9b41859b8adf559987e9a822f0075822744f7c23b9f57f7228cc8f3931e4e02c3c17637b436c8ec2ea41b239
29 -AUX shash.bash-completion 880 SHA256 7e5cf8850dd2cee423fc0295d1d113ca6c96a1acf5f7d55eb5c340efa2d01971 SHA512 2c7bacf8f12fc6cf9570eb5bd4b95ad05b5632a71a669516b364712308c5b88f1cc917c435f82eade3193885530c08c659ed4d947136f0952da157cb98b30c92 WHIRLPOOL b15411fae32b7e9d715ad7cbb670691167546fe32190a0a5b1f5e7c65bff76a05930424f263e42a00b606f132533fdcc5f78483c4b3f3f30b084f826cd18e7d6
30 -DIST shash-0.2.6.tar.gz 105641 SHA256 6abf13eb1c3b4b6ef0f07e5425d10ed2abaad1d08c327647feb3506e76ced9dc SHA512 340a59bd16b3e5069a076b56f8fe24d2306a6ddd5e6ad564c5e17a992d8e279a7109ba39bd5caa8438a0e85b4f94cb0878228f7aefe38221ff6efa80df64086b WHIRLPOOL 8b809f5fddc98def54907fee8af424937c747f341dd0eaa6fd0c1057858c4dce7d117dfbc729cdd951c53e68a363d3339e9db4e2de1677620bbb9a94a810e8a5
31 -EBUILD shash-0.2.6-r99.ebuild 848 SHA256 a3016b9fb697fb66e8b2544d5d1137d76b5371a3401606e9e5858cea21bba9a7 SHA512 2d6cd4546b19a92be6a8827c27b5779bdf95354e79aae7f656d6e9bfce95b09e21557a459c388399f6f54db46a6a0b698f1f610dc1b369ce721e596e730da5ff WHIRLPOOL 5615667780b6a88deeaf7fa0d7cdab2adbc6e77637da47441860f6219b2124527b9a7d616983f511b436844283ee4248ebc3b7087d617c987c908abc564f62a7
32 -MISC metadata.xml 437 SHA256 7c03f43673bb700e0bc1063720dc80df195304f74a397d8175192ec6e705bb88 SHA512 5402bd757c9295e1e6ac0239552344a3e117da528d11db153e6a1a805e8aa5627493d22af1f7a87a7ef7a33170b5d08c9f344751deb9e1e8303e66eac096f13d WHIRLPOOL e086a413a8a5bc1d1fba9a2a4717d83af4137a40f17ff969a5536a26fbd342c8a58b3418933fc42770ffae3c60812ab2bd044951de17a52566441a9210b26282
33 diff --git a/app-crypt/shash/files/0.2.6-manpage-fixes.patch b/app-crypt/shash/files/0.2.6-manpage-fixes.patch
34 deleted file mode 100644
35 index 0376e15..0000000
36 --- a/app-crypt/shash/files/0.2.6-manpage-fixes.patch
37 +++ /dev/null
38 @@ -1,30 +0,0 @@
39 -diff -pruN shash-0.2.6/doc/shash.1 shash-0.2.6-r1/doc/shash.1
40 ---- shash-0.2.6/doc/shash.1 2004-09-18 09:51:04.004647112 +0100
41 -+++ shash-0.2.6-r1/doc/shash.1 2004-09-18 09:57:26.062565480 +0100
42 -@@ -31,7 +31,7 @@ Because of this shash also supports HMAC
43 - a mechanism for message authentication using cryptographic hash functions.
44 - So shash can use a key with a hash algorithm to produce hashes that can only
45 - be verified with the key. This way you can securely check (i.e. you are sure
46 --that nobody can modify the mac, without beeing detected)
47 -+that nobody can modify the mac, without being detected)
48 - if files in a filesystem were altered.
49 -
50 - If the list of files and digests, that shash produces, is stored as
51 -@@ -72,7 +72,7 @@ Suppress some not critical warnings.
52 - .TP
53 - .B \-b
54 - Use binary mode. In unix environment, only difference between this and
55 --the normal mode is an asterix preceding the filename in the output.
56 -+the normal mode is an asterisk preceding the filename in the output.
57 - .TP
58 - .B \-c
59 - Check the checksum of all files listed in
60 -@@ -94,7 +94,7 @@ Enter the keyword via the command line.
61 - keyword instead of prompting for it. Keep in mind that someone
62 - may see the command you are executing and so your key.
63 - .TP
64 --.B \-c --config FILE
65 -+.B \-i --config FILE
66 - Use the specified configuration file. The default is .shashrc
67 - in your home directory. The format of the configuration
68 - file is the same as the parameters. An example file is:
69 diff --git a/app-crypt/shash/files/shash-0.2.6-binary-files.patch b/app-crypt/shash/files/shash-0.2.6-binary-files.patch
70 deleted file mode 100644
71 index 1eb0cba..0000000
72 --- a/app-crypt/shash/files/shash-0.2.6-binary-files.patch
73 +++ /dev/null
74 @@ -1,34 +0,0 @@
75 ---- shash-0.2.6/src/shash.c
76 -+++ shash-0.2.6/src/shash.c
77 -@@ -631,11 +631,11 @@
78 -
79 - if (nosalt == FALSE && hmac == 1) {
80 - if (sscanf
81 -- (linebuf, "%s %s %s\n", hexbuffer, buffer,
82 -- buffer2) < 2) {
83 -+ (linebuf, "%s %s *%s\n", hexbuffer, buffer,
84 -+ buffer2) != 3) {
85 - if (sscanf
86 -- (linebuf, "%s %s *%s\n", hexbuffer,
87 -- buffer, buffer2) < 2)
88 -+ (linebuf, "%s %s %s\n", hexbuffer,
89 -+ buffer, buffer2) != 3)
90 - continue;
91 - }
92 -
93 -@@ -648,11 +648,11 @@
94 - key = pass2key(algorithm, keymode_buffer, &keylen, password, plen);
95 -
96 - } else {
97 -- if (sscanf(linebuf, "%s %s\n", buffer, buffer2) ==
98 -- 0) {
99 -+ if (sscanf(linebuf, "%s *%s\n", buffer, buffer2) !=
100 -+ 2) {
101 - if (sscanf
102 -- (linebuf, "%s *%s\n", buffer,
103 -- buffer2) == 0)
104 -+ (linebuf, "%s %s\n", buffer,
105 -+ buffer2) != 2)
106 - continue;
107 - }
108 -
109 diff --git a/app-crypt/shash/files/shash-0.2.6-missing-includes.patch b/app-crypt/shash/files/shash-0.2.6-missing-includes.patch
110 deleted file mode 100644
111 index 1d57934..0000000
112 --- a/app-crypt/shash/files/shash-0.2.6-missing-includes.patch
113 +++ /dev/null
114 @@ -1,27 +0,0 @@
115 ---- a/shash-0.2.6/src/errors.c
116 -+++ b/shash-0.2.6/src/errors.c
117 -@@ -1,4 +1,5 @@
118 - #include <defines.h>
119 -+#include <stdio.h>
120 -
121 - extern int quiet;
122 -
123 ---- a/shash-0.2.6/src/random.c
124 -+++ b/shash-0.2.6/src/random.c
125 -@@ -18,6 +18,8 @@
126 - #define DEFINES_H
127 - #include <defines.h>
128 - #endif
129 -+#include <stdlib.h>
130 -+#include <stdio.h>
131 -
132 - #ifdef HAVE_DEV_RANDOM
133 -
134 ---- a/shash-0.2.6/src/extra.c
135 -+++ b/shash-0.2.6/src/extra.c
136 -@@ -1,4 +1,5 @@
137 - #include <defines.h>
138 -+#include <strings.h>
139 -
140 - #ifdef HAVE_STAT
141 -
142 diff --git a/app-crypt/shash/files/shash.bash-completion b/app-crypt/shash/files/shash.bash-completion
143 deleted file mode 100644
144 index d3b867c..0000000
145 --- a/app-crypt/shash/files/shash.bash-completion
146 +++ /dev/null
147 @@ -1,40 +0,0 @@
148 -# Copyright 1999-2006 Gentoo Foundation
149 -# Distributed under the terms of the GNU General Public License v2
150 -# $Id$
151 -#
152 -# shash(1) completion.
153 -
154 -have shash &&
155 -_shash() {
156 - local cur prev
157 -
158 - COMPREPLY=()
159 - cur=${COMP_WORDS[COMP_CWORD]}
160 - prev=${COMP_WORDS[COMP_CWORD-1]}
161 -
162 - case "${prev}" in
163 - -c|--config)
164 - _filedir
165 - return 0 ;;
166 - -o|--keymode)
167 - COMPREPLY=( $( compgen -W "$( shash --listkeygen | tail -n +2 )" \
168 - -- ${cur} ) )
169 - return ;;
170 - -a|--algorithm)
171 - COMPREPLY=( $( compgen -W "$( shash --list )" \
172 - -- ${cur} ) )
173 - return ;;
174 - *)
175 - ;;
176 - esac
177 -
178 - COMPREPLY=( $( compgen -W '-V -q -m -d -c -b -t -o -i -a -l -k -h -v \
179 - -L \
180 - --verbose --quiet --nosalt --time --hmac --doublecheck \
181 - --check --binary --text --keymode --config --algorithm \
182 - --list --key --listkeygen --help --version --license' \
183 - -- ${cur} ) )
184 - _filedir
185 - return 0
186 -} &&
187 -complete -F _shash ${filenames} shash
188 diff --git a/app-crypt/shash/metadata.xml b/app-crypt/shash/metadata.xml
189 deleted file mode 100644
190 index 3b9877f..0000000
191 --- a/app-crypt/shash/metadata.xml
192 +++ /dev/null
193 @@ -1,10 +0,0 @@
194 -<?xml version="1.0" encoding="UTF-8"?>
195 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
196 -<pkgmetadata>
197 - <maintainer type="person">
198 - <email>swegener@g.o</email>
199 - <name>Sven Wegener</name>
200 - <description>primary maintainer</description>
201 - </maintainer>
202 - <longdescription>shash is a command-line interface for libmhash and is used to generate or check digests or MACs of files.</longdescription>
203 -</pkgmetadata>
204 diff --git a/app-crypt/shash/shash-0.2.6-r99.ebuild b/app-crypt/shash/shash-0.2.6-r99.ebuild
205 deleted file mode 100644
206 index a2f9317..0000000
207 --- a/app-crypt/shash/shash-0.2.6-r99.ebuild
208 +++ /dev/null
209 @@ -1,35 +0,0 @@
210 -# Copyright 1999-2016 Gentoo Foundation
211 -# Distributed under the terms of the GNU General Public License v2
212 -# $Id$
213 -
214 -EAPI=5
215 -
216 -inherit bash-completion-r1 eutils
217 -
218 -DESCRIPTION="Generate or check digests or MACs of files"
219 -HOMEPAGE="http://mcrypt.hellug.gr/shash/"
220 -SRC_URI="ftp://mcrypt.hellug.gr/pub/mcrypt/${PN}/${P}.tar.gz"
221 -
222 -LICENSE="GPL-2"
223 -SLOT="0"
224 -KEYWORDS="amd64 arm ~mips ppc x86"
225 -IUSE="static"
226 -
227 -DEPEND=">=app-crypt/mhash-0.8.18-r1"
228 -RDEPEND="${DEPEND}"
229 -
230 -src_prepare() {
231 - epatch "${FILESDIR}"/${PV}-manpage-fixes.patch
232 - epatch "${FILESDIR}"/${P}-binary-files.patch
233 - epatch "${FILESDIR}"/${P}-missing-includes.patch
234 -}
235 -
236 -src_configure() {
237 - econf $(use_enable static static-link)
238 -}
239 -
240 -src_install() {
241 - emake install DESTDIR="${D}"
242 - dodoc AUTHORS ChangeLog INSTALL NEWS doc/sample.shashrc doc/FORMAT
243 - newbashcomp "${FILESDIR}"/shash.bash-completion ${PN}
244 -}
245 --
246 2.7.3

Replies

Subject Author
Re: [gentoo-musl] [PATCH] app-crypt/shash: in tree version works "Anthony G. Basile" <basile@××××××××××××××.edu>