summaryrefslogtreecommitdiff
path: root/frotz/patches
diff options
context:
space:
mode:
Diffstat (limited to 'frotz/patches')
-rw-r--r--frotz/patches/001-change-strip-to-variable.patch49
-rw-r--r--frotz/patches/002-make-it-can-run-as-root.patch24
-rw-r--r--frotz/patches/003-openwrt-will-take-care-of-install.patch22
3 files changed, 95 insertions, 0 deletions
diff --git a/frotz/patches/001-change-strip-to-variable.patch b/frotz/patches/001-change-strip-to-variable.patch
new file mode 100644
index 0000000..69fa55f
--- /dev/null
+++ b/frotz/patches/001-change-strip-to-variable.patch
@@ -0,0 +1,49 @@
+change the strip to $(STRIP).
+
+From: Xiangfu Liu <xiangfu@sharism.cc>
+
+when cross compile we need use cross comppile strip.
+
+Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
+---
+ Makefile | 6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 3e1253a..aae3eaa 100644
+--- a/Makefile
++++ b/Makefile
+@@ -3,6 +3,7 @@
+ #
+ CC = gcc
+ #CC = cc
++STRIP = strip
+
+ # Define your optimization flags. Most compilers understand -O and -O2,
+ # Standard (note: Solaris on UltraSparc using gcc 2.8.x might not like this.)
+@@ -213,7 +214,7 @@ soundcard.h:
+ fi
+
+ install: $(NAME)
+- strip $(BINNAME)$(EXTENSION)
++ $(STRIP) $(BINNAME)$(EXTENSION)
+ install -d $(PREFIX)/bin
+ install -d $(MAN_PREFIX)/man/man6
+ install -c -m 755 $(BINNAME)$(EXTENSION) $(PREFIX)/bin
+@@ -226,7 +227,7 @@ uninstall:
+ deinstall: uninstall
+
+ install_dumb: d$(NAME)
+- strip d$(BINNAME)$(EXTENSION)
++ $(STRIP) d$(BINNAME)$(EXTENSION)
+ install -d $(PREFIX)/bin
+ install -d $(MAN_PREFIX)/man/man6
+ install -c -m 755 d$(BINNAME)$(EXTENSION) $(PREFIX)/bin
+@@ -264,7 +265,6 @@ distclean: clean
+ rm -f *core $(SRCDIR)/*core
+ -rm -rf $(distdir)
+ -rm -f $(distdir).tar $(distdir).tar.gz
+-
+ realclean: distclean
+
+ clobber: distclean
diff --git a/frotz/patches/002-make-it-can-run-as-root.patch b/frotz/patches/002-make-it-can-run-as-root.patch
new file mode 100644
index 0000000..703c32d
--- /dev/null
+++ b/frotz/patches/002-make-it-can-run-as-root.patch
@@ -0,0 +1,24 @@
+remove "root" check.
+
+From: Xiangfu Liu <xiangfu@sharism.cc>
+
+Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
+---
+ src/curses/ux_init.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c
+index e9baff1..c8bbbd2 100644
+--- a/src/curses/ux_init.c
++++ b/src/curses/ux_init.c
+@@ -140,8 +140,8 @@ void os_process_arguments (int argc, char *argv[])
+ char configfile[FILENAME_MAX + 1];
+
+ if ((getuid() == 0) || (geteuid() == 0)) {
+- printf("I won't run as root!\n");
+- exit(1);
++ printf("be carefull, I am run as root!\n");
++ //exit(1);
+ }
+
+ if ((home = getenv("HOME")) == NULL) {
diff --git a/frotz/patches/003-openwrt-will-take-care-of-install.patch b/frotz/patches/003-openwrt-will-take-care-of-install.patch
new file mode 100644
index 0000000..e9da4ac
--- /dev/null
+++ b/frotz/patches/003-openwrt-will-take-care-of-install.patch
@@ -0,0 +1,22 @@
+openwrt will take care of install.
+
+From: Xiangfu Liu <xiangfu@sharism.cc>
+
+Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
+---
+ Makefile | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index aae3eaa..3515b33 100644
+--- a/Makefile
++++ b/Makefile
+@@ -15,7 +15,7 @@ OPTS = -O2
+ #-malign-jumps=2
+
+ # Define where you want Frotz installed. Usually this is /usr/local
+-PREFIX = /usr/local
++PREFIX = $(DESTDIR)/usr/local
+
+ MAN_PREFIX = $(PREFIX)
+ #MAN_PREFIX = /usr/local/share