From owner-dev-commits-ports-all@freebsd.org Thu Jun 10 08:15:32 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 273136453ED; Thu, 10 Jun 2021 08:15:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G0xcM68fnz3QCs; Thu, 10 Jun 2021 08:15:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B79FE3CE8; Thu, 10 Jun 2021 08:15:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15A8FVSf025759; Thu, 10 Jun 2021 08:15:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15A8FVPd025758; Thu, 10 Jun 2021 08:15:31 GMT (envelope-from git) Date: Thu, 10 Jun 2021 08:15:31 GMT Message-Id: <202106100815.15A8FVPd025758@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: e62f347f9cdb - main - editors/rehex: new port had been added (+) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e62f347f9cdbde90ebff1a6aa3e4e03729a52683 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2021 08:15:32 -0000 The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=e62f347f9cdbde90ebff1a6aa3e4e03729a52683 commit e62f347f9cdbde90ebff1a6aa3e4e03729a52683 Author: Alexey Dokuchaev AuthorDate: 2021-06-10 08:12:06 +0000 Commit: Alexey Dokuchaev CommitDate: 2021-06-10 08:13:35 +0000 editors/rehex: new port had been added (+) Cross-platform (wxWidgets-based) hexadecimal editor for reverse engineering, and everything else. WWW: https://github.com/solemnwarning/rehex --- editors/Makefile | 1 + editors/rehex/Makefile | 34 ++++++++++++++++++++++++++++++++++ editors/rehex/distinfo | 3 +++ editors/rehex/files/patch-Makefile | 27 +++++++++++++++++++++++++++ editors/rehex/pkg-descr | 12 ++++++++++++ editors/rehex/pkg-plist | 19 +++++++++++++++++++ 6 files changed, 96 insertions(+) diff --git a/editors/Makefile b/editors/Makefile index 3fc79db50910..e4515c8dd82b 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -222,6 +222,7 @@ SUBDIR += py-editorconfig SUBDIR += py-pynvim SUBDIR += quilter + SUBDIR += rehex SUBDIR += rubygem-neovim SUBDIR += scite SUBDIR += se diff --git a/editors/rehex/Makefile b/editors/rehex/Makefile new file mode 100644 index 000000000000..a3d31681b63e --- /dev/null +++ b/editors/rehex/Makefile @@ -0,0 +1,34 @@ +# Created by: Alexey Dokuchaev + +PORTNAME= rehex +PORTVERSION= 0.3.91 +CATEGORIES= editors + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Hex editor for reverse engineering + +LICENSE= GPLv2 + +LIB_DEPENDS= libcapstone.so:devel/capstone4 \ + libjansson.so:devel/jansson + +USES= compiler:c++11-lang gmake lua:53 pkgconfig +USE_WX= 3.0+ +MAKE_ENV= LUA_PKG="lua-${LUA_VER}" LUA="${LUA_CMD}" +INSTALLS_ICONS= yes +USE_GITHUB= yes +GH_ACCOUNT= solemnwarning + +PORTDOCS= CHANGES.txt + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's,OpenBSD,${OPSYS},' \ + ${WRKSRC}/include/portable_endian.h + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/editors/rehex/distinfo b/editors/rehex/distinfo new file mode 100644 index 000000000000..b898e4fa34b9 --- /dev/null +++ b/editors/rehex/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1620046647 +SHA256 (solemnwarning-rehex-0.3.91_GH0.tar.gz) = 014a44ae5e5fc71d025fcab71392d8d2c50afc25f0d7eb6a9f87e14772b9c6ca +SIZE (solemnwarning-rehex-0.3.91_GH0.tar.gz) = 3292919 diff --git a/editors/rehex/files/patch-Makefile b/editors/rehex/files/patch-Makefile new file mode 100644 index 000000000000..91c4fea5fd06 --- /dev/null +++ b/editors/rehex/files/patch-Makefile @@ -0,0 +1,27 @@ +--- Makefile.orig 2021-05-03 12:57:27 UTC ++++ Makefile +@@ -388,18 +388,20 @@ PLUGINS_INSTALL := \ + + .PHONY: install + install: $(EXE) +- install -D -m 0755 $(EXE) $(DESTDIR)$(bindir)/$(EXE) ++ $(BSD_INSTALL_PROGRAM) $(EXE) $(DESTDIR)$(bindir)/$(EXE) + + for s in 16 32 48 64 128 256 512; \ + do \ +- install -D -m 0644 res/icon$${s}.png $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps/rehex.png; \ ++ mkdir -p $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps; \ ++ $(BSD_INSTALL_DATA) res/icon$${s}.png $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps/rehex.png; \ + done + +- install -D -m 0644 res/rehex.desktop $(DESTDIR)$(datarootdir)/applications/rehex.desktop ++ $(BSD_INSTALL_DATA) res/rehex.desktop $(DESTDIR)$(datarootdir)/applications/rehex.desktop + ++ mkdir -p $(DESTDIR)$(libdir)/rehex/exe + for f in $(PLUGINS_INSTALL); \ + do \ +- install -D -m 0644 plugins/$${f} $(DESTDIR)$(libdir)/rehex/$${f}; \ ++ $(BSD_INSTALL_DATA) plugins/$${f} $(DESTDIR)$(libdir)/rehex/$${f}; \ + done + + .PHONY: uninstall diff --git a/editors/rehex/pkg-descr b/editors/rehex/pkg-descr new file mode 100644 index 000000000000..88733db045a5 --- /dev/null +++ b/editors/rehex/pkg-descr @@ -0,0 +1,12 @@ +This is cross-platform (wxWidgets-based) hexadecimal editor for reverse +engineering, and everything else. It features: + + - Large (1TB+) file support + - Decoding of integer/floating point value types + - Inline disassembly of machine code + - Highlighting and annotation of ranges of bytes + - Side by side comparison of selections + - Lua scripting support with documented API + - Virtual address mapping support + +WWW: https://github.com/solemnwarning/rehex diff --git a/editors/rehex/pkg-plist b/editors/rehex/pkg-plist new file mode 100644 index 000000000000..86e612384b8d --- /dev/null +++ b/editors/rehex/pkg-plist @@ -0,0 +1,19 @@ +bin/rehex +lib/rehex/exe/bitops52.lua +lib/rehex/exe/class.lua +lib/rehex/exe/document_stream.lua +lib/rehex/exe/enum.lua +lib/rehex/exe/kaitaistruct.lua +lib/rehex/exe/microsoft_pe.lua +lib/rehex/exe/plugin.lua +lib/rehex/exe/string_decode.lua +lib/rehex/exe/string_stream.lua +lib/rehex/exe/utils.lua +share/applications/rehex.desktop +share/icons/hicolor/128x128/apps/rehex.png +share/icons/hicolor/16x16/apps/rehex.png +share/icons/hicolor/256x256/apps/rehex.png +share/icons/hicolor/32x32/apps/rehex.png +share/icons/hicolor/48x48/apps/rehex.png +share/icons/hicolor/512x512/apps/rehex.png +share/icons/hicolor/64x64/apps/rehex.png