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

You can test with /usr/local/bin/dico in this package:

$ dico --host=localhost hello

Or curl:

$ curl dict://localhost:2628/d:hello


ok?

-- 
Anthony J. Bentley

Attachment: dico.tar.gz
Description: dico.tar.gz

Index: user.list
===================================================================
RCS file: /cvs/ports/infrastructure/db/user.list,v
retrieving revision 1.336
diff -u -p -r1.336 user.list
--- user.list   29 Dec 2018 14:29:54 -0000      1.336
+++ user.list   3 Mar 2019 08:41:07 -0000
@@ -339,3 +339,4 @@ id  user            group           port options
 828 _ossecm                            security/ossec-hids
 829 _ossecr                            security/ossec-hids
 830 _pdns_recursor     _pdns_recursor  net/powerdns_recursor
+831 _dicod             _dicod          net/dico

Reply via email to