summaryrefslogtreecommitdiff
path: root/inputmethod/sj3-lib
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-05-31 13:00:27 +0000
committerseb <seb@pkgsrc.org>2002-05-31 13:00:27 +0000
commitdb5a700d20fd2ff01286c8f231d8efd906a6f323 (patch)
tree7229745a94d113f1d79d7fb8c4e28d44d297ba3b /inputmethod/sj3-lib
parent075de81f04bf73e5ffa02e30289c2d6fe5c68b30 (diff)
downloadpkgsrc-db5a700d20fd2ff01286c8f231d8efd906a6f323.tar.gz
Reimport of package sj3-lib from japanese/sj3-lib into inputmethod/sj3-lib.
This is part of the japanese category retirement. CATEGORIES adjusted.
Diffstat (limited to 'inputmethod/sj3-lib')
-rw-r--r--inputmethod/sj3-lib/DESCR20
-rw-r--r--inputmethod/sj3-lib/Makefile21
-rw-r--r--inputmethod/sj3-lib/PLIST3
-rw-r--r--inputmethod/sj3-lib/distinfo11
-rw-r--r--inputmethod/sj3-lib/patches/patch-aa452
-rw-r--r--inputmethod/sj3-lib/patches/patch-ab20
-rw-r--r--inputmethod/sj3-lib/patches/patch-ac13
-rw-r--r--inputmethod/sj3-lib/patches/patch-ad39
-rw-r--r--inputmethod/sj3-lib/patches/patch-ae28
-rw-r--r--inputmethod/sj3-lib/patches/patch-af16
-rw-r--r--inputmethod/sj3-lib/patches/patch-ag95
11 files changed, 718 insertions, 0 deletions
diff --git a/inputmethod/sj3-lib/DESCR b/inputmethod/sj3-lib/DESCR
new file mode 100644
index 00000000000..3daaeb2d9b6
--- /dev/null
+++ b/inputmethod/sj3-lib/DESCR
@@ -0,0 +1,20 @@
+This is SJ3 2.0.1.20, a Japanese input method.
+This system developed by Sony Corporation.
+SJ3 is composed of Kana-Kanji conversion server(sj3serv),
+Kana-Kanji conversion client for terminal(sj3) and Kana-Kanji
+conversion library(sj3lib).
+
+If you start up sj3serv, you must add a following entry into
+/etc/services file or NIS/YP services map.
+
+sj3 3086/tcp
+
+This port number may be changed by the setup file(See manpages).
+
+This also include many patches for FreeBSD or others.
+(Remove warning, support pseudo-terminal of FreeBSD,
+ some bug fix and change make rules.) If there are any problem
+in this patches, please know me via E-mail.
+
+Hidekazu Kuroki
+(hidekazu@cs.titech.ac.jp)
diff --git a/inputmethod/sj3-lib/Makefile b/inputmethod/sj3-lib/Makefile
new file mode 100644
index 00000000000..6805c8c965a
--- /dev/null
+++ b/inputmethod/sj3-lib/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+# FreeBSD Id: Makefile,v 1.9 1998/11/28 05:08:27 asami Exp $
+
+DISTNAME= sj3-2.0.1.20
+PKGNAME= sj3-lib-2.0.1.20
+CATEGORIES= japanese inputmethod
+MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \
+ ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/
+
+MAINTAINER= tech-pkg-ja@jp.netbsd.org
+COMMENT= Japanese input method (library)
+
+pre-configure:
+ @${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
+ @${SED} -e 's|\(SUBDIRS = \).*\(sj3lib\).*|\1\2|' \
+ ${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
+
+do-configure:
+ @(cd ${WRKSRC}; ${X11BASE}/bin/xmkmf; ${MAKE} Makefiles)
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/sj3-lib/PLIST b/inputmethod/sj3-lib/PLIST
new file mode 100644
index 00000000000..a65abfd4359
--- /dev/null
+++ b/inputmethod/sj3-lib/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+include/sj3lib.h
+lib/libsj3lib.a
diff --git a/inputmethod/sj3-lib/distinfo b/inputmethod/sj3-lib/distinfo
new file mode 100644
index 00000000000..8a6f59f3f22
--- /dev/null
+++ b/inputmethod/sj3-lib/distinfo
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+
+SHA1 (sj3-2.0.1.20.tar.gz) = b1cae59065ebc9caf5e198143ceb9558c932f259
+Size (sj3-2.0.1.20.tar.gz) = 584065 bytes
+SHA1 (patch-aa) = e2c60ca8709f8b78833ebc4f506b4cc63812a5bd
+SHA1 (patch-ab) = a64f78ccb3db3f4349f191abe47c6daebb2bbadd
+SHA1 (patch-ac) = a2a9c21618e7de1e56d371cb05cf866d549d50a1
+SHA1 (patch-ad) = be015448eb4ee267a2228838cc2a08e2586b0a85
+SHA1 (patch-ae) = 3b07eb2ea9d72049a8f322220836a631598ea7dc
+SHA1 (patch-af) = 33ac72303dfa13929d423ecaf5d9b7cb308f8ff5
+SHA1 (patch-ag) = b01fda538eb70a8f66cd42bcc719e24da848929f
diff --git a/inputmethod/sj3-lib/patches/patch-aa b/inputmethod/sj3-lib/patches/patch-aa
new file mode 100644
index 00000000000..8857af6cf48
--- /dev/null
+++ b/inputmethod/sj3-lib/patches/patch-aa
@@ -0,0 +1,452 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+
+diff -arcN ../sj3-2.0.1.13.org/doc/doc/sj3lib.ms ./doc/doc/sj3lib.ms
+*** ../sj3-2.0.1.13.org/doc/doc/sj3lib.ms Fri Jun 3 17:00:49 1994
+--- ./doc/doc/sj3lib.ms Tue Aug 13 03:17:26 1996
+***************
+*** 56,62 ****
+ .IP ・
+ メイン辞書、ユーザ辞書、学習ファイルは、接続するサーバの動作しているマシン上のものが使用されます。
+ .br
+! これらのファイルは、デフォルトではディレクトリ \fB/usr/dict/sj3\fP の下におかれますが、サーバのセットアップファイルにより変更が可能です。
+ .IP ・
+ ユーザ辞書と学習ファイルは、関数 sj3_open で指定されたユーザ名を USER と
+ すれば、\fBuser/USER/private.dic\fP と \fBuser/USER/study.dat\fP です。
+--- 56,62 ----
+ .IP ・
+ メイン辞書、ユーザ辞書、学習ファイルは、接続するサーバの動作しているマシン上のものが使用されます。
+ .br
+! これらのファイルは、デフォルトではディレクトリ \fB/usr/local/lib/sj3/dict\fP の下におかれますが、サーバのセットアップファイルにより変更が可能です。
+ .IP ・
+ ユーザ辞書と学習ファイルは、関数 sj3_open で指定されたユーザ名を USER と
+ すれば、\fBuser/USER/private.dic\fP と \fBuser/USER/study.dat\fP です。
+***************
+*** 91,97 ****
+ サーバと正常に接続できたときには 0 を、何かエラーのあったときには 0 以外の
+ エラーステータスを返します。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 定義されるビットアサインされた値で、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_SERVER_DEAD\fP
+--- 91,97 ----
+ サーバと正常に接続できたときには 0 を、何かエラーのあったときには 0 以外の
+ エラーステータスを返します。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 定義されるビットアサインされた値で、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_SERVER_DEAD\fP
+***************
+*** 138,144 ****
+ サーバとの使用を正常に終了できたときには 0 を、
+ 何かエラーのあったときには 0 以外のエラーステータスを返します。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 定義されるビットアサインされた値で、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_SERVER_DEAD\fP
+--- 138,144 ----
+ サーバとの使用を正常に終了できたときには 0 を、
+ 何かエラーのあったときには 0 以外のエラーステータスを返します。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 定義されるビットアサインされた値で、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_SERVER_DEAD\fP
+***************
+*** 187,193 ****
+ 変換結果の漢字文字列を、配列 \fBstruct bunsetu bun[]\fP に
+ 各文節に関する情報をセットします。
+ .br
+! \fBstruct bunsetu\fP はヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 宣言されている以下のような構造体です。
+ .sp
+ .RS
+--- 187,193 ----
+ 変換結果の漢字文字列を、配列 \fBstruct bunsetu bun[]\fP に
+ 各文節に関する情報をセットします。
+ .br
+! \fBstruct bunsetu\fP はヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 宣言されている以下のような構造体です。
+ .sp
+ .RS
+***************
+*** 417,423 ****
+ なりません。
+ またその長さは、最大でも 32 文字を越えてはなりません。
+ .sp
+! 品詞コードはヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 定義される以下の品詞のうちの一つです。
+ .sp
+ .RS
+--- 417,423 ----
+ なりません。
+ またその長さは、最大でも 32 文字を越えてはなりません。
+ .sp
+! 品詞コードはヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 定義される以下の品詞のうちの一つです。
+ .sp
+ .RS
+***************
+*** 445,451 ****
+ 登録できたときには 0 が、登録できなかったときにはそれ以外の
+ エラーステータスが返されます。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/include/sj3lib.h\fP で
+ 定義され、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_DICT_ERROR\fP
+--- 445,451 ----
+ 登録できたときには 0 が、登録できなかったときにはそれ以外の
+ エラーステータスが返されます。
+ .sp
+! エラーステータスはヘッダファイル \fB/usr/local/include/sj3lib.h\fP で
+ 定義され、詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_DICT_ERROR\fP
+***************
+*** 519,525 ****
+ なりません。
+ またその長さは、最大でも 32 文字を越えてはなりません。
+ .sp
+! 品詞コードは \fB/usr/include/sj3lib.h\fP で定義される以下の品詞の
+ うちの一つです。
+ .sp
+ .RS
+--- 519,525 ----
+ なりません。
+ またその長さは、最大でも 32 文字を越えてはなりません。
+ .sp
+! 品詞コードは \fB/usr/local/include/sj3lib.h\fP で定義される以下の品詞の
+ うちの一つです。
+ .sp
+ .RS
+***************
+*** 547,553 ****
+ 削除できたときには 0 が、削除できなかったときにはそれ以外の
+ エラーステータスが返されます。
+ .sp
+! エラーステータスは \fB/usr/include/sj3lib.h\fP で定義され、
+ 詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_DICT_ERROR\fP
+--- 547,553 ----
+ 削除できたときには 0 が、削除できなかったときにはそれ以外の
+ エラーステータスが返されます。
+ .sp
+! エラーステータスは \fB/usr/local/include/sj3lib.h\fP で定義され、
+ 詳細は以下のとおりです。
+ .sp
+ .IP "\fBSJ3_DICT_ERROR\fP
+diff -arcN ../sj3-2.0.1.13.org/doc/doc/sj3serv.ms ./doc/doc/sj3serv.ms
+*** ../sj3-2.0.1.13.org/doc/doc/sj3serv.ms Fri Jun 3 17:00:50 1994
+--- ./doc/doc/sj3serv.ms Tue Aug 13 03:18:01 1996
+***************
+*** 111,117 ****
+ そのファイル名を絶対パスとして辞書にアクセスしますが、\'/\'以外のときには、
+ ここで指定されるディレクトリからの相対パスとして辞書にアクセスします。
+ .br
+! デフォルトは /usr/dict/sj3 です。
+ .RE
+ .sp
+ .NH 3
+--- 111,117 ----
+ そのファイル名を絶対パスとして辞書にアクセスしますが、\'/\'以外のときには、
+ ここで指定されるディレクトリからの相対パスとして辞書にアクセスします。
+ .br
+! デフォルトは /usr/local/lib/sj3/dict です。
+ .RE
+ .sp
+ .NH 3
+diff -arcN ../sj3-2.0.1.13.org/doc/man/sj3.1 ./doc/man/sj3.1
+*** ../sj3-2.0.1.13.org/doc/man/sj3.1 Fri Jun 3 17:00:51 1994
+--- ./doc/man/sj3.1 Tue Aug 13 03:18:59 1996
+***************
+*** 109,121 ****
+ .SH 関連ファイル
+ .PD 0
+ .TP 15
+! /usr/dict/sj3/user/$USER/private.dic
+ 仮名漢字変換ユーザ辞書
+ .TP
+! /usr/dict/sj3/user/$USER/study.dat
+ 仮名漢字変換学習ファイル
+ .TP
+! /usr/lib/sj3/sjrk
+ デフォルトローマ字仮名変換規則定義ファイル
+ .SH 関連事項
+ sj3serv(1), sj3lib(3)
+--- 109,121 ----
+ .SH 関連ファイル
+ .PD 0
+ .TP 15
+! /usr/local/lib/sj3/dict/user/$USER/private.dic
+ 仮名漢字変換ユーザ辞書
+ .TP
+! /usr/local/lib/sj3/dict/user/$USER/study.dat
+ 仮名漢字変換学習ファイル
+ .TP
+! /usr/local/lib/sj3/sjrk
+ デフォルトローマ字仮名変換規則定義ファイル
+ .SH 関連事項
+ sj3serv(1), sj3lib(3)
+diff -arcN ../sj3-2.0.1.13.org/doc/man/sj3dic.1 ./doc/man/sj3dic.1
+*** ../sj3-2.0.1.13.org/doc/man/sj3dic.1 Fri Jun 3 17:00:52 1994
+--- ./doc/man/sj3dic.1 Tue Aug 13 03:19:55 1996
+***************
+*** 105,120 ****
+ .SH 関連ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
+! /usr/bin/sj3serv
+ かな漢字変換サーバ
+ .TP
+! /usr/lib/sj3/serverrc
+ かな漢字変換サーバ セットアップファイル
+ .TP
+! /usr/bin/sj3
+ 日本語入力フロントエンドプロセッサ
+ .TP
+! /usr/dict/sj3/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ sj3main.dic
+--- 105,120 ----
+ .SH 関連ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
+! /usr/local/bin/sj3serv
+ かな漢字変換サーバ
+ .TP
+! /usr/local/lib/sj3/serverrc
+ かな漢字変換サーバ セットアップファイル
+ .TP
+! /usr/local/bin/sj3
+ 日本語入力フロントエンドプロセッサ
+ .TP
+! /usr/local/lib/sj3/dict/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ sj3main.dic
+***************
+*** 126,135 ****
+ user/\fIusername\fP/study.dat
+ かな漢字変換学習ファイル
+ .TP
+! /usr/include/sj3lib.h
+ かな漢字変換ライブラリ用インクルードファイル
+ .TP
+! /usr/lib/libsj3lib.a
+ かな漢字変換ライブラリ
+ .\".TP
+ .\"/usr/sony/demo/sj3/*
+--- 126,135 ----
+ user/\fIusername\fP/study.dat
+ かな漢字変換学習ファイル
+ .TP
+! /usr/local/include/sj3lib.h
+ かな漢字変換ライブラリ用インクルードファイル
+ .TP
+! /usr/local/lib/libsj3lib.a
+ かな漢字変換ライブラリ
+ .\".TP
+ .\"/usr/sony/demo/sj3/*
+diff -arcN ../sj3-2.0.1.13.org/doc/man/sj3mkdic.1 ./doc/man/sj3mkdic.1
+*** ../sj3-2.0.1.13.org/doc/man/sj3mkdic.1 Fri Dec 9 18:15:37 1994
+--- ./doc/man/sj3mkdic.1 Tue Aug 13 03:20:17 1996
+***************
+*** 550,565 ****
+ .SH ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\f2username\f1/private.dic'u+2n
+! .B /usr/bin/sj3serv
+ かな漢字変換サーバ
+ .TP
+! .B /usr/lib/sj3/serverrc
+ かな漢字変換サーバ セットアップファイル
+ .TP
+! .B /usr/bin/sj3
+ 日本語入力フロントエンドプロセッサ
+ .TP
+! .B /usr/dict/sj3/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ .B " sj3main.dic
+--- 550,565 ----
+ .SH ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\f2username\f1/private.dic'u+2n
+! .B /usr/local/bin/sj3serv
+ かな漢字変換サーバ
+ .TP
+! .B /usr/local/lib/sj3/serverrc
+ かな漢字変換サーバ セットアップファイル
+ .TP
+! .B /usr/local/bin/sj3
+ 日本語入力フロントエンドプロセッサ
+ .TP
+! .B /usr/local/lib/sj3/dict/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ .B " sj3main.dic
+***************
+*** 571,584 ****
+ .B " user/\f2username\f1/study.dat
+ かな漢字変換学習ファイル
+ .TP
+! .B /usr/include/sj3lib.h
+ かな漢字変換ライブラリ用インクルードファイル
+ .TP
+! .B /usr/lib/libsj3lib.a
+ かな漢字変換ライブラリ
+! .TP
+! \f3/usr/demo/sj3/ *\f1
+! かな漢字変換ライブラリ 使用法サンプル
+ .PD
+ .SH 関連項目
+ \f4sj3\f1 (1),
+--- 571,584 ----
+ .B " user/\f2username\f1/study.dat
+ かな漢字変換学習ファイル
+ .TP
+! .B /usr/local/include/sj3lib.h
+ かな漢字変換ライブラリ用インクルードファイル
+ .TP
+! .B /usr/local/lib/libsj3lib.a
+ かな漢字変換ライブラリ
+! .\".TP
+! .\"\f3/usr/local/demo/sj3/ *\f1
+! .\"かな漢字変換ライブラリ 使用法サンプル
+ .PD
+ .SH 関連項目
+ \f4sj3\f1 (1),
+diff -arcN ../sj3-2.0.1.13.org/doc/man/sj3serv.1 ./doc/man/sj3serv.1
+*** ../sj3-2.0.1.13.org/doc/man/sj3serv.1 Fri Jun 3 17:00:53 1994
+--- ./doc/man/sj3serv.1 Tue Aug 13 03:20:41 1996
+***************
+*** 47,63 ****
+ このオプションは、\fIsj3serv\fP の読み込むセットアップファイルを指定します。
+ .br
+ \fIsj3serv\fP はデフォルトではセットアップファイル
+! ‘/usr/lib/sj3/serverrc’を読み込みますが、
+ このオプションが指定されたときにはかわりに
+ コマンドラインで指定されたセットアップファイルを読み込みます。
+ .br
+ .SH 関連ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
+! /usr/lib/sj3/serverrc
+ デフォルト仮名変換サーバ セットアップファイル
+ .TP
+! /usr/sony/dict/sj3/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ sj3main.dic
+--- 47,63 ----
+ このオプションは、\fIsj3serv\fP の読み込むセットアップファイルを指定します。
+ .br
+ \fIsj3serv\fP はデフォルトではセットアップファイル
+! ‘/usr/local/lib/sj3/serverrc’を読み込みますが、
+ このオプションが指定されたときにはかわりに
+ コマンドラインで指定されたセットアップファイルを読み込みます。
+ .br
+ .SH 関連ファイル
+ .PD 0
+ .TP \w'\ \ \ \ user/\fIusername\fP/private.dic'u+2n
+! /usr/local/lib/sj3/serverrc
+ デフォルト仮名変換サーバ セットアップファイル
+ .TP
+! /usr/local/lib/sj3/dict/
+ かな漢字変換サーバ デフォルト辞書ディレクトリ
+ .TP
+ sj3main.dic
+diff -arcN ../sj3-2.0.1.13.org/server/setup.c ./server/setup.c
+*** ../sj3-2.0.1.13.org/server/setup.c Fri Dec 9 20:27:07 1994
+--- ./server/setup.c Mon Aug 12 23:58:25 1996
+***************
+*** 221,250 ****
+ u_char *(*optfunc)();
+ int optarg;
+ } option[] = {
+ "DebugOut", get_str, (int)&debug_file,
+ "DebugLevel", get_int, (int)&debug_level,
+ "ForkFlag", get_flag, (int)&fork_flag,
+
+ "PortName", get_str, (int)&port_name,
+ #ifdef TLI
+ "PortNumber", get_str, (int)&port_number,
+! "ProtoName", get_str, (int)&proto_name,
+ #else
+ "PortNumber", get_int, (int)&port_number,
+ #endif
+ "SocketName", get_str, (int)&socket_name,
+ #ifdef LOCK_FILE
+ "LockFile", get_str, (int)&lock_file;
+ #endif
+
+ "maxclient", get_int, (int)&max_client,
+ "dictdir", get_str, (int)&dict_dir,
+ "readdict", get_list, (int)&read_dict,
+ "opendict", get_list, (int)&open_dict,
+ "errorout", get_str, (int)&error_file,
+ "logout", get_str, (int)&log_file,
+ "dirmode", get_int, (int)&dir_mode,
+ "filemode", get_int, (int)&file_mode,
+ "allowuser", get_list, (int)&allow_user,
+ 0, 0, 0
+ };
+--- 221,273 ----
+ u_char *(*optfunc)();
+ int optarg;
+ } option[] = {
++ /*
++ * Add option flag.
++ * Because They are lacked in here. See document.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ */
+ "DebugOut", get_str, (int)&debug_file,
++ "debugout", get_str, (int)&debug_file,
+ "DebugLevel", get_int, (int)&debug_level,
++ "debuglevel", get_int, (int)&debug_level,
+ "ForkFlag", get_flag, (int)&fork_flag,
++ "forkflag", get_flag, (int)&fork_flag,
+
+ "PortName", get_str, (int)&port_name,
++ "portname", get_str, (int)&port_name,
+ #ifdef TLI
+ "PortNumber", get_str, (int)&port_number,
+! "portnumber", get_str, (int)&port_number,
+! "ProtoName", get_str, (int)&proto_name,
+! "protoname", get_str, (int)&proto_name,
+ #else
+ "PortNumber", get_int, (int)&port_number,
++ "portnumber", get_int, (int)&port_number,
+ #endif
+ "SocketName", get_str, (int)&socket_name,
++ "socketname", get_str, (int)&socket_name,
+ #ifdef LOCK_FILE
+ "LockFile", get_str, (int)&lock_file;
++ "lockfile", get_str, (int)&lock_file;
+ #endif
+
++ "MaxClient", get_int, (int)&max_client,
+ "maxclient", get_int, (int)&max_client,
++ "DictDir", get_str, (int)&dict_dir,
+ "dictdir", get_str, (int)&dict_dir,
++ "ReadDict", get_list, (int)&read_dict,
+ "readdict", get_list, (int)&read_dict,
++ "OpenDict", get_list, (int)&open_dict,
+ "opendict", get_list, (int)&open_dict,
++ "ErrorOut", get_str, (int)&error_file,
+ "errorout", get_str, (int)&error_file,
++ "LogOut", get_str, (int)&log_file,
+ "logout", get_str, (int)&log_file,
++ "DirMode", get_int, (int)&dir_mode,
+ "dirmode", get_int, (int)&dir_mode,
++ "FileMode", get_int, (int)&file_mode,
+ "filemode", get_int, (int)&file_mode,
++ "AllowUser", get_list, (int)&allow_user,
+ "allowuser", get_list, (int)&allow_user,
+ 0, 0, 0
+ };
diff --git a/inputmethod/sj3-lib/patches/patch-ab b/inputmethod/sj3-lib/patches/patch-ab
new file mode 100644
index 00000000000..6ba8de99e41
--- /dev/null
+++ b/inputmethod/sj3-lib/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+
+--- include/Const.h.orig Thu Jan 23 12:20:52 1997
++++ include/Const.h Wed Dec 8 10:33:54 1999
+@@ -70,7 +70,15 @@
+ #define ProtoName "tcp"
+ #define PortNumber "3000"
+ #else
++/*
++ * Change the default Port number of sj3 for FreeBSD.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/20
++ */
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
++#define PortNumber 3086
++#else /* ! __FreeBSD__ __NetBSD__ __OpenBSD__ */
+ #define PortNumber 3000
++#endif /* ! __FreeBSD__ __NetBSD__ __OpenBSD__ */
+ #endif
+ #define DirectryMode 0755
+ #define DictFileMode 0644
diff --git a/inputmethod/sj3-lib/patches/patch-ac b/inputmethod/sj3-lib/patches/patch-ac
new file mode 100644
index 00000000000..1bbd2cd32d7
--- /dev/null
+++ b/inputmethod/sj3-lib/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+
+--- dict/dict/Imakefile.~1~ Thu Jan 23 20:20:51 1997
++++ dict/dict/Imakefile Tue Aug 18 10:51:14 1998
+@@ -48,7 +48,7 @@
+
+ XCOMM INSTFLAGS = -o $(SJ3OWNER) -g $(SJ3GROUP) -m 444
+
+-all: $(OBJS)
++all:: $(OBJS)
+
+ $(OBJS): $(SRCS)
+ $(TOOL_DIR)/$(TOOL_NAME) $(SRCS) $(OBJS) > $(OUTPUT)
diff --git a/inputmethod/sj3-lib/patches/patch-ad b/inputmethod/sj3-lib/patches/patch-ad
new file mode 100644
index 00000000000..d287141a79b
--- /dev/null
+++ b/inputmethod/sj3-lib/patches/patch-ad
@@ -0,0 +1,39 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+
+--- sj3.tmpl.orig Thu Jan 23 20:20:58 1997
++++ sj3.tmpl Fri Jul 30 20:27:08 1999
+@@ -32,12 +32,12 @@
+ * $SonyDate: 1997/01/23 11:20:57 $
+ */
+
+-SJ3TOP = /usr/local
++SJ3TOP = $(PREFIX)
+ SJ3BINDIR = $(SJ3TOP)/bin
+ SJ3HDRDIR = $(SJ3TOP)/include
+ SJ3LIBDIR = $(SJ3TOP)/lib
+-SJ3CONFDIR = $(SJ3TOP)/lib/sj3
+-SJ3DICTDIR = $(SJ3CONFDIR)/dict
++SJ3CONFDIR = $(SJ3TOP)/share/sj3
++SJ3DICTDIR = $(DICT_DIR)/sj3
+
+ /*
+ * Change for FreeBSD.
+@@ -45,10 +45,11 @@
+ * return NULL, use it in library libxpg4
+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+ */
++#if 0
+ #if defined(FreeBSDArchitecture)
+
+ CODE_LIBS = -lxpg4
+-SJ3OWNER = root
++SJ3OWNER = bin
+ SJ3GROUP = bin
+
+ #else
+@@ -61,4 +62,5 @@
+ SJ3GROUP = staff
+ #endif
+
++#endif
+ #endif
diff --git a/inputmethod/sj3-lib/patches/patch-ae b/inputmethod/sj3-lib/patches/patch-ae
new file mode 100644
index 00000000000..65ef5a725bb
--- /dev/null
+++ b/inputmethod/sj3-lib/patches/patch-ae
@@ -0,0 +1,28 @@
+$NetBSD: patch-ae,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+
+--- include/Paths.h.in.orig Thu Jan 23 20:20:57 1997
++++ include/Paths.h.in Tue Aug 18 11:29:00 1998
+@@ -33,7 +33,22 @@
+ * $SonyDate: 1997/01/23 11:20:55 $
+ */
+
+-#define ErrorOutFile "/dev/console"
++/*
++ * Change ErrotOutFile variable.
++ * Because suppress a error when sj3serv start up, change to "/dev/stderr".
++ * This error is "Cannot Open "/dev/console".".
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
++ *
++ * Change ErrotOutFile variable.
++ * This default value is "/dev/null" in document.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/11
++ */
++#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
++#define ErrorOutFile "/dev/console"
++#else
++/* #define ErrorOutFile "/dev/stderr" */ /* for test */
++#define ErrorOutFile "/dev/null"
++#endif
+
+ #define SocketName "/tmp/sj3sock"
+ #define LockFile "/tmp/SJ3SERV.EXIST"
diff --git a/inputmethod/sj3-lib/patches/patch-af b/inputmethod/sj3-lib/patches/patch-af
new file mode 100644
index 00000000000..3bb6087913c
--- /dev/null
+++ b/inputmethod/sj3-lib/patches/patch-af
@@ -0,0 +1,16 @@
+$NetBSD: patch-af,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+
+--- server/main.c.orig Mon Mar 23 19:48:03 1998
++++ server/main.c Mon Aug 2 19:26:45 1999
+@@ -215,9 +215,11 @@
+ (void) setlocale(LC_CTYPE, "ja_JP.EUC");
+ #endif
+ opening();
++#ifndef __NetBSD__
+ if (setuid(geteuid())) {
+ fprintf(stderr, "error at setuid.\r\n"); exit(1);
+ }
++#endif
+
+ parse_arg(argc, argv);
+ read_runcmd();
diff --git a/inputmethod/sj3-lib/patches/patch-ag b/inputmethod/sj3-lib/patches/patch-ag
new file mode 100644
index 00000000000..06bf917595c
--- /dev/null
+++ b/inputmethod/sj3-lib/patches/patch-ag
@@ -0,0 +1,95 @@
+$NetBSD: patch-ag,v 1.1.1.1 2002/05/31 13:00:27 seb Exp $
+
+--- server/setup.c.orig Mon May 7 12:15:08 2001
++++ server/setup.c Mon May 7 12:50:19 2001
+@@ -220,5 +220,5 @@
+ char *optname;
+ u_char *(*optfunc)();
+- int optarg;
++ long int optarg;
+ } option[] = {
+ /*
+@@ -227,47 +227,47 @@
+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+ */
+- "DebugOut", get_str, (int)&debug_file,
+- "debugout", get_str, (int)&debug_file,
+- "DebugLevel", get_int, (int)&debug_level,
+- "debuglevel", get_int, (int)&debug_level,
+- "ForkFlag", get_flag, (int)&fork_flag,
+- "forkflag", get_flag, (int)&fork_flag,
++ "DebugOut", get_str, (long int)&debug_file,
++ "debugout", get_str, (long int)&debug_file,
++ "DebugLevel", get_int, (long int)&debug_level,
++ "debuglevel", get_int, (long int)&debug_level,
++ "ForkFlag", get_flag, (long int)&fork_flag,
++ "forkflag", get_flag, (long int)&fork_flag,
+
+- "PortName", get_str, (int)&port_name,
+- "portname", get_str, (int)&port_name,
++ "PortName", get_str, (long int)&port_name,
++ "portname", get_str, (long int)&port_name,
+ #ifdef TLI
+- "PortNumber", get_str, (int)&port_number,
+- "portnumber", get_str, (int)&port_number,
+- "ProtoName", get_str, (int)&proto_name,
+- "protoname", get_str, (int)&proto_name,
++ "PortNumber", get_str, (long int)&port_number,
++ "portnumber", get_str, (long int)&port_number,
++ "ProtoName", get_str, (long int)&proto_name,
++ "protoname", get_str, (long int)&proto_name,
+ #else
+- "PortNumber", get_int, (int)&port_number,
+- "portnumber", get_int, (int)&port_number,
++ "PortNumber", get_int, (long int)&port_number,
++ "portnumber", get_int, (long int)&port_number,
+ #endif
+- "SocketName", get_str, (int)&socket_name,
+- "socketname", get_str, (int)&socket_name,
++ "SocketName", get_str, (long int)&socket_name,
++ "socketname", get_str, (long int)&socket_name,
+ #ifdef LOCK_FILE
+- "LockFile", get_str, (int)&lock_file;
+- "lockfile", get_str, (int)&lock_file;
++ "LockFile", get_str, (long int)&lock_file;
++ "lockfile", get_str, (long int)&lock_file;
+ #endif
+
+- "MaxClient", get_int, (int)&max_client,
+- "maxclient", get_int, (int)&max_client,
+- "DictDir", get_str, (int)&dict_dir,
+- "dictdir", get_str, (int)&dict_dir,
+- "ReadDict", get_list, (int)&read_dict,
+- "readdict", get_list, (int)&read_dict,
+- "OpenDict", get_list, (int)&open_dict,
+- "opendict", get_list, (int)&open_dict,
+- "ErrorOut", get_str, (int)&error_file,
+- "errorout", get_str, (int)&error_file,
+- "LogOut", get_str, (int)&log_file,
+- "logout", get_str, (int)&log_file,
+- "DirMode", get_int, (int)&dir_mode,
+- "dirmode", get_int, (int)&dir_mode,
+- "FileMode", get_int, (int)&file_mode,
+- "filemode", get_int, (int)&file_mode,
+- "AllowUser", get_list, (int)&allow_user,
+- "allowuser", get_list, (int)&allow_user,
++ "MaxClient", get_int, (long int)&max_client,
++ "maxclient", get_int, (long int)&max_client,
++ "DictDir", get_str, (long int)&dict_dir,
++ "dictdir", get_str, (long int)&dict_dir,
++ "ReadDict", get_list, (long int)&read_dict,
++ "readdict", get_list, (long int)&read_dict,
++ "OpenDict", get_list, (long int)&open_dict,
++ "opendict", get_list, (long int)&open_dict,
++ "ErrorOut", get_str, (long int)&error_file,
++ "errorout", get_str, (long int)&error_file,
++ "LogOut", get_str, (long int)&log_file,
++ "logout", get_str, (long int)&log_file,
++ "DirMode", get_int, (long int)&dir_mode,
++ "dirmode", get_int, (long int)&dir_mode,
++ "FileMode", get_int, (long int)&file_mode,
++ "filemode", get_int, (long int)&file_mode,
++ "AllowUser", get_list, (long int)&allow_user,
++ "allowuser", get_list, (long int)&allow_user,
+ 0, 0, 0
+ };