Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 23:46:36 +0200 (IST)
From:      roman@xpert.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24761: [NEW PORT] editors/chexedit
Message-ID:  <200101312146.f0VLkaC54681@alchemy.oven.org>

next in thread | raw e-mail | index | archive | help

>Number:         24761
>Category:       ports
>Synopsis:       [NEW PORT] editors/chexedit - ncurses hex editor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 31 13:50:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Roman Shterenzon
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

>Description:

>How-To-Repeat:

>Fix:

# 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:
#
#	chexedit
#	chexedit/Makefile
#	chexedit/distinfo
#	chexedit/pkg-comment
#	chexedit/pkg-descr
#	chexedit/pkg-plist
#	chexedit/files
#	chexedit/files/patch-man
#	chexedit/files/patch-file.c
#	chexedit/files/patch-init.c
#	chexedit/files/patch-misc.c
#
echo c - chexedit
mkdir -p chexedit > /dev/null 2>&1
echo x - chexedit/Makefile
sed 's/^X//' >chexedit/Makefile << 'END-of-chexedit/Makefile'
X# New ports collection makefile for:	chexedit
X# Date Created:				8 Jul 2000
X# Whom:					Roman Shterenzon <roman@xpert.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	chexedit
XPORTVERSION=	0.9.7
XCATEGORIES=     editors
XMASTER_SITES=	http://ccwf.cc.utexas.edu/~apoc/programs/c/hexedit/
XDISTNAME=	hexedit-0.9.7
X
XMAINTAINER=	roman@xpert.com
X
XGNU_CONFIGURE=	yes
X
XMAN1=		chexedit.1
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/src/hexedit ${PREFIX}/bin/chexedit
X	${INSTALL_MAN} ${WRKSRC}/docs/hexedit.1 ${PREFIX}/man/man1/chexedit.1
X
X.include <bsd.port.mk>
END-of-chexedit/Makefile
echo x - chexedit/distinfo
sed 's/^X//' >chexedit/distinfo << 'END-of-chexedit/distinfo'
XMD5 (hexedit-0.9.7.tar.gz) = 2658b81ab1bd0813c0117e9459071c13
END-of-chexedit/distinfo
echo x - chexedit/pkg-comment
sed 's/^X//' >chexedit/pkg-comment << 'END-of-chexedit/pkg-comment'
XFull screen text mode Hex editor using the [n]curses library
END-of-chexedit/pkg-comment
echo x - chexedit/pkg-descr
sed 's/^X//' >chexedit/pkg-descr << 'END-of-chexedit/pkg-descr'
XHexedit is a Curses based Hex editor.  Unlike a text editor, which
Xis used for editing text documents in the desired language, hexedit
Xlets you edit any file as it's byte(1) for byte representation.  It can
Xeven let you view and edit your fixed disks on your Linux system.  This
Xis not ideal for writing a letter or writing c code, but there are my
Xtimes when this is ideal:
X
X   * Editing binary executables.
X
X   * Editing your fixed disks (i.e. /dev/xyz)
X
X   * Checking the output of a Program's binary data file.
X
X   * Any place you might use od(1) but need more power.  Compare more
X     vs less.
X
XWWW: http://ccwf.cc.utexas.edu/~apoc/programs/c/hexedit/
X
XRoman Shterenzon <roman@xpert.com>
END-of-chexedit/pkg-descr
echo x - chexedit/pkg-plist
sed 's/^X//' >chexedit/pkg-plist << 'END-of-chexedit/pkg-plist'
Xbin/chexedit
END-of-chexedit/pkg-plist
echo c - chexedit/files
mkdir -p chexedit/files > /dev/null 2>&1
echo x - chexedit/files/patch-man
sed 's/^X//' >chexedit/files/patch-man << 'END-of-chexedit/files/patch-man'
X--- docs/hexedit.1.orig	Fri Apr 23 22:16:42 1999
X+++ docs/hexedit.1	Wed Jan 31 22:39:36 2001
X@@ -1,14 +1,14 @@
X .\" Copyright (C) 1998,1999 Adam Rogoyski
X-.TH HEXEDIT 1
X+.TH CHEXEDIT 1
X .SH NAME
X-hexedit \- Full screen curses Hex editor
X+chexedit \- Full screen curses Hex editor
X .SH SYNOPSIS 
X .nr a \n(.j
X .ad l
X .nr i \n(.i
X-.in +\w'\fBhexedit 'u
X+.in +\w'\fBchexedit 'u
X .ti \niu
X-.B hexedit
X+.B chexedit
X .de OP
X .ie \\n(.$-1 .RI "[\ \fB\\$1fP" "\\$2" "\ ]"
X .el .RB "[\ " "\\$1" "\ ]"
X@@ -18,7 +18,7 @@
X .br
X .ad \na
X .SH DESCRIPTION 
X-.I Hexedit
X+.I Chexedit
X is an editor to edit binary (or any) files or disks.  The Display consists
X of the current offset from 0 (the first byte), the next sixteen bytes
X (aligned by bytes or 32-bit words), and it's ASCII or EBCDIC text
END-of-chexedit/files/patch-man
echo x - chexedit/files/patch-file.c
sed 's/^X//' >chexedit/files/patch-file.c << 'END-of-chexedit/files/patch-file.c'
X--- src/file.c.orig	Wed Jan 31 23:36:10 2001
X+++ src/file.c	Wed Jan 31 23:36:06 2001
X@@ -19,6 +19,7 @@
X #include <dirent.h>
X #endif
X 
X+#include <sys/types.h>
X #include <grp.h>
X #include <pwd.h>
X 
X@@ -618,8 +619,8 @@
X 
X          wprintw (Globals.wmain,
X    /* why does it seem like on OpenBSD this is broken? */
X-#if defined(__OpenBSD__) || defined(BROKEN)
X-            "%s %-8s %-8s %10ld %1d\b2d-%02d-%02d %02d:%02d ",
X+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(BROKEN)
X+            "%s %-8s %-8s %10ld %1d\b%04d-%02d-%02d %02d:%02d ",
X #else
X             "%s %-8s %-8s %10ld %d-%02d-%02d %02d:%02d ",
X #endif
END-of-chexedit/files/patch-file.c
echo x - chexedit/files/patch-init.c
sed 's/^X//' >chexedit/files/patch-init.c << 'END-of-chexedit/files/patch-init.c'
X--- src/init.c.orig	Wed Jan 31 22:42:09 2001
X+++ src/init.c	Wed Jan 31 22:47:04 2001
X@@ -33,6 +33,11 @@
X #include <sys/disklabel.h>
X #endif
X 
X+#if defined(__FreeBSD__)
X+#include <fcntl.h>
X+#include <sys/disklabel.h>
X+#endif
X+
X extern char **environ;
X 
X 
X@@ -463,7 +468,7 @@
X       filestat.st_size = DEFAULT_BUFFER_SIZE;
X    }
X 
X-#elif defined (__OpenBSD__)
X+#elif defined (__OpenBSD__) || defined(__FreeBSD__)
X    else if (Globals.fixed_disk)
X    {
END-of-chexedit/files/patch-init.c
echo x - chexedit/files/patch-misc.c
sed 's/^X//' >chexedit/files/patch-misc.c << 'END-of-chexedit/files/patch-misc.c'
X--- src/misc.c.orig	Wed Jan 31 22:44:38 2001
X+++ src/misc.c	Wed Jan 31 22:44:56 2001
X@@ -394,7 +394,7 @@
X      "  -a, --alltext           Print all text characters.\n"
X      "  -b, --buffer            Buffer the entire file in memory.\n"
X      "                            Much faster and enables insert/delete.\n"
X-#if  defined (__linux__) || defined (__OpenBSD__)
X+#if  defined (__linux__) || defined (__OpenBSD__) || defined(__FreeBSD__)
X      "  -d, --disk              Edit a fixed disk, i.e. /dev/hda (Read-only)\n"
X      "  -f, --force             Force editing of disk.\n"
X      "                            Needed to write to disks.\n"
END-of-chexedit/files/patch-misc.c
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101312146.f0VLkaC54681>