updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / umoria / umoria-aur.patch
blob82a144789ef4d250bcda2ec9ab2421a8a8f56219
1 diff -Naur umoria/source/config.h umoria-aur/source/config.h
2 --- umoria/source/config.h 1994-07-21 18:47:13.000000000 -0700
3 +++ umoria-aur/source/config.h 2009-10-26 13:55:47.000000000 -0700
4 @@ -200,7 +200,7 @@
6 /* This must be unix; change MORIA_LIB as appropriate. */
7 #define MORIA_SAV "moria.save"
8 -#define MORIA_LIB(xxx) "/home/math/grabiner/moria/files/xxx"
9 +#define MORIA_LIB(xxx) "/usr/share/umoria/files/"#xxx
10 #define MORIA_HOU MORIA_LIB(hours)
11 #define MORIA_MOR MORIA_LIB(news)
12 #define MORIA_TOP MORIA_LIB(scores)
13 @@ -266,6 +266,7 @@
15 /* Define USG for many systems, this is basically to select SYS V style
16 system calls (as opposed to BSD style). */
17 +#define USG
18 #if defined(SYS_III) || defined(SYS_V) || defined(MSDOS) || defined(MAC)
19 #ifndef USG
20 #define USG
21 diff -Naur umoria/source/io.c umoria-aur/source/io.c
22 --- umoria/source/io.c 1994-07-21 18:47:26.000000000 -0700
23 +++ umoria-aur/source/io.c 2009-10-26 13:47:42.000000000 -0700
24 @@ -7,6 +7,7 @@
25 included in all such copies. */
27 #include <stdio.h>
28 +#include <termios.h>
29 #ifndef STDIO_LOADED
30 #define STDIO_LOADED
31 #endif
32 @@ -424,7 +425,7 @@
33 /* disable all of the normal special control characters */
34 tbuf.c_cc[VINTR] = (char)3; /* control-C */
35 tbuf.c_cc[VQUIT] = (char)-1;
36 - tbuf.c_cc[VERASE] = (char)-1;
37 + /*tbuf.c_cc[VERASE] = (char)-1;*/
38 tbuf.c_cc[VKILL] = (char)-1;
39 tbuf.c_cc[VEOF] = (char)-1;
41 diff -Naur umoria/unix/Makefile umoria-aur/unix/Makefile
42 --- umoria/unix/Makefile 1994-07-21 15:37:08.000000000 -0700
43 +++ umoria-aur/unix/Makefile 2009-10-26 13:50:21.000000000 -0700
44 @@ -3,10 +3,10 @@
45 # LIBDIR must be the same directory defined in config.h
46 # OWNER is who you want the game to be chown to.
47 # GROUP is who you wnat the game to be chgrp to.
48 -BINDIR = /home/zariski/grabiner/moria
49 -LIBDIR = /home/zariski/grabiner/moria/files
50 -OWNER = grabiner
51 -GROUP = grad
52 +BINDIR = /usr/bin
53 +LIBDIR = /usr/share/umoria/files
54 +OWNER = root
55 +GROUP = root
57 # For testing and debugging the program, it is best to use this line.
58 # CFLAGS = -g
59 @@ -14,9 +14,9 @@
60 CFLAGS = -O
62 # For BSD Systems
63 -CURSES = -lcurses -ltermcap
64 +# CURSES = -lcurses -ltermcap
65 # For SYS V Systems
66 -# CURSES = -lcurses
67 +CURSES = -lcurses
68 # For XENIX, some XENIX systems may need -ltinfo
69 # CURSES = -ltcap -ltermcap -lx
71 diff -Naur umoria/unix/unix.c umoria-aur/unix/unix.c
72 --- umoria/unix/unix.c 1994-07-21 15:37:08.000000000 -0700
73 +++ umoria-aur/unix/unix.c 2009-10-26 13:48:46.000000000 -0700
74 @@ -261,7 +261,7 @@
75 #endif
77 #ifdef USG
78 -unsigned short getuid();
79 +/*unsigned short getuid();*/
80 #else
81 #ifndef SECURE
82 #ifdef BSD4_3