diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-06-11 18:16:08 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-06-11 18:16:08 -0400 |
commit | 8eddda8072add075ebf56cf6d288bc1450d6b5f8 (patch) | |
tree | 373e2d36142a298a821f6643c097007aa38aa29f /app-crypt | |
download | musl-8eddda8072add075ebf56cf6d288bc1450d6b5f8.tar.gz musl-8eddda8072add075ebf56cf6d288bc1450d6b5f8.tar.bz2 musl-8eddda8072add075ebf56cf6d288bc1450d6b5f8.zip |
Initial migration from hardened-dev::musl
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/shash/Manifest | 7 | ||||
-rw-r--r-- | app-crypt/shash/files/0.2.6-manpage-fixes.patch | 30 | ||||
-rw-r--r-- | app-crypt/shash/files/shash-0.2.6-binary-files.patch | 34 | ||||
-rw-r--r-- | app-crypt/shash/files/shash-0.2.6-missing-includes.patch | 27 | ||||
-rw-r--r-- | app-crypt/shash/files/shash.bash-completion | 40 | ||||
-rw-r--r-- | app-crypt/shash/metadata.xml | 10 | ||||
-rw-r--r-- | app-crypt/shash/shash-0.2.6-r99.ebuild | 37 |
7 files changed, 185 insertions, 0 deletions
diff --git a/app-crypt/shash/Manifest b/app-crypt/shash/Manifest new file mode 100644 index 00000000..ca2d4a3b --- /dev/null +++ b/app-crypt/shash/Manifest @@ -0,0 +1,7 @@ +AUX 0.2.6-manpage-fixes.patch 1451 SHA256 12619eaba8cfd99917658139306fb8c0ff087f10ce05bd285aa3c8e66f88e317 SHA512 10dbcfa52a7df57ef68dc58f21e1b2931adf0479697e13f99c56ccfbbd1c79188751d1ce7e2b160261170a678a4130a71a6b531820aa59e4ddbd131d5d9cb551 WHIRLPOOL 11b4d1aaf6feae4dd00d7abfbe704fcb8ba665d0de46de724098fa57b60960060c6df7661c9e3735c9ccd5865ab6c66cad3527395fec4279822e114dc59ab92d +AUX shash-0.2.6-binary-files.patch 898 SHA256 e06660afe1afb338bf4f209d39ac33c412ecc6fb22feec684c0a7b5fd80f46a6 SHA512 47f299097b8a9907ccfe2f877c42ab8f76f02546211643573796b378d67dd7941518341f8fd07e646c1aa11a665ddbca6ae113a4d58f6995007d9b5aec171d8b WHIRLPOOL 0bbe198601dd7b1ce55719936d8670975505b9b31baa68f0663d25c9988026587b8bc1dcfb18d188b598298715f57716c334b875ac6ff5075ff3a79dc121e7f9 +AUX shash-0.2.6-missing-includes.patch 483 SHA256 c00017237b6f6176424f9738ec7d97ecdde8994916aaa62d0138d7901cc1131d SHA512 3adf22d3a886d703a51d614f1106f20bf3f7b068e416317ba5cbd4def91f60b31a6737c11d7f44a44c48e1a713df4b2074b3ad68653be5dd117486148fbab81e WHIRLPOOL 1932da3b2905b6405d5bfa5dfea878a584f01b2e9b41859b8adf559987e9a822f0075822744f7c23b9f57f7228cc8f3931e4e02c3c17637b436c8ec2ea41b239 +AUX shash.bash-completion 993 SHA256 5f3d0bb5a202ba3365c81945ec2f0318893f1f372f11c8b4d7bc524888d8d228 SHA512 6b646fc5de7bc8279d49541f7375f6212e314fef3c9bc2a992d38e0b78031d9476ae396bdd527f39380bdb0342c8d27e46e4a01e3c1f5877c3fbd8ad49346393 WHIRLPOOL 5e693b82a794a482365797d1f72adca00015a5302b6b12da0ab91dd06bc15357eee9942766c000278af6b5574f3f5f564cba1d37189b0c0571615f796912286c +DIST shash-0.2.6.tar.gz 105641 SHA256 6abf13eb1c3b4b6ef0f07e5425d10ed2abaad1d08c327647feb3506e76ced9dc SHA512 340a59bd16b3e5069a076b56f8fe24d2306a6ddd5e6ad564c5e17a992d8e279a7109ba39bd5caa8438a0e85b4f94cb0878228f7aefe38221ff6efa80df64086b WHIRLPOOL 8b809f5fddc98def54907fee8af424937c747f341dd0eaa6fd0c1057858c4dce7d117dfbc729cdd951c53e68a363d3339e9db4e2de1677620bbb9a94a810e8a5 +EBUILD shash-0.2.6-r99.ebuild 1044 SHA256 7a21c9fcf8d17d37b6b1b4b6384cfb6056dd48559695da3987db1b10e73ebb6d SHA512 de04a45b2d33020db9edbe1b0048e805feebfba65ce3bea053006fcf9b89acea6baf1c4bf392386123c9fda6704c6952c75174dd41608bee6fa9cf7c087b2175 WHIRLPOOL 03f2a69d8a97350bbdbf0a52f6e0f71c269dded1d0144ec85dd5eebfa8d13d3e9281c08e76dee76e1a77e321357a5bcc0434a167f8f73e1cad9769c70ef992e1 +MISC metadata.xml 423 SHA256 c700cda1fdc97248759b263259be6f558ebaaca339417f227bce282e1bfaf0f0 SHA512 24491d06bd39df6f4ad1d85a121f2a62b65db3a1b12db01ad9f390c752a8663483828dbd467d6eea8f8d585c2acd621c91d4a6c75b073cf9ae57fe72c0bb3b92 WHIRLPOOL f59da151f4f0f459f69004df56da565079a31ed08b2833fea10cd66a431a4cf0f45a5664622751ba8d801c45c900a498d34876c5fcb270f8ff53cf6a01a5ad42 diff --git a/app-crypt/shash/files/0.2.6-manpage-fixes.patch b/app-crypt/shash/files/0.2.6-manpage-fixes.patch new file mode 100644 index 00000000..0376e15c --- /dev/null +++ b/app-crypt/shash/files/0.2.6-manpage-fixes.patch @@ -0,0 +1,30 @@ +diff -pruN shash-0.2.6/doc/shash.1 shash-0.2.6-r1/doc/shash.1 +--- shash-0.2.6/doc/shash.1 2004-09-18 09:51:04.004647112 +0100 ++++ shash-0.2.6-r1/doc/shash.1 2004-09-18 09:57:26.062565480 +0100 +@@ -31,7 +31,7 @@ Because of this shash also supports HMAC + a mechanism for message authentication using cryptographic hash functions. + So shash can use a key with a hash algorithm to produce hashes that can only + be verified with the key. This way you can securely check (i.e. you are sure +-that nobody can modify the mac, without beeing detected) ++that nobody can modify the mac, without being detected) + if files in a filesystem were altered. + + If the list of files and digests, that shash produces, is stored as +@@ -72,7 +72,7 @@ Suppress some not critical warnings. + .TP + .B \-b + Use binary mode. In unix environment, only difference between this and +-the normal mode is an asterix preceding the filename in the output. ++the normal mode is an asterisk preceding the filename in the output. + .TP + .B \-c + Check the checksum of all files listed in +@@ -94,7 +94,7 @@ Enter the keyword via the command line. + keyword instead of prompting for it. Keep in mind that someone + may see the command you are executing and so your key. + .TP +-.B \-c --config FILE ++.B \-i --config FILE + Use the specified configuration file. The default is .shashrc + in your home directory. The format of the configuration + file is the same as the parameters. An example file is: 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 new file mode 100644 index 00000000..1eb0cba1 --- /dev/null +++ b/app-crypt/shash/files/shash-0.2.6-binary-files.patch @@ -0,0 +1,34 @@ +--- shash-0.2.6/src/shash.c ++++ shash-0.2.6/src/shash.c +@@ -631,11 +631,11 @@ + + if (nosalt == FALSE && hmac == 1) { + if (sscanf +- (linebuf, "%s %s %s\n", hexbuffer, buffer, +- buffer2) < 2) { ++ (linebuf, "%s %s *%s\n", hexbuffer, buffer, ++ buffer2) != 3) { + if (sscanf +- (linebuf, "%s %s *%s\n", hexbuffer, +- buffer, buffer2) < 2) ++ (linebuf, "%s %s %s\n", hexbuffer, ++ buffer, buffer2) != 3) + continue; + } + +@@ -648,11 +648,11 @@ + key = pass2key(algorithm, keymode_buffer, &keylen, password, plen); + + } else { +- if (sscanf(linebuf, "%s %s\n", buffer, buffer2) == +- 0) { ++ if (sscanf(linebuf, "%s *%s\n", buffer, buffer2) != ++ 2) { + if (sscanf +- (linebuf, "%s *%s\n", buffer, +- buffer2) == 0) ++ (linebuf, "%s %s\n", buffer, ++ buffer2) != 2) + continue; + } + 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 new file mode 100644 index 00000000..1d579341 --- /dev/null +++ b/app-crypt/shash/files/shash-0.2.6-missing-includes.patch @@ -0,0 +1,27 @@ +--- a/shash-0.2.6/src/errors.c ++++ b/shash-0.2.6/src/errors.c +@@ -1,4 +1,5 @@ + #include <defines.h> ++#include <stdio.h> + + extern int quiet; + +--- a/shash-0.2.6/src/random.c ++++ b/shash-0.2.6/src/random.c +@@ -18,6 +18,8 @@ + #define DEFINES_H + #include <defines.h> + #endif ++#include <stdlib.h> ++#include <stdio.h> + + #ifdef HAVE_DEV_RANDOM + +--- a/shash-0.2.6/src/extra.c ++++ b/shash-0.2.6/src/extra.c +@@ -1,4 +1,5 @@ + #include <defines.h> ++#include <strings.h> + + #ifdef HAVE_STAT + diff --git a/app-crypt/shash/files/shash.bash-completion b/app-crypt/shash/files/shash.bash-completion new file mode 100644 index 00000000..d57701fc --- /dev/null +++ b/app-crypt/shash/files/shash.bash-completion @@ -0,0 +1,40 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/files/shash.bash-completion,v 1.2 2006/10/13 15:00:13 swegener Exp $ +# +# shash(1) completion. + +have shash && +_shash() { + local cur prev + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + + case "${prev}" in + -c|--config) + _filedir + return 0 ;; + -o|--keymode) + COMPREPLY=( $( compgen -W "$( shash --listkeygen | tail -n +2 )" \ + -- ${cur} ) ) + return ;; + -a|--algorithm) + COMPREPLY=( $( compgen -W "$( shash --list )" \ + -- ${cur} ) ) + return ;; + *) + ;; + esac + + COMPREPLY=( $( compgen -W '-V -q -m -d -c -b -t -o -i -a -l -k -h -v \ + -L \ + --verbose --quiet --nosalt --time --hmac --doublecheck \ + --check --binary --text --keymode --config --algorithm \ + --list --key --listkeygen --help --version --license' \ + -- ${cur} ) ) + _filedir + return 0 +} && +complete -F _shash ${filenames} shash diff --git a/app-crypt/shash/metadata.xml b/app-crypt/shash/metadata.xml new file mode 100644 index 00000000..c6d43950 --- /dev/null +++ b/app-crypt/shash/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>swegener@gentoo.org</email> + <name>Sven Wegener</name> + <description>primary maintainer</description> + </maintainer> + <longdescription>shash is a command-line interface for libmhash and is used to generate or check digests or MACs of files.</longdescription> +</pkgmetadata> diff --git a/app-crypt/shash/shash-0.2.6-r99.ebuild b/app-crypt/shash/shash-0.2.6-r99.ebuild new file mode 100644 index 00000000..97cd443d --- /dev/null +++ b/app-crypt/shash/shash-0.2.6-r99.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/shash-0.2.6-r1.ebuild,v 1.25 2014/01/18 05:39:58 vapier Exp $ + +inherit bash-completion eutils + +DESCRIPTION="Generate or check digests or MACs of files" +HOMEPAGE="http://mcrypt.hellug.gr/shash/" +SRC_URI="ftp://mcrypt.hellug.gr/pub/mcrypt/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ~mips ppc x86" +IUSE="static" + +DEPEND=">=app-crypt/mhash-0.8.18-r1" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PV}-manpage-fixes.patch + epatch "${FILESDIR}"/${P}-binary-files.patch + epatch "${FILESDIR}"/${P}-missing-includes.patch +} + +src_compile() { + econf $(use_enable static static-link) || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make install DESTDIR="${D}" || die "install failed" + dodoc AUTHORS ChangeLog INSTALL NEWS doc/sample.shashrc doc/FORMAT + dobashcompletion "${FILESDIR}"/shash.bash-completion ${PN} +} |