summaryrefslogtreecommitdiff
path: root/editors/hexedit
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2007-09-24 12:32:54 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2007-09-24 12:32:54 +0000
commit9ad713d54be4deb6d016e0a3a0c15fc2ac1da768 (patch)
tree7b9f03c622f4069d4ca193429f5f7fdddc542534 /editors/hexedit
parentunbreak net/tcpshow for recent tcpdump (diff)
[PATCH] update editors/hexedit to 1.2.12
This patch updates editors/hexedit to 1.2.12. Additionally included is a patch (patch-allowwhitespaces) which allows a hex search pattern to contain whitespaces (e.g. A1 B2 C3 instead of A1B2C3). PR: ports/101078 Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=200044
Diffstat (limited to 'editors/hexedit')
-rw-r--r--editors/hexedit/Makefile6
-rw-r--r--editors/hexedit/distinfo6
-rw-r--r--editors/hexedit/files/patch--search.c21
-rw-r--r--editors/hexedit/files/patch-hexedit.h10
-rw-r--r--editors/hexedit/pkg-plist2
5 files changed, 38 insertions, 7 deletions
diff --git a/editors/hexedit/Makefile b/editors/hexedit/Makefile
index 8e15b23a9f46..e38e82a0f7fc 100644
--- a/editors/hexedit/Makefile
+++ b/editors/hexedit/Makefile
@@ -7,9 +7,9 @@
#
PORTNAME= hexedit
-PORTVERSION= 1.2.1
+PORTVERSION= 1.2.12
CATEGORIES= editors
-MASTER_SITES= http://merd.net/pixel/ \
+MASTER_SITES= http://people.mandriva.com/~prigaux/ \
${MASTER_SITE_LOCAL:S/$/:local/}
MASTER_SITE_SUBDIR= obrien/:local
DISTFILES= ${DISTNAME}.src.tgz:DEFAULT,local
@@ -21,6 +21,8 @@ WRKSRC= ${WRKDIR}/${DISTNAME:S/-${PORTVERSION}//}
GNU_CONFIGURE= yes
MAN1= hexedit.1
+PLIST_FILES= bin/hexedit
+
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/hexedit ${PREFIX}/bin
@ ${INSTALL_MAN} ${WRKSRC}/hexedit.1 ${PREFIX}/man/man1
diff --git a/editors/hexedit/distinfo b/editors/hexedit/distinfo
index 8a2a94ed4da1..812270c476de 100644
--- a/editors/hexedit/distinfo
+++ b/editors/hexedit/distinfo
@@ -1,3 +1,3 @@
-MD5 (hexedit-1.2.1.src.tgz) = fb054afa8c7606c005642e3df8194b19
-SHA256 (hexedit-1.2.1.src.tgz) = df88128e186a195bf2765369b0a7492e165b7904255af369e3e2a9c2b59b83f6
-SIZE (hexedit-1.2.1.src.tgz) = 54615
+MD5 (hexedit-1.2.12.src.tgz) = 0d2f48610006278cd93359fea9a06d5c
+SHA256 (hexedit-1.2.12.src.tgz) = bcffbf3d128516cc4e1da64485866fbb5f62754f2af8327e7a527855186ba10f
+SIZE (hexedit-1.2.12.src.tgz) = 65802
diff --git a/editors/hexedit/files/patch--search.c b/editors/hexedit/files/patch--search.c
new file mode 100644
index 000000000000..a9dbb6ca1ae1
--- /dev/null
+++ b/editors/hexedit/files/patch--search.c
@@ -0,0 +1,21 @@
+--- search.c.orig Tue Nov 8 17:16:47 2005
++++ search.c Sat Jul 29 15:21:47 2006
+@@ -30,6 +30,18 @@
+ if (!ask_about_save_and_redisplay()) return FALSE;
+ if (!displayMessageAndGetString(msg, last, tmp, tmp_size)) return FALSE;
+
++ if( hexOrAscii ) {
++ char* cp = tmp;
++ char* cp2 = tmp;
++ char c;
++ while( (c = *cp++) ) {
++ if( isspace( c ) )
++ continue;
++ *cp2++ = c;
++ }
++ *cp2 = '\0';
++ }
++
+ *sizea = strlen(tmp);
+ if (hexOrAscii) if (!hexStringToBinString(tmp, sizea)) return FALSE;
+
diff --git a/editors/hexedit/files/patch-hexedit.h b/editors/hexedit/files/patch-hexedit.h
new file mode 100644
index 000000000000..f0f4a237ad22
--- /dev/null
+++ b/editors/hexedit/files/patch-hexedit.h
@@ -0,0 +1,10 @@
+--- hexedit.h.ORI Tue Nov 8 17:16:47 2005
++++ hexedit.h Sat Jul 29 15:23:36 2006
+@@ -5,6 +5,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <sys/param.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #if HAVE_FCNTL_H
diff --git a/editors/hexedit/pkg-plist b/editors/hexedit/pkg-plist
deleted file mode 100644
index f7def0015f56..000000000000
--- a/editors/hexedit/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $FreeBSD$
-bin/hexedit