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
|
diff -urN Canna37b1.ORIG/Canna.conf Canna37b1/Canna.conf
--- Canna37b1.ORIG/Canna.conf 2003-09-27 15:23:08.000000000 +0900
+++ Canna37b1/Canna.conf 2003-09-27 19:09:13.000000000 +0900
@@ -114,7 +114,7 @@
# define DefErrDir /usr/spool/canna
# define DefLibCannaDir /usr/lib
# else
-# define DefErrDir /var/log
+# define DefErrDir /var/log/canna
# define DefLibCannaDir $(cannaExecPrefix)/lib
# endif
#endif
@@ -140,16 +140,18 @@
# define ModernElfLinkAvailable NO
#endif
-cannaPrefix = DefCannaPrefix
+cannaPrefix = /usr
cannaExecPrefix = $(cannaPrefix)
cannaBinDir = $(cannaExecPrefix)/bin
cannaSrvDir = DefCannaSrvDir
XCOMM cannaLibDir = /var/lib/canna
XCOMM cannaLibDir = /var/db/canna
cannaLibDir = DefCannaLibDir
-XCOMM cannaManDir = $(cannaPrefix)/share/man
-cannaManDir = $(cannaPrefix)/man
+cannaManDir = $(cannaPrefix)/share/man
+XCOMM cannaManDir = $(cannaPrefix)/man
cannaIncDir = $(cannaPrefix)/include/canna
+cannaDocDir = $(cannaPrefix)/share/doc/@cannapkgver@
+cannaShareDir = $(cannaPrefix)/share/canna
libCannaDir = DefLibCannaDir
ErrDir = DefErrDir
@@ -158,7 +160,7 @@
#define SupportOldWchar 1
/* IPv6���Ѥ������1��������Ƥ������� */
-#define UseInet6 0 /* requires newer IPv6 implementation */
+/* #define UseInet6 0 /* requires newer IPv6 implementation */
/* 3.2�Ϥ���3.6�ϤޤǤη����μ��������Ϥ����������Ƥ������� */
/* #define DIC_3_6_COMPAT */
@@ -237,7 +239,7 @@
/* #define UseInstalledLibCanna YES */
#define UseInstalledLibCanna NO
-DicDir = $(cannaLibDir)/dic
+DicDir = /var/lib/canna/dic
/* �������鲼���ѹ����פǤ� */
diff -urN Canna37b1.ORIG/Imakefile Canna37b1/Imakefile
--- Canna37b1.ORIG/Imakefile 2003-09-25 15:30:20.000000000 +0900
+++ Canna37b1/Imakefile 2003-09-27 19:09:00.000000000 +0900
@@ -55,6 +55,7 @@
@echo "#define CANNAHOSTFILE '$(cannaLibDir)/cannahost'" >> junkjunk
@echo "/* for lib/canna */" >> junkjunk
@echo "#define CANNALIBDIR '$(cannaLibDir)'" >> junkjunk
+ @echo "#define CANNASHAREDIR '$(cannaShareDir)'" >> junkjunk
@echo "#define SUPPORT_OLD_WCHAR '$(supportOldWchar)'" >> junkjunk
@echo "/* for scripts */" >> junkjunk
@echo "#define CANNABINDIR $(cannaBinDir)" >> junkjunk
@@ -83,6 +84,7 @@
echo "#define CANNAHOSTFILE \"$(cannaLibDir)/cannahost\"";\
echo "/* for lib/canna */";\
echo "#define CANNALIBDIR \"$(cannaLibDir)\""; \
+ echo "#define CANNASHAREDIR \"$(cannaShareDir)\""; \
echo "#define SUPPORT_OLD_WCHAR $(supportOldWchar)"; \
echo "/* for scripts */";\
echo "#define CANNABINDIR $(cannaBinDir)"; \
diff -urN Canna37b1.ORIG/dic/phono/Imakefile Canna37b1/dic/phono/Imakefile
--- Canna37b1.ORIG/dic/phono/Imakefile 2002-10-19 17:27:40.000000000 +0900
+++ Canna37b1/dic/phono/Imakefile 2003-09-27 19:09:00.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 -urN Canna37b1.ORIG/lib/canna/romaji.c Canna37b1/lib/canna/romaji.c
--- Canna37b1.ORIG/lib/canna/romaji.c 2003-09-17 17:50:53.000000000 +0900
+++ Canna37b1/lib/canna/romaji.c 2003-09-27 19:09:00.000000000 +0900
@@ -427,7 +427,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 -urN Canna37b1.ORIG/misc/Imakefile Canna37b1/misc/Imakefile
--- Canna37b1.ORIG/misc/Imakefile 2003-03-05 04:23:53.000000000 +0900
+++ Canna37b1/misc/Imakefile 2003-09-27 19:09:00.000000000 +0900
@@ -48,7 +48,7 @@
MakeLintLibSubdirs($(SUBDIRS))
MakeLintSubdirs($(SUBDIRS),install.ln,install.ln)
-MakeDirectories(install,$(cannaLibDir)/sample/src)
+MakeDirectories(install,$(cannaDocDir)/sample/src)
#ifdef USE_OBSOLETE_STYLE_FILENAME
default.canna: default.ca
@@ -58,8 +58,8 @@
$(CP) default.ca default.canna
#endif
-InstallNonExec(default.canna,$(cannaLibDir))
-InstallNonExec(is.c,$(cannaLibDir)/sample/src)
+InstallNonExec(default.canna,$(cannaDocDir))
+InstallNonExec(is.c,$(cannaDocDir)/sample/src)
clean::
$(RM) $(PROGRAMS)
diff -urN Canna37b1.ORIG/misc/initfiles/Imakefile Canna37b1/misc/initfiles/Imakefile
--- Canna37b1.ORIG/misc/initfiles/Imakefile 2003-02-04 05:13:01.000000000 +0900
+++ Canna37b1/misc/initfiles/Imakefile 2003-09-27 19:09:00.000000000 +0900
@@ -6,7 +6,7 @@
#endif
CANNAROOT = ../..
- SAMPLEDIR = $(cannaLibDir)/sample
+ SAMPLEDIR = $(cannaShareDir)
all::
|