%表題   ftp/Misc/dserver/TEBIKI.dserver.dennou-q	-*-text-*-
%
%履歴   95/08/01 竹広真一
%

●資源		Misc/dserver

取得日付	94/02/18

取得源		theta.iis.u-tokyo.ac.jp:/tools/dserver-2.0.tar

                ちなみに theta.iis.u-tokyo.ac.jp のアドレスは
                157.82.98.67 である.

●ファイル

dserver-2.0.tar 	: dserver-2.0 オリジナル資源
dserver-2.0/       	: それを展開したもの.
config_local/		: 機種依存ディレクトリ

●インストール手順

サイト名	dennou-q.geo.kyushu-u.ac.jp	(ELC + SUN OS 4.1.4)
日付		95/08/01
名前		竹広 (takepiro@geo.kyushu-u.ac.jp)

	1. tar file を展開. dserver/ において

                % tar xvf dserver-2.0.tar


	2. 辞書ディレクトリを作成する. デフォルト通りに 

		/usr/local/dict/k (広辞苑) -> /usr/local/src/licensed/dict/k
 		/usr/local/dict/e (英和)   -> /usr/local/src/licensed/dict/e

	   の二つを作成した. 辞書本体は /usr/local/src/licensed 以下に
	   おく. 

	3. server/Makefile を設定. チェック項目は以下の通り

	   DICTROOT=/usr/local/dict	: 2. で作成した辞書ディレクトリ

	   ACCESSFILE=/usr/local/dict/dserver_access
			リモートでアクセスを許可するホストを書いておく
	                ファイルの名前. 後に自分で作成する. 


	   BINDIR=/usr/local/dict	: dserver 本体を置くディレクトリ

	   CFLAGS=-Dsparc $(OFLAG) -DSYSLOG $(DEFS)

	   また, 第 4 版広辞苑を用いるので serve/Makefile 中の次の箇所
	   を修正する.

		修正前 : -D'KOJIEN="$(DICTROOT)/k/kojien/start"'
		修正後 : -D'KOJIEN="$(DICTROOT)/k/koujien/start."'
			                            ^          ^
	   diclookup.el は mule 用のものを別途インストールする. 

		install:
		        install -m755 dserver $(BINDIR)
		#       install -m644 ../client/... <- コメントアウト
		#       echo '(byte-compile-file... <- コメントアウト
		#       $(EMACS) -batch -l `pwd`... <- コメントアウト

 	4. make

	5. インストール

		# make install 

	6. /etc のファイルに加える.

	   /etc/services に

	   	ndtp     2010/tcp      # Network Dictionary Transfer Protocol

	   という行を加える. 2010 のところは好きな数字を書いて良い. 

	   /etc/inetd.conf に

	     	ndtp	stream  tcp     nowait  root \
		   /usr/local/dict/dserver  dserver

	   という行を加える. 設定後 kill -HUP [inetd の pid] を行う. 

	7. アクセスを許可するホスト/ドメインを 3. で設定した 
	   ACCESSFILE に書き込む. dennou-q では
		dennou-q.geo.kyushu-u.ac.jp
	   とする. 

●注意

参考 : diclookup-mule-2.1.1 の設定例

;;;
;;; diclookup				
;;;
(setq dserver-server-list '("dennou-q"))   ; dserver のホスト
;
; online-dictionary でロード, 起動
;
(autoload 'online-dictionary "diclookup-mule-2.1.1" "Online dictionary." t nil)
(autoload 'diclookup "diclookup-mule-2.1.1"
  "Online dictionary. Display diclookup buffer in the current frame." t nil)
(autoload 'diclookup-other-frame "diclookup-mule-2.1.1"
  "Like `diclookup' command, but display diclookup buffer in another frame."
  t nil)
;
; FEP の設定
;
(setq od-fep-type 'canna)	; egg, canna, t-code or no-fep
;
; C-h o でカーソルの単語を検索
;
(define-key help-map "o" 'od-lookup-pattern-edit)
(define-key menu-bar-help-menu [diclookup]
  '("Diclookup word" . od-lookup-pattern-edit))
(autoload 'od-lookup-pattern-edit "diclookup-mule-2.1.1" "Look up a word." t nil)


