FreeBSD Bugzilla – Attachment 151528 Details for
Bug 196637
New Port: editors/wxhexeditor - hex editor that can handle large files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shell archive for editors/wxhexeditor
wxhexeditor.shar (text/plain), 10.12 KB, created by
Jordan Irwin
on 2015-01-13 08:35:18 UTC
(
hide
)
Description:
shell archive for editors/wxhexeditor
Filename:
MIME Type:
Creator:
Jordan Irwin
Created:
2015-01-13 08:35:18 UTC
Size:
10.12 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># wxhexeditor ># wxhexeditor/Makefile ># wxhexeditor/distinfo ># wxhexeditor/files ># wxhexeditor/files/patch-mhash_include_mutils_mutils.h ># wxhexeditor/files/patch-src_FAL.cpp ># wxhexeditor/files/patch-src_FAL.h ># wxhexeditor/files/patch-src_HexEditorApp.h ># wxhexeditor/files/patch-Makefile ># wxhexeditor/pkg-descr ># wxhexeditor/pkg-plist ># >echo c - wxhexeditor >mkdir -p wxhexeditor > /dev/null 2>&1 >echo x - wxhexeditor/Makefile >sed 's/^X//' >wxhexeditor/Makefile << 'f6e1fdf801b26f7f4e52c80dd289ca16' >X# Created by: Jordan Irwin <antumdeluge@gmail.com> >X# $FreeBSD$ >X >XPORTNAME= wxhexeditor >XPORTVERSION= 0.23 >XCATEGORIES= editors >XMASTER_SITES= SF >XMASTER_SITE_SUBDIR= ${PORTNAME}/wxHexEditor/v${PORTVERSION}%20Beta >XDISTNAME= wxHexEditor-v${PORTVERSION}-src >X >XMAINTAINER= antumdeluge@gmail.com >XCOMMENT= Hex editor for HUGE files and devices >X >XLICENSE= GPLv2 >X >XLIB_DEPENDS= libwx_gtk2u_core-2.8.so:${PORTSDIR}/x11-toolkits/wxgtk28-unicode >XBUILD_DEPENDS= ${LOCALBASE}/bin/wxgtk2u-2.8-config:${PORTSDIR}/x11-toolkits/wxgtk28-unicode >X >XNAME= wxHexEditor >XWRKSRC= ${WRKDIR}/${NAME} >XUSES= tar:bzip2 >XNEED_ROOT= yes >X >XOPTIONS_GROUP= LANG >XOPTIONS_GROUP_LANG= LANG_AR LANG_CS LANG_DE LANG_ES LANG_FR \ >X LANG_HU LANG_IT LANG_JA LANG_NL LANG_PL \ >X LANG_PT LANG_RO LANG_RU LANG_TR LANG_ZH >XLANG_ZH_DESC= Chinese language support >X >XOPTIONS_SUB= yes >X >X.include <bsd.port.options.mk> >X >XMAKE_ARGS= ${NAME} >XPIXMAP= ${NAME}.png >XMENUFILE= ${NAME}.desktop >X >XTMPBIN= ${STAGEDIR}${PREFIX}/bin >XTMPAPP= ${STAGEDIR}${PREFIX}/share/applications >XTMPLOC= ${STAGEDIR}${PREFIX}/share/locale >XTMPPIX= ${STAGEDIR}${PREFIX}/share/pixmaps >X >X.if ${PORT_OPTIONS:MLANG_AR} >XLANGS+=ar >X.endif >X.if ${PORT_OPTIONS:MLANG_CS} >XLANGS+=cs >X.endif >X.if ${PORT_OPTIONS:MLANG_DE} >XLANGS+=de >X.endif >X.if ${PORT_OPTIONS:MLANG_ES} >XLANGS+=es >X.endif >X.if ${PORT_OPTIONS:MLANG_FR} >XLANGS+=fr >X.endif >X.if ${PORT_OPTIONS:MLANG_HU} >XLANGS+=hu_HU >X.endif >X.if ${PORT_OPTIONS:MLANG_IT} >XLANGS+=it >X.endif >X.if ${PORT_OPTIONS:MLANG_JA} >XLANGS+=ja_JP >X.endif >X.if ${PORT_OPTIONS:MLANG_NL} >XLANGS+=nl_NL >X.endif >X.if ${PORT_OPTIONS:MLANG_PL} >XLANGS+=pl >X.endif >X.if ${PORT_OPTIONS:MLANG_PT} >XLANGS+=pt_BR >X.endif >X.if ${PORT_OPTIONS:MLANG_RO} >XLANGS+=ro >X.endif >X.if ${PORT_OPTIONS:MLANG_RU} >XLANGS+=ru >X.endif >X.if ${PORT_OPTIONS:MLANG_TR} >XLANGS+=tr >X.endif >X.if ${PORT_OPTIONS:MLANG_ZH} >XLANGS+=zh_CN >X.endif >X >X.ifdef LANGS >X#BUILD_DEPENDS+= msgfmt:${PORTSDIR}/devel/gettext >XUSES+= gettext >X.endif >X >Xdo-build: >X @cd ${WRKSRC} && \ >X for l in ${LANGS}; do \ >X msgfmt locale/$${l}/${NAME}.po \ >X -o locale/$${l}/${NAME}.mo; \ >X done && \ >X ${MAKE_CMD} ${MAKE_ARGS} >X >Xdo-install: >X @for l in ${LANGS}; do \ >X ${MKDIR} ${TMPLOC}/$${l}/LC_MESSAGES; \ >X ${INSTALL_DATA} ${WRKSRC}/locale/$${l}/${NAME}.mo \ >X ${TMPLOC}/$${l}/LC_MESSAGES; \ >X done >X ${INSTALL} ${WRKSRC}/${NAME} ${TMPBIN} >X ${INSTALL_DATA} ${WRKSRC}/resources/${PIXMAP} ${TMPPIX} >X ${INSTALL_DATA} ${WRKSRC}/resources/${MENUFILE} ${TMPAPP} >X >X.include <bsd.port.mk> >f6e1fdf801b26f7f4e52c80dd289ca16 >echo x - wxhexeditor/distinfo >sed 's/^X//' >wxhexeditor/distinfo << '49f19368cdc62585635df1c7eabf57e8' >XSHA256 (wxHexEditor-v0.23-src.tar.bz2) = 24a5a8b8df3abfbc3836d07b379003b45ea0ab0d2d45cb9611c797c595f8972b >XSIZE (wxHexEditor-v0.23-src.tar.bz2) = 2534659 >49f19368cdc62585635df1c7eabf57e8 >echo c - wxhexeditor/files >mkdir -p wxhexeditor/files > /dev/null 2>&1 >echo x - wxhexeditor/files/patch-mhash_include_mutils_mutils.h >sed 's/^X//' >wxhexeditor/files/patch-mhash_include_mutils_mutils.h << '6dcdbf47d4362878fa8805106e94ecd2' >X--- mhash/include/mutils/mutils.h.orig 2014-12-04 10:48:51 UTC >X+++ mhash/include/mutils/mutils.h >X@@ -27,6 +27,10 @@ >X #define __const const >X #endif >X >X+#ifdef __unix__ >X+ #include <sys/param.h> // for BSD >X+#endif >X+ >X /* >X * The vast majority of user code won't care about mutils, so changes to >X * this helper library API should not result in a change to the MHASH API >X@@ -96,7 +100,7 @@ typedef unsigned char mutils_word8; >X * value anyway? Because. >X */ >X >X-#if defined(HAVE__BOOL) && !defined(__APPLE__) >X+#if defined(HAVE__BOOL) && !defined(__APPLE__) && !defined(BSD) >X #define mutils_boolean _Bool >X #else >X typedef char mutils_boolean; >6dcdbf47d4362878fa8805106e94ecd2 >echo x - wxhexeditor/files/patch-src_FAL.cpp >sed 's/^X//' >wxhexeditor/files/patch-src_FAL.cpp << '446e1d8c42007864e167551918ab05fc' >X--- src/FAL.cpp.orig 2014-12-04 10:48:51 UTC >X+++ src/FAL.cpp >X@@ -32,13 +32,18 @@ >X #include <sys/ptrace.h> //No ptrace at windows >X #endif >X >X-#ifdef __WXMAC__ >X+#if defined(__WXMAC__) || defined(BSD) >X #define PTRACE_ATTACH PT_ATTACH >X #define PTRACE_DETACH PT_DETACH >X #define PTRACE_PEEKTEXT PT_READ_I >X #define PTRACE_POKETEXT PT_WRITE_I >X #endif >X >X+#ifdef BSD >X+ #define DKIOCGETBLOCKSIZE DIOCGSECTORSIZE /* Get the sector size of the device in bytes */ >X+ #define DKIOCGETBLOCKCOUNT DIOCGMEDIASIZE /* Get media size in bytes */ >X+#endif >X+ >X >X WX_DEFINE_OBJARRAY(ArrayOfNode); >X >X@@ -56,9 +61,9 @@ bool IsBlockDev( int FD ){ >X >X int FDtoBlockSize( int FD ){ >X int block_size=0; >X-#ifdef __WXGTK__ >X+#if defined(__WXGTK__) && !defined(BSD) >X ioctl(FD, BLKSSZGET, &block_size); >X-#elif defined (__WXMAC__) >X+#elif defined (__WXMAC__) || defined(BSD) >X ioctl(FD, DKIOCGETBLOCKSIZE, &block_size); >X #elif defined (__WXMSW__) >X struct stat *sbufptr = new struct stat; >X@@ -79,10 +84,10 @@ int FDtoBlockSize( int FD ){ >X >X uint64_t FDtoBlockCount( int FD ) { >X uint64_t block_count=0; >X-#ifdef __WXGTK__ >X+#if defined(__WXGTK__) && !defined(BSD) >X ioctl(FD, BLKGETSIZE64, &block_count); >X block_count/=FDtoBlockSize( FD ); >X-#elif defined (__WXMAC__) >X+#elif defined (__WXMAC__) || defined(BSD) >X ioctl(FD, DKIOCGETBLOCKCOUNT, &block_count); >X #elif defined (__WXMSW__) >X DWORD dwResult; >446e1d8c42007864e167551918ab05fc >echo x - wxhexeditor/files/patch-src_FAL.h >sed 's/^X//' >wxhexeditor/files/patch-src_FAL.h << '064326f14737e0d7542e32c1bb85993f' >X--- src/FAL.h.orig 2014-12-04 10:48:51 UTC >X+++ src/FAL.h >X@@ -36,6 +36,10 @@ >X #include <wx/dynarray.h> >X #include <stdint.h> >X >X+#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) >X+ #include <sys/param.h> // for BSD >X+#endif >X+ >X #if wxCHECK_VERSION( 2,9,0 ) and defined( __WXGTK__) >X #define _FSWATCHER_ 1 >X #else >X@@ -74,17 +78,22 @@ >X #ifdef __WXGTK__ >X #include <sys/ioctl.h> >X //#include <dev/disk.h> >X- #include <linux/fs.h> >X+ >X+ #ifdef BSD >X+ #include <sys/ptrace.h> >X+ #include <sys/disk.h> >X+ #else >X+ #include <linux/fs.h> >X+ #endif >X >X-//#include <link.h> >X-//#include <elf.h> >X-//#include <sys/ptrace.h> >X-//#include <stdlib.h> >X-//#include <string.h> >X-#include <sys/wait.h> >X-//#include <sys/types.h> >X-//#include <stdio.h> >X-//#include <errno.h> >X+ //#include <link.h> >X+ //#include <elf.h> >X+ //#include <stdlib.h> >X+ //#include <string.h> >X+ #include <sys/wait.h> >X+ //#include <sys/types.h> >X+ //#include <stdio.h> >X+ //#include <errno.h> >X >X #endif >X >064326f14737e0d7542e32c1bb85993f >echo x - wxhexeditor/files/patch-src_HexEditorApp.h >sed 's/^X//' >wxhexeditor/files/patch-src_HexEditorApp.h << '9b0438d8b6d885f276ddd76d7e7f6d40' >X--- src/HexEditorApp.h.orig 2015-01-09 08:33:53 UTC >X+++ src/HexEditorApp.h >X@@ -42,8 +42,10 @@ >X #define _VERSION_STR_ _VERSION_S_ " for Windows" >X #elif defined(__WXOSX__) >X #define _VERSION_STR_ _VERSION_S_ " for Mac" >X-#elif defined(__WXGTK__) >X+#elif defined(__WXGTK__) && defined(__linux__) >X #define _VERSION_STR_ _VERSION_S_ " for Linux" >X+#elif defined(__WXGTK__) && defined(BSD) >X+ #define _VERSION_STR_ _VERSION_S_ " for BSD" >X #else >X #define _VERSION_STR_ _VERSION_S_ >X #endif >9b0438d8b6d885f276ddd76d7e7f6d40 >echo x - wxhexeditor/files/patch-Makefile >sed 's/^X//' >wxhexeditor/files/patch-Makefile << 'ce4d75e1f5cd17115b042ff796f7a4fb' >X--- Makefile.orig 2015-01-09 09:21:50 UTC >X+++ Makefile >X@@ -1,4 +1,4 @@ >X-WXCONFIG = wx-config >X+WXCONFIG = wxgtk2u-2.8-config >X #CC ?= `$(WXCONFIG) --cc` #this doesn't look working here properly :( >X #CXX ?= `$(WXCONFIG) --cxx` >X CC = `$(WXCONFIG) --cc` >ce4d75e1f5cd17115b042ff796f7a4fb >echo x - wxhexeditor/pkg-descr >sed 's/^X//' >wxhexeditor/pkg-descr << 'b6c62115ebc9b1dd1445074032efcdd7' >XwxHexEditor is another Free Hex Editor, build because there is >Xno good hex editor for Linux system, specially for big files. >X >XwxHexEditor is not an ordinary hex editor, but could work as >Xlow level disk editor too. If you have problems with your HDD >Xor partition, you can recover your data from HDD or from >Xpartition via editing sectors in raw hex. You can edit your >Xpartition tables or you could recover files from File System >Xby hand with help of wxHexEditor. Or you might want to analyze >Xyour big binary files, partitions, devices... If you need a >Xgood reverse engineer tool like a good hex editor, you welcome. >XwxHexEditor could edit HDD/SDD disk devices or partitions in >Xraw up to exabyte sizes. >X >XWWW: http://www.wxhexeditor.org/ >b6c62115ebc9b1dd1445074032efcdd7 >echo x - wxhexeditor/pkg-plist >sed 's/^X//' >wxhexeditor/pkg-plist << 'b171e9927a15083a25d266018fbe6c17' >Xbin/wxHexEditor >Xshare/applications/wxHexEditor.desktop >Xshare/pixmaps/wxHexEditor.png >X%%LANG_AR%%share/locale/ar/LC_MESSAGES/wxHexEditor.mo >X%%LANG_CS%%share/locale/cs/LC_MESSAGES/wxHexEditor.mo >X%%LANG_DE%%share/locale/de/LC_MESSAGES/wxHexEditor.mo >X%%LANG_ES%%share/locale/es/LC_MESSAGES/wxHexEditor.mo >X%%LANG_FR%%share/locale/fr/LC_MESSAGES/wxHexEditor.mo >X%%LANG_HU%%share/locale/hu_HU/LC_MESSAGES/wxHexEditor.mo >X%%LANG_IT%%share/locale/it/LC_MESSAGES/wxHexEditor.mo >X%%LANG_JA%%share/locale/ja_JP/LC_MESSAGES/wxHexEditor.mo >X%%LANG_NL%%share/locale/nl_NL/LC_MESSAGES/wxHexEditor.mo >X%%LANG_PL%%share/locale/pl/LC_MESSAGES/wxHexEditor.mo >X%%LANG_PT%%share/locale/pt_BR/LC_MESSAGES/wxHexEditor.mo >X%%LANG_RO%%share/locale/ro/LC_MESSAGES/wxHexEditor.mo >X%%LANG_RU%%share/locale/ru/LC_MESSAGES/wxHexEditor.mo >X%%LANG_TR%%share/locale/tr/LC_MESSAGES/wxHexEditor.mo >X%%LANG_ZH%%share/locale/zh_CN/LC_MESSAGES/wxHexEditor.mo >b171e9927a15083a25d266018fbe6c17 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 196637
: 151528