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