aboutsummaryrefslogtreecommitdiffstats
path: root/net/pmf/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/pmf/files')
-rw-r--r--net/pmf/files/patch-ab68
-rw-r--r--net/pmf/files/patch-ac42
-rw-r--r--net/pmf/files/patch-ad20
-rw-r--r--net/pmf/files/patch-ae11
-rw-r--r--net/pmf/files/pmfrc.default.in54
5 files changed, 195 insertions, 0 deletions
diff --git a/net/pmf/files/patch-ab b/net/pmf/files/patch-ab
new file mode 100644
index 00000000000..a3829884009
--- /dev/null
+++ b/net/pmf/files/patch-ab
@@ -0,0 +1,68 @@
+--- Makefile.orig Sun May 23 20:54:05 1993
++++ Makefile Fri Feb 11 04:02:29 2000
+@@ -29,12 +29,13 @@
+ # pmf without GNU readline or without sound.
+ # Remove one (or both) of "-DGNU_READLINE" and "-DSOUND".
+ #
+-OPTIONS = -DGNU_READLINE -DSOUND
++#OPTIONS = -DGNU_READLINE -DSOUND
++OPTIONS = -DGNU_READLINE
+
+ # This variable, SOUND_OBJECT, should be changed if you want to
+ # compile pmf without sound: remove this definition of SOUND_OBJECT.
+ #
+-SOUND_OBJECT = sound.o
++#SOUND_OBJECT = sound.o
+
+ # This variable, HISTORY_OBJECT, should be changed if you want to
+ # compile pmf without GNU readline: define HISTORY_OBJECT as
+@@ -56,7 +57,7 @@
+ # If you want to use the GNU C compiler,
+ # change the variable CC to "gcc -traditional" instead:
+ #
+-CC = cc
++CC ?= cc
+ # CC = gcc -traditional
+
+ ######################################################################
+@@ -65,7 +66,7 @@
+ # -- the Makefiles in the subdirs have to be changed separately.
+ # Distribution: CFLAGS = -O
+ # Maximum debug: CFLAGS = -g -pg -DDEBUG -pipe
+-CFLAGS = -O
++CFLAGS += -D_ANSI_SOURCE -DSYSTEM_DIR=\"${PREFIX}/libdata/pmf\"
+
+ ######################################################################
+
+@@ -104,7 +105,8 @@
+ READLINE_LIB = $(READLINE_DIR)/libreadline.a
+ C_PACKAGES_LIB = $(C_PACKAGES_DIR)/libc_packs.a
+
+-LIBS = $(READLINE_LIB) $(C_PACKAGES_LIB)
++#LIBS = $(READLINE_LIB) $(C_PACKAGES_LIB)
++LIBS = $(C_PACKAGES_LIB) -lreadline -lcompat
+
+ INCLUDEDIRS = -I$(C_PACKAGES_DIR)/safe_malloc \
+ -I$(C_PACKAGES_DIR)/generic_list \
+@@ -123,7 +125,7 @@
+
+ pmf: $(OBJECTS) $(LIBS)
+ rm -f compile_time.c
+- $(CC) -o pmf $(CFLAGS) $(OBJECTS) $(LIBS) -ltermcap -lresolv
++ $(CC) -o pmf $(CFLAGS) $(OBJECTS) $(LIBS) -ltermcap
+ strip pmf
+ rm -f compile_time.o
+
+@@ -133,10 +135,10 @@
+ ######################################################################
+
+ $(READLINE_LIB):
+- ( cd $(READLINE_DIR); make )
++ ( cd $(READLINE_DIR); $(MAKE) )
+
+ $(C_PACKAGES_LIB):
+- ( cd $(C_PACKAGES_DIR); make )
++ ( cd $(C_PACKAGES_DIR); $(MAKE) 'CFLAGS=$(CFLAGS)')
+
+ READLINE_FILES = \
+ $(READLINE_DIR)/*
diff --git a/net/pmf/files/patch-ac b/net/pmf/files/patch-ac
new file mode 100644
index 00000000000..e0ac006c778
--- /dev/null
+++ b/net/pmf/files/patch-ac
@@ -0,0 +1,42 @@
+--- config.h.orig Fri Oct 29 18:25:35 1993
++++ config.h Fri Feb 11 05:31:15 2000
+@@ -35,14 +35,16 @@
+ * files instead.
+ * Note that "~" is not expanded in this directory name.
+ */
+-#define SYSTEM_DIR "/home/diagnostix3/ida/tompa/pmf-1.13.1/pmfdir/system_dir"
++#ifndef SYSTEM_DIR
++#define SYSTEM_DIR "/usr/local/libdata/pmf"
++#endif
+
+ /* These are the names of some files, usually in the system directory
+ * SYSTEM_DIR that is #defined above.
+ * If these names start with a "/" they are considered
+ * relative to the root directory, otherwise to SYSTEM_DIR.
+ */
+-#define SYSTEM_DEFAULT_INIT_FILE ".pmfrc.default"
++#define SYSTEM_DEFAULT_INIT_FILE "pmfrc.default"
+ #define SYSTEM_NEWS_FILE "NEWS"
+ #define SYSTEM_HELP_DIR "helpfiles"
+ #define SYSTEM_SOUND_DIR "soundfiles"
+@@ -63,7 +65,9 @@
+ #define X_OUTPUT_PROGRAM "cat"
+
+ /* What system? Define one either BSD or SYSV:*/
++#ifndef BSD
+ #define BSD
++#endif
+ /* #define SYSV */
+
+ /* What ioctl do we use for the ttys? */
+@@ -71,6 +75,10 @@
+ # define USE_TIOCGETP
+ #else
+ # define USE_TCGETA
++#endif
++
++#ifdef BSD
++#define _cnt _r
+ #endif
+
+ /* The prompt to print after doing a builtin command. 0 means no prompt.
diff --git a/net/pmf/files/patch-ad b/net/pmf/files/patch-ad
new file mode 100644
index 00000000000..e40f2721b7a
--- /dev/null
+++ b/net/pmf/files/patch-ad
@@ -0,0 +1,20 @@
+--- main.c.orig Sun Sep 22 12:13:43 1991
++++ main.c Fri Feb 11 04:14:00 2000
+@@ -37,7 +37,7 @@
+ extern int stop_printing();
+ extern int continue_printing();
+
+- extern int last_c_pos;
++ extern int _rl_last_c_pos;
+ #endif
+
+ /* Longjmp buffer, jump there after error() or CTRL-C */
+@@ -58,7 +58,7 @@
+ ldisplay("\n");
+ ldisplay("%s", rl_line_buffer);
+ rl_redisplay(count, key);
+- last_c_pos = rl_end;
++ _rl_last_c_pos = rl_end;
+ }
+ #endif
+
diff --git a/net/pmf/files/patch-ae b/net/pmf/files/patch-ae
new file mode 100644
index 00000000000..12bb270b2d2
--- /dev/null
+++ b/net/pmf/files/patch-ae
@@ -0,0 +1,11 @@
+--- c_packages/Makefile.orig Sun Sep 22 12:13:58 1991
++++ c_packages/Makefile Fri Feb 11 04:14:00 2000
+@@ -8,7 +8,7 @@
+ for i in $(PACKAGES) ; \
+ do \
+ echo Making $$i...; \
+- ( cd $$i; make ) \
++ ( cd $$i; $(MAKE) 'CFLAGS=$(CFLAGS)') \
+ done
+ ln -s */*.o .
+ ar rv libc_packs.a *.o
diff --git a/net/pmf/files/pmfrc.default.in b/net/pmf/files/pmfrc.default.in
new file mode 100644
index 00000000000..9e91ed18508
--- /dev/null
+++ b/net/pmf/files/pmfrc.default.in
@@ -0,0 +1,54 @@
+#
+# Default init file for pmf.
+# Thomas Padron-McCarhty, padrone@lysator.liu.se, Sept 22 1991
+# Remember that all blank lines are sent to Mud, which means that you
+# should probably NOT have any blank lines in the init file.
+# Silent mode is on while running the init file.
+#
+#
+# First of all, set up some things:
+#
+/set prompt "pmf %d> "
+/set history 40
+/set lines_to_save 100
+/set cryptkey "Have a Coke and a Smile!"
+/unset substitute_history
+/unset replace_control
+#
+# Some very useful aliases:
+#
+/alias c score
+/alias l look
+/alias g get all
+/alias ec exa corpse
+/alias dc drop corpse
+/alias sb sell bottle
+/alias m missile
+/alias k shock
+/alias f fireball
+/alias gc "get $1 from corpse $2"
+/alias gb "get $1 from bag $2"
+/alias bdb "buy beer $n drink beer"
+/alias h history
+#
+# This alias lets you run from the church to the pub:
+#
+/unalias . "perform $1 >"
+/alias church-to-pub ". s $n . e $n . e $n . n $n . e"
+#
+# Some more aliases:
+#
+/alias /soundon "/source %%PREFIX%%/libdata/pmf/soundfiles/pmf-sparc-sound"
+/alias /soundoff "/unset sound"
+#
+# Avoid printing some of the more annoying messages:
+#
+# /gag "Go player says: "
+# /gag "Harry says: "
+#
+# A simple robot action:
+#
+/action "$1 tells you: $2" "/beep"
+/alias /on /set robot
+/alias /off /unset robot
+/on