diff --git a/editors/Makefile b/editors/Makefile index 3fc79db50910..e4515c8dd82b 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -1,272 +1,273 @@ COMMENT = Editors SUBDIR += 2bsd-vi SUBDIR += abiword SUBDIR += abiword-docs SUBDIR += aee SUBDIR += aewan SUBDIR += apel SUBDIR += asedit SUBDIR += beav SUBDIR += biew SUBDIR += bitedit SUBDIR += boiling-egg SUBDIR += bpatch SUBDIR += bvi SUBDIR += calligra SUBDIR += calligraplan SUBDIR += chexedit SUBDIR += codelite SUBDIR += cooledit SUBDIR += cpeditor SUBDIR += cream SUBDIR += cudatext SUBDIR += deforaos-editor SUBDIR += dhex SUBDIR += diakonos SUBDIR += dkns SUBDIR += drjava SUBDIR += dte SUBDIR += e3 SUBDIR += e93 SUBDIR += ecce SUBDIR += ecrire SUBDIR += edith SUBDIR += editorconfig-core-c SUBDIR += elementary-code SUBDIR += emacs SUBDIR += emacs-devel SUBDIR += encryptpad SUBDIR += featherpad SUBDIR += fileobj SUBDIR += flim SUBDIR += focuswriter SUBDIR += fpc-ide SUBDIR += fte SUBDIR += fxite SUBDIR += gedit SUBDIR += gedit-plugins SUBDIR += ghex SUBDIR += ghostwriter SUBDIR += gmanedit SUBDIR += gnome-latex SUBDIR += gobby SUBDIR += gomate SUBDIR += gummi SUBDIR += heme SUBDIR += hexcurse SUBDIR += hexedit SUBDIR += hexer SUBDIR += hexpert SUBDIR += hnb SUBDIR += hte SUBDIR += imhex SUBDIR += impress SUBDIR += jed SUBDIR += jedit SUBDIR += joe SUBDIR += jove SUBDIR += jucipp SUBDIR += jupp SUBDIR += kak-lsp SUBDIR += kakoune SUBDIR += kate SUBDIR += kibi SUBDIR += kile SUBDIR += komodo-edit SUBDIR += lazarus SUBDIR += lazarus-qt5 SUBDIR += le SUBDIR += leafpad SUBDIR += led SUBDIR += libreoffice SUBDIR += libreoffice-af SUBDIR += libreoffice-am SUBDIR += libreoffice-as SUBDIR += libreoffice-ast SUBDIR += libreoffice-be SUBDIR += libreoffice-bg SUBDIR += libreoffice-bn SUBDIR += libreoffice-bn_IN SUBDIR += libreoffice-bo SUBDIR += libreoffice-br SUBDIR += libreoffice-brx SUBDIR += libreoffice-bs SUBDIR += libreoffice-ca SUBDIR += libreoffice-ca_valencia SUBDIR += libreoffice-ckb SUBDIR += libreoffice-cs SUBDIR += libreoffice-cy SUBDIR += libreoffice-da SUBDIR += libreoffice-dgo SUBDIR += libreoffice-dsb SUBDIR += libreoffice-dz SUBDIR += libreoffice-el SUBDIR += libreoffice-en_GB SUBDIR += libreoffice-en_ZA SUBDIR += libreoffice-eo SUBDIR += libreoffice-es SUBDIR += libreoffice-et SUBDIR += libreoffice-eu SUBDIR += libreoffice-fa SUBDIR += libreoffice-fi SUBDIR += libreoffice-fur SUBDIR += libreoffice-fy SUBDIR += libreoffice-ga SUBDIR += libreoffice-gd SUBDIR += libreoffice-gl SUBDIR += libreoffice-gu SUBDIR += libreoffice-gug SUBDIR += libreoffice-hi SUBDIR += libreoffice-hr SUBDIR += libreoffice-hsb SUBDIR += libreoffice-i18n SUBDIR += libreoffice-id SUBDIR += libreoffice-is SUBDIR += libreoffice-it SUBDIR += libreoffice-ka SUBDIR += libreoffice-kab SUBDIR += libreoffice-kk SUBDIR += libreoffice-km SUBDIR += libreoffice-kmr_Latn SUBDIR += libreoffice-kn SUBDIR += libreoffice-kok SUBDIR += libreoffice-ks SUBDIR += libreoffice-lb SUBDIR += libreoffice-lo SUBDIR += libreoffice-lt SUBDIR += libreoffice-lv SUBDIR += libreoffice-mai SUBDIR += libreoffice-mk SUBDIR += libreoffice-ml SUBDIR += libreoffice-mn SUBDIR += libreoffice-mni SUBDIR += libreoffice-mr SUBDIR += libreoffice-my SUBDIR += libreoffice-nb SUBDIR += libreoffice-ne SUBDIR += libreoffice-nl SUBDIR += libreoffice-nn SUBDIR += libreoffice-nr SUBDIR += libreoffice-nso SUBDIR += libreoffice-oc SUBDIR += libreoffice-om SUBDIR += libreoffice-or SUBDIR += libreoffice-pa_IN SUBDIR += libreoffice-ro SUBDIR += libreoffice-rw SUBDIR += libreoffice-sa_IN SUBDIR += libreoffice-sat SUBDIR += libreoffice-sd SUBDIR += libreoffice-si SUBDIR += libreoffice-sid SUBDIR += libreoffice-sk SUBDIR += libreoffice-sl SUBDIR += libreoffice-sq SUBDIR += libreoffice-sr SUBDIR += libreoffice-sr_Latn SUBDIR += libreoffice-ss SUBDIR += libreoffice-st SUBDIR += libreoffice-sv SUBDIR += libreoffice-sw_TZ SUBDIR += libreoffice-szl SUBDIR += libreoffice-ta SUBDIR += libreoffice-te SUBDIR += libreoffice-tg SUBDIR += libreoffice-th SUBDIR += libreoffice-tn SUBDIR += libreoffice-tr SUBDIR += libreoffice-ts SUBDIR += libreoffice-tt SUBDIR += libreoffice-ug SUBDIR += libreoffice-uz SUBDIR += libreoffice-ve SUBDIR += libreoffice-vec SUBDIR += libreoffice-xh SUBDIR += libreoffice-zu SUBDIR += libreoffice6 SUBDIR += linux-sublime SUBDIR += linux-sublime3 SUBDIR += madedit SUBDIR += marker SUBDIR += mg SUBDIR += micro SUBDIR += mined SUBDIR += mle SUBDIR += morla SUBDIR += mousepad SUBDIR += mp SUBDIR += nano SUBDIR += ne SUBDIR += nedit SUBDIR += neovim SUBDIR += neovim-qt SUBDIR += nvi-m17n SUBDIR += nvi2 SUBDIR += o SUBDIR += openoffice-4 SUBDIR += openoffice-devel SUBDIR += p5-Proc-InvokeEditor SUBDIR += p5-Vimana SUBDIR += paredit-mode.el SUBDIR += parinfer-rust SUBDIR += pdfedit SUBDIR += pico-alpine SUBDIR += picpas SUBDIR += pluma SUBDIR += poedit SUBDIR += poke SUBDIR += psgml SUBDIR += puff SUBDIR += py-babi SUBDIR += py-editorconfig SUBDIR += py-pynvim SUBDIR += quilter + SUBDIR += rehex SUBDIR += rubygem-neovim SUBDIR += scite SUBDIR += se SUBDIR += semi SUBDIR += setzer SUBDIR += shed SUBDIR += slime SUBDIR += sly SUBDIR += sly-asdf SUBDIR += sly-named-readtables SUBDIR += sly-quicklisp SUBDIR += ssed SUBDIR += sted SUBDIR += tamago SUBDIR += tea SUBDIR += teco SUBDIR += ted SUBDIR += tetradraw SUBDIR += texmacs SUBDIR += texmaker SUBDIR += texstudio SUBDIR += textadept SUBDIR += texworks SUBDIR += the SUBDIR += treeform SUBDIR += tweak SUBDIR += uemacs SUBDIR += uzap SUBDIR += vigor SUBDIR += vile SUBDIR += vim SUBDIR += vim-console SUBDIR += vim-tiny SUBDIR += vscode SUBDIR += web-mode SUBDIR += with-editor SUBDIR += wordgrinder SUBDIR += wxhexeditor SUBDIR += xcoral SUBDIR += xed SUBDIR += xi-core SUBDIR += xi-term SUBDIR += xmlcopyeditor SUBDIR += xvile SUBDIR += yudit SUBDIR += zile .include 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