summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2004-09-27 00:49:54 +0000
committerSven Wegener <swegener@gentoo.org>2004-09-27 00:49:54 +0000
commita75e02cb6f4e67c5240582311e87ba5ad4f94025 (patch)
treef076bff74db2e2cd7f151ab7485f19cf632a1ea1
parentmodutils damnit (diff)
downloadhistorical-a75e02cb6f4e67c5240582311e87ba5ad4f94025.tar.gz
historical-a75e02cb6f4e67c5240582311e87ba5ad4f94025.tar.bz2
historical-a75e02cb6f4e67c5240582311e87ba5ad4f94025.zip
Revision bump. Added support for bash-completion. Thanks to James Rowe <jnrowe@ukfsn.org> in bug #64493.
-rw-r--r--app-crypt/shash/ChangeLog9
-rw-r--r--app-crypt/shash/Manifest11
-rw-r--r--app-crypt/shash/files/digest-shash-0.2.6-r11
-rw-r--r--app-crypt/shash/files/shash.bash-completion41
-rw-r--r--app-crypt/shash/shash-0.2.6-r1.ebuild49
5 files changed, 106 insertions, 5 deletions
diff --git a/app-crypt/shash/ChangeLog b/app-crypt/shash/ChangeLog
index 3cc0d404d4f7..9c55b862276c 100644
--- a/app-crypt/shash/ChangeLog
+++ b/app-crypt/shash/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-crypt/shash
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/ChangeLog,v 1.5 2004/09/24 18:18:22 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/ChangeLog,v 1.6 2004/09/27 00:49:54 swegener Exp $
+
+*shash-0.2.6-r1 (27 Sep 2004)
+
+ 27 Sep 2004; Sven Wegener <swegener@gentoo.org>
+ +files/shash.bash-completion, +shash-0.2.6-r1.ebuild:
+ Revision bump. Added support for bash-completion. Thanks to James Rowe
+ <jnrowe@ukfsn.org> in bug #64493.
24 Sep 2004; Sven Wegener <swegener@gentoo.org>
+files/0.2.6-manpage-fixes.patch, shash-0.2.6.ebuild:
diff --git a/app-crypt/shash/Manifest b/app-crypt/shash/Manifest
index e50471ab8c93..13f58e1448cb 100644
--- a/app-crypt/shash/Manifest
+++ b/app-crypt/shash/Manifest
@@ -1,15 +1,18 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 de18a44e16c41b5c2025c59f7c63d244 ChangeLog 789
MD5 5aa9af147b815004b0cf0a2dfd88124a metadata.xml 445
+MD5 a96778fbc628abf6715dbe5613597940 shash-0.2.6-r1.ebuild 1236
MD5 5ce5611c08ee4449c1671fe0f357973b shash-0.2.6.ebuild 933
+MD5 4b83c40798f0741fcf95635fa5599574 ChangeLog 1036
MD5 d49dfbc3613b62886594562719104b4a files/digest-shash-0.2.6 63
MD5 6a686d232cbb0eeadba51ea32851c8a9 files/0.2.6-manpage-fixes.patch 1451
+MD5 1f217dc9a5042927a1cf690a44da380f files/shash.bash-completion 1003
+MD5 d49dfbc3613b62886594562719104b4a files/digest-shash-0.2.6-r1 63
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.9.10 (GNU/Linux)
-iD8DBQFBVGT2I1lqEGTUzyQRAtCyAKCP7DIN4nNviOsgZowHLAYnEeqRFQCgv6gF
-wdfI6zJYBlj6y3DsmVjCuvE=
-=hZg5
+iD8DBQFBV2O6I1lqEGTUzyQRAo//AKC6KLUdRD8+1k+PaUyw1e1E0wvCTQCeNLGk
+90vNGF+cZW4sT7lvwqjhiLs=
+=W1I3
-----END PGP SIGNATURE-----
diff --git a/app-crypt/shash/files/digest-shash-0.2.6-r1 b/app-crypt/shash/files/digest-shash-0.2.6-r1
new file mode 100644
index 000000000000..b1befd302513
--- /dev/null
+++ b/app-crypt/shash/files/digest-shash-0.2.6-r1
@@ -0,0 +1 @@
+MD5 8f38ec66b989fa38275f5170e15241b4 shash-0.2.6.tar.gz 105641
diff --git a/app-crypt/shash/files/shash.bash-completion b/app-crypt/shash/files/shash.bash-completion
new file mode 100644
index 000000000000..9f2212a002be
--- /dev/null
+++ b/app-crypt/shash/files/shash.bash-completion
@@ -0,0 +1,41 @@
+# Copyright 1999-2004 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.1 2004/09/27 00:49:54 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
+}
+
+[ -n "${have:-}" ] && complete -F _shash $filenames shash
diff --git a/app-crypt/shash/shash-0.2.6-r1.ebuild b/app-crypt/shash/shash-0.2.6-r1.ebuild
new file mode 100644
index 000000000000..1f8bd426cd9f
--- /dev/null
+++ b/app-crypt/shash/shash-0.2.6-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2004 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.1 2004/09/27 00:49:54 swegener Exp $
+
+inherit 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="~x86"
+IUSE="static"
+
+RDEPEND="virtual/libc
+ >=app-crypt/mhash-0.8.18-r1"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+ sys-devel/automake
+ sys-devel/autoconf
+ sys-apps/gawk"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/0.2.6-manpage-fixes.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
+ insinto /usr/share/bash-completion
+ newins ${FILESDIR}/shash.bash-completion ${PN}
+}
+
+pkg_postinst() {
+ einfo
+ einfo "To enable bash command-line completion for ${PN}, execute"
+ einfo "the following command as root:"
+ einfo " ln -s /usr/share/bash-completion/${PN} /etc/bash_completion.d/"
+ einfo
+}