Import libmultigest-20140304 into the packages collection

libmultigest is a library interface to calculate multiple digests at
	the same time, without having to re-scan data.  This is to protect
	against any single digest algorithm being found to have second
	pre-images.  Up to 32 digests can be specified on the command line.

	The data being used as input to the digest can be modified by using a
	regular expression-based substitution operation, so that any Version
	Control System identifiers can be normalised before being digested.
	If no substitution regular expression is provided, the input data will
	be used as-is.

	The list of digests provided is:

		BLAKE2, CRC32C, MD5, RMD160, SHA1, SHA256, SHA512,
		SHA3-224, SHA3-256, SHA3-384, SHA3-512, SIZE,
		TIGER, TIGER2, WHIRLPOOL
This commit is contained in:
agc 2014-03-05 05:14:42 +00:00
parent ebc9b38997
commit fd52e7dac1
5 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,16 @@
libmultigest is a library interface to calculate multiple digests at
the same time, without having to re-scan data. This is to protect
against any single digest algorithm being found to have second
pre-images. Up to 32 digests can be specified on the command line.
The data being used as input to the digest can be modified by using a
regular expression-based substitution operation, so that any Version
Control System identifiers can be normalised before being digested.
If no substitution regular expression is provided, the input data will
be used as-is.
The list of digests provided is:
BLAKE2, CRC32C, MD5, RMD160, SHA1, SHA256, SHA512,
SHA3-224, SHA3-256, SHA3-384, SHA3-512, SIZE,
TIGER, TIGER2, WHIRLPOOL

View file

@ -0,0 +1,33 @@
# $NetBSD: Makefile,v 1.1.1.1 2014/03/05 05:14:42 agc Exp $
DISTNAME= libmultigest-${VERSION}
CATEGORIES= security
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= agc@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/
COMMENT= Multiple, concatenated digest value calculation library
LICENSE= modified-bsd
FILESDIR= ${.CURDIR}/../../security/multigest/files
GNU_CONFIGURE= yes
.if !defined(BOOTSTRAP)
USE_LIBTOOL= yes
.endif
AUTO_MKDIRS= yes
.include "../../mk/bsd.prefs.mk"
VERSION!= ${AWK} '/\#define.*MULTIGEST_H_/ {print $$3}' ${FILESDIR}/multigest.h
do-extract:
${CP} -R ${FILESDIR} ${WRKSRC}
.if defined(BOOTSTRAP)
cd ${WRKSRC} && ${CP} Makefile.lib.in Makefile.in
.else
cd ${WRKSRC} && ${CP} Makefile.libtool.in Makefile.in
.endif
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2014/03/05 05:14:42 agc Exp $
include/multigest.h
lib/libmultigest.la
man/man3/libmultigest.3

View file

@ -0,0 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2014/03/05 05:14:42 agc Exp $
BUILDLINK_TREE+= libmultigest
.if !defined(LIBMULTIGEST_BUILDLINK3_MK)
LIBMULTIGEST_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libmultigest+= libmultigest>=20140304
BUILDLINK_PKGSRCDIR.libmultigest?= ../../security/libmultigest
.endif # LIBMULTIGEST_BUILDLINK3_MK
BUILDLINK_TREE+= -libmultigest

View file

@ -0,0 +1 @@
$NetBSD: distinfo,v 1.1.1.1 2014/03/05 05:14:42 agc Exp $