1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
|
diff -Naur Canna36p1.orig/Canna.conf Canna36p1/Canna.conf
--- Canna36p1.orig/Canna.conf 2002-12-02 09:44:59.000000000 +0900
+++ Canna36p1/Canna.conf 2002-12-02 22:03:25.000000000 +0900
@@ -132,20 +132,26 @@
/* root�ˤʤ餺�˥��ȡ��뤹����Ϥ����������Ʋ����� */
/* #define InstallAsUser */
-cannaPrefix = /usr/local/canna
+cannaPrefix = /usr
cannaExecPrefix = $(cannaPrefix)
cannaBinDir = $(cannaExecPrefix)/bin
-cannaSrvDir = $(cannaExecPrefix)/bin
-cannaLibDir = $(cannaPrefix)/lib
-cannaManDir = $(cannaPrefix)/man
+cannaSrvDir = $(cannaExecPrefix)/sbin
+cannaLibDir = /etc/canna
+cannaEtcDir = /etc/canna
+cannaManDir = $(cannaPrefix)/share/man
cannaIncDir = $(cannaPrefix)/include/canna
+cannaDocDir = $(cannaPrefix)/share/doc/canna-3.6
+cannaShareDir = $(cannaPrefix)/share/canna
+
+LockDir = /tmp/.iroha_unix
+LockFile = IROHA
#ifdef InstallAsUser
libCannaDir = $(cannaExecPrefix)/lib
ErrDir = $(cannaExecPrefix)/log
#else
libCannaDir = /usr/lib
-ErrDir = /usr/spool/canna
+ErrDir = /var/log/canna
#endif
/* ����3�Ԥ��ѹ����ʤ��Ǥ������� */
@@ -164,7 +170,7 @@
pointerIntegerDef =
-cannaDsoRev = 1
+cannaDsoRev = 1.0
/* SunOS 4.x �Ȥ������� shared object �����Ѥ�����ˤ�
cannaDsoRev = 1.1
�Ȼ��ꤷ�Ƥ����������ޤ���FreeBSD �����Ѥ�����ϡ�
@@ -231,7 +237,7 @@
/* #define UseInstalledLibCanna YES */
#define UseInstalledLibCanna NO
-DicDir = $(cannaLibDir)/dic
+DicDir = /var/lib/canna/dic
#ifdef NeXT
#define NO_X_ENV
@@ -348,6 +354,9 @@
echo "s%@(UnixSockDir)%$(UnixSockDir)%g"; \ @@\
echo "s%@(UnixSockName)%$(UnixSockName)%g"; \ @@\
echo "s%@(AccessFile)%$(AccessFile)%g"; \ @@\
+ echo "s%@(DicDir)%$(DicDir)%g"; \ @@\
+ echo "s%@(LockDir)%$(LockDir)%g"; \ @@\
+ echo "s%@(LockFile)%$(LockFile)%g"; \ @@\
echo "s%@(ErrDir)%$(ErrDir)%g") > $(MANUALSED) @@\
clean:: @@\
$(RM) $(MANUALSED)
@@ -364,11 +373,16 @@
echo "s%@(UnixSockDir)%$(UnixSockDir)%g" >> $(MANUALSED) @@\
echo "s%@(UnixSockName)%$(UnixSockName)%g" >> $(MANUALSED) @@\
echo "s%@(AccessFile)%$(AccessFile)%g" >> $(MANUALSED) @@\
+ echo "s%@(DicDir)%$(DicDir)%g" >> $(MANUALSED) @@\
+ echo "s%@(LockDir)%$(LockDir)%g" >> $(MANUALSED) @@\
+ echo "s%@(LockFile)%$(LockFile)%g" >> $(MANUALSED) @@\
echo "s%@(ErrDir)%$(ErrDir)%g" >> $(MANUALSED) @@\
clean:: @@\
$(RM) $(MANUALSED)
#endif
+MANSUFFIX = 1 /* man section for user programs */
+
#ifdef InstallManPageLong
#undef InstallManPageLong
#endif
@@ -401,6 +415,8 @@
#define InstallManPage(file,destdir) @@\
InstallManPageLong(file,destdir,file)
+LIBMANSUFFIX = 3 /* man section for libraries */
+
#ifdef InstallLibManPageLong
#undef InstallLibManPageLong
#endif
@@ -527,6 +543,7 @@
echo "#define CANNAHOSTFILE '$(cannaLibDir)/cannahost'" >> junk @@\
echo "/* for lib/canna */" >> junk @@\
echo "#define CANNALIBDIR '$(cannaLibDir)'" >> junk @@\
+ echo "#define CANNASHAREDIR '$(cannaShareDir)'" >> junk @@\
echo "/* for scripts */" >> junk @@\
echo "#define CANNABINDIR $(cannaBinDir)" >> junk @@\
echo "/* others */" >> junk @@\
@@ -553,6 +570,7 @@
echo "#define CANNAHOSTFILE \"$(cannaLibDir)/cannahost\"";\ @@\
echo "/* for lib/canna */";\ @@\
echo "#define CANNALIBDIR \"$(cannaLibDir)\""; \ @@\
+ echo "#define CANNASHAREDIR \"$(cannaShareDir)\""; \ @@\
echo "/* for scripts */";\ @@\
echo "#define CANNABINDIR $(cannaBinDir)"; \ @@\
echo "/* others */";\ @@\
diff -Naur Canna36p1.orig/cmd/catdic/Imakefile Canna36p1/cmd/catdic/Imakefile
--- Canna36p1.orig/cmd/catdic/Imakefile 2002-11-07 23:46:02.000000000 +0900
+++ Canna36p1/cmd/catdic/Imakefile 2002-12-02 22:03:25.000000000 +0900
@@ -1,6 +1,9 @@
/* $Id: canna-3.6-r1-gentoo.diff,v 1.1 2002/12/02 14:41:51 nakano Exp $ */
#include "../../Canna.conf"
+/* gentoo: use hard links so that the image can be merged correctly */
+ LN = ln
+
CANNAROOT = ../..
CANNASRC = $(CANNAROOT)/lib/canna
RKCSRC = $(CANNAROOT)/lib/RKC
diff -Naur Canna36p1.orig/cmd/catdic/cannakill.man Canna36p1/cmd/catdic/cannakill.man
--- Canna36p1.orig/cmd/catdic/cannakill.man 2002-10-23 00:19:13.000000000 +0900
+++ Canna36p1/cmd/catdic/cannakill.man 2002-12-02 22:03:25.000000000 +0900
@@ -29,14 +29,14 @@
.SH "DESCRIPTION"
.PP
cannakill terminates operation of Kana-Kanji conversion server
-cannaserver(1M). This causes the server to delete the socket and
+cannaserver(1). This causes the server to delete the socket and
close all open dictionaries before terminating its processing.
.PP
-The user who has started cannaserver(1M) or the super user can only
-use cannakill(1M) to terminate operation of canncannaer.
+The user who has started cannaserver(1) or the super user can only
+use cannakill(1) to terminate operation of canncannaer.
.SH "FILES"
.IP "@(UnixSockDir)/@(UnixSockName)[:num]" 36
Socket
.SH "SEE ALSO"
.PP
-cannaserver(1M), cannastat(1), cannacheck(1)
+cannaserver(1), cannastat(1), cannacheck(1)
diff -Naur Canna36p1.orig/cmd/catdic/catdic.man Canna36p1/cmd/catdic/catdic.man
--- Canna36p1.orig/cmd/catdic/catdic.man 2002-10-19 17:27:33.000000000 +0900
+++ Canna36p1/cmd/catdic/catdic.man 2002-12-02 22:03:25.000000000 +0900
@@ -30,7 +30,7 @@
catdic downloads a dictionary file to the current directory.
The file downloaded is a dictionary file the dictionary name of which is
\fIremote-dic\fP. It is in the user dictionary directory of the machine
-on which \fIcannaserver\fP(1M) is in operation. (Hereafter, this machine
+on which \fIcannaserver\fP(1) is in operation. (Hereafter, this machine
is called the remote host.)
.SH "OPTIONS"
.IP "\-cs \fIcanna-server\fP (or \-cannaserver \fIcanna-server\fP)" 12
@@ -61,4 +61,4 @@
file ``test2.t''.
.SH "SEE ALSO"
.PP
-cannaserver(1M), lsdic(1), mkdic(1)
+cannaserver(1), lsdic(1), mkdic(1)
diff -Naur Canna36p1.orig/cmd/catdic/mkdic.man Canna36p1/cmd/catdic/mkdic.man
--- Canna36p1.orig/cmd/catdic/mkdic.man 2002-10-19 17:27:33.000000000 +0900
+++ Canna36p1/cmd/catdic/mkdic.man 2002-12-02 22:03:25.000000000 +0900
@@ -28,7 +28,7 @@
.SH "DESCRIPTION"
.PP
mkdic creates user dictionary named \fIremote-dic\fP in the user dictionary
-directory of the remote host, on which \fIcannaserver\fP(1M) is in operation.
+directory of the remote host, on which \fIcannaserver\fP(1) is in operation.
Dictionary file name \fIremote-dic\fP is assigned to this file at this time.
.PP
If the \- and \-l option isn't specified, mkdic creates an empty dictionary.
@@ -96,4 +96,4 @@
user1.t is a dictionary file name generated automatically by the system.
.SH "SEE ALSO"
.PP
-catdic(1), cannaserver(1M), lsdic(1)
+catdic(1), cannaserver(1), lsdic(1)
diff -Naur Canna36p1.orig/cmd/cshost/cshost.man Canna36p1/cmd/cshost/cshost.man
--- Canna36p1.orig/cmd/cshost/cshost.man 2002-10-19 17:27:34.000000000 +0900
+++ Canna36p1/cmd/cshost/cshost.man 2002-12-02 22:03:25.000000000 +0900
@@ -6,9 +6,9 @@
.SH "DESCRIPTION"
.PP
the \fIcshost\fP(1) prints the list of machines that are allowed to make
-connections to \fIcannaserver\fP(1M).
+connections to \fIcannaserver\fP(1).
.PP
-\fIcannaserver\fP(1M) allows network connections only from programs
+\fIcannaserver\fP(1) allows network connections only from programs
running on the same machine or machines listed in the file
/etc/hosts.canna. If /etc/hosts.canna does not exist or the file
is empty, access is granted to everyone.
diff -Naur Canna36p1.orig/dic/ideo/grammar/Imakefile Canna36p1/dic/ideo/grammar/Imakefile
--- Canna36p1.orig/dic/ideo/grammar/Imakefile 2002-10-19 17:27:34.000000000 +0900
+++ Canna36p1/dic/ideo/grammar/Imakefile 2002-12-02 22:03:25.000000000 +0900
@@ -85,6 +85,6 @@
InstallMultipleFlags($(ALLDIC),$(CANNADICDIR),-m 0664 $(cannaOwnerGroup))
install::
- $(CHGRP) $(cannaGroup) $(CANNADICDIR)
- $(CHOWN) $(cannaOwner) $(CANNADICDIR)
- $(CHMOD) ug+w $(CANNADICDIR)
+ $(CHGRP) $(cannaGroup) $(DESTDIR)$(CANNADICDIR)
+ $(CHOWN) $(cannaOwner) $(DESTDIR)$(CANNADICDIR)
+ $(CHMOD) ug+w $(DESTDIR)$(CANNADICDIR)
diff -Naur Canna36p1.orig/dic/phono/Imakefile Canna36p1/dic/phono/Imakefile
--- Canna36p1.orig/dic/phono/Imakefile 2002-10-19 17:27:40.000000000 +0900
+++ Canna36p1/dic/phono/Imakefile 2002-12-02 22:03:32.000000000 +0900
@@ -27,9 +27,10 @@
ROMAJI_DIC_DEF = -DSHIFT
- DICDIR = $(cannaLibDir)/dic
- SAMPLEDIR = $(cannaLibDir)/sample
- SAMPLESRCDIR = $(cannaLibDir)/sample/src
+ DICDIR = $(DicDir)
+ CANNASHAREDIR = $(cannaShareDir)
+ SAMPLEDIR = $(cannaDocDir)/sample
+ SAMPLESRCDIR = $(cannaDocDir)/sample/src
KPDEF = default.kpdef jdaemon.kpdef just.kpdef kaisoku.kpdef kana.kpdef \
lan5.kpdef matsu.kpdef newjis.kpdef romaji.kpdef sokuon.kpdef \
@@ -69,7 +70,7 @@
MakeDirectories(install,$(DICDIR))
MakeDirectories(install,$(SAMPLESRCDIR))
-InstallMultiple($(ROMKANA_TABLES),$(DICDIR))
+InstallMultiple($(ROMKANA_TABLES),$(CANNASHAREDIR))
#ifdef USE_OBSOLETE_STYLE_FILENAME
InstallNonExec(default.kpdef,$(SAMPLESRCDIR))
diff -Naur Canna36p1.orig/lib/canna/Imakefile Canna36p1/lib/canna/Imakefile
--- Canna36p1.orig/lib/canna/Imakefile 2002-10-20 17:20:33.000000000 +0900
+++ Canna36p1/lib/canna/Imakefile 2002-12-02 22:03:32.000000000 +0900
@@ -116,8 +116,8 @@
#endif /* ProjectX */
#endif /* DoSharedLib */
-sglobal.h: GSYM.awk globnames
- awk -f GSYM.awk < globnames > $@
+includes::
+ awk -f GSYM.awk < globnames > sglobal.h
clean::
$(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c sglobal.h
diff -Naur Canna36p1.orig/lib/canna/ebind.c Canna36p1/lib/canna/ebind.c
--- Canna36p1.orig/lib/canna/ebind.c 2002-10-19 17:27:48.000000000 +0900
+++ Canna36p1/lib/canna/ebind.c 2002-12-02 22:03:32.000000000 +0900
@@ -205,9 +205,9 @@
}
}
- inbuf[0] = (wchar_t)buffer_return[0];
+ inbuf[0] = (wchar_t)(buffer_return[0] & 0xff);
for (i = 1 ; i < nbytes ; i++) {
- inbuf[i] = (wchar_t)buffer_return[i];
+ inbuf[i] = (wchar_t)(buffer_return[i] & 0xff);
}
ch = buffer_return[0] & 0xff;
ret = XwcLookupKanji2(dpy, win, inbuf, inbufsize, nbytes, functionalChar,
diff -Naur Canna36p1.orig/lib/canna/romaji.c Canna36p1/lib/canna/romaji.c
--- Canna36p1.orig/lib/canna/romaji.c 2002-10-21 03:00:21.000000000 +0900
+++ Canna36p1/lib/canna/romaji.c 2002-12-02 22:03:32.000000000 +0900
@@ -438,7 +438,7 @@
}
}
-#if 0 /* currently CANNASHAREDDIR is not defined */
+#if 1 /* currently CANNASHAREDDIR is defined */
if (retval == (struct RkRxDic *)NULL) { /* added for Debian by ISHIKAWA Mutsumi <ishikawa@linux.or.jp> */
extern jrUserInfoStruct *uinfo;
diff -Naur Canna36p1.orig/misc/Imakefile Canna36p1/misc/Imakefile
--- Canna36p1.orig/misc/Imakefile 2002-10-21 03:00:21.000000000 +0900
+++ Canna36p1/misc/Imakefile 2002-12-02 22:03:32.000000000 +0900
@@ -34,11 +34,11 @@
MakeLintLibSubdirs($(SUBDIRS))
MakeLintSubdirs($(SUBDIRS),install.ln,install.ln)
-MakeDirectories(install,$(cannaLibDir)/sample/src)
+MakeDirectories(install,$(cannaDocDir)/sample/src)
#if defined(nec_ews_svr4) || defined(pcux_r32)
-InstallNamedNonExec(rMakefile,Makefile,$(cannaLibDir)/sample/src)
+InstallNamedNonExec(rMakefile,Makefile,$(cannaDocDir)/sample/src)
#else
-InstallNamedNonExec(cMakefile,Makefile,$(cannaLibDir)/sample/src)
+InstallNamedNonExec(cMakefile,Makefile,$(cannaDocDir)/sample/src)
#endif /* nec_ews_svr4 */
#ifdef USE_OBSOLETE_STYLE_FILENAME
@@ -49,8 +49,8 @@
$(CP) default.ca default.canna
#endif
-InstallNonExec(default.canna,$(cannaLibDir))
-InstallNonExec(is.c,$(cannaLibDir)/sample/src)
+InstallNonExec(default.canna,$(cannaEtcDir))
+InstallNonExec(is.c,$(cannaDocDir)/sample/src)
clean::
$(RM) $(PROGRAMS)
diff -Naur Canna36p1.orig/misc/initfiles/Imakefile Canna36p1/misc/initfiles/Imakefile
--- Canna36p1.orig/misc/initfiles/Imakefile 2002-10-19 17:27:52.000000000 +0900
+++ Canna36p1/misc/initfiles/Imakefile 2002-12-02 22:03:32.000000000 +0900
@@ -6,7 +6,7 @@
#endif
CANNAROOT = ../..
- SAMPLEDIR = $(cannaLibDir)/sample
+ SAMPLEDIR = $(cannaShareDir)
all::
diff -Naur Canna36p1.orig/server/server.man Canna36p1/server/server.man
--- Canna36p1.orig/server/server.man 2002-11-01 17:32:06.000000000 +0900
+++ Canna36p1/server/server.man 2002-12-02 22:09:56.000000000 +0900
@@ -28,19 +28,19 @@
.SH "DESCRIPTION"
.PP
cannaserver provides the Kana-Kanji conversion service. Usually all
-users on the network can access cannaserver(1M). The scope of
+users on the network can access cannaserver(1). The scope of
accessing sources (hosts, users) can be restricted using the
/etc/hosts.canna file.
.PP
-After starting, cannaserver(1M) immediately forks and enters the
+After starting, cannaserver(1) immediately forks and enters the
background process. Thus, you do not need to use '&' to set the
background process explicitly.
.PP
-When starting, cannaserver(1M) creates the UNIX domain socket
+When starting, cannaserver(1) creates the UNIX domain socket
@(UnixSockDir)/@(UnixSockName) to communicate clients. The
-socket is deleted automatically at the end of cannaserver(1M) if no
-trouble occurs. The socket may exist although cannaserver(1M) is
-not in operation (because cannaserver(1M) terminates abnormally, for
+socket is deleted automatically at the end of cannaserver(1) if no
+trouble occurs. The socket may exist although cannaserver(1) is
+not in operation (because cannaserver(1) terminates abnormally, for
example). In this case, delete the file manually.
.PP
Specification of the dictionary to use is determined by referencing
@@ -50,25 +50,25 @@
.IP "\fIddpath\fP" 12
Specifies the directory that contains the dictionary.
.IP "\-inet" 12
-The remote host can connect with the cannaserver(1M) using
+The remote host can connect with the cannaserver(1) using
the inet domain socket.
-By the default, the cannaserver(1M) uses only UNIX domain socket.
+By the default, the cannaserver(1) uses only UNIX domain socket.
i.e. Only clients in your local machine can connect to the server.
.IP "\-l \fIn\fP" 12
-Outputs the cannaserver(1M) log to /tmp/canna.log. n (1 to 5)
+Outputs the cannaserver(1) log to /tmp/canna.log. n (1 to 5)
specifies the log level.
.IP "\-d" 12
-Starts cannaserver(1M) in debug mode. It is executed as the
+Starts cannaserver(1) in debug mode. It is executed as the
foreground process. Log data at log level 5 is output to the standard
output.
.IP "\-u \fIuserid\fP" 12
-Specifies which user cannaserver(1M) runs as. By default, cannaserver(1M)
-runs as the user who started cannaserver(1M).
+Specifies which user cannaserver(1) runs as. By default, cannaserver(1)
+runs as the user who started cannaserver(1).
.IP "\-syslog" 12
-Outputs the cannaserver(1M) log to syslogd(8).
+Outputs the cannaserver(1) log to syslogd(8).
.IP "\-p \fInum\fP" 12
-If specified, cannaserver(1M) will use the port number 5680 + num. By
-default, cannaserver(1M) uses the port number 5680.
+If specified, cannaserver(1) will use the port number 5680 + num. By
+default, cannaserver(1) uses the port number 5680.
.SH "FILES"
.IP "@(UnixSockDir)/@(UnixSockName)[:num]" 36
Socket
@@ -78,4 +78,4 @@
Access control file
.SH "SEE ALSO"
.PP
-cannakill(1M), cannastat(1), cannacheck(1)
+cannakill(1), cannastat(1), cannacheck(1)
|