Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Sep 2005 14:46:42 +0200 (CEST)
From:      Emanuel Haupt <ehaupt@critical.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/86555: new port: security/tthsum - A command-line utility for generating and checking TTH message digests 
Message-ID:  <200509251246.j8PCkg9P054876@beaver.critical.ch>
Resent-Message-ID: <200509251250.j8PCoHWF054916@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         86555
>Category:       ports
>Synopsis:       new port: security/tthsum - A command-line utility for generating and checking TTH message digests
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 25 12:50:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Emanuel Haupt
>Release:        FreeBSD 5.4-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD beaver.critical.ch 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Wed Jul 27 20:19:15 CEST 2005 root@beaver.critical.ch:/usr/obj/usr/src/RELENG_5_4/src/sys/BEAVER i386


	
>Description:
new port: security/tthsum - A command-line utility for generating and checking TTH message digests

Tthsum generates and checks TTH checksums (root of the THEX hash tree).

The Merkle Hash Tree is a hash construct that exhibits desirable properties for
verifying the integrity of files and file subranges in an incremental or
out-of-order fashion.

The tool uses the Tiger hash algorithm for both the internal and the leaf
nodes, and has an interface identical to md5sum.

>How-To-Repeat:
	
>Fix:

	



--- tthsum.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	tthsum
#	tthsum/Makefile
#	tthsum/pkg-descr
#	tthsum/distinfo
#	tthsum/files
#	tthsum/files/patch-read.c
#	tthsum/files/patch-thex.c
#	tthsum/files/patch-utf8.c
#
echo c - tthsum
mkdir -p tthsum > /dev/null 2>&1
echo x - tthsum/Makefile
sed 's/^X//' >tthsum/Makefile << 'END-of-tthsum/Makefile'
X# New ports collection makefile for:	tthsum
X# Date created:				25 Sep 2005
X# Whom:					Emanuel Haupt <ehaupt@critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	tthsum
XPORTVERSION=	1.1.0
XCATEGORIES=	security
XMASTER_SITES=	http://wza.digitalbrains.com/source/tthsum/
X
XMAINTAINER=	ehaupt@critical.ch
XCOMMENT=	A command-line utility for generating and checking TTH message digests
X
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
X
XMAKE_ENV=	CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
X
XPORTDOCS=	Changelog.txt
XPLIST_FILES=	bin/tthsum
XMAN1=		tthsum.1
X
Xpost-patch:
X	@${REINPLACE_CMD} -E '/^(CC|CFLAGS)/d' \
X		${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/obj-${ARCH}/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-tthsum/Makefile
echo x - tthsum/pkg-descr
sed 's/^X//' >tthsum/pkg-descr << 'END-of-tthsum/pkg-descr'
XTthsum generates and checks TTH checksums (root of the THEX hash tree).
X
XThe Merkle Hash Tree is a hash construct that exhibits desirable properties for
Xverifying the integrity of files and file subranges in an incremental or
Xout-of-order fashion.
X
XThe tool uses the Tiger hash algorithm for both the internal and the leaf
Xnodes, and has an interface identical to md5sum.
X
XWWW: http://freshmeat.net/projects/tthsum/
END-of-tthsum/pkg-descr
echo x - tthsum/distinfo
sed 's/^X//' >tthsum/distinfo << 'END-of-tthsum/distinfo'
XMD5 (tthsum-1.1.0.tar.gz) = 40c01622446865e0bfea1586caf6aa32
XSIZE (tthsum-1.1.0.tar.gz) = 39917
END-of-tthsum/distinfo
echo c - tthsum/files
mkdir -p tthsum/files > /dev/null 2>&1
echo x - tthsum/files/patch-read.c
sed 's/^X//' >tthsum/files/patch-read.c << 'END-of-tthsum/files/patch-read.c'
X--- read.c.orig	Tue Jun 28 02:50:50 2005
X+++ read.c	Sun Sep 25 14:21:38 2005
X@@ -38,9 +38,11 @@
X #include <sys/stat.h>
X #include <fcntl.h>
X #include <limits.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X #include <string.h>
X #include <stdio.h>
X+
X+#define O_LARGEFILE 0
X 
X struct readmmap_data {
X #ifdef _WIN32
END-of-tthsum/files/patch-read.c
echo x - tthsum/files/patch-thex.c
sed 's/^X//' >tthsum/files/patch-thex.c << 'END-of-tthsum/files/patch-thex.c'
X--- thex.c.orig	Sun Sep 25 14:22:31 2005
X+++ thex.c	Sun Sep 25 14:22:42 2005
X@@ -37,6 +37,8 @@
X #include <string.h>
X #include <stdio.h>
X 
X+#define O_LARGEFILE 0
X+
X int thex_tiger_root(const unsigned char* filename, uint64_t* res,
X 		int use_mmap, unsigned progress_every_mib) {
X 	int ret = 0;
END-of-tthsum/files/patch-thex.c
echo x - tthsum/files/patch-utf8.c
sed 's/^X//' >tthsum/files/patch-utf8.c << 'END-of-tthsum/files/patch-utf8.c'
X--- utf8.c.orig	Sun Sep 25 14:23:55 2005
X+++ utf8.c	Sun Sep 25 14:24:06 2005
X@@ -24,7 +24,7 @@
X #	define WINDOWS_LEAN_AND_MEAN
X #	include <windows.h>
X #endif /* _WIN32 */
X-#include <malloc.h>
X+#include <stdlib.h>
X #include <string.h>
X 
X /*
END-of-tthsum/files/patch-utf8.c
exit
--- tthsum.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509251246.j8PCkg9P054876>