summaryrefslogtreecommitdiff
path: root/editors/tweak/patches
diff options
context:
space:
mode:
authorwiz <wiz>2013-01-08 10:16:43 +0000
committerwiz <wiz>2013-01-08 10:16:43 +0000
commit76a48a4d778d9d6df5487d286032bf0aa6e57edf (patch)
tree2a39b8d44a5c0458eab26b51ffe3eb1dc6f7fb35 /editors/tweak/patches
parent32e633de76f555ac2fe485888750499bc7110521 (diff)
downloadpkgsrc-76a48a4d778d9d6df5487d286032bf0aa6e57edf.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/patches')
-rw-r--r--editors/tweak/patches/patch-Makefile19
-rw-r--r--editors/tweak/patches/patch-rcfile.c20
2 files changed, 39 insertions, 0 deletions
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[] = {