On 2019/03/03 01:53, Anthony J. Bentley wrote:
> Hi,
> 
> I was tired of pulling up Wiktionary all the time, so I looked around
> for a DICT server less ancient than net/dictd, and came across GNU Dico.
> 
> 
> GNU Dico is a flexible modular implementation of DICT server (RFC 2229).
> In contrast to other implementations, it does not depend on particular
> database format. GNU Dico handles database accesses using loadable modules.
> 
> The package is shipped with quite a few modules that provide support for the
> most often used database formats and strategies. New modules can easily be
> written in C, Guile or Python. The module API is mature and well documented.
> 
> The package also includes a console client program, that can be used to
> query remote dictionary servers.
> 
> 
> You can test the server easily. First, install the books/gcide port I
> just sent to ports@. Then, create the following /etc/dicod.conf:
> 
> load-module gcide;
> database {
>         name "gcide";
>         handler "gcide dbdir=/usr/local/share/doc/gcide idxdir=/var/dicod";
> }
> pidfile /var/run/dicod/dicod.pid;
> 
> 
> Finally, create the pidfile and index directories, and start the server:
> 
> # mkdir /var/run/dicod /var/dicod
> # chown _dicod /var/run/dicod /var/dicod
> # rcctl start dicod

I imagine using it with books/gcide would be a pretty common use case.

What do you think about shipping a sample config for that (files/dicod.conf
installed under share/examples and @sample'd into /etc, with a comment saying
that gcide is required to use this config) and having other pieces in place
to work with that (i.e. @sample /var/dicod and have the rc script create
/var/run/dicod with appropriate permissions)?

> You can test with /usr/local/bin/dico in this package:
> 
> $ dico --host=localhost hello
> 
> Or curl:
> 
> $ curl dict://localhost:2628/d:hello
> 
> 
> ok?

Other things:
- there are commented-out rc_bg/rc_reload in dico.rc
- the static libraries for the plugins don't seem useful, you can
probably zap them with LIBTOOL_FLAGS = --tag=disable-static

Reply via email to