Gentoo Archives: gentoo-musl

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