File netmaj-2.0.7-turbolinux.patch of Package netmaj

--- netmaj/lib/libcurses/Makefile.turbolinux	2003-10-08 18:31:09.618437832 +0900
+++ netmaj/lib/libcurses/Makefile	2003-10-08 18:31:31.095172872 +0900
@@ -11,9 +11,9 @@
 OBJS=$(SRCS:.c=.o)
 
 CC=gcc
-CFLAGS=-O -I. -DSVR4 -DBSD_COMP
+#CFLAGS=-O -I. -DSVR4 -DBSD_COMP
 #CFLAGS=-O -I. -DUSE_SGTTY		# for 4.[23]BSD
-#CFLAGS=-O -I. -DUSE_TERMIOS		# for 4.4BSD (and Linux?)
+CFLAGS=-O -I. -DUSE_TERMIOS		# for 4.4BSD (and Linux?)
 #CFLAGS=-O -I. -DSVR4 -DUSE_TERMIO	# for SVR3
 #CFLAGS=-O -I. -DSVR4 -DUSE_TERMIOS	# for SVR4
 RANLIB=echo
--- netmaj/adk/Makefile.turbolinux	2003-10-08 18:32:40.240661160 +0900
+++ netmaj/adk/Makefile	2003-10-08 18:44:24.666572144 +0900
@@ -22,27 +22,27 @@
 
 SHELL=/bin/sh
 # Install Directory
-LIBDIR=/usr/local/lib/netmaj
-BINDIR=/usr/local/bin
+LIBDIR=/usr/lib/netmaj
+BINDIR=/usr/bin
 PERL=/usr/bin/perl
 
 STD_CFLAGS=-I.. -I../lib -DNETMAJ_LIB=\"$(LIBDIR)\" -DINTEST
 
 # for 386BSD,FreeBSD,NetBSD...
-CC=gcc
-OS_CFLAGS= -O -g -DUSE_SGTTY -DUSE_FWOPEN -DUSE_TERMCAP -DHAVE_GETTIMEOFDAY
-RANLIB=ranlib
-LIBS= 
-CURSES= -lcurses -ltermcap
-LDFLAGS =  -L../lib 
+#CC=gcc
+#OS_CFLAGS= -O -g -DUSE_SGTTY -DUSE_FWOPEN -DUSE_TERMCAP -DHAVE_GETTIMEOFDAY
+#RANLIB=ranlib
+#LIBS= 
+#CURSES= -lcurses -ltermcap
+#LDFLAGS =  -L../lib 
 
 # for linux
-#CC=cc
-#OS_CFLAGS= -O -DUSE_TERMIOS -DUSE_TERMCAP -DDEF_OPTARG -DHAVE_GETTIMEOFDAY
-#RANLIB=ranlib
-#LIBS = 
-#CURSES= lib/libcurses.a -ltermcap
-#LDFLAGS =  -Llib 
+CC=cc
+OS_CFLAGS= -O -DUSE_TERMIOS -DUSE_TERMCAP -DDEF_OPTARG -DHAVE_GETTIMEOFDAY
+RANLIB=ranlib
+LIBS = 
+CURSES= lib/libcurses.a -ltermcap
+LDFLAGS =  -Llib 
 
 # for nec ews
 ##CC=/usr/abiccs/bin/cc -ZXNd=5000
--- netmaj/Makefile.turbolinux	1996-11-11 23:43:22.000000000 +0900
+++ netmaj/Makefile	2003-10-08 20:14:53.031335264 +0900
@@ -27,28 +27,29 @@
 
 SHELL=/bin/sh
 # Install Directory
-LIBDIR=/usr/local/lib/netmaj
-BINDIR=/usr/local/bin
+LIBDIR=/usr/lib/netmaj
+BINDIR=/usr/bin
 PERL=/usr/bin/perl
+PREFIX=/usr
 
 STD_CFLAGS=-I. -Ilib -DNETMAJ_LIB=\"$(LIBDIR)\" 
 
 # for 386BSD,FreeBSD,NetBSD...
-CC=gcc
-OS_CFLAGS= -O -g -DUSE_SGTTY -DUSE_FWOPEN -DUSE_TERMCAP -DHAVE_GETTIMEOFDAY
-RANLIB=ranlib
-LIBS= 
-CURSES= -lcurses -ltermcap
-LDFLAGS =  -Llib 
-
-# for linux
-#CC=cc
-#OS_CFLAGS= -O -DUSE_TERMIOS -DUSE_TERMCAP -DDEF_OPTARG -DHAVE_GETTIMEOFDAY
+#CC=gcc
+#OS_CFLAGS= -O -g -DUSE_SGTTY -DUSE_FWOPEN -DUSE_TERMCAP -DHAVE_GETTIMEOFDAY
 #RANLIB=ranlib
-#LIBS = 
-#CURSES= lib/libcurses.a -ltermcap
+#LIBS= 
+#CURSES= -lcurses -ltermcap
 #LDFLAGS =  -Llib 
 
+# for linux
+CC=cc
+OS_CFLAGS= -O -DUSE_TERMIOS -DUSE_TERMCAP -DDEF_OPTARG -DHAVE_GETTIMEOFDAY
+RANLIB=ranlib
+LIBS = 
+CURSES= lib/libcurses.a -ltermcap
+LDFLAGS =  -Llib 
+
 # for nec ews
 ##CC=/usr/abiccs/bin/cc -ZXNd=5000
 #CC=gcc -ansi
@@ -184,14 +185,14 @@
 	-if test ! -d ${LIBDIR}; then \
 		mkdir ${LIBDIR}; fi
 	-./server_kill
-	cp server client auto server_kill player_info $(LIBDIR)
-	cp proxyserver inputserver proxyclient $(LIBDIR)
-	cp netmaj.hlp $(LIBDIR)
-	cp netmaj netmaj1 plview $(BINDIR)
+	cp server client auto server_kill player_info $(PREFIX)$(LIBDIR)
+	cp proxyserver inputserver proxyclient $(PREFIX)$(LIBDIR)
+	cp netmaj.hlp $(PREFIX)$(LIBDIR)
+	cp netmaj netmaj1 plview $(PREFIX)$(BINDIR)
 	-if test -d xui; then \
 	(cd xui; make install CC="$(CC)" OS_CFLAGS="$(OS_CFLAGS)" \
-	RANLIB="$(RANLIB)" LIBS="$(LIBS)" LIBDIR="$(LIBDIR)" \
-	BINDIR="$(BINDIR)" \
+	RANLIB="$(RANLIB)" LIBS="$(LIBS)" LIBDIR="$(PREFIX)$(LIBDIR)" \
+	BINDIR="$(PREFIX)$(BINDIR)" \
 	); fi
 
 install-remote: netmaj server server_kill auto proxyclient
@@ -203,11 +204,11 @@
 	cp netmaj $(BINDIR)
 
 install-pf:
-	cp *.pf $(LIBDIR)
+	cp *.pf $(RPM_BUILD_ROOT)$(LIBDIR)
 	-if test -d xui; then \
 	(cd xui; make install-pf CC="$(CC)" OS_CFLAGS="$(OS_CFLAGS)" \
-	RANLIB="$(RANLIB)" LIBS="$(LIBS)" LIBDIR="$(LIBDIR)" \
-	BINDIR="$(BINDIR)" \
+	RANLIB="$(RANLIB)" LIBS="$(LIBS)" LIBDIR="$(RPM_BUILD_ROOT)$(LIBDIR)" \
+	BINDIR="$(RPM_BUILD_ROOT)$(BINDIR)" \
 	); fi
 
 clean:
--- netmaj/xui/Imakefile.turbolinux	1996-08-01 07:46:11.000000000 +0900
+++ netmaj/xui/Imakefile	2003-10-08 20:39:58.593455032 +0900
@@ -1,6 +1,6 @@
 # Please Modifed Here
-BINDIR=/usr/local/bin
-LIBDIR=/usr/local/lib/netmaj
+BINDIR=/usr/bin
+LIBDIR=/usr/lib/netmaj
 
 
 ########################################################
@@ -12,7 +12,7 @@
 #LIBS=-lsocket -lnsl
 #LDFLAGS=
 
-all:
+all::
 	make -f misc/M X11INC="$(INCROOT)" X11LIB="$(USRLIBDIR)" CC="$(CC)" CCFLAGS="$(CCFLAGS)" G="$(G)"  RANLIB="$(RANLIB)" LIBS="$(LIBS)" OS_CFLAGS="$(OS_CFLAGS)" LDFLAGS="$(LDFLAGS)" BINDIR=$(BINDIR) LIBDIR=$(LIBDIR)
 
 clean::