Fri Apr 18 21:21:30 2014 UTC ()
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.


(wiz)
diff -r0 -r1.1 pkgsrc/misc/rhash/DESCR
diff -r0 -r1.1 pkgsrc/misc/rhash/Makefile
diff -r0 -r1.1 pkgsrc/misc/rhash/PLIST
diff -r0 -r1.1 pkgsrc/misc/rhash/buildlink3.mk
diff -r0 -r1.1 pkgsrc/misc/rhash/distinfo

File Added: pkgsrc/misc/rhash/DESCR
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.

File Added: pkgsrc/misc/rhash/Makefile
# $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"

File Added: pkgsrc/misc/rhash/PLIST
@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

File Added: pkgsrc/misc/rhash/buildlink3.mk
# $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

File Added: pkgsrc/misc/rhash/distinfo
$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