File: dictdconfig.8

package info (click to toggle)
serpento 0.3.6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 292 kB
  • ctags: 381
  • sloc: python: 1,644; ansic: 666; perl: 157; sh: 116; makefile: 72
file content (158 lines) | stat: -rw-r--r-- 4,504 bytes parent folder | download | duplicates (3)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
.\" This manpage is copyright (C) 1999-2000 Kirk Hilliard <kirk@debian.org>.
.\" This is free software, published under version 2 or (at your option)
.\" any later version of the GNU General Public License.  You should
.\" have received a copy of the GNU General Public License with your
.\" Debian GNU/Linux system as /usr/share/common-licenses/GPL.
.\"
.TH DICTDCONFIG 8 "February 22, 2000" "" ""
.SH NAME
dictdconfig \- write serpento database configuration section
.SH SYNOPSIS
.B dictdconfig
[\-hlovw]
[\-\-help]
[\-\-list]
[\-\-order]
[\-\-version]
[\-\-write]
.SH DESCRIPTION
.B dictdconfig
generates a complete
.B serpento
database configuration section for
available dictionary databases found in
.I /usr/share/dictd/
(or possibly elsewhere if an optional order override file is present).
Its output file
.I /var/lib/dictd/serpento.db.list
may then be included from the
.B serpento
configuration file
.I /etc/serpento/config-dbs.py
with an
``execfile("/var/lib/dictd/serpento.db.list")''
line.
See
.BR serpento (8)
for an explanation of
.B serpento
configuration.
.PP
.B dictdconfig
is automatically invoked upon installation or removal of
dictionary database packages,
so most users will never need to invoke it by hand.
.SS DATABASE ORDER
The default order in which database entries are written is hard coded
into
.BR dictdconfig ,
but it may be overridden via the optional order override file
.IR /etc/dictd.order .
This may be desired because
.B serpento
returns definitions from dictionary databases in the order in which
they are listed in its configuration file.
The order override file may also be used to included local dictionary
databases which may not necessarily reside in
.IR /usr/share/dictd/ .
.PP
.IR /etc/dictd.order ,
if present, should be a whitespace separated list of basenames and
directories.  It may also include comments starting with # and
extending to the end of the line.
.PP
Dictionary database entries will be generated only for those databases
found via basename and directory entries in the default order (or the
order override file, if present), and they will be generated in the
order in which these entries appear.  No more than one dictionary
database entry of any given name will be generated.
.PP
Entries without a leading / are relative to
.IR /usr/share/dictd/ .
.PP
Entries without a trailing / are basenames.
A dictionary database entry is generated if
.I <basename>.index
and
.I <basename>.dict.dz
or
.I <basename>.dict
are present.
.PP
Entries with a trailing / are directories.
A dictionary database entry is generated for each <name> where
.I <directory>/<name>.index
and
.I <directory>/<name>.dict.dz
or
.I <directory>/<name>.dict
are present.
.PP
The default order includes the directory
.I /usr/share/dictd/
as its final entry so that if a previously unknown dictionary database
(one not explicitly mentioned in the default order)
is installed, its dictionary database entry will still be generated.
An order override file should also use this technique, both for
.I /usr/share/dictd/
and for any other directory where local dictionary database might be
installed.
.PP
The -o option may be used to make
.B dictdconfig
display the default order information along with the order override
information if
.I /etc/dictd.order
is present.
.SS DUMMY ENTRY
If no dictionary databases are found (via basename or directory
entries in the default order or the order override file), a dummy
dictionary database entry will be generated with
.I /dev/null
for both data and index.
This allows dictd to start without error.
.SH OPTIONS
.TP
.I \-w, \-\-write
Write database section to
.IR /var/lib/dictd/db.list .
.TP
.I \-l, \-\-list
List database section to standard out.
.TP
.I \-o, \-\-order
Display database order information.
.TP
.I \-h, \-\-help
Display a usage message and exit.
.TP
.I \-v, \-\-version
Display version information and exit.
.SH FILES
.TP
.I /var/lib/dictd/db.list
Output of
.BR dictdconfig .
.TP
.I /etc/serpento/config-dbs.py
.B dictd
configuration file which "includes"
.IR /var/lib/dictd/serpento.db.list .
.TP
.I /etc/dictd.order
Optional
.B dictdconfig
order override file.
.SH SEE ALSO
serpento(8), dictd(8)
.SH BUGS
Older dictionary database packages did not automatically invoke
.B dictdconfig
upon installation and removal, so you may need to do so
manually (after which, you should restart serpento).
.SH AUTHOR
Kirk Hilliard <kirk@debian.org>.

Modified for 
.BR serpento
by Radovan Garabik <garabik@melkor.dnp.fmph.uniba.sk>