summaryrefslogtreecommitdiff
path: root/misc/rhash
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-04-18 21:21:30 +0000
committerwiz <wiz@pkgsrc.org>2014-04-18 21:21:30 +0000
commit647be417d838c9d48bcb730a48b773c175da56c7 (patch)
treebafa4a8676e4531d4f63c9de0eb5d8958d7691a5 /misc/rhash
parent0254ad1b71cfd05e0969ef40f2299facf47034af (diff)
downloadpkgsrc-647be417d838c9d48bcb730a48b773c175da56c7.tar.gz
Import rhash-1.3.1 as misc/rhash.
RHash is a console utility for calculation and verification of magnet links and a wide range of hash sums like CRC32, MD4, MD5, SHA1, SHA256, SHA512, SHA3, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru. Hash sums are used to ensure and verify integrity of large volumes of data for a long-term storing or transferring.
Diffstat (limited to 'misc/rhash')
-rw-r--r--misc/rhash/DESCR8
-rw-r--r--misc/rhash/Makefile26
-rw-r--r--misc/rhash/PLIST7
-rw-r--r--misc/rhash/buildlink3.mk14
-rw-r--r--misc/rhash/distinfo5
5 files changed, 60 insertions, 0 deletions
diff --git a/misc/rhash/DESCR b/misc/rhash/DESCR
new file mode 100644
index 00000000000..5b2b68cb261
--- /dev/null
+++ b/misc/rhash/DESCR
@@ -0,0 +1,8 @@
+RHash is a console utility for calculation and verification of
+magnet links and a wide range of hash sums like CRC32, MD4, MD5,
+SHA1, SHA256, SHA512, SHA3, AICH, ED2K, Tiger, DC++ TTH, BitTorrent
+BTIH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and
+Snefru.
+
+Hash sums are used to ensure and verify integrity of large volumes
+of data for a long-term storing or transferring.
diff --git a/misc/rhash/Makefile b/misc/rhash/Makefile
new file mode 100644
index 00000000000..fea31db9fc4
--- /dev/null
+++ b/misc/rhash/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2014/04/18 21:21:30 wiz Exp $
+
+DISTNAME= rhash-1.3.1
+CATEGORIES= security
+MASTER_SITES= -https://github.com/rhash/RHash/archive/v1.3.1.tar.gz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/rhash/RHash
+COMMENT= Calculate/check CRC32, MD5, SHA1, GOST, TTH, BTIH or other hash sums
+LICENSE= mit
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S/rh/RH/}
+INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man1 share/examples/rhash
+
+CONF_FILES+= ${PREFIX}/share/examples/rhash/rhashrc ${PKG_SYSCONFDIR}/rhashrc
+
+do-install:
+ cd ${WRKSRC} && \
+ ${INSTALL_PROGRAM} rhash ${DESTDIR}${PREFIX}/bin && \
+ ${INSTALL_LIB} librhash/librhash.a ${DESTDIR}${PREFIX}/lib && \
+ ${INSTALL_DATA} librhash/rhash.h librhash/rhash_timing.h ${DESTDIR}${PREFIX}/include && \
+ ${INSTALL_DATA} dist/rhash.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && \
+ ${INSTALL_DATA} dist/rhashrc.sample ${DESTDIR}${PREFIX}/share/examples/rhash/rhashrc
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/rhash/PLIST b/misc/rhash/PLIST
new file mode 100644
index 00000000000..a250363970e
--- /dev/null
+++ b/misc/rhash/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2014/04/18 21:21:30 wiz Exp $
+bin/rhash
+include/rhash.h
+include/rhash_timing.h
+lib/librhash.a
+man/man1/rhash.1
+share/examples/rhash/rhashrc
diff --git a/misc/rhash/buildlink3.mk b/misc/rhash/buildlink3.mk
new file mode 100644
index 00000000000..05366cc4219
--- /dev/null
+++ b/misc/rhash/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/04/18 21:21:30 wiz Exp $
+
+BUILDLINK_TREE+= rhash
+
+.if !defined(RHASH_BUILDLINK3_MK)
+RHASH_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.rhash+= rhash>=1.3.1
+BUILDLINK_PKGSRCDIR.rhash?= ../../misc/rhash
+
+BUILDLINK_DEPMETHOD.rhash?= build
+.endif # RHASH_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -rhash
diff --git a/misc/rhash/distinfo b/misc/rhash/distinfo
new file mode 100644
index 00000000000..edb332be19e
--- /dev/null
+++ b/misc/rhash/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/04/18 21:21:30 wiz Exp $
+
+SHA1 (rhash-1.3.1.tar.gz) = 2482c9d33b0f7f3d145f5df751d82a81f4a7540e
+RMD160 (rhash-1.3.1.tar.gz) = ea2058949e0f45e2a91f6bc69dc4ce9c377217cc
+Size (rhash-1.3.1.tar.gz) = 298576 bytes