pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/libmerkletree Initial import of libmerkletree...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4cb829540666
branches:  trunk
changeset: 631431:4cb829540666
user:      agc <agc%pkgsrc.org@localhost>
date:      Wed Mar 05 05:25:18 2014 +0000

description:
Initial import of libmerkletree-20140304 into the Packages Collection

        The libmerkletree library implements Merkle tree calculation, and also
        includes some higher-level functions to verify a file against a
        previously-generated Merkle tree.

        A Merkle tree is a hash tree calculated across blocks in data.  Any
        block size can be specified in this implementation.  A digest is
        calculated across each block in the data, and then a digest is
        calculated across blocks of the checksums, and this continues until
        only one block of digest exists.  The hierarchical nature of this
        allows individual blocks of a file to be verified, even if other parts
        of the file have been modified.  A degenerate case, in which the data
        is less than the blocksize, will mean that a single digest value for
        the block is calculated.  This will be the same as the digest
        algorithm applied to the whole file.

        The digest calculations themselves are done by the libmultigest(3)
        library, and allow concatenation of multiple digests to produce a
        single large digest value.

diffstat:

 security/libmerkletree/DESCR         |  18 ++++++++++++++++++
 security/libmerkletree/Makefile      |  35 +++++++++++++++++++++++++++++++++++
 security/libmerkletree/PLIST         |   4 ++++
 security/libmerkletree/buildlink3.mk |  13 +++++++++++++
 security/libmerkletree/distinfo      |   1 +
 5 files changed, 71 insertions(+), 0 deletions(-)

diffs (91 lines):

diff -r cab9d9df4e29 -r 4cb829540666 security/libmerkletree/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libmerkletree/DESCR      Wed Mar 05 05:25:18 2014 +0000
@@ -0,0 +1,18 @@
+The libmerkletree library implements Merkle tree calculation, and also
+includes some higher-level functions to verify a file against a
+previously-generated Merkle tree.
+
+A Merkle tree is a hash tree calculated across blocks in data.  Any
+block size can be specified in this implementation.  A digest is
+calculated across each block in the data, and then a digest is
+calculated across blocks of the checksums, and this continues until
+only one block of digest exists.  The hierarchical nature of this
+allows individual blocks of a file to be verified, even if other parts
+of the file have been modified.  A degenerate case, in which the data
+is less than the blocksize, will mean that a single digest value for
+the block is calculated.  This will be the same as the digest
+algorithm applied to the whole file.
+
+The digest calculations themselves are done by the libmultigest(3)
+library, and allow concatenation of multiple digests to produce a
+single large digest value.
diff -r cab9d9df4e29 -r 4cb829540666 security/libmerkletree/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libmerkletree/Makefile   Wed Mar 05 05:25:18 2014 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2014/03/05 05:25:18 agc Exp $
+
+DISTNAME=      libmerkletree-${VERSION}
+CATEGORIES=    security
+MASTER_SITES=  # empty
+DISTFILES=     # empty
+
+MAINTAINER=    agc%NetBSD.org@localhost
+HOMEPAGE=      http://www.NetBSD.org/
+COMMENT=       Calculate and verify Merkle tree digests
+LICENSE=       modified-bsd
+
+FILESDIR=      ${.CURDIR}/../../security/merkletree/files
+
+GNU_CONFIGURE= yes
+.if !defined(BOOTSTRAP)
+USE_LIBTOOL=   yes
+.endif
+AUTO_MKDIRS=   yes
+
+.include "../../mk/bsd.prefs.mk"
+
+VERSION!=      ${AWK} '/\#define.*MERKLETREE_H_/ {print $$3}' ${FILESDIR}/merkletree.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 "../../security/libmultigest/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r cab9d9df4e29 -r 4cb829540666 security/libmerkletree/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libmerkletree/PLIST      Wed Mar 05 05:25:18 2014 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2014/03/05 05:25:18 agc Exp $
+include/merkletree.h
+lib/libmerkletree.la
+man/man3/libmerkletree.3
diff -r cab9d9df4e29 -r 4cb829540666 security/libmerkletree/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libmerkletree/buildlink3.mk      Wed Mar 05 05:25:18 2014 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2014/03/05 05:25:18 agc Exp $
+
+BUILDLINK_TREE+=       libmerkletree
+
+.if !defined(LIBMERKLETREE_BUILDLINK3_MK)
+LIBMERKLETREE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libmerkletree+=  libmerkletree>=20140303
+BUILDLINK_PKGSRCDIR.libmerkletree?=    ../../security/libmerkletree
+
+.endif # LIBMERKLETREE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libmerkletree
diff -r cab9d9df4e29 -r 4cb829540666 security/libmerkletree/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libmerkletree/distinfo   Wed Mar 05 05:25:18 2014 +0000
@@ -0,0 +1,1 @@
+$NetBSD: distinfo,v 1.1.1.1 2014/03/05 05:25:18 agc Exp $



Home | Main Index | Thread Index | Old Index