diff options
author | wiz <wiz@pkgsrc.org> | 2013-01-08 10:16:43 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-01-08 10:16:43 +0000 |
commit | b7823259adc12f45d883e4f2df828ec337fdf8b4 (patch) | |
tree | 2a39b8d44a5c0458eab26b51ffe3eb1dc6f7fb35 /editors/tweak | |
parent | 76cb70e62e26515aedf68600cc9904a5c8912fa9 (diff) | |
download | pkgsrc-b7823259adc12f45d883e4f2df828ec337fdf8b4.tar.gz |
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.
Diffstat (limited to 'editors/tweak')
-rw-r--r-- | editors/tweak/DESCR | 11 | ||||
-rw-r--r-- | editors/tweak/Makefile | 18 | ||||
-rw-r--r-- | editors/tweak/PLIST | 3 | ||||
-rw-r--r-- | editors/tweak/distinfo | 7 | ||||
-rw-r--r-- | editors/tweak/patches/patch-Makefile | 19 | ||||
-rw-r--r-- | editors/tweak/patches/patch-rcfile.c | 20 |
6 files changed, 78 insertions, 0 deletions
diff --git a/editors/tweak/DESCR b/editors/tweak/DESCR new file mode 100644 index 00000000000..89ac7a1b990 --- /dev/null +++ b/editors/tweak/DESCR @@ -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. diff --git a/editors/tweak/Makefile b/editors/tweak/Makefile new file mode 100644 index 00000000000..e2181ac6be7 --- /dev/null +++ b/editors/tweak/Makefile @@ -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" diff --git a/editors/tweak/PLIST b/editors/tweak/PLIST new file mode 100644 index 00000000000..2c453ffb494 --- /dev/null +++ b/editors/tweak/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2013/01/08 10:16:43 wiz Exp $ +bin/tweak +man/man1/tweak.1 diff --git a/editors/tweak/distinfo b/editors/tweak/distinfo new file mode 100644 index 00000000000..116f6e26bb9 --- /dev/null +++ b/editors/tweak/distinfo @@ -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 diff --git a/editors/tweak/patches/patch-Makefile b/editors/tweak/patches/patch-Makefile new file mode 100644 index 00000000000..0a4b23948c5 --- /dev/null +++ b/editors/tweak/patches/patch-Makefile @@ -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 + diff --git a/editors/tweak/patches/patch-rcfile.c b/editors/tweak/patches/patch-rcfile.c new file mode 100644 index 00000000000..2cdb6fc0825 --- /dev/null +++ b/editors/tweak/patches/patch-rcfile.c @@ -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[] = { |