NetBSD2 | NetBSD | 1.6 | amd | autoconf | apache | bind | booting | boot/install/disk | boot-cd | build.sh | (daily) | Canna | CF+sendmail | cvs | dhcpd | dvi2ps | emacs-20 | ftpmirror | fvwm2 | gcc | gettext | ghostscript | inn | IPv6 | jitterbug | Install(OHP) | kernel | (old) | majordomo | make build | MHonArc | MRTG | namazu | ndtpd | PHP + PostgreSQL | netatalk | netboot | NFS | NIS | ntp | opie | Open Firmware | perl | procmail | sendmail | sharutils | smtpfeed | tcsh | TeX | time make | ucspi-tcp | w3 | wget | Wnn | wu-ftpd | X11 | Site Map |
全文検索

NDTPD Dictionary Server for NetBSD

dserver に代わる Network Dictionary Server。diclookup-mule などと組合せて辞書を索くのに使う
NDTPD & BookView Version 3.0
http://www.sra.co.jp/people/m-kasahr/ndtpd/index-ja.html
FTP
ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/
lookup
http://openlab.ring.gr.jp/lookup/
辞書 link
http://emacs-20.ki.nu/search/?search=Dict

2001/10/13#1@2
入直し --with-lispdir= share/emacs/site-lisp/lookup-1.3
/etc/rc.conf に設定しておく
if [ -x /usr/local/sbin/ndtpd ]; then
        /usr/local/sbin/ndtpd
fi
20010906
四年振り? に eb-3.1, ndtp-3.02 を入れて見る

eb-3.1

33.438u 48.188s 2:09.57 62.9%   0+0k 10+1774io 5pf+0w
/usr/local/include/eb
   319657 Sep  6 20:51 ./lib/libeb.so.5.0
      691 Sep  6 20:51 ./lib/libeb.la
   896930 Sep  6 20:51 ./lib/libeb.a

    28528 Sep  6 20:51 ./bin/ebappendix
    67598 Sep  6 20:51 ./bin/ebfont
    51795 Sep  6 20:51 ./bin/ebinfo
    58707 Sep  6 20:51 ./bin/ebrefile
   142281 Sep  6 20:51 ./bin/ebzip
   142281 Sep  6 20:51 ./bin/ebunzip
   142281 Sep  6 20:51 ./bin/ebzipinfo

     2657 Sep  6 20:51 ./share/eb/eb3.m4
       94 Sep  6 20:51 ./share/eb/ssizet.m4

     2866 Sep  6 20:51 ./include/eb/appendix.h
     1786 Sep  6 20:51 ./include/eb/binary.h
    18448 Sep  6 20:51 ./include/eb/defs.h
     3920 Sep  6 20:51 ./include/eb/eb.h
     3131 Sep  6 20:51 ./include/eb/error.h
     5184 Sep  6 20:51 ./include/eb/font.h
     4257 Sep  6 20:51 ./include/eb/text.h
     4936 Sep  6 20:51 ./include/eb/zio.h

     5166 Sep  6 20:52 ./info/dir
    11019 Sep  6 20:51 ./info/ebfont.info
     6567 Sep  6 20:51 ./info/ebinfo.info
    10122 Sep  6 20:51 ./info/ebrefile.info
    36216 Sep  6 20:51 ./info/ebzip.info
    10948 Sep  6 20:51 ./info/ebfont-ja.info
     6473 Sep  6 20:51 ./info/ebinfo-ja.info
     9929 Sep  6 20:51 ./info/ebrefile-ja.info
    35603 Sep  6 20:51 ./info/ebzip-ja.info
     1040 Sep  6 20:51 ./etc/eb.conf
ndtp-3.02
8.061u 10.818s 0:29.16 64.7%    0+0k 7+634io 11pf+0w

 101205     32 -rwxr-xr-x    1 root     wheel        15959 Sep  6 21:01 ./libexec/ndtpstat
 105228    464 -rwxr-xr-x    1 root     wheel       225388 Sep  6 21:01 ./sbin/ndtpd
 105229    256 -rwxr-xr-x    1 root     wheel       120565 Sep  6 21:01 ./sbin/ndtpcheck
 105230    272 -rwxr-xr-x    1 root     wheel       128992 Sep  6 21:01 ./sbin/ndtpcontrol
 105231     38 -rwxr-xr-x    1 root     wheel        18998 Sep  6 21:01 ./sbin/ndtpdaily
 105232     36 -rwxr-xr-x    1 root     wheel        17469 Sep  6 21:01 ./sbin/ndtpupgrade
 111236     12 -rw-r--r--    1 root     wheel         5320 Sep  6 21:01 ./info/dir
 111280    134 -rw-r--r--    1 root     wheel        68470 Sep  6 21:01 ./info/ndtpd.info
 111281      6 -rw-r--r--    1 root     wheel         2449 Sep  6 21:01 ./info/ndtpd-ja.info
 111282    100 -rw-r--r--    1 root     wheel        50364 Sep  6 21:01 ./info/ndtpd-ja.info-1
 111283     40 -rw-r--r--    1 root     wheel        20318 Sep  6 21:01 ./info/ndtpd-ja.info-2
 113111      6 -rw-r--r--    1 root     wheel         2334 Sep  6 21:01 ./etc/ndtpd.conf.sample
info の説明の通りに設定
/etc/services
/etc/passwd .. ndtpuser を加える
/etc/group  .. ndtpgrp を加える
など。 ndtp.conf は sample のまま。 (cp /usr/local/etc/ndtpd.conf.sample /usr/local/etc/ndtpd.conf )
cdrom を mount した後から ntpd を起動する必要がある。 /usr/local/sbin/ndtpd として /var/log/messages を見ると
Oct 13 15:49:36 u ndtpd[15187]: unknown service name: ndtp
Oct 13 15:49:36 u ndtpd[15187]: configuration failure
Oct 13 15:49:36 u ndtpd[15187]: the server exits
/etc/services が間違っていた tcp/2010 でなくて 2010/tcp そうしたら、こんどは
ndtpd[15201]: failed to open the file, Permission denied: /usr/local/var/ndtpd/jitenban97.lock
ndtpd[15201]: failed to open the file, Permission denied: /usr/local/var/ndtpd/ndtpd.lock
ndtpd[15201]: the server exits
chown ndtpuser /usr/local/var/ndtpd で解決。
ndtpd[15207]: the appendix is not available, failed to open an appendix catalog file: /usr/local/share/eb/appendix
ndtpd[15207]: the appendix is not available, failed to open an appendix catalog file: /usr/local/share/eb/appendix
ndtpd[15207]: server started
これで以前から出ていたので良しとする
makoto@u  15:55:13/011013(/export)# telnet localhost ndtp
Trying ::1...
Connected to localhost.
Escape character is '^]'.
t
1       広辞苑 第四版 電子ブック版    jitenban97/koujien      0       1       900
2       付属資料        jitenban97/furoku       0       1       900
$*
Q
Connection closed by foreign host.
これで辞書一覧が見えた
971015 ndtpd-1.02
./configure --sysconfdir=/etc --localstatedir=/var
make
make install
これで、次のものが入る

/usr/local/include/eb/
/usr/local/bin/eb*
/usr/local/sbin/ndtp*
/usr/local/libexec/ndtp*
/usr/local/info/ndtpd*
/etc/ndtpd.sample
/usr/local/share/ndtpd/
/var/ndtpd

cp /etc/ndtpd.sample /etc/ndtpd.conf
/etc/services に ndtp 2010/tcp を追加
/var/ndtpd/ndtpd.pid を書けるようにする
(chown nobody /var/ndptd )
/usr/local/sbin/ndtpd で起動して、/var/log/messages に
何か書いてないか見る。

このままでは辞書が見えない。/cdrom に辞書を mount して
それに対応した記述を /etc/ndtpd.conf の最後のところに書
く。
/usr/local/sbin/ndtpcontrol terminate で止める。