pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc misc: Add hexd.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/08578244b47e
branches:  trunk
changeset: 408945:08578244b47e
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Jan 13 22:29:24 2020 +0000

description:
misc: Add hexd.

hexd prints a human-readable hexdump of the specified files, or standard
input if omitted. Its main distinguishing feature is the use of colours to
visually indicate which range of values an octet belongs to, aiding in
spotting patterns in binary data.

By default, hexd relies on 256-color SGR escape sequences. Most terminal
emulators should support these today, but technically they're only defacto
standard. However, you can override the formatting used with the HEXD_COLORS
environment variable (see manpage), or use the -p option for plaintext
output.

diffstat:

 misc/Makefile      |   3 ++-
 misc/hexd/DESCR    |  10 ++++++++++
 misc/hexd/Makefile |  23 +++++++++++++++++++++++
 misc/hexd/PLIST    |   3 +++
 misc/hexd/distinfo |   6 ++++++
 5 files changed, 44 insertions(+), 1 deletions(-)

diffs (75 lines):

diff -r 600c16a31a91 -r 08578244b47e misc/Makefile
--- a/misc/Makefile     Mon Jan 13 22:08:33 2020 +0000
+++ b/misc/Makefile     Mon Jan 13 22:29:24 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.529 2020/01/08 20:04:27 adam Exp $
+# $NetBSD: Makefile,v 1.530 2020/01/13 22:29:24 nia Exp $
 #
 
 COMMENT=       Miscellaneous utilities
@@ -105,6 +105,7 @@
 SUBDIR+=       heirloom-sum
 SUBDIR+=       heirloom-tcopy
 SUBDIR+=       heirloom-time
+SUBDIR+=       hexd
 SUBDIR+=       heyu
 SUBDIR+=       howm
 SUBDIR+=       hs-extra
diff -r 600c16a31a91 -r 08578244b47e misc/hexd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hexd/DESCR   Mon Jan 13 22:29:24 2020 +0000
@@ -0,0 +1,10 @@
+hexd prints a human-readable hexdump of the specified files, or standard
+input if omitted. Its main distinguishing feature is the use of colours to
+visually indicate which range of values an octet belongs to, aiding in
+spotting patterns in binary data.
+
+By default, hexd relies on 256-color SGR escape sequences. Most terminal
+emulators should support these today, but technically they're only defacto
+standard. However, you can override the formatting used with the HEXD_COLORS
+environment variable (see manpage), or use the -p option for plaintext
+output.
diff -r 600c16a31a91 -r 08578244b47e misc/hexd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hexd/Makefile        Mon Jan 13 22:29:24 2020 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/01/13 22:29:24 nia Exp $
+
+DISTNAME=      hexd-1.0.0
+CATEGORIES=    misc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=FireyFly/}
+GITHUB_PROJECT=        hexd
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/FireyFly/hexd
+COMMENT=       Colourful, human-friendly hexdump tool for reverse engineering
+LICENSE=       mit
+
+USE_TOOLS+=    gmake
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/hexd ${DESTDIR}${PREFIX}/bin/hexd
+       ${INSTALL_DATA} ${WRKSRC}/hexd.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/hexd.1
+
+.include "../../mk/bsd.pkg.mk"
diff -r 600c16a31a91 -r 08578244b47e misc/hexd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hexd/PLIST   Mon Jan 13 22:29:24 2020 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/13 22:29:24 nia Exp $
+bin/hexd
+man/man1/hexd.1
diff -r 600c16a31a91 -r 08578244b47e misc/hexd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/hexd/distinfo        Mon Jan 13 22:29:24 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/01/13 22:29:24 nia Exp $
+
+SHA1 (hexd-1.0.0.tar.gz) = b107924314bb471d61747cb397bf5697f7cfa7ff
+RMD160 (hexd-1.0.0.tar.gz) = e5bcff104da734592731b7cc1075fe93588c4714
+SHA512 (hexd-1.0.0.tar.gz) = 4d6a915fef732258538327ac519c7d8fb0844b5b05f6ae264a0a313d382646f87b3fe6227df2b201fbcc7aa26695279dee16c1b4d2176cbb9ed161c97457d071
+Size (hexd-1.0.0.tar.gz) = 27426 bytes



Home | Main Index | Thread Index | Old Index