Permalink
Browse files

Import tweak-3.01 as editors/tweak.

tweak is a hex editor. It allows you to edit a file at very low
level, letting you see the full and exact binary contents of the
file. It can be useful for modifying binary files such as executables,
editing disk or CD images, debugging programs that generate binary
file formats incorrectly, and many other things.

Unlike simpler hex editors, tweak possesses a fully functional
insert mode. This is not useful when editing many of the types of
file described above, but can be useful in other situations. Also,
an insert mode makes it easy to use tweak to construct new files
from scratch.
  • Loading branch information...
wiz
wiz committed Jan 8, 2013
1 parent 2d94902 commit c6b2ed47a4e1bc1942abb2818b4d2096c453f47a
View
@@ -0,0 +1,11 @@
+tweak is a hex editor. It allows you to edit a file at very low
+level, letting you see the full and exact binary contents of the
+file. It can be useful for modifying binary files such as executables,
+editing disk or CD images, debugging programs that generate binary
+file formats incorrectly, and many other things.
+
+Unlike simpler hex editors, tweak possesses a fully functional
+insert mode. This is not useful when editing many of the types of
+file described above, but can be useful in other situations. Also,
+an insert mode makes it easy to use tweak to construct new files
+from scratch.
View
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2013/01/08 10:16:43 wiz Exp $
+#
+
+DISTNAME= tweak-3.01
+CATEGORIES= editors
+MASTER_SITES= http://www.chiark.greenend.org.uk/~sgtatham/tweak/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.chiark.greenend.org.uk/~sgtatham/tweak/
+COMMENT= Efficient hex editor
+LICENSE= mit
+
+USE_TOOLS+= gmake
+
+MAKE_FLAGS+= PREFIX=${PREFIX} DESTDIR=${DESTDIR}
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
View
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2013/01/08 10:16:43 wiz Exp $
+bin/tweak
+man/man1/tweak.1
View
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2013/01/08 10:16:43 wiz Exp $
+
+SHA1 (tweak-3.01.tar.gz) = 23e731d14837f9bd7c80c3a03c1c82a39928f0fc
+RMD160 (tweak-3.01.tar.gz) = 09e904523f6d38b46609e64df5d9ae7276691d23
+Size (tweak-3.01.tar.gz) = 71681 bytes
+SHA1 (patch-Makefile) = 2f937281eb7b72e477df906563634994450c66be
+SHA1 (patch-rcfile.c) = 82bf8d167537de068650d3feaf5552ff7bb2be1b
@@ -0,0 +1,19 @@
+$NetBSD: patch-Makefile,v 1.1 2013/01/08 10:16:43 wiz Exp $
+
+DESTDIR support.
+
+--- Makefile.orig 2006-05-18 08:27:43.000000000 +0000
++++ Makefile
+@@ -22,9 +22,10 @@ LINK := gcc
+ LFLAGS :=
+ LIBS :=
+
++DESTDIR=
+ PREFIX=/usr/local
+-BINDIR=$(PREFIX)/bin
+-MANDIR=$(PREFIX)/man/man1
++BINDIR=$(DESTDIR)$(PREFIX)/bin
++MANDIR=$(DESTDIR)$(PREFIX)/man/man1
+
+ TWEAK := main.o keytab.o actions.o search.o rcfile.o buffer.o btree.o
+
@@ -0,0 +1,20 @@
+$NetBSD: patch-rcfile.c,v 1.1 2013/01/08 10:16:43 wiz Exp $
+
+At least NetBSD doesn't define unix.
+
+--- rcfile.c.orig 2006-05-18 08:27:43.000000000 +0000
++++ rcfile.c
+@@ -5,10 +5,10 @@
+ #include <string.h>
+ #include <ctype.h>
+
+-#if defined(unix) && !defined(GO32)
+-#define RCNAME ".tweakrc"
+-#elif defined(MSDOS)
++#if defined(MSDOS) || defined(GO32)
+ #define RCNAME "tweak.rc"
++#else
++#define RCNAME ".tweakrc"
+ #endif
+
+ static char *default_rc[] = {

0 comments on commit c6b2ed4

Please sign in to comment.