diff options
author | garga <garga@FreeBSD.org> | 2005-09-26 21:54:04 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2005-09-26 21:54:04 +0800 |
commit | 344149518ed15ed6419acf8d8f63a32a7456a139 (patch) | |
tree | d0681586c0f4d8565fa3fa61c98e3251df4bd43e /security/tthsum | |
parent | c6e1881b1db85fc95c9889d56e5c9ba60a64c79d (diff) | |
download | freebsd-ports-gnome-344149518ed15ed6419acf8d8f63a32a7456a139.tar.gz freebsd-ports-gnome-344149518ed15ed6419acf8d8f63a32a7456a139.tar.zst freebsd-ports-gnome-344149518ed15ed6419acf8d8f63a32a7456a139.zip |
Add tthsum 1.1.0, a command-line utility for generating and checking TTH
message digests.
PR: ports/86555
Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Diffstat (limited to 'security/tthsum')
-rw-r--r-- | security/tthsum/Makefile | 38 | ||||
-rw-r--r-- | security/tthsum/distinfo | 2 | ||||
-rw-r--r-- | security/tthsum/files/patch-read.c | 15 | ||||
-rw-r--r-- | security/tthsum/files/patch-thex.c | 11 | ||||
-rw-r--r-- | security/tthsum/files/patch-utf8.c | 11 | ||||
-rw-r--r-- | security/tthsum/pkg-descr | 10 |
6 files changed, 87 insertions, 0 deletions
diff --git a/security/tthsum/Makefile b/security/tthsum/Makefile new file mode 100644 index 000000000000..0d222b7e9359 --- /dev/null +++ b/security/tthsum/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: tthsum +# Date created: 25 Sep 2005 +# Whom: Emanuel Haupt <ehaupt@critical.ch> +# +# $FreeBSD$ +# + +PORTNAME= tthsum +PORTVERSION= 1.1.0 +CATEGORIES= security +MASTER_SITES= http://wza.digitalbrains.com/source/tthsum/ + +MAINTAINER= ehaupt@critical.ch +COMMENT= A command-line utility for generating and checking TTH message digests + +USE_GMAKE= yes +USE_REINPLACE= yes + +MAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" + +PORTDOCS= Changelog.txt +PLIST_FILES= bin/tthsum +MAN1= tthsum.1 + +post-patch: + @${REINPLACE_CMD} -E '/^(CC|CFLAGS)/d' \ + ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/obj-${ARCH}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1 + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/security/tthsum/distinfo b/security/tthsum/distinfo new file mode 100644 index 000000000000..48f82ff2f09c --- /dev/null +++ b/security/tthsum/distinfo @@ -0,0 +1,2 @@ +MD5 (tthsum-1.1.0.tar.gz) = 40c01622446865e0bfea1586caf6aa32 +SIZE (tthsum-1.1.0.tar.gz) = 39917 diff --git a/security/tthsum/files/patch-read.c b/security/tthsum/files/patch-read.c new file mode 100644 index 000000000000..01fd33e2ce97 --- /dev/null +++ b/security/tthsum/files/patch-read.c @@ -0,0 +1,15 @@ +--- read.c.orig Tue Jun 28 02:50:50 2005 ++++ read.c Sun Sep 25 14:21:38 2005 +@@ -38,9 +38,11 @@ + #include <sys/stat.h> + #include <fcntl.h> + #include <limits.h> +-#include <malloc.h> ++#include <stdlib.h> + #include <string.h> + #include <stdio.h> ++ ++#define O_LARGEFILE 0 + + struct readmmap_data { + #ifdef _WIN32 diff --git a/security/tthsum/files/patch-thex.c b/security/tthsum/files/patch-thex.c new file mode 100644 index 000000000000..9106e167d994 --- /dev/null +++ b/security/tthsum/files/patch-thex.c @@ -0,0 +1,11 @@ +--- thex.c.orig Sun Sep 25 14:22:31 2005 ++++ thex.c Sun Sep 25 14:22:42 2005 +@@ -37,6 +37,8 @@ + #include <string.h> + #include <stdio.h> + ++#define O_LARGEFILE 0 ++ + int thex_tiger_root(const unsigned char* filename, uint64_t* res, + int use_mmap, unsigned progress_every_mib) { + int ret = 0; diff --git a/security/tthsum/files/patch-utf8.c b/security/tthsum/files/patch-utf8.c new file mode 100644 index 000000000000..e928daaefd33 --- /dev/null +++ b/security/tthsum/files/patch-utf8.c @@ -0,0 +1,11 @@ +--- utf8.c.orig Sun Sep 25 14:23:55 2005 ++++ utf8.c Sun Sep 25 14:24:06 2005 +@@ -24,7 +24,7 @@ + # define WINDOWS_LEAN_AND_MEAN + # include <windows.h> + #endif /* _WIN32 */ +-#include <malloc.h> ++#include <stdlib.h> + #include <string.h> + + /* diff --git a/security/tthsum/pkg-descr b/security/tthsum/pkg-descr new file mode 100644 index 000000000000..6664affde24f --- /dev/null +++ b/security/tthsum/pkg-descr @@ -0,0 +1,10 @@ +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. + +WWW: http://freshmeat.net/projects/tthsum/ |