1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/japanese/dserver/files/patch-ab

413 lines
12 KiB
Plaintext
Raw Normal View History

patches for server2.2-pl2
--- server2.2-pl2/daemon.c.orig Sat Aug 10 02:10:32 1996
+++ server2.2-pl2/daemon.c Tue Jan 28 08:22:42 1997
@@ -13,6 +13,11 @@
#include <sys/time.h>
#include <ctype.h>
+#ifdef __FreeBSD__
+#include <stdlib.h>
+#include <string.h>
+#endif
+
#ifdef linux
#include <string.h>
#include <stdlib.h>
@@ -34,10 +39,11 @@
#include "ndtp.h"
#include "misc.h"
-
+#ifndef __FreeBSD__
#ifdef DEBUG
extern int debug;
#endif
+#endif
ENV env[MAXUSER];
@@ -104,8 +110,11 @@
#endif
exit(1);
}
-
+#ifdef __FreeBSD__
+ if( bind(ls, (struct sockaddr *)&myaddr_in, sizeof(struct sockaddr_in)) == -1) {
+#else
if( bind(ls, &myaddr_in, sizeof(struct sockaddr_in)) == -1) {
+#endif
#ifdef SYSLOG
syslog(LOG_ERR,"Unable to bind address /iserver_init\n");
#endif
--- server2.2-pl2/lookup.c.orig Sat Aug 10 02:10:32 1996
+++ server2.2-pl2/lookup.c Tue Jan 28 08:22:42 1997
@@ -501,6 +501,54 @@
else return q+6;
}
+#ifdef HALF
+reg_jisstrnsub_(s,t,r,n,CODE)
+unsigned char *s, *t;
+int r,n;
+int CODE;
+{
+ unsigned int ss,tt;
+ if (CODE == FULL) {
+ for(; ; s+=2,t+=2,n-=2) {
+ ss = (*s&0x7f)<<8|*(s+1)&0x7f;
+ tt = (*t&0x7f)<<8|*(t+1)&0x7f;
+ if (n <= 0) tt = 0; /* string terminate 95.2.8 by T.Motoda */
+
+ if(r==SHORT && (ss=='*' || ss=='?')) {
+ return 0;
+ }
+ if(r==WHOLE && (ss=='*')) {
+ return 0;
+ }
+ if(!ss || !tt) break;
+ if(r==WHOLE && (ss=='?')) {
+ continue;
+ }
+ if(ss!=tt) break;
+ }
+ } else {
+ for(; ; s++,t++,n--) {
+ ss = (*s);
+ tt = (*t);
+ if (n <= 0) tt = 0; /* string terminate 95.2.8 by T.Motoda */
+
+ if(r==SHORT && (ss=='*' || ss=='?')) {
+ return 0;
+ }
+ if(r==WHOLE && (ss=='*')) {
+ return 0;
+ }
+ if(!ss || !tt) break;
+ if(r==WHOLE && (ss=='?')) {
+ continue;
+ }
+ if(ss!=tt) break;
+ }
+ }
+ return ss-tt;
+}
+#endif
+
findentry_int(key,realkey,frm,env_p)
unsigned char *key,*realkey;
ENV *env_p;
@@ -509,6 +557,9 @@
unsigned char frame[FRAMESIZE+2];
static char msg[32];
Dict *dict;
+#ifdef HALF
+ int CODE=dict_set[env_p->dict_num].code; /* FULL or HALF */
+#endif
dict=env_p->dict;
@@ -542,12 +593,21 @@
putnstr(q,s);
printf("\n");
#endif
+#ifdef HALF
+ if(reg_jisstrnsub_(key,q,SHORT,s,CODE)<=0) {
+ findentry_int(key,realkey,FOURBYTEUINT(q+s),env_p);
+ }
+ if(reg_jisstrnsub_(key,q,SHORT,s,CODE)<0) {
+ return;
+ }
+#else
if(reg_jisstrnsub(key,q,SHORT,s)<=0) {
findentry_int(key,realkey,FOURBYTEUINT(q+s),env_p);
}
if(reg_jisstrnsub(key,q,SHORT,s)<0) {
return;
}
+#endif
}
}
else if(frame[1]==0) {
@@ -625,7 +685,11 @@
putnstr(q,s);
#endif
if(!match) {
+#ifdef HALF
+ match=!reg_jisstrnsub_(realkey,q,WHOLE,s,CODE);
+#else
match=!reg_jisstrnsub(realkey,q,WHOLE,s);
+#endif
}
q+=s;
#ifdef DEBUG
@@ -644,7 +708,11 @@
putnstr(q,s);
#endif
if(!match) {
+#ifdef HALF
+ match=!reg_jisstrnsub_(realkey,q,WHOLE,s,CODE);
+#else
match=!reg_jisstrnsub(realkey,q,WHOLE,s);
+#endif
}
#ifdef DEBUG
putchar('\n');
--- server2.2-pl2/Makefile.orig Sat Aug 10 02:12:05 1996
+++ server2.2-pl2/Makefile Tue Jan 28 08:22:43 1997
@@ -2,33 +2,39 @@
#CC=cc
CC=gcc
-DSERVERTOPDIR=/usr/local/etc/dserverdir
+DSERVERTOPDIR=${PREFIX}/lib/dserver
#DSERVERTOPDIR=/nfs/home40/usui/dserver/server2.2-current/table
-DICTROOT=/usr/local/dict
+DICTROOT=${PREFIX}/share/dict
ACCESSFILE=${DSERVERTOPDIR}/dserver_access
-BINDIR=/usr/local/lib
+BINDIR=${PREFIX}/lib/dserver
+DOCDIR=${DSERVERTOPDIR}/doc
+LISPLIB=${PREFIX}/lib/mule/site-lisp
#LISPLIB=/usr/local/lib/Nemacs/lisp #usui
DEFS=-D'ACCESSFILE="$(ACCESSFILE)"' \
--D'DSERVERTOPDIR="$(DSERVERTOPDIR)"'
+-D'DSERVERTOPDIR="$(DSERVERTOPDIR)"' -DHALF
# define AUTH for auth
# define DICLOOKUPMULE for mule
-OFLAG=
-CFLAGS= $(OFLAG) -DSTANDALONE $(DEFS) -DDEBUG -DSYSLOG
-CFLAGS=-Dsparc $(OFLAG) -DSYSLOG -DSTANDALONE $(DEFS)
+OFLAG= -O -m486
+#CFLAGS= $(OFLAG) -DSTANDALONE $(DEFS) -DDEBUG -DSYSLOG
+#CFLAGS=-Dsparc $(OFLAG) -DSYSLOG -DSTANDALONE $(DEFS)
#CFLAGS=-Dsparc $(OFLAG) -DSYSLOG -DAUTH -DDICLOOKUPMULE -DSTANDALONE $(DEFS)
-CFLAGS=-Dsparc $(OFLAG) -DSYSLOG -DSTANDALONE $(DEFS) -DDEBUG
+#CFLAGS=-Dsparc $(OFLAG) -DSYSLOG -DSTANDALONE $(DEFS) -DDEBUG
+CFLAGS= $(OFLAG) -DSTANDALONE -DSYSLOG $(DEFS)
#for solaris
#CFLAGS=-Dsolaris -Dsparc $(OFLAG) -DSYSLOG -DSTANDALONE $(DEFS)
#DFLAGS =-lsocket -lnsl -R/usr/ucblib -L/usr/ucblib -lucb
-all: dserver
+all: dserver compress/makedic
dserver: $(OBJ)
$(CC) $(CFLAGS) -o dserver $(OBJ)
+compress/makedic:
+ (cd compress ; ${MAKE} all)
+
#dserver: $(OBJ)
# $(CC) $(CFLAGS) -o dserver $(OBJ) $(DFLAGS)
@@ -39,4 +45,12 @@
lint -Dsparc -DSTANDALONE -DSYSLOG $(DEFS) *.c
install:
- install -m 755 dserver $(BINDIR)
+ if [ ! -d ${DOCDIR} ] ; then mkdir -p ${DOCDIR} ; fi
+ if [ ! -d ${DICTROOT}/cdrom ] ; then mkdir -p ${DICTROOT}/cdrom ; fi
+ install -c -s -m 755 dserver $(BINDIR)
+ (cd compress ; ${MAKE} install)
+ cp table/*.tbl table/dserver_access ${DSERVERTOPDIR}
+ cat table/dserver_access | sed -e 's!PREFIX_DIR!${PREFIX}!g' > ${DSERVERTOPDIR}/dserver_access
+ cp CHANGES newfeature.doc ${DOCDIR}
+ cp README ${DOCDIR}/README.dserver
+ cp table/README ${DOCDIR}/README.table
--- server2.2-pl2/subnet.c.orig Sat Aug 10 02:10:30 1996
+++ server2.2-pl2/subnet.c Tue Jan 28 08:22:43 1997
@@ -1,6 +1,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <sys/time.h>
#include <net/if.h>
#include <sys/ioctl.h>
--- server2.2-pl2/table/dserver_access.orig Sat Aug 10 02:10:27 1996
+++ server2.2-pl2/table/dserver_access Tue Jan 28 08:22:43 1997
@@ -1,14 +1,20 @@
-#DICT kojien /usr/local/etc/CDdict/yrrs096/koujien/start. "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8A3B4>" 1 600
-##DICT eiwa /usr/local/etc/CDdict/yrrs118/chujiten/start. "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 25 600
-##DICT eiwa /usr/local/etc/CDdict/yrrs118/chujiten/start.comp "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 25 600
-##DICT eiwa /usr/local/etc/CDdict/yrrs009/eiwa/start.comp "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 25 600
-##DICT waei /usr/local/etc/CDdict/yrrs118/chujiten/start.comp "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>±<EFBFBD>" 25 600
-#DICT waei /usr/local/etc/CDdict/cdchujiten/chujiten/data/honmon. "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>±<EFBFBD>" 25 600
-#DICT eiwa /usr/local/etc/CDdict/cdchujiten/chujiten/data/honmon. "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>±<EFBFBD>" 25 600
-#DICT CDkojien /usr/local/etc/CDdict/cdkouji/koujien/data/honmon. "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ã<EFBFBD><C3A3><EFBFBD>" 1 600
-#DICT readers /usr/local/etc/CDdict/yrrs172/readers/start. "<22><EFBFBD><EAA1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 1 600
-#DICTROOT /usr/local/etc/CDdict 2 500
+#DICT kojien PREFIX_DIR/share/dict/cdrom/yrrs096/koujien/start "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8A3B4>" 1 600
+#DICT kojien-furoku PREFIX_DIR/share/dict/cdrom/yrrs096/furoku/start "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8A3B4><EFBFBD><EFBFBD>Ͽ" 1 600
+#DICT waei PREFIX_DIR/share/dict/cdrom/cdchujiten/chujiten/data/honmon "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>±<EFBFBD>" 25 600
+#DICT eiwa PREFIX_DIR/share/dict/cdrom/cdchujiten/chujiten/data/honmon "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>±<EFBFBD>" 25 600
+#DICT readers PREFIX_DIR/share/dict/cdrom/yrrs172/readers/start "<22><EFBFBD><EAA1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 1 600
+#DICT crfre PREFIX_DIR/share/dict/cdrom/yrrs091/crfre/start "<22><><EFBFBD><EFBFBD>Ʋ<EFBFBD><C6B2><EFBFBD><EFBFBD><E9A5A6>ʩ<EFBFBD><CAA9>" 1 600
+#DICT crger PREFIX_DIR/share/dict/cdrom/yrrs092/crger/start "<22><><EFBFBD><EFBFBD>Ʋ<EFBFBD><C6B2><EFBFBD><EFBFBD><E9A5A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 1 600
+#DICT italian /usr/local/share/dict/cdrom/yrrs214/jiten/start "<22><><EFBFBD><EFBFBD><E5A5A4><EFBFBD><EFBFBD><EAA5A2>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD>ŵ" 1 600
+#DICT italian-j /usr/local/share/dict/cdrom/yrrs214/jiten/start "<22><><EFBFBD><EFBFBD><E5A5A4><EFBFBD><EFBFBD><EAA5A2>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD>ŵ" 1 600
+#DICT oxford /usr/local/share/dict/cdrom/san042/oxford/start "OxfordEnglishDictionary" 1 600
+#DICT CDkojien PREFIX_DIR/share/dict/cdrom/cdkouji/koujien/data/honmon "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ã<EFBFBD><C3A3><EFBFBD>" 1 600
+#DICTROOT PREFIX_DIR/share/dict/cdrom 2 500
## access controle
#
-topics
+localhost
#
+##DICT eiwa PREFIX_DIR/share/dict/cdrom/yrrs118/chujiten/start "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 25 600
+##DICT waei PREFIX_DIR/share/dict/cdrom/yrrs118/chujiten/start "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 25 600
+##DICT eiwa PREFIX_DIR/share/dict/cdrom/yrrs118/chujiten/start.comp "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" 25 600
+##DICT waei PREFIX_DIR/share/dict/cdrom/yrrs118/chujiten/start.comp "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>±<EFBFBD>" 25 600
--- server2.2-pl2/compress/Makefile.orig Sat Aug 10 02:10:29 1996
+++ server2.2-pl2/compress/Makefile Tue Jan 28 08:22:43 1997
@@ -11,11 +11,15 @@
CFLAGS = -O -Wall
LFLAGS =
+
OBJ1 = main.o compress.o
OBJS = $(OBJ1)
PROG = makedic
+BINDIR = ${PREFIX}/bin
+
+all: $(PROG)
$(PROG) : $(OBJS)
$(CC) $(OBJS) $(LFLAGS) -o $(PROG)
@@ -26,5 +30,8 @@
main.o : defs.h
comp.o : defs.h
+install: $(PROG)
+ install -s $(PROG) $(BINDIR)
+
clean:
- rm -f *.o core makedic *~
+ rm -f *.o core makedic *~
--- server2.2-pl2/compress/main.c.orig Sat Aug 10 02:10:30 1996
+++ server2.2-pl2/compress/main.c Tue Jan 28 08:22:43 1997
@@ -3,6 +3,21 @@
by toshioji@darkover.iijnet.or.jp
dic version 0.24 cdio.c by kmiya <20><><EFBFBD><EFBFBD><EFBFBD>򸵤˺<F2B8B5A4><CBBA><EFBFBD>
+
+========== dic.man <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѳ<EFBFBD><D1B3><EFBFBD> ==========
+DIC(1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EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD><EFBFBD><EFBFBD> <20><>
+ <20><>ͳ<EFBFBD><CDB3> <20>Ԥ<EFBFBD><D4A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD><CBA4><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD>˾<EFBFBD><CBBE><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
+========== dic.man <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѽ<EFBFBD>λ ==========
*/
#include "defs.h"
@@ -36,10 +51,95 @@
return 0;
}
+char ok(char *string)
+{
+ char key_buf[2];
+
+ fputs( string, stdout );
+ fgets( key_buf, 2, stdin );
+ return key_buf[0];
+}
+
+void caution(void)
+{
+
+ puts("<<<<<<<<< makedic <20><><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˢ<EFBFBD>ɬ<EFBFBD><C9AC><EFBFBD><EFBFBD><EFBFBD>ʲ<EFBFBD><CAB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD>ǧ<EFBFBD><C7A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>>>>>>>>>>
+
+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> dserver/server2.1/README<4D>ּ<EFBFBD>ɮ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD><C5A1>Ķ<EFBFBD><C4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥฦ<C6A5><E0B8A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9A5A4><EFBFBD>󥹴ط<F3A5B9B4><D8B7>ε<EFBFBD><CEB5>Ҥ<EFBFBD>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΤǤ<CEA4><C7A4><EFBFBD>
+
+==================== dserver/server2.1/README ====================
+
+ <20><EFBFBD><E9A5A4><EFBFBD>󥹤Ϥ<F3A5B9A4><CFA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC>äƲ<C3A4><C6B2><EFBFBD><EFBFBD><EFBFBD>,<2C>ʲ<EFBFBD><CAB2>˻<EFBFBD><CBBB>ĵ<EFBFBD>Ϻ<mita@jp.FreeBSD.org>
+ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>٤Ʋ<D9A4><C6B2><EFBFBD><EFBFBD>ä<EFBFBD>ʸ<EFBFBD>Ϥ<EFBFBD>ź<EFBFBD>դ<EFBFBD><D5A4>ޤ<EFBFBD>.
+
+------------------------------------------------------------------------
+" );
+ ok( "<<3C><><EFBFBD>ԥ<EFBFBD><D4A5><EFBFBD><EFBFBD>򲡤<EFBFBD><F2B2A1A4>Ʋ<EFBFBD><C6B2><EFBFBD><EFBFBD><EFBFBD>>" );
+
+ puts("
+ <20><EFBFBD><E9A5A4><EFBFBD>󥹤ˤĤ<CBA4><C4A4><EFBFBD> <20><><EFBFBD>ĵ<EFBFBD>Ϻ <mita@jp.FreeBSD.org>
+
+ dserver<65>ϡ<EFBFBD>8cmCDROM<4F>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD>ҿ<EFBFBD><D2BF><EFBFBD><EFBFBD>¡<EFBFBD><C2A1>±<EFBFBD><C2B1>漭ŵ<E6BCAD><C5B5><EFBFBD><EFBFBD><EFBFBD>Ƚ<EFBFBD>Ź<EFBFBD><C5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
+ <20>Ϥ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+<2B>ʾ<EFBFBD>
+");
+ switch( ok( "<22><><EFBFBD><EFBFBD><EFBFBD>򰵽̤<F2B0B5BD><CCA4>ƥϡ<C6A5><CFA1>ɥǥ<C9A5><C7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˥<EFBFBD><CBA5>ԡ<EFBFBD><D4A1><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD>
+<2B><EFBFBD><E9A5A4><EFBFBD>󥹾<EFBFBD><F3A5B9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϥ<EFBFBD><CFA4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>[y/n] " ) ) {
+ case 'y':
+ case 'Y':
+ puts( "\n<><6E><EFBFBD>̤򳫻Ϥ<F2B3ABBB><CFA4>ޤ<EFBFBD><DEA4><EFBFBD>\n" );
+ break;
+ default:
+ puts( "\n<><EFBFBD><E9A5A4><EFBFBD>󥹾<EFBFBD><F3A5B9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EAA4AC><EFBFBD><EFBFBD><EFBFBD>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4>ޤ<EFBFBD><DEA4><EFBFBD>\n" );
+ exit( -1 );
+ break;
+ }
+}
+
int main(int argc, char *argv[])
{
+ caution();
+
if( argc < 3 ) {
- fprintf( stderr, "%s soce_filename dest_filename\n", argv[ 0 ] );
+ fprintf( stderr, "Usage: %s soce_filename dest_filename\n", argv[ 0 ] );
exit( -1 );
}