From 8e216fe7fbf443a87c7447cce9463196a3b1c11d Mon Sep 17 00:00:00 2001 From: Olli Hauer Date: Mon, 1 Nov 2010 14:11:20 +0000 Subject: [PATCH] PR: 151607 Submitted by: Eitan Adler Approved by: glarkin (mentor, implicit) reversible hexdump is a hexdump/hex2bin-toolkit that dumps to a special readable and reversible hexadecimal byte-dump,where you can not only change bytes, but also insert or delete bytes. It has a flush-switch, where it will output hexbytes for each single char it reads. This is especially useful for watching output from slow devices (e.g., serial devices like mice). The hex2bin-utility (the reverse-hexdump) not only accepts hexbytes for input, but also double-quoted strings with most of the escape-chars known from C and makes good attempts at undumping even hexdumps with repetition-lines (a "*" on its own line). It's written in ANSI C. WWW: http://gnuwin32.sourceforge.net/packages/hextools.htm --- sysutils/Makefile | 1 + sysutils/hextools/Makefile | 33 +++++++++++++++++++++++++++++++++ sysutils/hextools/distinfo | 2 ++ sysutils/hextools/pkg-descr | 11 +++++++++++ 4 files changed, 47 insertions(+) create mode 100644 sysutils/hextools/Makefile create mode 100644 sysutils/hextools/distinfo create mode 100644 sysutils/hextools/pkg-descr diff --git a/sysutils/Makefile b/sysutils/Makefile index d819b0b21a75..b80318e7801a 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -357,6 +357,7 @@ SUBDIR += healthd SUBDIR += heartbeat SUBDIR += heirloom + SUBDIR += hextools SUBDIR += hidesvn SUBDIR += highlnk SUBDIR += hilite diff --git a/sysutils/hextools/Makefile b/sysutils/hextools/Makefile new file mode 100644 index 000000000000..dee17a3fa011 --- /dev/null +++ b/sysutils/hextools/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: hextools +# Date created: 19 Oct 2010 +# Whom: Eitan Adler +# +# $FreeBSD$ +# + +PORTNAME= hextools +PORTVERSION= 1.1 +CATEGORIES= sysutils +MASTER_SITES= http://avl.enemy.org/utils/hextools/ + +MAINTAINER= ports@eitanadler.com +COMMENT= Useful tools for dealing with hex files + +NO_WRKSUBDIR=yes + +MAN1= bin2hex.1 hex2bin.1 +PLIST_FILES= bin/hex2bin bin/bin2hex +ALL_TARGET= build + +#not strictly true - it uses a self-styled license +#LICENSE= BSD + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/hex2bin ${PREFIX}/bin/hex2bin + ${INSTALL_PROGRAM} ${WRKSRC}/hexdump ${PREFIX}/bin/bin2hex +.if !defined(NO_INSTALL_MANPAGES) + ${INSTALL_MAN} ${WRKSRC}/hex2bin.1 ${MANPREFIX}/man/man1/hex2bin.1 + ${INSTALL_MAN} ${WRKSRC}/hexdump.1 ${MANPREFIX}/man/man1/bin2hex.1 +.endif + +.include diff --git a/sysutils/hextools/distinfo b/sysutils/hextools/distinfo new file mode 100644 index 000000000000..3fc03bbc2e53 --- /dev/null +++ b/sysutils/hextools/distinfo @@ -0,0 +1,2 @@ +SHA256 (hextools-1.1.tar.gz) = f85c64dd2aedb1e924bc9ea11c90eaf8ea4eeef8167b00a7c34be22b3c21318b +SIZE (hextools-1.1.tar.gz) = 7640 diff --git a/sysutils/hextools/pkg-descr b/sysutils/hextools/pkg-descr new file mode 100644 index 000000000000..0a11d5754527 --- /dev/null +++ b/sysutils/hextools/pkg-descr @@ -0,0 +1,11 @@ +reversible hexdump is a hexdump/hex2bin-toolkit that dumps to a special +readable and reversible hexadecimal byte-dump,where you can not only change +bytes, but also insert or delete bytes. It has a flush-switch, where it will +output hexbytes for each single char it reads. This is especially useful for +watching output from slow devices (e.g., serial devices like mice). The +hex2bin-utility (the reverse-hexdump) not only accepts hexbytes for input, +but also double-quoted strings with most of the escape-chars known +from C and makes good attempts at undumping even hexdumps with repetition-lines +(a "*" on its own line). It's written in ANSI C. + +WWW: http://gnuwin32.sourceforge.net/packages/hextools.htm