blob: b3ef41d7b8a27e03274ba04009e01e0a7702d884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/* A GNU dicod configuration file for running a local copy of the GNU
* Collaborative International Dictionary of English.
*
* Installation instructions:
*
* 1. Unpack the GCIDE dictionary;
* 2. Copy this file to a directory where you keep your local configuration
* files (/etc or /usr/local/etc are usual choices).
* 3. Replace the word GCIDE_PATH in the "handler" statement below with
* the path to the gcide-0.51 dicrectory. You can omit this step and use
* the -D option instead:
* 4. Start dicod as follows:
* dicod --config /path/to/gcide.conf
* If you skipped the step 3, supply the -D option with the acual path to
* the dictionary. For example, if you copied gcide.conf to /etc and
* unpacked GCIDE to /usr/local, then:
* dicod --config /etc/gcide.conf -D GCIDE_PATH=/usr/local
*
* The server will listen on localhost (127.0.0.1) port 2628.
*
* 5. Access the dictionary using dico (a GNU dictionary command line
* utility), or another dictionary client program (such as Kdict or
* the like).
*/
capability (mime);
timing yes;
listen localhost;
mode daemon;
pidfile /tmp/dicod.pid;
load-module (stratall,substr,word);
load-module gcide;
database {
name "gcide";
handler "gcide dbdir=/GCIDE_PATH/gcide-0.51";
}
server-info "This server provides a local copy of GCIDE version 0.51";
/* End of gcide.conf */
|