summaryrefslogtreecommitdiff
path: root/misc/hexd
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-01-13 22:29:24 +0000
committernia <nia@pkgsrc.org>2020-01-13 22:29:24 +0000
commit9c473815c8a43d99958296ed056cb9fe6ba44cd8 (patch)
tree5c9cdbf13ecddb26bbf584d1fdaa82fbbdb4ded2 /misc/hexd
parentb6502bf593b1798b1aabedb79e643f1c2da39a75 (diff)
downloadpkgsrc-9c473815c8a43d99958296ed056cb9fe6ba44cd8.tar.gz
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 (limited to 'misc/hexd')
-rw-r--r--misc/hexd/DESCR10
-rw-r--r--misc/hexd/Makefile23
-rw-r--r--misc/hexd/PLIST3
-rw-r--r--misc/hexd/distinfo6
4 files changed, 42 insertions, 0 deletions
diff --git a/misc/hexd/DESCR b/misc/hexd/DESCR
new file mode 100644
index 00000000000..7f54508736a
--- /dev/null
+++ b/misc/hexd/DESCR
@@ -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 --git a/misc/hexd/Makefile b/misc/hexd/Makefile
new file mode 100644
index 00000000000..0bbb4e47db5
--- /dev/null
+++ b/misc/hexd/Makefile
@@ -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
+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 --git a/misc/hexd/PLIST b/misc/hexd/PLIST
new file mode 100644
index 00000000000..0415ff2c764
--- /dev/null
+++ b/misc/hexd/PLIST
@@ -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 --git a/misc/hexd/distinfo b/misc/hexd/distinfo
new file mode 100644
index 00000000000..cc3bdbd2433
--- /dev/null
+++ b/misc/hexd/distinfo
@@ -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