Debian Codegraph @

doc/man/po4a/po/da.po

raw
1 # Danish translation debconf.
2 # Copyright (C) 2012 Free Software Foundation, Inc.
3 # This file is distributed under the same license as the debconf package.
4 # Joe Hansen <[email protected]>, 2012.
5 #
6 # ask questions -> stille spørgsmål
7 #
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: debconf\n"
11 "POT-Creation-Date: 2024-01-21 19:23+0000\n"
12 "PO-Revision-Date: 2012-03-21 10:20+0100\n"
13 "Last-Translator: Joe Hansen <[email protected]>\n"
14 "Language-Team: Danish <[email protected]>\n"
15 "Language: da\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: SH
21 #: ../../debconf:3 ../../Debconf/Client/ConfModule.pm:3
22 #: ../../debconf-apt-progress:3 ../../debconf-escape:3
23 #: ../../debconf-communicate:3 ../../debconf-copydb:3 ../../debconf-getlang:3
24 #: ../../debconf-get-selections:3 ../../debconf-loadtemplate:3
25 #: ../../debconf-mergetemplate:3 ../../debconf-set-selections:3
26 #: ../../debconf-show:3 ../../dpkg-preconfigure:3 ../../dpkg-reconfigure:3
27 #: debconf.conf.5:2 confmodule.3:2 debconf.7:2 debconf-devel.7:2
28 #, no-wrap
29 msgid "NAME"
30 msgstr "NAVN"
31
32 #. type: textblock
33 #: ../../debconf:5
34 msgid "debconf - run a debconf-using program"
35 msgstr "debconf - kør et debconf-brugende program"
36
37 #. type: SH
38 #: ../../debconf:9 ../../Debconf/Client/ConfModule.pm:7
39 #: ../../debconf-apt-progress:7 ../../debconf-escape:7
40 #: ../../debconf-communicate:9 ../../debconf-copydb:17 ../../debconf-getlang:16
41 #: ../../debconf-get-selections:7 ../../debconf-loadtemplate:14
42 #: ../../debconf-mergetemplate:17 ../../debconf-set-selections:7
43 #: ../../debconf-show:7 ../../dpkg-preconfigure:7 ../../dpkg-reconfigure:7
44 #: debconf.conf.5:12 confmodule.3:4
45 #, no-wrap
46 msgid "SYNOPSIS"
47 msgstr "OVERSIGT"
48
49 #. type: verbatim
50 #: ../../debconf:11
51 #, no-wrap
52 msgid ""
53 " debconf [options] command [args]\n"
54 "\n"
55 msgstr ""
56 " debconf [tilvalg] kommando [argumenter]\n"
57 "\n"
58
59 #. type: SH
60 #: ../../debconf:13 ../../Debconf/Client/ConfModule.pm:20
61 #: ../../debconf-apt-progress:15 ../../debconf-escape:12
62 #: ../../debconf-communicate:13 ../../debconf-copydb:30
63 #: ../../debconf-getlang:21 ../../debconf-get-selections:11
64 #: ../../debconf-loadtemplate:18 ../../debconf-mergetemplate:21
65 #: ../../debconf-set-selections:12 ../../debconf-show:13
66 #: ../../dpkg-preconfigure:13 ../../dpkg-reconfigure:11 debconf.conf.5:4
67 #: confmodule.3:12 debconf.7:4 debconf-devel.7:4
68 #, no-wrap
69 msgid "DESCRIPTION"
70 msgstr "BESKRIVELSE"
71
72 #. type: textblock
73 #: ../../debconf:15
74 msgid ""
75 "Debconf is a configuration system for Debian packages. For a debconf "
76 "overview and documentation for sysadmins, see L<debconf(7)> (in the debconf-"
77 "doc package)."
78 msgstr ""
79 "Debconf er et konfigurationssystem for Debianpakker. For et overblik over "
80 "debconf og dokumentation for systemadministratorer så se L<debconf(7)> (i "
81 "pakken debconf-doc)."
82
83 #. type: textblock
84 #: ../../debconf:19
85 msgid ""
86 "The B<debconf> program runs a program under debconf's control, setting it up "
87 "to talk with debconf on stdio. The program's output is expected to be "
88 "debconf protocol commands, and it is expected to read result codes on stdin. "
89 "See L<debconf-devel(7)> for details about the debconf protocol."
90 msgstr ""
91 "Programmet B<debconf> kører et program under debconfs kontrol, sætter det op "
92 "til at snakke med debconf på stdio. Programmets uddata forventes at blive "
93 "protokolkommandoer for debconf, og det forventes at læse resultatkoder på "
94 "standardind. Se L<debconf-devel(7)> for detaljer om debconf-protokollen."
95
96 #. type: textblock
97 #: ../../debconf:24
98 msgid ""
99 "The command to be run under debconf must be specified in a way that will let "
100 "your PATH find it."
101 msgstr ""
102 "Kommandoen der skal køres under debconf skal angives på en måde som vil lade "
103 "din PATH finde den."
104
105 #. type: textblock
106 #: ../../debconf:27
107 msgid ""
108 "This command is not the usual way that debconf is used. It's more typical "
109 "for debconf to be used via L<dpkg-preconfigure(8)> or L<dpkg-reconfigure(8)>."
110 msgstr ""
111 "Denne kommando er ikke den normale måde som debconf bruges på. Det er mere "
112 "typisk for debconf at blive brugt via L<dpkg-preconfigure(8)> eller L<dpkg-"
113 "reconfigure(8)>."
114
115 #. type: =head1
116 #: ../../debconf:30 ../../debconf-apt-progress:43 ../../debconf-copydb:36
117 #: ../../debconf-mergetemplate:45 ../../debconf-set-selections:56
118 #: ../../debconf-show:24 ../../dpkg-preconfigure:20 ../../dpkg-reconfigure:21
119 msgid "OPTIONS"
120 msgstr "TILVALG"
121
122 #. type: =item
123 #: ../../debconf:34
124 msgid "B<-o>I<package>, B<--owner=>I<package>"
125 msgstr "B<-o>I<pakke>, B<--owner=>I<pakke>"
126
127 #. type: textblock
128 #: ../../debconf:36
129 msgid ""
130 "Tell debconf what package the command it is running is a part of. This is "
131 "necessary to get ownership of registered questions right, and to support "
132 "unregister and purge commands properly."
133 msgstr ""
134 "Fortæl debconf fra hvilken pakke kommandoen den kører kommer fra. Dette er "
135 "nødvendigt for at få ejerskab over registrerede spørgsmål korrekt, og for "
136 "ordentligt at understøtte ikke registrerede kommandoer og kommandoer for "
137 "afinstallation."
138
139 #. type: =item
140 #: ../../debconf:40 ../../dpkg-preconfigure:24 ../../dpkg-reconfigure:25
141 msgid "B<-f>I<type>, B<--frontend=>I<type>"
142 msgstr "B<-f>I<type>, B<--frontend=>I<type>"
143
144 #. type: textblock
145 #: ../../debconf:42 ../../dpkg-preconfigure:26
146 msgid "Select the frontend to use."
147 msgstr "Vælg hvilken brugerflade der skal bruges."
148
149 #. type: =item
150 #: ../../debconf:44 ../../dpkg-preconfigure:28 ../../dpkg-reconfigure:36
151 msgid "B<-p>I<value>, B<--priority=>I<value>"
152 msgstr "B<-p>I<værdi>, B<--priority=>I<værdi>"
153
154 #. type: textblock
155 #: ../../debconf:46
156 msgid "Specify the minimum priority of question that will be displayed."
157 msgstr "Angiv den minimale prioritet for spørgsmål som vil blive vist."
158
159 #. type: =item
160 #: ../../debconf:48 ../../dpkg-preconfigure:34 ../../dpkg-reconfigure:42
161 msgid "B<--terse>"
162 msgstr "B<--terse>"
163
164 #. type: textblock
165 #: ../../debconf:50 ../../dpkg-preconfigure:36 ../../dpkg-reconfigure:44
166 msgid "Enables terse output mode. This affects only some frontends."
167 msgstr ""
168 "Aktiverer uddatatilstanden terse. Dette påvirker kun nogle brugerflader."
169
170 #. type: =head1
171 #: ../../debconf:54 ../../debconf-apt-progress:107 ../../debconf-copydb:75
172 #: ../../debconf-set-selections:47
173 msgid "EXAMPLES"
174 msgstr "EKSEMPLER"
175
176 #. type: textblock
177 #: ../../debconf:56
178 msgid "To debug a shell script that uses debconf, you might use:"
179 msgstr "For at fejlsøge et skalskript, som bruger debconf, kan du bruge:"
180
181 #. type: verbatim
182 #: ../../debconf:58
183 #, no-wrap
184 msgid ""
185 " DEBCONF_DEBUG=developer debconf my-shell-prog\n"
186 "\n"
187 msgstr ""
188 " DEBCONF_DEBUG=developer debconf mit-skal-program\n"
189 "\n"
190
191 #. type: textblock
192 #: ../../debconf:60
193 msgid "Or, you might use this:"
194 msgstr "Eller du kan bruge denne:"
195
196 #. type: verbatim
197 #: ../../debconf:62
198 #, no-wrap
199 msgid ""
200 " debconf --frontend=readline sh -x my-shell-prog\n"
201 "\n"
202 msgstr ""
203 " debconf --frontend=readline sh -x mit-skal-program\n"
204 "\n"
205
206 #. type: SH
207 #: ../../debconf:64 ../../Debconf/Client/ConfModule.pm:154
208 #: ../../debconf-escape:21 ../../debconf-communicate:39
209 #: ../../debconf-copydb:102 ../../debconf-getlang:74
210 #: ../../debconf-loadtemplate:31 ../../debconf-mergetemplate:61
211 #: ../../debconf-set-selections:70 ../../dpkg-preconfigure:59
212 #: ../../dpkg-reconfigure:77 debconf.conf.5:537 confmodule.3:36 debconf.7:376
213 #: debconf-devel.7:958
214 #, no-wrap
215 msgid "SEE ALSO"
216 msgstr "SE OGSÅ"
217
218 #. type: textblock
219 #: ../../debconf:66
220 msgid "L<debconf-devel(7)>, L<debconf(7)>"
221 msgstr "L<debconf-devel(7)>, L<debconf(7)>"
222
223 #. type: SH
224 #: ../../debconf:117 ../../Debconf/Client/ConfModule.pm:159
225 #: ../../debconf-escape:72 ../../debconf-communicate:74
226 #: ../../debconf-copydb:175 ../../debconf-getlang:256
227 #: ../../debconf-get-selections:78 ../../debconf-loadtemplate:48
228 #: ../../debconf-mergetemplate:181 ../../debconf-set-selections:226
229 #: ../../debconf-show:152 ../../dpkg-preconfigure:258
230 #: ../../dpkg-reconfigure:309 debconf.conf.5:539 confmodule.3:42 debconf.7:382
231 #: debconf-devel.7:968
232 #, no-wrap
233 msgid "AUTHOR"
234 msgstr "FORFATTER"
235
236 #. type: textblock
237 #: ../../debconf:119 ../../Debconf/Client/ConfModule.pm:161
238 #: ../../debconf-apt-progress:658 ../../debconf-communicate:76
239 #: ../../debconf-copydb:177 ../../debconf-getlang:258
240 #: ../../debconf-loadtemplate:50 ../../debconf-mergetemplate:183
241 #: ../../dpkg-preconfigure:260 ../../dpkg-reconfigure:311
242 msgid "Joey Hess <[email protected]>"
243 msgstr "Joey Hess <[email protected]>"
244
245 #. type: textblock
246 #: ../../Debconf/Client/ConfModule.pm:5
247 msgid "Debconf::Client::ConfModule - client module for ConfModules"
248 msgstr "Debconf::Client::ConfModule - klientmodul for ConfModules"
249
250 #. type: verbatim
251 #: ../../Debconf/Client/ConfModule.pm:9
252 #, no-wrap
253 msgid ""
254 " use Debconf::Client::ConfModule ':all';\n"
255 " version('2.0');\n"
256 " my $capb=capb('backup');\n"
257 " input(\"medium\", \"foo/bar\");\n"
258 " my @ret=go();\n"
259 " if ($ret[0] == 30) {\n"
260 " \t# Back button pressed.\n"
261 " \t...\n"
262 " }\n"
263 " ...\n"
264 "\n"
265 msgstr ""
266 " brug Debconf::Client::ConfModule ':all';\n"
267 " version('2.0');\n"
268 " my $capb=capb('backup');\n"
269 " input(\"medium\", \"foo/bar\");\n"
270 " my @ret=go();\n"
271 " if ($ret[0] == 30) {\n"
272 " \t# Slet tilbage trykke ned.\n"
273 " \t...\n"
274 " }\n"
275 " ...\n"
276 "\n"
277
278 #. type: textblock
279 #: ../../Debconf/Client/ConfModule.pm:22
280 msgid ""
281 "This is a module to ease writing ConfModules for Debian's configuration "
282 "management system. It can communicate with a FrontEnd via the debconf "
283 "protocol (which is documented in full in the debconf_specification in Debian "
284 "policy)."
285 msgstr ""
286 "Dette er et modul til at gøre skrivning af ConfModules for Debians "
287 "konfigurationshåndteringssystem nemmere. Modulet kan kommunikere med en "
288 "brugerflade (FrontEnd) via debconf-protokollen (som er dokumenteret fuldt ud "
289 "i debconf_specifikationen i politikken for Debian)."
290
291 #. type: textblock
292 #: ../../Debconf/Client/ConfModule.pm:27
293 msgid ""
294 "The design is that each command in the protocol is represented by one "
295 "function in this module (with the name lower-cased). Call the function and "
296 "pass in any parameters you want to follow the command. If the function is "
297 "called in scalar context, it will return any textual return code. If it is "
298 "called in list context, an array consisting of the numeric return code and "
299 "the textual return code will be returned."
300 msgstr ""
301 "Designet er udført så at hver kommando i protokollen repræsenteres af en "
302 "funktion i dette modul (med navnet i små bogstaver). Kald funktionen og "
303 "skriv parametre du ønsker skal efterfølge kommandoen. Hvis funktionen kaldes "
304 "i scalarkontekst, så vil den returnere en eventuel tekstmæssig returkode. "
305 "Hvis den kaldes i listekontekst, så vil en array bestående af den numeriske "
306 "returkode og den tekstmæssige returkode blive returneret."
307
308 #. type: textblock
309 #: ../../Debconf/Client/ConfModule.pm:34
310 msgid ""
311 "This module uses Exporter to export all functions it defines. To import "
312 "everything, simply import \":all\"."
313 msgstr ""
314 "Dette modul bruger Exporter til at eksportere alle funktioner den definerer. "
315 "For at importere alt, så importer »:all«."
316
317 #. type: =item
318 #: ../../Debconf/Client/ConfModule.pm:62
319 msgid "import"
320 msgstr "import"
321
322 #. type: textblock
323 #: ../../Debconf/Client/ConfModule.pm:64
324 msgid ""
325 "Ensure that a FrontEnd is running. It's a little hackish. If "
326 "DEBIAN_HAS_FRONTEND is set, a FrontEnd is assumed to be running. If not, "
327 "one is started up automatically and stdin and out are connected to it. Note "
328 "that this function is always run when the module is loaded in the usual way."
329 msgstr ""
330 "Sikr dig at en brugerflade (FrontEnd) kører. Det er lidt hackeragtigt. Hvis "
331 "DEBIAN_HAS_FRONTEND er sat, så antages det at en brugerflade kører. Hvis "
332 "ikke så startes en op automatisk og standardind og standardud forbindes til "
333 "den. Bemærk at denne funktion altid køres når modulet indlæses på den "
334 "normale måde."
335
336 #. type: =item
337 #: ../../Debconf/Client/ConfModule.pm:95
338 msgid "stop"
339 msgstr "stop"
340
341 # engelsk fejl?
342 #. type: textblock
343 #: ../../Debconf/Client/ConfModule.pm:97
344 msgid ""
345 "The frontend doesn't send a return code here, so we cannot try to read it or "
346 "we'll block."
347 msgstr ""
348 "Brugerfladen sender ikke en returkode her, så vi kan ikke forsøge at læse "
349 "den eller vi blokerer den."
350
351 #. type: =item
352 #: ../../Debconf/Client/ConfModule.pm:107
353 msgid "AUTOLOAD"
354 msgstr "AUTOINDLÆS"
355
356 #. type: textblock
357 #: ../../Debconf/Client/ConfModule.pm:109
358 msgid "Creates handler functions for commands on the fly."
359 msgstr "Opretter løbende håndtagsfunktioner for kommandoer."
360
361 #. type: textblock
362 #: ../../Debconf/Client/ConfModule.pm:156
363 msgid ""
364 "The debconf specification (/usr/share/doc/debian-policy/"
365 "debconf_specification.txt.gz)."
366 msgstr ""
367 "Debconf-specifikationen (/usr/share/doc/debian-policy/debconf_specification."
368 "txt.gz)."
369
370 #. type: textblock
371 #: ../../debconf-apt-progress:5
372 msgid ""
373 "debconf-apt-progress - install packages using debconf to display a progress "
374 "bar"
375 msgstr ""
376 "debconf-apt-progress - installer pakker med brug af debconf for at vise en "
377 "statusbjælke"
378
379 #. type: verbatim
380 #: ../../debconf-apt-progress:9
381 #, no-wrap
382 msgid ""
383 " debconf-apt-progress [--] command [args ...]\n"
384 " debconf-apt-progress --config\n"
385 " debconf-apt-progress --start\n"
386 " debconf-apt-progress --from waypoint --to waypoint [--] command [args ...]\n"
387 " debconf-apt-progress --stop\n"
388 "\n"
389 msgstr ""
390 " debconf-apt-progress [--] kommando [argumenter ...]\n"
391 " debconf-apt-progress --config\n"
392 " debconf-apt-progress --start\n"
393 " debconf-apt-progress --from punkt --to punkt [--] kommando [argumenter ...]\n"
394 " debconf-apt-progress --stop\n"
395 "\n"
396
397 #. type: textblock
398 #: ../../debconf-apt-progress:17
399 msgid ""
400 "B<debconf-apt-progress> installs packages using debconf to display a "
401 "progress bar. The given I<command> should be any command-line apt frontend; "
402 "specifically, it must send progress information to the file descriptor "
403 "selected by the C<APT::Status-Fd> configuration option, and must keep the "
404 "file descriptors nominated by the C<APT::Keep-Fds> configuration option open "
405 "when invoking debconf (directly or indirectly), as those file descriptors "
406 "will be used for the debconf passthrough protocol."
407 msgstr ""
408 "B<debconf-apt-progress> installerer pakker der bruger debconf for at vise en "
409 "statusbjælke. Den angivne I<kommando> skal være en kommandolinje apt-"
410 "brugerflade; specifikt, skal den sende statusinformation til filbeskrivelsen "
411 "valgt af konfigurationstilvalget C<APT::Status-Fd>, og skal bevare "
412 "filbeskrivelserne nomineret af konfigurationstilvalget C<APT::Keep-Fds> "
413 "åbne, når debconf startes op (direkte eller indirekte), da disse "
414 "filbeskrivelser vil blive brugt af deboncfs gennemløbsprotokol."
415
416 #. type: textblock
417 #: ../../debconf-apt-progress:25
418 msgid ""
419 "The arguments to the command you supply should generally include B<-y> (for "
420 "B<apt-get> or B<aptitude>) or similar to avoid the apt frontend prompting "
421 "for input. B<debconf-apt-progress> cannot do this itself because the "
422 "appropriate argument may differ between apt frontends."
423 msgstr ""
424 "Argumenterne for kommandoen du angiver skal generelt inkludere B<-y> (for "
425 "B<apt-get> eller B<aptitude>) eller lignende for at undgå at apt-"
426 "brugerfladen spørger efter inddata. B<debconf-apt-progress> kan ikke udføre "
427 "dette selv, da det passende argument kan være forskelligt mellem apt-"
428 "brugerflader."
429
430 #. type: textblock
431 #: ../../debconf-apt-progress:30
432 msgid ""
433 "The B<--start>, B<--stop>, B<--from>, and B<--to> options may be used to "
434 "create a progress bar with multiple segments for different stages of "
435 "installation, provided that the caller is a debconf confmodule. The caller "
436 "may also interact with the progress bar itself using the debconf protocol if "
437 "it so desires."
438 msgstr ""
439 "Tilvalgene B<--start>, B<--stop>, B<--from> og B<--to> kan bruges til at "
440 "oprette en statusbjælke med flere segmenter for forskellige "
441 "installationsstadier, så længe at kalderen er et konfigurationsmodul for "
442 "debconf. Kalderen kan også interagere med selve statusbjælken via "
443 "protokollen for debconf såfremt dette ønskes."
444
445 #. type: textblock
446 #: ../../debconf-apt-progress:36
447 msgid ""
448 "debconf locks its config database when it starts up, which makes it "
449 "unfortunately inconvenient to have one instance of debconf displaying the "
450 "progress bar and another passing through questions from packages being "
451 "installed. If you're using a multiple-segment progress bar, you'll need to "
452 "eval the output of the B<--config> option before starting the debconf "
453 "frontend to work around this. See L<the EXAMPLES section/EXAMPLES> below."
454 msgstr ""
455 "debconf låser sin konfigurationsdatabase når den starter op, hvilket "
456 "desværre gør det upassende at have en instans af debconf vise statusbjælken "
457 "og en anden sende spørgsmål igennem fra pakker der bliver installeret. Hvis "
458 "du bruger en flersegments statusbjælke, så skal du evaluere uddata for "
459 "tilvalget B<--config> før du starter brugerfladen for debconf til at omgå "
460 "dette. Se L<EKSEMPEL-afsnittet/EKSEMPLER> nedenfor."
461
462 #. type: =item
463 #: ../../debconf-apt-progress:47
464 msgid "B<--config>"
465 msgstr "B<--config>"
466
467 #. type: textblock
468 #: ../../debconf-apt-progress:49
469 msgid ""
470 "Print environment variables necessary to start up a progress bar frontend."
471 msgstr ""
472 "Vis miljøvariabler nødvendige for at opstarte en brugerflade for "
473 "statusbjælke."
474
475 #. type: =item
476 #: ../../debconf-apt-progress:51
477 msgid "B<--start>"
478 msgstr "B<--start>"
479
480 #. type: textblock
481 #: ../../debconf-apt-progress:53
482 msgid ""
483 "Start up a progress bar, running from 0 to 100 by default. Use B<--from> and "
484 "B<--to> to use other endpoints."
485 msgstr ""
486 "Opstart en statusbjælke, løbende fra 0 til 100 som standard. Brug B<--from> "
487 "og B<--to> for andre slutpunkter."
488
489 #. type: =item
490 #: ../../debconf-apt-progress:56
491 msgid "B<--from> I<waypoint>"
492 msgstr "B<--from> I<punkt>"
493
494 #. type: textblock
495 #: ../../debconf-apt-progress:58
496 msgid ""
497 "If used with B<--start>, make the progress bar begin at I<waypoint> rather "
498 "than 0."
499 msgstr ""
500 "Hvis brugt med B<--start>, så lad statusbjælken begynde ved I<punkt> fremfor "
501 "0."
502
503 #. type: textblock
504 #: ../../debconf-apt-progress:61
505 msgid ""
506 "Otherwise, install packages with their progress bar beginning at this "
507 "\"waypoint\". Must be used with B<--to>."
508 msgstr ""
509 "Ellers så installaer pakker med deres statusbjælke begyndende ved dette "
510 "»punkt«. Skal bruges med B<--to>."
511
512 #. type: =item
513 #: ../../debconf-apt-progress:64
514 msgid "B<--to> I<waypoint>"
515 msgstr "B<--to> I<punkt>"
516
517 #. type: textblock
518 #: ../../debconf-apt-progress:66
519 msgid ""
520 "If used with B<--start>, make the progress bar end at I<waypoint> rather "
521 "than 100."
522 msgstr ""
523
524 #. type: textblock
525 #: ../../debconf-apt-progress:69
526 msgid ""
527 "Otherwise, install packages with their progress bar ending at this "
528 "\"waypoint\". Must be used with B<--from>."
529 msgstr ""
530
531 #. type: =item
532 #: ../../debconf-apt-progress:72
533 msgid "B<--stop>"
534 msgstr "B<--stop>"
535
536 #. type: textblock
537 #: ../../debconf-apt-progress:74
538 msgid "Stop a running progress bar."
539 msgstr "Stop en kørende statusbjælke."
540
541 #. type: =item
542 #: ../../debconf-apt-progress:76
543 msgid "B<--no-progress>"
544 msgstr "B<--no-progress>"
545
546 #. type: textblock
547 #: ../../debconf-apt-progress:78
548 msgid ""
549 "Avoid starting, stopping, or stepping the progress bar. Progress messages "
550 "from apt, media change events, and debconf questions will still be passed "
551 "through to debconf."
552 msgstr ""
553
554 #. type: =item
555 #: ../../debconf-apt-progress:82
556 msgid "B<--dlwaypoint> I<percentage>"
557 msgstr ""
558
559 #. type: textblock
560 #: ../../debconf-apt-progress:84
561 msgid ""
562 "Specify what percent of the progress bar to use for downloading packages. "
563 "The remainder will be used for installing packages. The default is to use "
564 "15% for downloading and the remaining 85% for installing."
565 msgstr ""
566
567 #. type: =item
568 #: ../../debconf-apt-progress:88
569 msgid "B<--logfile> I<file>"
570 msgstr "B<--logfile> I<fil>"
571
572 #. type: textblock
573 #: ../../debconf-apt-progress:90
574 msgid "Send the normal output from apt to the given file."
575 msgstr "Send de normale uddata fra apt til den givne fil."
576
577 #. type: =item
578 #: ../../debconf-apt-progress:92
579 msgid "B<--logstderr>"
580 msgstr "B<--logstderr>"
581
582 #. type: textblock
583 #: ../../debconf-apt-progress:94
584 msgid ""
585 "Send the normal output from apt to stderr. If you supply neither B<--"
586 "logfile> nor B<--logstderr>, the normal output from apt will be discarded."
587 msgstr ""
588
589 #. type: =item
590 #: ../../debconf-apt-progress:98
591 msgid "B<-->"
592 msgstr "B<-->"
593
594 #. type: textblock
595 #: ../../debconf-apt-progress:100
596 msgid ""
597 "Terminate options. Since you will normally need to give at least the B<-y> "
598 "argument to the command being run, you will usually need to use B<--> to "
599 "prevent that being interpreted as an option to B<debconf-apt-progress> "
600 "itself."
601 msgstr ""
602
603 #. type: textblock
604 #: ../../debconf-apt-progress:109
605 msgid ""
606 "Install the GNOME desktop and an X window system development environment "
607 "within a progress bar:"
608 msgstr ""
609 "Installer GNOME-skrivebordet og et udviklingsmiljø for X-vinduessystemet i "
610 "en statusbjælke:"
611
612 #. type: verbatim
613 #: ../../debconf-apt-progress:112
614 #, no-wrap
615 msgid ""
616 " debconf-apt-progress -- aptitude -y install gnome x-window-system-dev\n"
617 "\n"
618 msgstr ""
619 " debconf-apt-progress -- aptitude -y installer gnome x-window-system-dev\n"
620 "\n"
621
622 #. type: textblock
623 #: ../../debconf-apt-progress:114
624 msgid ""
625 "Install the GNOME, KDE, and XFCE desktops within a single progress bar, "
626 "allocating 45% of the progress bar for each of GNOME and KDE and the "
627 "remaining 10% for XFCE:"
628 msgstr ""
629
630 #. type: verbatim
631 #: ../../debconf-apt-progress:118
632 #, no-wrap
633 msgid ""
634 " #! /bin/sh\n"
635 " set -e\n"
636 " case $1 in\n"
637 " '')\n"
638 " eval \"$(debconf-apt-progress --config)\"\n"
639 " \"$0\" debconf\n"
640 " ;;\n"
641 " debconf)\n"
642 " . /usr/share/debconf/confmodule\n"
643 " debconf-apt-progress --start\n"
644 " debconf-apt-progress --from 0 --to 45 -- apt-get -y install gnome\n"
645 " debconf-apt-progress --from 45 --to 90 -- apt-get -y install kde\n"
646 " debconf-apt-progress --from 90 --to 100 -- apt-get -y install xfce4\n"
647 " debconf-apt-progress --stop\n"
648 " ;;\n"
649 " esac\n"
650 "\n"
651 msgstr ""
652
653 #. type: =head1
654 #: ../../debconf-apt-progress:135
655 msgid "RETURN CODE"
656 msgstr "RETURKODE"
657
658 #. type: textblock
659 #: ../../debconf-apt-progress:137
660 msgid ""
661 "The exit code of the specified command is returned, unless the user hit the "
662 "cancel button on the progress bar. If the cancel button was hit, a value of "
663 "30 is returned. To avoid ambiguity, if the command returned 30, a value of 3 "
664 "will be returned."
665 msgstr ""
666
667 #. type: =head1
668 #: ../../debconf-apt-progress:654
669 msgid "AUTHORS"
670 msgstr "FORFATTERE"
671
672 #. type: textblock
673 #: ../../debconf-apt-progress:656 ../../debconf-escape:74
674 msgid "Colin Watson <[email protected]>"
675 msgstr "Colin Watson <[email protected]>"
676
677 #. type: textblock
678 #: ../../debconf-escape:5
679 msgid "debconf-escape - helper when working with debconf's escape capability"
680 msgstr ""
681
682 #. type: verbatim
683 #: ../../debconf-escape:9
684 #, no-wrap
685 msgid ""
686 " debconf-escape -e < unescaped-text\n"
687 " debconf-escape -u < escaped-text\n"
688 "\n"
689 msgstr ""
690
691 #. type: textblock
692 #: ../../debconf-escape:14
693 msgid ""
694 "When debconf has the 'escape' capability set, it will expect commands you "
695 "send it to have backslashes and newlines escaped (as C<\\\\> and C<\\n> "
696 "respectively) and will in turn escape backslashes and newlines in its "
697 "replies. This can be used, for example, to substitute multi-line strings "
698 "into templates, or to get multi-line extended descriptions reliably using "
699 "C<METAGET>."
700 msgstr ""
701
702 #. type: textblock
703 #: ../../debconf-escape:23
704 msgid "L<debconf-devel(7)> (available in the debconf-doc package)"
705 msgstr "L<debconf-devel(7)> (tilgængelig i pakken debconf-doc)"
706
707 #. type: textblock
708 #: ../../debconf-communicate:5
709 msgid "debconf-communicate - communicate with debconf"
710 msgstr "debconf-communicate - kommuniker med debconf"
711
712 #. type: verbatim
713 #: ../../debconf-communicate:11
714 #, no-wrap
715 msgid ""
716 " echo commands | debconf-communicate [options] [package]\n"
717 "\n"
718 msgstr ""
719
720 #. type: textblock
721 #: ../../debconf-communicate:15
722 msgid ""
723 "B<debconf-communicate> allows you to communicate with debconf on the fly, "
724 "from the command line. The package argument is the name of the package which "
725 "you are pretending to be as you communicate with debconf, and it may be "
726 "omitted if you are lazy. It reads commands in the form used by the debconf "
727 "protocol from stdin. For documentation on the available commands and their "
728 "usage, see the debconf specification."
729 msgstr ""
730
731 #. type: textblock
732 #: ../../debconf-communicate:22
733 msgid ""
734 "The commands are executed in sequence. The textual return code of each is "
735 "printed out to standard output."
736 msgstr ""
737 "Kommandoerne udføres i sekvens. Den tekstmæssige returkode for hver vises i "
738 "standardud."
739
740 #. type: textblock
741 #: ../../debconf-communicate:25
742 msgid ""
743 "The return value of this program is the numeric return code of the last "
744 "executed command."
745 msgstr ""
746 "Returværdien for dette program er den numeriske returkode for den sidst "
747 "udførte kommando."
748
749 #. type: SH
750 #: ../../debconf-communicate:28 debconf.conf.5:444
751 #, no-wrap
752 msgid "EXAMPLE"
753 msgstr "EKSEMPEL"
754
755 #. type: verbatim
756 #: ../../debconf-communicate:30
757 #, no-wrap
758 msgid ""
759 " echo get debconf/frontend | debconf-communicate\n"
760 "\n"
761 msgstr ""
762
763 #. type: textblock
764 #: ../../debconf-communicate:32
765 msgid "Print out the value of the debconf/frontend question."
766 msgstr "Vis værdien for debconf/brugerflade spørgsmålet."
767
768 #. type: =head1
769 #: ../../debconf-communicate:34 ../../debconf-loadtemplate:25
770 #: ../../debconf-set-selections:20
771 msgid "WARNING"
772 msgstr "ADVARSEL"
773
774 #. type: textblock
775 #: ../../debconf-communicate:36
776 msgid ""
777 "This program should never be used from a maintainer script of a package that "
778 "uses debconf! It may however, be useful in debugging."
779 msgstr ""
780
781 #. type: textblock
782 #: ../../debconf-communicate:41
783 msgid "L<debconf-loadtemplate(1)>"
784 msgstr "L<debconf-loadtemplate(1)>"
785
786 #. type: textblock
787 #: ../../debconf-copydb:5
788 msgid "debconf-copydb - copy a debconf database"
789 msgstr "debconf-copydb - kopier en debconfdatabase"
790
791 #. type: verbatim
792 #: ../../debconf-copydb:19
793 #, no-wrap
794 msgid ""
795 " debconf-copydb sourcedb destdb [--pattern=pattern] [--owner-pattern=pattern] [--config=Foo:bar]\n"
796 "\n"
797 msgstr ""
798
799 #. type: textblock
800 #: ../../debconf-copydb:32
801 msgid ""
802 "B<debconf-copydb> copies items from an existing debconf database into "
803 "another, possibly new database. The two databases may have different "
804 "formats; if so a conversion will automatically be done."
805 msgstr ""
806
807 #. type: =item
808 #: ../../debconf-copydb:40
809 msgid "I<sourcedb>"
810 msgstr ""
811
812 #. type: textblock
813 #: ../../debconf-copydb:42
814 msgid ""
815 "The name of the source database. Typically it will be defined in your "
816 "debconf.conf (or .debconfrc) file."
817 msgstr ""
818 "Navn på kildedatabasen. Typisk vil den være defineret i filen debconf.conf "
819 "(eller .debconfrc)."
820
821 #. type: =item
822 #: ../../debconf-copydb:45
823 msgid "I<destdb>"
824 msgstr ""
825
826 #. type: textblock
827 #: ../../debconf-copydb:47
828 msgid ""
829 "The name of the destination database. It may be defined in debconf.conf or ."
830 "debconfrc, or you might define it on the command line (see below)."
831 msgstr ""
832
833 #. type: =item
834 #: ../../debconf-copydb:51
835 msgid "B<-p> I<pattern>, B<--pattern> I<pattern>"
836 msgstr "B<-p> I<mønster>, B<--pattern> I<mønster>"
837
838 #. type: textblock
839 #: ../../debconf-copydb:53
840 msgid ""
841 "If this is specified, only items in I<sourcedb> whose names match the "
842 "pattern will be copied."
843 msgstr ""
844
845 #. type: =item
846 #: ../../debconf-copydb:56
847 msgid "B<--owner-pattern> I<pattern>"
848 msgstr ""
849
850 #. type: textblock
851 #: ../../debconf-copydb:58
852 msgid ""
853 "If this is specified, only items in I<sourcedb> whose owners match the "
854 "pattern will be copied."
855 msgstr ""
856
857 #. type: =item
858 #: ../../debconf-copydb:61
859 msgid "B<-c> I<foo:bar>, B<--config> I<Foo:bar>"
860 msgstr ""
861
862 #. type: textblock
863 #: ../../debconf-copydb:63
864 msgid "Set option Foo to bar. This is similar to writing:"
865 msgstr ""
866
867 #. type: verbatim
868 #: ../../debconf-copydb:65
869 #, no-wrap
870 msgid ""
871 " Foo: bar\n"
872 "\n"
873 msgstr ""
874
875 #. type: textblock
876 #: ../../debconf-copydb:67
877 msgid ""
878 "In debconf.conf, except you probably want to leave off the space on the "
879 "command line (or quote it: \"Foo: bar\"). Generally must be used multiple "
880 "times, to build up a full configuration stanza. While blank lines are used "
881 "to separate stanzas in debconf.conf, this program will assume that \"Name:"
882 "dbname\" denotes the beginning of a new stanza."
883 msgstr ""
884
885 #. type: verbatim
886 #: ../../debconf-copydb:77
887 #, no-wrap
888 msgid ""
889 " debconf-copydb configdb backup\n"
890 "\n"
891 msgstr ""
892
893 #. type: textblock
894 #: ../../debconf-copydb:79
895 msgid ""
896 "Copy all of configdb to backup, assuming you already have the backup "
897 "database defined in debconf.conf."
898 msgstr ""
899
900 #. type: verbatim
901 #: ../../debconf-copydb:82
902 #, no-wrap
903 msgid ""
904 " debconf-copydb configdb newdb --pattern='^slrn/' \\\n"
905 " \t--config=Name:newdb --config=Driver:File \\\n"
906 "\t--config=Filename:newdb.dat\n"
907 "\n"
908 msgstr ""
909
910 #. type: textblock
911 #: ../../debconf-copydb:86
912 msgid ""
913 "Copy slrn's data out of configdb, and into newdb. newdb is not defined in "
914 "the rc file, so the --config switches set up the database on the fly."
915 msgstr ""
916
917 #. type: verbatim
918 #: ../../debconf-copydb:89
919 #, no-wrap
920 msgid ""
921 " debconf-copydb configdb stdout -c Name:stdout -c Driver:Pipe \\\n"
922 " \t-c InFd:none --pattern='^foo/'\n"
923 "\n"
924 msgstr ""
925
926 #. type: textblock
927 #: ../../debconf-copydb:92
928 msgid "Spit out all the items in the debconf database related to package foo."
929 msgstr ""
930
931 #. type: verbatim
932 #: ../../debconf-copydb:94
933 #, no-wrap
934 msgid ""
935 " debconf-copydb configdb pipe --config=Name:pipe \\\n"
936 " --config=Driver:Pipe --config=InFd:none | \\\n"
937 " \tssh remotehost debconf-copydb pipe configdb \\\n"
938 "\t\t--config=Name:pipe --config=Driver:Pipe\n"
939 "\n"
940 msgstr ""
941
942 #. type: textblock
943 #: ../../debconf-copydb:99
944 msgid ""
945 "This uses the special purpose pipe driver to copy a database to a remote "
946 "system."
947 msgstr ""
948
949 #. type: textblock
950 #: ../../debconf-copydb:104
951 msgid "L<debconf.conf(5)>"
952 msgstr "L<debconf.conf(5)>"
953
954 #. type: textblock
955 #: ../../debconf-getlang:5
956 msgid "debconf-getlang - extract a language from a templates file"
957 msgstr "debconf-getlang - udtræk et sprog fra en skabelonfil"
958
959 #. type: verbatim
960 #: ../../debconf-getlang:18
961 #, no-wrap
962 msgid ""
963 " debconf-getlang lang master [translation]\n"
964 " debconf-getlang --stats master translation [...]\n"
965 "\n"
966 msgstr ""
967
968 #. type: textblock
969 #: ../../debconf-getlang:23
970 msgid ""
971 "Note: This utility is deprecated; you should switch to using the po-debconf "
972 "package."
973 msgstr ""
974 "Bemærk: Dette redskab er forældet; du bør skifte til pakken po-debconf."
975
976 #. type: textblock
977 #: ../../debconf-getlang:25
978 msgid ""
979 "This program helps make and manage translations of debconf templates. There "
980 "are basically three situations in which this program might be called:"
981 msgstr ""
982 "Dette program hjælper med at lave og håndtere oversættelse af "
983 "debconfskabeloner. Der er grundlæggende tre situationer hvor dette "
984 "programmer kan kaldes:"
985
986 #. type: =item
987 #: ../../debconf-getlang:30
988 msgid "A translation is just being started."
989 msgstr "En oversættelse er netop igangsat."
990
991 #. type: textblock
992 #: ../../debconf-getlang:32
993 msgid ""
994 "You want to provide the translator with a file they can work on that has the "
995 "English fields from your templates file, plus blank Field-ll fields for the "
996 "target language that they can fill in."
997 msgstr ""
998
999 #. type: textblock
1000 #: ../../debconf-getlang:36
1001 msgid ""
1002 "To do this, run the program with first parameter being the code for the "
1003 "language that is being translated to, and the second parameter being the "
1004 "filename of the English templates file."
1005 msgstr ""
1006
1007 #. type: =item
1008 #: ../../debconf-getlang:40
1009 msgid "A translation is well under way."
1010 msgstr "En oversættelse er undervejs."
1011
1012 #. type: textblock
1013 #: ../../debconf-getlang:42
1014 msgid ""
1015 "You have changed some English text, or added more items to your templates "
1016 "file, and you want to send the translators a file with the English text plus "
1017 "their current translations (or you are the translator, and you want to "
1018 "generate such a file for your own use)."
1019 msgstr ""
1020
1021 #. type: textblock
1022 #: ../../debconf-getlang:47
1023 msgid ""
1024 "To accomplish this, run the program with the first parameter being the the "
1025 "code for the language that is being translated to, the second parameter "
1026 "being the filename of the master English templates file, and the third "
1027 "parameter being the filename of the current translated file."
1028 msgstr ""
1029
1030 #. type: textblock
1031 #: ../../debconf-getlang:52
1032 msgid ""
1033 "When run this way, the program is smart enough to notice fuzzy translations. "
1034 "For example a fuzzy Description will be output as Description-<lang>-fuzzy, "
1035 "and a new, blank Description-<lang> will be added. Translators should "
1036 "remove the -fuzzy fields as they correct the fuzzy translations."
1037 msgstr ""
1038
1039 #. type: =item
1040 #: ../../debconf-getlang:58
1041 msgid "Checking the status of a translation"
1042 msgstr "Kontroller status for en oversættelse"
1043
1044 #. type: textblock
1045 #: ../../debconf-getlang:60
1046 msgid ""
1047 "To check the status of a translation, use the --status flag, and pass the "
1048 "english template file as the first parameter, and all the other translated "
1049 "templates after that. It will output statistics for each of them. For "
1050 "example:"
1051 msgstr ""
1052
1053 #. type: verbatim
1054 #: ../../debconf-getlang:65
1055 #, no-wrap
1056 msgid ""
1057 " debconf-getlang --stats debian/templates debian/templates.*\n"
1058 "\n"
1059 msgstr ""
1060
1061 #. type: =head1
1062 #: ../../debconf-getlang:69
1063 msgid "NOTE"
1064 msgstr "BEMÆRK"
1065
1066 #. type: textblock
1067 #: ../../debconf-getlang:71
1068 msgid ""
1069 "Note that the text in the generated templates may be word-wrapped by debconf."
1070 msgstr "Bemærk at teksten i de oprettede skabelon kan være orddelt af debconf."
1071
1072 #. type: textblock
1073 #: ../../debconf-getlang:76
1074 msgid "L<debconf-mergetemplate(1)>"
1075 msgstr ""
1076
1077 #. type: textblock
1078 #: ../../debconf-get-selections:5
1079 msgid "debconf-get-selections - output contents of debconf database"
1080 msgstr "debconf-get-selections - vis indholdet af debconfdatabasen"
1081
1082 #. type: textblock
1083 #: ../../debconf-get-selections:9
1084 msgid "debconf-get-selections [--installer]"
1085 msgstr "debconf-get-selections [--installer]"
1086
1087 #. type: textblock
1088 #: ../../debconf-get-selections:13
1089 msgid ""
1090 "Output the current debconf database in a format understandable by debconf-"
1091 "set-selections."
1092 msgstr ""
1093 "Vis den aktuelle debconfdatabase i et format som kan forstås af debconf-set-"
1094 "selections."
1095
1096 #. type: textblock
1097 #: ../../debconf-get-selections:16
1098 msgid ""
1099 "To dump the debconf database of the debian-installer, from /var/log/"
1100 "installer/cdebconf, use the --installer parameter."
1101 msgstr ""
1102 "For at dumpe debconfdatabasen for debian-installer, fra /var/log/installer/"
1103 "cdebconf, så brug parameteren --installer."
1104
1105 #. type: textblock
1106 #: ../../debconf-get-selections:80 ../../debconf-set-selections:228
1107 msgid "Petter Reinholdtsen <[email protected]>"
1108 msgstr "Petter Reinholdtsen <[email protected]>"
1109
1110 #. type: textblock
1111 #: ../../debconf-loadtemplate:5
1112 msgid "debconf-loadtemplate - load template file into debconf database"
1113 msgstr "debconf-loadtemplate - indlæs skabelonfil i debconfdatabasen"
1114
1115 #. type: verbatim
1116 #: ../../debconf-loadtemplate:16
1117 #, no-wrap
1118 msgid ""
1119 " debconf-loadtemplate owner file [file ..]\n"
1120 "\n"
1121 msgstr ""
1122
1123 #. type: textblock
1124 #: ../../debconf-loadtemplate:20
1125 msgid ""
1126 "Loads one or more template files into the debconf database. The first "
1127 "parameter specifies the owner of the templates (typically, the owner is the "
1128 "name of a debian package). The remaining parameters are template files to "
1129 "load."
1130 msgstr ""
1131
1132 #. type: textblock
1133 #: ../../debconf-loadtemplate:27
1134 msgid ""
1135 "This program should never be used from a maintainer script of a package that "
1136 "uses debconf! It may however, be useful in debugging, or to seed the debconf "
1137 "database."
1138 msgstr ""
1139
1140 #. type: textblock
1141 #: ../../debconf-loadtemplate:33
1142 msgid "L<debconf-communicate(1)>"
1143 msgstr ""
1144
1145 #. type: textblock
1146 #: ../../debconf-mergetemplate:5
1147 msgid "debconf-mergetemplate - merge together multiple debconf template files"
1148 msgstr ""
1149
1150 #. type: verbatim
1151 #: ../../debconf-mergetemplate:19
1152 #, no-wrap
1153 msgid ""
1154 " debconf-mergetemplate [options] [templates.ll ...] templates\n"
1155 "\n"
1156 msgstr ""
1157
1158 #. type: textblock
1159 #: ../../debconf-mergetemplate:23
1160 msgid ""
1161 "Note: This utility is deprecated. You should switch to using po-debconf's "
1162 "po2debconf program."
1163 msgstr ""
1164
1165 #. type: textblock
1166 #: ../../debconf-mergetemplate:26
1167 msgid ""
1168 "This program is useful if you have multiple debconf templates files which "
1169 "you want to merge together into one big file. All the specified files will "
1170 "be read in, merged, and output to standard output."
1171 msgstr ""
1172
1173 #. type: textblock
1174 #: ../../debconf-mergetemplate:30
1175 msgid ""
1176 "This can be especially useful if you are dealing with translated template "
1177 "files. In this case, you might have your main template file, plus several "
1178 "other files provided by the translators. These files will have translated "
1179 "fields in them, and maybe the translators left in the english versions of "
1180 "the fields they translated, for their reference."
1181 msgstr ""
1182
1183 #. type: textblock
1184 #: ../../debconf-mergetemplate:36
1185 msgid ""
1186 "So, you want to merge together all the translated templates files with your "
1187 "main templates file. Any fields that are unique to the translated files need "
1188 "to be added in to the correct templates, but any fields they have in common "
1189 "should be superseded by the fields in the main file (which might be more up-"
1190 "to-date)."
1191 msgstr ""
1192
1193 #. type: textblock
1194 #: ../../debconf-mergetemplate:42
1195 msgid ""
1196 "This program handles that case properly, just list each of the translated "
1197 "templates files, and then your main templates file last."
1198 msgstr ""
1199
1200 #. type: =item
1201 #: ../../debconf-mergetemplate:49
1202 msgid "--outdated"
1203 msgstr ""
1204
1205 #. type: textblock
1206 #: ../../debconf-mergetemplate:51
1207 msgid ""
1208 "Merge in even outdated translations. The default is to drop them with a "
1209 "warning message."
1210 msgstr ""
1211
1212 #. type: =item
1213 #: ../../debconf-mergetemplate:54
1214 msgid "--drop-old-templates"
1215 msgstr ""
1216
1217 #. type: textblock
1218 #: ../../debconf-mergetemplate:56
1219 msgid ""
1220 "If a translation has an entire template that is not in the master file (and "
1221 "thus is probably an old template), drop that entire template."
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../../debconf-mergetemplate:63
1226 msgid "L<debconf-getlang(1)>"
1227 msgstr ""
1228
1229 #. type: textblock
1230 #: ../../debconf-set-selections:5
1231 #, fuzzy
1232 #| msgid "debconf-get-selections - output contents of debconf database"
1233 msgid "debconf-set-selections - insert new values into the debconf database"
1234 msgstr "debconf-get-selections - vis indholdet af debconfdatabasen"
1235
1236 #. type: verbatim
1237 #: ../../debconf-set-selections:9
1238 #, no-wrap
1239 msgid ""
1240 " debconf-set-selections file\n"
1241 " debconf-get-selections | ssh newhost debconf-set-selections\n"
1242 "\n"
1243 msgstr ""
1244
1245 #. type: textblock
1246 #: ../../debconf-set-selections:14
1247 msgid ""
1248 "B<debconf-set-selections> can be used to pre-seed the debconf database with "
1249 "answers, or to change answers in the database. Each question will be marked "
1250 "as seen to prevent debconf from asking the question interactively."
1251 msgstr ""
1252
1253 #. type: textblock
1254 #: ../../debconf-set-selections:18
1255 msgid "Reads from a file if a filename is given, otherwise from stdin."
1256 msgstr ""
1257
1258 #. type: textblock
1259 #: ../../debconf-set-selections:22
1260 msgid ""
1261 "Only use this command to seed debconf values for packages that will be or "
1262 "are installed. Otherwise you can end up with values in the database for "
1263 "uninstalled packages that will not go away, or with worse problems involving "
1264 "shared values. It is recommended that this only be used to seed the database "
1265 "if the originating machine has an identical install."
1266 msgstr ""
1267
1268 #. type: =head1
1269 #: ../../debconf-set-selections:28
1270 msgid "DATA FORMAT"
1271 msgstr ""
1272
1273 #. type: textblock
1274 #: ../../debconf-set-selections:30
1275 msgid ""
1276 "The data is a series of lines. Lines beginning with a # character are "
1277 "comments. Blank lines are ignored. All other lines set the value of one "
1278 "question, and should contain four values, each separated by one character of "
1279 "whitespace. The first value is the name of the package that owns the "
1280 "question. The second is the name of the question, the third value is the "
1281 "type of this question, and the fourth value (through the end of the line) "
1282 "is the value to use for the answer of the question."
1283 msgstr ""
1284
1285 #. type: textblock
1286 #: ../../debconf-set-selections:38
1287 msgid ""
1288 "Alternatively, the third value can be \"seen\"; then the preseed line only "
1289 "controls whether the question is marked as seen in debconf's database. Note "
1290 "that preseeding a question's value defaults to marking that question as "
1291 "seen, so to override the default value without marking a question seen, you "
1292 "need two lines."
1293 msgstr ""
1294
1295 #. type: textblock
1296 #: ../../debconf-set-selections:44
1297 msgid ""
1298 "Lines can be continued to the next line by ending them with a \"\\\" "
1299 "character."
1300 msgstr ""
1301
1302 #. type: verbatim
1303 #: ../../debconf-set-selections:49
1304 #, no-wrap
1305 msgid ""
1306 " # Force debconf priority to critical.\n"
1307 " debconf debconf/priority select critical\n"
1308 "\n"
1309 msgstr ""
1310
1311 #. type: verbatim
1312 #: ../../debconf-set-selections:52
1313 #, no-wrap
1314 msgid ""
1315 " # Override default frontend to readline, but allow user to select.\n"
1316 " debconf debconf/frontend select readline\n"
1317 " debconf debconf/frontend seen false\n"
1318 "\n"
1319 msgstr ""
1320
1321 #. type: =item
1322 #: ../../debconf-set-selections:60
1323 msgid "B<--verbose>, B<-v>"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../../debconf-set-selections:62
1328 msgid "verbose output"
1329 msgstr ""
1330
1331 #. type: =item
1332 #: ../../debconf-set-selections:64
1333 msgid "B<--checkonly>, B<-c>"
1334 msgstr ""
1335
1336 #. type: textblock
1337 #: ../../debconf-set-selections:66
1338 msgid "only check the input file format, do not save changes to database"
1339 msgstr ""
1340
1341 #. type: textblock
1342 #: ../../debconf-set-selections:72
1343 msgid "L<debconf-get-selections(1)> (available in the debconf-utils package)"
1344 msgstr ""
1345
1346 #. type: textblock
1347 #: ../../debconf-show:5
1348 msgid "debconf-show - query the debconf database"
1349 msgstr ""
1350
1351 #. type: verbatim
1352 #: ../../debconf-show:9
1353 #, no-wrap
1354 msgid ""
1355 " debconf-show packagename [...] [--db=dbname]\n"
1356 " debconf-show --listowners [--db=dbname]\n"
1357 " debconf-show --listdbs\n"
1358 "\n"
1359 msgstr ""
1360
1361 #. type: textblock
1362 #: ../../debconf-show:15
1363 msgid "B<debconf-show> lets you query the debconf database in different ways."
1364 msgstr ""
1365
1366 #. type: textblock
1367 #: ../../debconf-show:17
1368 msgid ""
1369 "The most common use is \"debconf-show packagename\", which displays all "
1370 "items in the debconf database owned by a given package, and their current "
1371 "values. Questions that have been asked already are prefixed with an '*'."
1372 msgstr ""
1373
1374 #. type: textblock
1375 #: ../../debconf-show:21
1376 msgid ""
1377 "This can be useful as a debugging aid, and especially handy in bug reports "
1378 "involving a package's use of debconf."
1379 msgstr ""
1380
1381 #. type: =item
1382 #: ../../debconf-show:28
1383 msgid "B<--db=>I<dbname>"
1384 msgstr ""
1385
1386 #. type: textblock
1387 #: ../../debconf-show:30
1388 msgid ""
1389 "Specify the database to query. By default, debconf-show queries the main "
1390 "database."
1391 msgstr ""
1392
1393 #. type: =item
1394 #: ../../debconf-show:33
1395 msgid "B<--listowners>"
1396 msgstr ""
1397
1398 #. type: textblock
1399 #: ../../debconf-show:35
1400 msgid ""
1401 "Lists all owners of questions in the database. Generally an owner is "
1402 "equivalent to a debian package name."
1403 msgstr ""
1404
1405 #. type: =item
1406 #: ../../debconf-show:38
1407 msgid "B<--listdbs>"
1408 msgstr ""
1409
1410 #. type: textblock
1411 #: ../../debconf-show:40
1412 msgid "Lists all available databases."
1413 msgstr ""
1414
1415 #. type: textblock
1416 #: ../../debconf-show:154
1417 msgid "Joey Hess <[email protected]> and Sylvain Ferriol"
1418 msgstr "Joey Hess <[email protected]> and Sylvain Ferriol"
1419
1420 #. type: textblock
1421 #: ../../dpkg-preconfigure:5
1422 msgid ""
1423 "dpkg-preconfigure - let packages ask questions prior to their installation"
1424 msgstr "dpkg-preconfigure - lad pakker stille spørgsmål før deres installation"
1425
1426 #. type: verbatim
1427 #: ../../dpkg-preconfigure:9
1428 #, no-wrap
1429 msgid ""
1430 " dpkg-preconfigure [options] package.deb\n"
1431 "\n"
1432 msgstr ""
1433 " dpkg-preconfigure [tilvalg] pakke.deb\n"
1434 "\n"
1435
1436 #. type: verbatim
1437 #: ../../dpkg-preconfigure:11
1438 #, no-wrap
1439 msgid ""
1440 " dpkg-preconfigure --apt\n"
1441 "\n"
1442 msgstr ""
1443 " dpkg-preconfigure --apt\n"
1444 "\n"
1445
1446 #. type: textblock
1447 #: ../../dpkg-preconfigure:15
1448 msgid ""
1449 "B<dpkg-preconfigure> lets packages ask questions before they are installed. "
1450 "It operates on a set of debian packages, and all packages that use debconf "
1451 "will have their config script run so they can examine the system and ask "
1452 "questions."
1453 msgstr ""
1454 "B<dpkg-preconfigure> lader pakker stille spørgsmål før de installeres. Den "
1455 "fungerer på et sæt af debianpakker, og alle pakker som bruger debconf vil "
1456 "have deres konfigurationsskript kørt, så at de kan undersøge systemet og "
1457 "stille spørgsmål."
1458
1459 #. type: textblock
1460 #: ../../dpkg-preconfigure:30
1461 msgid ""
1462 "Set the lowest priority of questions you are interested in. Any questions "
1463 "with a priority below the selected priority will be ignored and their "
1464 "default answers will be used."
1465 msgstr ""
1466
1467 #. type: =item
1468 #: ../../dpkg-preconfigure:38
1469 msgid "B<--apt>"
1470 msgstr ""
1471
1472 #. type: textblock
1473 #: ../../dpkg-preconfigure:40
1474 msgid ""
1475 "Run in apt mode. It will expect to read a set of package filenames from "
1476 "stdin, rather than getting them as parameters. Typically this is used to "
1477 "make apt run dpkg-preconfigure on all packages before they are installed. "
1478 "To do this, add something like this to /etc/apt/apt.conf:"
1479 msgstr ""
1480
1481 #. type: verbatim
1482 #: ../../dpkg-preconfigure:45
1483 #, no-wrap
1484 msgid ""
1485 " // Pre-configure all packages before\n"
1486 " // they are installed.\n"
1487 " DPkg::Pre-Install-Pkgs {\n"
1488 " \t\"dpkg-preconfigure --apt --priority=low\";\n"
1489 " };\n"
1490 "\n"
1491 msgstr ""
1492
1493 #. type: =item
1494 #: ../../dpkg-preconfigure:51 ../../dpkg-reconfigure:69
1495 msgid "B<-h>, B<--help>"
1496 msgstr "B<-h>, B<--help>"
1497
1498 #. type: textblock
1499 #: ../../dpkg-preconfigure:53 ../../dpkg-reconfigure:71
1500 msgid "Display usage help."
1501 msgstr "Vis hjælpetekst."
1502
1503 #. type: textblock
1504 #: ../../dpkg-preconfigure:61 ../../dpkg-reconfigure:79
1505 msgid "L<debconf(7)>"
1506 msgstr "L<debconf(7)>"
1507
1508 #. type: textblock
1509 #: ../../dpkg-reconfigure:5
1510 msgid "dpkg-reconfigure - reconfigure an already installed package"
1511 msgstr "dpkg-reconfigure - rekonfigurer en allerede installeret pakke"
1512
1513 #. type: verbatim
1514 #: ../../dpkg-reconfigure:9
1515 #, no-wrap
1516 msgid ""
1517 " dpkg-reconfigure [options] packages\n"
1518 "\n"
1519 msgstr ""
1520 " dpkg-reconfigure [tilvalg] pakker\n"
1521 "\n"
1522
1523 #. type: textblock
1524 #: ../../dpkg-reconfigure:13
1525 msgid ""
1526 "B<dpkg-reconfigure> reconfigures packages after they have already been "
1527 "installed. Pass it the names of a package or packages to reconfigure. It "
1528 "will ask configuration questions, much like when the package was first "
1529 "installed."
1530 msgstr ""
1531
1532 #. type: textblock
1533 #: ../../dpkg-reconfigure:18
1534 msgid ""
1535 "If you just want to see the current configuration of a package, see "
1536 "L<debconf-show(1)> instead."
1537 msgstr ""
1538
1539 #. type: textblock
1540 #: ../../dpkg-reconfigure:27
1541 msgid ""
1542 "Select the frontend to use. The default frontend can be permanently changed "
1543 "by:"
1544 msgstr ""
1545
1546 #. type: verbatim
1547 #: ../../dpkg-reconfigure:30
1548 #, no-wrap
1549 msgid ""
1550 " dpkg-reconfigure debconf\n"
1551 "\n"
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../../dpkg-reconfigure:32
1556 msgid ""
1557 "Note that if you normally have debconf set to use the noninteractive "
1558 "frontend, dpkg-reconfigure will use the dialog frontend instead, so you "
1559 "actually get to reconfigure the package."
1560 msgstr ""
1561
1562 #. type: textblock
1563 #: ../../dpkg-reconfigure:38
1564 msgid ""
1565 "Specify the minimum priority of question that will be displayed. dpkg-"
1566 "reconfigure normally shows low priority questions no matter what your "
1567 "default priority is. See L<debconf(7)> for a list."
1568 msgstr ""
1569
1570 #. type: =item
1571 #: ../../dpkg-reconfigure:46
1572 msgid "B<--default-priority>"
1573 msgstr ""
1574
1575 #. type: textblock
1576 #: ../../dpkg-reconfigure:48
1577 msgid ""
1578 "Use whatever the default priority of question is, instead of forcing the "
1579 "priority to low."
1580 msgstr ""
1581
1582 #. type: =item
1583 #: ../../dpkg-reconfigure:51
1584 msgid "B<-u>, B<--unseen-only>"
1585 msgstr ""
1586
1587 #. type: textblock
1588 #: ../../dpkg-reconfigure:53
1589 msgid ""
1590 "By default, all questions are shown, even if they have already been "
1591 "answered. If this parameter is set though, only questions that have not yet "
1592 "been seen will be asked."
1593 msgstr ""
1594
1595 #. type: =item
1596 #: ../../dpkg-reconfigure:57
1597 msgid "B<--force>"
1598 msgstr ""
1599
1600 #. type: textblock
1601 #: ../../dpkg-reconfigure:59
1602 msgid ""
1603 "Force dpkg-reconfigure to reconfigure a package even if the package is in an "
1604 "inconsistent or broken state. Use with caution."
1605 msgstr ""
1606
1607 #. type: =item
1608 #: ../../dpkg-reconfigure:62
1609 msgid "B<--no-reload>"
1610 msgstr ""
1611
1612 #. type: textblock
1613 #: ../../dpkg-reconfigure:64
1614 msgid ""
1615 "Prevent dpkg-reconfigure from reloading templates. Use with caution; this "
1616 "will prevent dpkg-reconfigure from repairing broken templates databases. "
1617 "However, it may be useful in constrained environments where rewriting the "
1618 "templates database is expensive."
1619 msgstr ""
1620
1621 #. type: TH
1622 #: debconf.conf.5:1
1623 #, no-wrap
1624 msgid "DEBCONF.CONF"
1625 msgstr ""
1626
1627 #. type: Plain text
1628 #: debconf.conf.5:4
1629 msgid "debconf.conf - debconf configuration file"
1630 msgstr ""
1631
1632 #. type: Plain text
1633 #: debconf.conf.5:12
1634 msgid ""
1635 "Debconf is a configuration system for Debian packages. /etc/debconf.conf and "
1636 "~/.debconfrc are configuration files debconf uses to determine which "
1637 "databases it should use. These databases are used for storing two types of "
1638 "information; dynamic config data the user enters into it, and static "
1639 "template data. Debconf offers a flexible, extensible database backend. New "
1640 "drivers can be created with a minimum of effort, and sets of drivers can be "
1641 "combined in various ways."
1642 msgstr ""
1643
1644 #. type: Plain text
1645 #: debconf.conf.5:17
1646 #, no-wrap
1647 msgid ""
1648 " # This is a sample config file that is\n"
1649 " # sufficient to use debconf.\n"
1650 " Config: configdb\n"
1651 " Templates: templatedb\n"
1652 msgstr ""
1653
1654 #. type: Plain text
1655 #: debconf.conf.5:21
1656 #, no-wrap
1657 msgid ""
1658 " Name: configdb\n"
1659 " Driver: File\n"
1660 " Filename: /var/cache/debconf/config.dat\n"
1661 msgstr ""
1662
1663 #. type: Plain text
1664 #: debconf.conf.5:26
1665 #, no-wrap
1666 msgid ""
1667 " Name: templatedb\n"
1668 " Driver: File\n"
1669 " Mode: 644\n"
1670 " Filename: /var/cache/debconf/templates.dat\n"
1671 msgstr ""
1672
1673 #. type: SH
1674 #: debconf.conf.5:26
1675 #, no-wrap
1676 msgid "FILE FORMAT"
1677 msgstr ""
1678
1679 #. type: Plain text
1680 #: debconf.conf.5:30
1681 msgid ""
1682 "The format of this file is a series of stanzas, each separated by at least "
1683 "one wholly blank line. Comment lines beginning with a \"#\" character are "
1684 "ignored."
1685 msgstr ""
1686
1687 #. type: Plain text
1688 #: debconf.conf.5:33
1689 msgid ""
1690 "The first stanza of the file is special, is used to configure debconf as a "
1691 "whole. Two fields are required to be in this first stanza:"
1692 msgstr ""
1693
1694 #. type: TP
1695 #: debconf.conf.5:34
1696 #, no-wrap
1697 msgid "B<Config>"
1698 msgstr ""
1699
1700 #. type: Plain text
1701 #: debconf.conf.5:37
1702 msgid "Specifies the name of the database from which to load config data."
1703 msgstr ""
1704
1705 #. type: TP
1706 #: debconf.conf.5:37
1707 #, no-wrap
1708 msgid "B<Templates>"
1709 msgstr ""
1710
1711 #. type: Plain text
1712 #: debconf.conf.5:40
1713 msgid "Specifies the name of the database to use for the template cache."
1714 msgstr ""
1715
1716 #. type: Plain text
1717 #: debconf.conf.5:43
1718 msgid "Additional fields that can be used include:"
1719 msgstr ""
1720
1721 #. type: TP
1722 #: debconf.conf.5:44
1723 #, no-wrap
1724 msgid "B<Frontend>"
1725 msgstr ""
1726
1727 #. type: Plain text
1728 #: debconf.conf.5:48
1729 msgid ""
1730 "The frontend Debconf should use, overriding any frontend set in the debconf "
1731 "database."
1732 msgstr ""
1733
1734 #. type: TP
1735 #: debconf.conf.5:48
1736 #, no-wrap
1737 msgid "B<Priority>"
1738 msgstr ""
1739
1740 #. type: Plain text
1741 #: debconf.conf.5:52
1742 msgid ""
1743 "The priority Debconf should use, overriding any priority set in the debconf "
1744 "database."
1745 msgstr ""
1746
1747 #. type: TP
1748 #: debconf.conf.5:52
1749 #, no-wrap
1750 msgid "B<Admin-Email>"
1751 msgstr ""
1752
1753 #. type: Plain text
1754 #: debconf.conf.5:59
1755 msgid ""
1756 "The email address Debconf should send mail to if it needs to make sure that "
1757 "the admin has seen an important message. Defaults to \"root\", but can be "
1758 "set to any valid email address to send the mail there. If you prefer to "
1759 "never have debconf send you mail, specify a blank address. This can be "
1760 "overridden on the fly with the DEBCONF_ADMIN_EMAIL environment variable."
1761 msgstr ""
1762
1763 #. type: Plain text
1764 #: debconf.conf.5:59 debconf.conf.5:395
1765 #, no-wrap
1766 msgid "B<Debug>"
1767 msgstr ""
1768
1769 #. type: Plain text
1770 #: debconf.conf.5:67
1771 msgid ""
1772 "If set, this will cause debconf to output debugging information to standard "
1773 "error. The value it is set to can be something like \"user\", \"developer\", "
1774 "\"db\", or a regular expression. Typically, rather than setting it "
1775 "permanently in a config file, you will only want to temporarily turn on "
1776 "debugging, and the DEBCONF_DEBUG environment variable can be set instead to "
1777 "accomplish that."
1778 msgstr ""
1779
1780 #. type: TP
1781 #: debconf.conf.5:67
1782 #, no-wrap
1783 msgid "B<NoWarnings>"
1784 msgstr ""
1785
1786 #. type: Plain text
1787 #: debconf.conf.5:72
1788 msgid ""
1789 "If set, this will make debconf not display warnings about various things. "
1790 "This can be overridden on the fly with the DEBCONF_NOWARNINGS environment "
1791 "variable."
1792 msgstr ""
1793
1794 #. type: TP
1795 #: debconf.conf.5:72
1796 #, no-wrap
1797 msgid "B<Log>"
1798 msgstr ""
1799
1800 #. type: Plain text
1801 #: debconf.conf.5:77
1802 msgid ""
1803 "Makes debconf log debugging information as it runs, to the syslog. The value "
1804 "it is set to controls that is logged. See Debug, above for an explanation of "
1805 "the values that can be set to control what is logged."
1806 msgstr ""
1807
1808 #. type: TP
1809 #: debconf.conf.5:77
1810 #, no-wrap
1811 msgid "B<Terse>"
1812 msgstr ""
1813
1814 #. type: Plain text
1815 #: debconf.conf.5:82
1816 msgid ""
1817 "If set to \"true\", makes some debconf frontends use a special terse display "
1818 "mode that outputs as little as possible. Defaults to false. Terse mode may "
1819 "be temporarily set via the DEBCONF_TERSE environment variable."
1820 msgstr ""
1821
1822 #. type: Plain text
1823 #: debconf.conf.5:87
1824 #, no-wrap
1825 msgid ""
1826 "For example, the first stanza of a file might look like this:\n"
1827 " Config: configdb\n"
1828 " Templates: templatedb\n"
1829 msgstr ""
1830
1831 #. type: Plain text
1832 #: debconf.conf.5:91
1833 #, no-wrap
1834 msgid ""
1835 "Each remaining stanza in the file sets up a database. A database stanza\n"
1836 "begins by naming the database:\n"
1837 " Name: configdb\n"
1838 msgstr ""
1839
1840 #. type: Plain text
1841 #: debconf.conf.5:95
1842 #, no-wrap
1843 msgid ""
1844 "Then it indicates what database driver should be used for this database.\n"
1845 "See DRIVERS, below, for information about what drivers are available.\n"
1846 " Driver: File\n"
1847 msgstr ""
1848
1849 #. type: Plain text
1850 #: debconf.conf.5:100
1851 #, no-wrap
1852 msgid ""
1853 "You can indicate that the database is not essential to the proper\n"
1854 "functioning of debconf by saying it is not required. This will make debconf\n"
1855 "muddle on if the database fails for some reason.\n"
1856 " Required: false\n"
1857 msgstr ""
1858
1859 #. type: Plain text
1860 #: debconf.conf.5:104
1861 #, no-wrap
1862 msgid ""
1863 "You can mark any database as readonly and debconf will not write anything\n"
1864 "to it.\n"
1865 " Readonly: true\n"
1866 msgstr ""
1867 "Du kan markere databaser som skrivebeskyttet og debconf vil så ikke skrive\n"
1868 "noget til databasen.\n"
1869 " Skrivebeskyttet: true (sand)\n"
1870
1871 #. type: Plain text
1872 #: debconf.conf.5:107
1873 msgid ""
1874 "You can also limit what types of data can go into the database with Accept- "
1875 "and Reject- lines; see ACCESS CONTROLS, below."
1876 msgstr ""
1877 "Du kan også begrænse hvilken slags data som kan tilføres databasen med "
1878 "linjerne Accept- og Reject-; se ACCESS CONTROLS nedenfor."
1879
1880 #. type: Plain text
1881 #: debconf.conf.5:112
1882 #, no-wrap
1883 msgid ""
1884 "The remainder of each database stanza is used to provide configuration\n"
1885 "specific to that driver. For example, the Text driver needs to know\n"
1886 "a directory to put the database in, so you might say:\n"
1887 " Filename: /var/cache/debconf/config.dat\n"
1888 msgstr ""
1889
1890 #. type: SH
1891 #: debconf.conf.5:112
1892 #, no-wrap
1893 msgid "DRIVERS"
1894 msgstr "DRIVERE"
1895
1896 #. type: Plain text
1897 #: debconf.conf.5:119
1898 msgid ""
1899 "A number of drivers are available, and more can be written with little "
1900 "difficulty. Drivers come in two general types. First there are real drivers "
1901 "-- drivers that actually access and store data in some kind of database, "
1902 "which might be on the local filesystem, or on a remote system. Then there "
1903 "are meta-drivers that combine other drivers together to form more "
1904 "interesting systems. Let's start with the former."
1905 msgstr ""
1906 " Et antal drivere er tilgængelige, og flere kan skrives uden de store "
1907 "problemer. Drivere laves i to generelle typer. Først er der reelle drivere - "
1908 "drivere som reelt tilgår og gemmer data i en slags database, som kan være på "
1909 "det lokale filsystem eller på et eksternt system. Derudover er der "
1910 "metadreivere som kombinerer andre drivere så de udgør mere interessante "
1911 "systemer. Lad os starte med den første."
1912
1913 #. type: TP
1914 #: debconf.conf.5:120
1915 #, no-wrap
1916 msgid "B<File>"
1917 msgstr "B<Fil>"
1918
1919 #. type: Plain text
1920 #: debconf.conf.5:127
1921 msgid ""
1922 "This database driver allows debconf to store a whole database in a single "
1923 "flat text file. This makes it easy to archive, transfer between machines, "
1924 "and edit. It is one of the more compact database formats in terms of disk "
1925 "space used. It is also one of the slowest."
1926 msgstr ""
1927 "Denne databasedriver tillader debconf at gemme en hel database i en enkel "
1928 "flad tekstfil. Dette gør det nemt at arkivere, overføre mellem maskiner, og "
1929 "redigere. Det er en af de mere kompakte databaseformater i form af brugt "
1930 "diskplads. Det er også en af de langsomste."
1931
1932 #. type: Plain text
1933 #: debconf.conf.5:130
1934 msgid ""
1935 "On the downside, the entire file has to be read in each time debconf starts "
1936 "up, and saving it is also slow."
1937 msgstr ""
1938 "Hele filen skal læses ind hver gang debconf starter op og det at gemme den "
1939 "tager også lang tid."
1940
1941 #. type: Plain text
1942 #: debconf.conf.5:132 debconf.conf.5:168 debconf.conf.5:238 debconf.conf.5:309
1943 msgid "The following things are configurable for this driver."
1944 msgstr "De følgende områder kan konfigureres for denne driver."
1945
1946 #. type: TP
1947 #: debconf.conf.5:133
1948 #, no-wrap
1949 msgid "B<Filename>"
1950 msgstr "B<Filnavn>"
1951
1952 #. type: Plain text
1953 #: debconf.conf.5:136
1954 msgid "The file to use as the database. This is a required field."
1955 msgstr "Filen at bruge som database. Dette er et obligatorisk felt."
1956
1957 #. type: TP
1958 #: debconf.conf.5:136 debconf.conf.5:203
1959 #, no-wrap
1960 msgid "B<Mode>"
1961 msgstr "B<Tilstand>"
1962
1963 #. type: Plain text
1964 #: debconf.conf.5:140
1965 msgid ""
1966 "The permissions to create the file with if it does not exist. Defaults to "
1967 "600, since the file could contain passwords in some circumstances."
1968 msgstr ""
1969 "Rettighederne til at oprette filen med hvis den ikke findes. Standarden er "
1970 "600, da filen kunen indeholde adgangskoder i nogle tilfælde."
1971
1972 #. type: TP
1973 #: debconf.conf.5:140 debconf.conf.5:176 debconf.conf.5:310
1974 #, no-wrap
1975 msgid "B<Format>"
1976 msgstr "B<Format>"
1977
1978 #. type: Plain text
1979 #: debconf.conf.5:144 debconf.conf.5:180
1980 msgid ""
1981 "The format of the file. See FORMATS below. Defaults to using a rfc-822 like "
1982 "format."
1983 msgstr ""
1984 "Formatet for filen. Se FORMATS nedenfor. Standarden er et rfc-822-lignende "
1985 "format."
1986
1987 #. type: Plain text
1988 #: debconf.conf.5:144 debconf.conf.5:180 debconf.conf.5:371
1989 #, no-wrap
1990 msgid "B<Backup>"
1991 msgstr "B<Sikkerhedskopi>"
1992
1993 #. type: Plain text
1994 #: debconf.conf.5:148 debconf.conf.5:184
1995 msgid ""
1996 "Whether a backup should be made of the old file before changing it. "
1997 "Defaults to true."
1998 msgstr ""
1999 "Hvorvidt en sikkerhedskopi skal udføres på den gamle fil før den ændres. "
2000 "Standarden er true (sand)."
2001
2002 #. type: Plain text
2003 #: debconf.conf.5:151 debconf.conf.5:187 debconf.conf.5:209
2004 msgid "As example stanza setting up a database using this driver:"
2005 msgstr ""
2006
2007 #. type: Plain text
2008 #: debconf.conf.5:155
2009 #, no-wrap
2010 msgid ""
2011 " Name: mydb\n"
2012 " Driver: File\n"
2013 " Filename: /var/cache/debconf/mydb.dat\n"
2014 msgstr ""
2015 " Navn: mydb\n"
2016 " Driver: File\n"
2017 " Filnavn: /var/cache/debconf/mydb.dat\n"
2018
2019 #. type: TP
2020 #: debconf.conf.5:156
2021 #, no-wrap
2022 msgid "B<DirTree>"
2023 msgstr ""
2024
2025 #. type: Plain text
2026 #: debconf.conf.5:166
2027 msgid ""
2028 "This database driver allows debconf to store data in a hierarchical "
2029 "directory structure. The names of the various debconf templates and "
2030 "questions are used as-is to form directories with files in them. This format "
2031 "for the database is the easiest to browse and fiddle with by hand. It has "
2032 "very good load and save speeds. It also typically occupies the most space, "
2033 "since a lot of small files and subdirectories do take up some additional "
2034 "room."
2035 msgstr ""
2036
2037 #. type: TP
2038 #: debconf.conf.5:169
2039 #, no-wrap
2040 msgid "B<Directory>"
2041 msgstr ""
2042
2043 #. type: Plain text
2044 #: debconf.conf.5:172
2045 msgid "The directory to put the files in. Required."
2046 msgstr "Mappen at placere filerne i. Obligatorisk."
2047
2048 #. type: TP
2049 #: debconf.conf.5:172
2050 #, no-wrap
2051 msgid "B<Extension>"
2052 msgstr ""
2053
2054 #. type: Plain text
2055 #: debconf.conf.5:176
2056 msgid ""
2057 "An extension to add to the names of files. Must be set to a non-empty "
2058 "string; defaults to \".dat\""
2059 msgstr ""
2060
2061 #. type: Plain text
2062 #: debconf.conf.5:192
2063 #, no-wrap
2064 msgid ""
2065 " Name: mydb\n"
2066 " Driver: DirTree\n"
2067 " Directory: /var/cache/debconf/mydb\n"
2068 " Extension: .txt\n"
2069 msgstr ""
2070
2071 #. type: TP
2072 #: debconf.conf.5:193
2073 #, no-wrap
2074 msgid "B<PackageDir>"
2075 msgstr ""
2076
2077 #. type: Plain text
2078 #: debconf.conf.5:200
2079 msgid ""
2080 "This database driver is a compromise between the File and DirTree databases. "
2081 "It uses a directory, in which there is (approximately) one file per package "
2082 "that uses debconf. This is fairly fast, while using little more room than "
2083 "the File database driver."
2084 msgstr ""
2085
2086 #. type: Plain text
2087 #: debconf.conf.5:203
2088 msgid ""
2089 "This driver is configurable in the same ways as is the DirTree driver, plus:"
2090 msgstr ""
2091
2092 #. type: Plain text
2093 #: debconf.conf.5:207
2094 msgid ""
2095 "The permissions to create files with. Defaults to 600, since the files could "
2096 "contain passwords in some circumstances."
2097 msgstr ""
2098
2099 #. type: Plain text
2100 #: debconf.conf.5:213
2101 #, no-wrap
2102 msgid ""
2103 " Name: mydb\n"
2104 " Driver: PackageDir\n"
2105 " Directory: /var/cache/debconf/mydb\n"
2106 msgstr ""
2107
2108 #. type: TP
2109 #: debconf.conf.5:214
2110 #, no-wrap
2111 msgid "B<LDAP>"
2112 msgstr ""
2113
2114 #. type: Plain text
2115 #: debconf.conf.5:218
2116 msgid ""
2117 "WARNING: This database driver is currently experimental. Use with caution."
2118 msgstr ""
2119
2120 #. type: Plain text
2121 #: debconf.conf.5:226
2122 msgid ""
2123 "This database driver accesses a LDAP directory for debconf configuration "
2124 "data. Due to the nature of the beast, LDAP directories should typically be "
2125 "accessed in read-only mode. This is because multiple accesses can take "
2126 "place, and it's generally better for data consistency if nobody tries to "
2127 "modify the data while this is happening. Of course, write access is "
2128 "supported for those cases where you do want to update the config data in the "
2129 "directory."
2130 msgstr ""
2131
2132 #. type: Plain text
2133 #: debconf.conf.5:229
2134 msgid ""
2135 "For information about setting up a LDAP server for debconf, read /usr/share/"
2136 "doc/debconf-doc/README.LDAP (from the debconf-doc package)."
2137 msgstr ""
2138
2139 #. type: Plain text
2140 #: debconf.conf.5:232
2141 msgid ""
2142 "To use this database driver, you must have the libnet-ldap-perl package "
2143 "installed. Debconf suggests that package, but does not depend on it."
2144 msgstr ""
2145
2146 #. type: Plain text
2147 #: debconf.conf.5:236
2148 msgid ""
2149 "Please carefully consider the security implications of using a remote "
2150 "debconf database. Unless you trust the source, and you trust the intervening "
2151 "network, it is not a very safe thing to do."
2152 msgstr ""
2153
2154 #. type: TP
2155 #: debconf.conf.5:239
2156 #, no-wrap
2157 msgid "B<server>"
2158 msgstr ""
2159
2160 #. type: Plain text
2161 #: debconf.conf.5:242
2162 msgid "The host name or IP address of an LDAP server to connect to."
2163 msgstr ""
2164
2165 #. type: TP
2166 #: debconf.conf.5:242
2167 #, no-wrap
2168 msgid "B<port>"
2169 msgstr ""
2170
2171 #. type: Plain text
2172 #: debconf.conf.5:246
2173 msgid ""
2174 "The port on which to connect to the LDAP server. If none is given, the "
2175 "default port is used."
2176 msgstr ""
2177
2178 #. type: TP
2179 #: debconf.conf.5:246
2180 #, no-wrap
2181 msgid "B<basedn>"
2182 msgstr ""
2183
2184 #. type: Plain text
2185 #: debconf.conf.5:251
2186 msgid ""
2187 "The DN under which all config items will be stored. Each config item will be "
2188 "assumed to live in a DN of cn=E<lt>item nameE<gt>,E<lt>Base DNE<gt>. If this "
2189 "structure is not followed, all bets are off."
2190 msgstr ""
2191
2192 #. type: TP
2193 #: debconf.conf.5:251
2194 #, no-wrap
2195 msgid "B<binddn>"
2196 msgstr ""
2197
2198 #. type: Plain text
2199 #: debconf.conf.5:255
2200 msgid ""
2201 "The DN to bind to the directory as. Anonymous bind will be used if none is "
2202 "specified."
2203 msgstr ""
2204
2205 #. type: TP
2206 #: debconf.conf.5:255
2207 #, no-wrap
2208 msgid "B<bindpasswd>"
2209 msgstr ""
2210
2211 #. type: Plain text
2212 #: debconf.conf.5:259
2213 msgid ""
2214 "The password to use in an authenticated bind (used with binddn, above). If "
2215 "not specified, anonymous bind will be used."
2216 msgstr ""
2217
2218 #. type: Plain text
2219 #: debconf.conf.5:265
2220 msgid ""
2221 "This option should not be used in the general case. Anonymous binding should "
2222 "be sufficient most of the time for read-only access. Specifying a bind DN "
2223 "and password should be reserved for the occasional case where you wish to "
2224 "update the debconf configuration data."
2225 msgstr ""
2226
2227 #. type: TP
2228 #: debconf.conf.5:266
2229 #, no-wrap
2230 msgid "B<keybykey>"
2231 msgstr ""
2232
2233 #. type: Plain text
2234 #: debconf.conf.5:272
2235 msgid ""
2236 "Enable access to individual LDAP entries, instead of fetching them all at "
2237 "once in the beginning. This is very useful if you want to monitor your LDAP "
2238 "logs for specific debconf keys requested. In this way, you could also write "
2239 "custom handling code on the LDAP server part."
2240 msgstr ""
2241
2242 #. type: Plain text
2243 #: debconf.conf.5:279
2244 msgid ""
2245 "Note that when this option is enabled, the connection to the LDAP server is "
2246 "kept active during the whole Debconf run. This is a little different from "
2247 "the all-in-one behavior where two brief connections are made to LDAP; in the "
2248 "beginning to retrieve all the entries, and in the end to save eventual "
2249 "changes."
2250 msgstr ""
2251
2252 #. type: Plain text
2253 #: debconf.conf.5:284
2254 msgid ""
2255 "An example stanza setting up a database using this driver, assuming the "
2256 "remote database is on example.com and can be accessed anonymously:"
2257 msgstr ""
2258
2259 #. type: Plain text
2260 #: debconf.conf.5:291
2261 #, no-wrap
2262 msgid ""
2263 " Name: ldapdb\n"
2264 " Driver: LDAP\n"
2265 " Readonly: true\n"
2266 " Server: example.com\n"
2267 " BaseDN: cn=debconf,dc=example,dc=com\n"
2268 " KeyByKey: 0\n"
2269 msgstr ""
2270
2271 #. type: Plain text
2272 #: debconf.conf.5:294
2273 msgid ""
2274 "Another example, this time the LDAP database is on localhost, and can be "
2275 "written to:"
2276 msgstr ""
2277
2278 #. type: Plain text
2279 #: debconf.conf.5:301
2280 #, no-wrap
2281 msgid ""
2282 " Name: ldapdb\n"
2283 " Driver: LDAP\n"
2284 " Server: localhost\n"
2285 " BaseDN: cn=debconf,dc=domain,dc=com\n"
2286 " BindPasswd: secret\n"
2287 " KeyByKey: 1\n"
2288 msgstr ""
2289
2290 #. type: TP
2291 #: debconf.conf.5:302
2292 #, no-wrap
2293 msgid "B<Pipe>"
2294 msgstr ""
2295
2296 #. type: Plain text
2297 #: debconf.conf.5:307
2298 msgid ""
2299 "This special-purpose database driver reads and writes the database from "
2300 "standard input/output. It may be useful for people with special needs."
2301 msgstr ""
2302
2303 #. type: Plain text
2304 #: debconf.conf.5:314
2305 msgid ""
2306 "The format to read and write. See FORMATS below. Defaults to using a rfc-822 "
2307 "like format."
2308 msgstr ""
2309
2310 #. type: TP
2311 #: debconf.conf.5:314
2312 #, no-wrap
2313 msgid "B<Infd>"
2314 msgstr ""
2315
2316 #. type: Plain text
2317 #: debconf.conf.5:318
2318 msgid ""
2319 "File descriptor number to read from. Defaults to reading from stdin. If set "
2320 "to \"none\", the database will not read any data on startup."
2321 msgstr ""
2322
2323 #. type: TP
2324 #: debconf.conf.5:318
2325 #, no-wrap
2326 msgid "B<Outfd>"
2327 msgstr ""
2328
2329 #. type: Plain text
2330 #: debconf.conf.5:322
2331 msgid ""
2332 "File descriptor number to write to. Defaults to writing to stdout. If set to "
2333 "\"none\", the database will be thrown away on shutdown."
2334 msgstr ""
2335
2336 #. type: Plain text
2337 #: debconf.conf.5:326
2338 msgid "That's all of the real drivers, now moving on to meta-drivers.."
2339 msgstr ""
2340
2341 #. type: TP
2342 #: debconf.conf.5:326 debconf.conf.5:354
2343 #, no-wrap
2344 msgid "B<Stack>"
2345 msgstr ""
2346
2347 #. type: Plain text
2348 #: debconf.conf.5:335
2349 msgid ""
2350 "This driver stacks up a number of other databases (of any type), and allows "
2351 "them to be accessed as one. When debconf asks for a value, the first "
2352 "database on the stack that contains the value returns it. If debconf writes "
2353 "something to the database, the write normally goes to the first driver on "
2354 "the stack that has the item debconf is modifying, and if none do, the new "
2355 "item is added to the first writable database on the stack."
2356 msgstr ""
2357
2358 #. type: Plain text
2359 #: debconf.conf.5:343
2360 msgid ""
2361 "Things become more interesting if one of the databases on the stack is "
2362 "readonly. Consider a stack of the databases foo, bar, and baz, where foo and "
2363 "baz are both readonly. Debconf wants to change an item, and this item is "
2364 "only present in baz, which is readonly. The stack driver is smart enough to "
2365 "realize that won't work, and it will copy the item from baz to bar, and the "
2366 "write will take place in bar. Now the item in baz is shadowed by the item in "
2367 "bar, and it will not longer be visible to debconf."
2368 msgstr ""
2369
2370 #. type: Plain text
2371 #: debconf.conf.5:350
2372 msgid ""
2373 "This kind of thing is particularly useful if you want to point many systems "
2374 "at a central, readonly database, while still allowing things to be "
2375 "overridden on each system. When access controls are added to the picture, "
2376 "stacks allow you to do many other interesting things, like redirect all "
2377 "passwords to one database while a database underneath it handles everything "
2378 "else."
2379 msgstr ""
2380
2381 #. type: Plain text
2382 #: debconf.conf.5:352
2383 msgid "Only one piece of configuration is needed to set up a stack:"
2384 msgstr ""
2385
2386 #. type: Plain text
2387 #: debconf.conf.5:358
2388 msgid ""
2389 "This is where you specify a list of other databases, by name, to tell it "
2390 "what makes up the stack."
2391 msgstr ""
2392
2393 #. type: Plain text
2394 #: debconf.conf.5:361 debconf.conf.5:387
2395 msgid "For example:"
2396 msgstr ""
2397
2398 #. type: Plain text
2399 #: debconf.conf.5:365
2400 #, no-wrap
2401 msgid ""
2402 " Name: megadb\n"
2403 " Driver: stack\n"
2404 " Stack: passworddb, configdb, companydb\n"
2405 msgstr ""
2406
2407 #. type: Plain text
2408 #: debconf.conf.5:368
2409 msgid ""
2410 "WARNING: The stack driver is not very well tested yet. Use at your own risk."
2411 msgstr ""
2412
2413 #. type: Plain text
2414 #: debconf.conf.5:374
2415 msgid ""
2416 "This driver passes all requests on to another database driver. But it also "
2417 "copies all write requests to a backup database driver."
2418 msgstr ""
2419
2420 #. type: Plain text
2421 #: debconf.conf.5:376 debconf.conf.5:400
2422 msgid "You must specify the following fields to set up this driver:"
2423 msgstr ""
2424
2425 #. type: TP
2426 #: debconf.conf.5:378 debconf.conf.5:402
2427 #, no-wrap
2428 msgid "B<Db>"
2429 msgstr ""
2430
2431 #. type: Plain text
2432 #: debconf.conf.5:381 debconf.conf.5:405
2433 msgid "The database to read from and write to."
2434 msgstr ""
2435
2436 #. type: TP
2437 #: debconf.conf.5:381
2438 #, no-wrap
2439 msgid "B<Backupdb>"
2440 msgstr ""
2441
2442 #. type: Plain text
2443 #: debconf.conf.5:384
2444 msgid "The name of the database to send copies of writes to."
2445 msgstr ""
2446
2447 #. type: Plain text
2448 #: debconf.conf.5:392
2449 #, no-wrap
2450 msgid ""
2451 " Name: backup\n"
2452 " Driver: Backup\n"
2453 " Db: mydb\n"
2454 " Backupdb: mybackupdb\n"
2455 msgstr ""
2456
2457 #. type: Plain text
2458 #: debconf.conf.5:398
2459 msgid ""
2460 "This driver passes all requests on to another database driver, outputting "
2461 "verbose debugging output about the request and the result."
2462 msgstr ""
2463
2464 #. type: SH
2465 #: debconf.conf.5:407
2466 #, no-wrap
2467 msgid "ACCESS CONTROLS"
2468 msgstr ""
2469
2470 #. type: Plain text
2471 #: debconf.conf.5:411
2472 msgid ""
2473 "When you set up a database, you can also use some fields to specify access "
2474 "controls. You can specify that a database only accepts passwords, for "
2475 "example, or make a database only accept things with \"foo\" in their name."
2476 msgstr ""
2477
2478 #. type: TP
2479 #: debconf.conf.5:411
2480 #, no-wrap
2481 msgid "B<Readonly>"
2482 msgstr ""
2483
2484 #. type: Plain text
2485 #: debconf.conf.5:416
2486 msgid ""
2487 "As was mentioned earlier, this access control, if set to \"true\", makes a "
2488 "database readonly. Debconf will read values from it, but will never write "
2489 "anything to it."
2490 msgstr ""
2491
2492 #. type: TP
2493 #: debconf.conf.5:416
2494 #, no-wrap
2495 msgid "B<Accept-Name>"
2496 msgstr ""
2497
2498 #. type: Plain text
2499 #: debconf.conf.5:422
2500 msgid ""
2501 "The text in this field is a perl-compatible regular expression that is "
2502 "matched against the names of items as they are requested from the database. "
2503 "Only if an items name matches the regular expression, will the database "
2504 "allow debconf to access or modify it."
2505 msgstr ""
2506
2507 #. type: TP
2508 #: debconf.conf.5:422
2509 #, no-wrap
2510 msgid "B<Reject-Name>"
2511 msgstr ""
2512
2513 #. type: Plain text
2514 #: debconf.conf.5:426
2515 msgid ""
2516 "Like Accept-Name, except any item name matching this regular expression will "
2517 "be rejected."
2518 msgstr ""
2519
2520 #. type: TP
2521 #: debconf.conf.5:426
2522 #, no-wrap
2523 msgid "B<Accept-Type>"
2524 msgstr ""
2525
2526 #. type: Plain text
2527 #: debconf.conf.5:431
2528 msgid ""
2529 "Another regular expression, this matches against the type of the item that "
2530 "is being accessed. Only if the type matches the regex will access be granted."
2531 msgstr ""
2532
2533 #. type: TP
2534 #: debconf.conf.5:431
2535 #, no-wrap
2536 msgid "B<Reject-Type>"
2537 msgstr ""
2538
2539 #. type: Plain text
2540 #: debconf.conf.5:435
2541 msgid ""
2542 "Like Accept-Type, except any type matching this regular expression will be "
2543 "rejected."
2544 msgstr ""
2545
2546 #. type: SH
2547 #: debconf.conf.5:435
2548 #, no-wrap
2549 msgid "FORMATS"
2550 msgstr ""
2551
2552 #. type: Plain text
2553 #: debconf.conf.5:439
2554 msgid ""
2555 "Some of the database drivers use format modules to control the actual format "
2556 "in which the database is stored on disk. These formats are currently "
2557 "supported:"
2558 msgstr ""
2559
2560 #. type: TP
2561 #: debconf.conf.5:439
2562 #, no-wrap
2563 msgid "B<822>"
2564 msgstr ""
2565
2566 #. type: Plain text
2567 #: debconf.conf.5:444
2568 msgid ""
2569 "This is a file format loosely based upon the rfc-822 format for email "
2570 "message headers. Similar formats are used throughout Debian; in the dpkg "
2571 "status file, and so on."
2572 msgstr ""
2573
2574 #. type: Plain text
2575 #: debconf.conf.5:446
2576 msgid "Here is a more complicated example of a debconf.conf file."
2577 msgstr ""
2578
2579 #. type: Plain text
2580 #: debconf.conf.5:452
2581 #, no-wrap
2582 msgid ""
2583 " # This stanza is used for general debconf setup.\n"
2584 " Config: stack\n"
2585 " Templates: templates\n"
2586 " Log: developer\n"
2587 " Debug: developer\n"
2588 msgstr ""
2589
2590 #. type: Plain text
2591 #: debconf.conf.5:457
2592 #, no-wrap
2593 msgid ""
2594 " # This is my own local database.\n"
2595 " Name: mydb\n"
2596 " Driver: DirTree\n"
2597 " Directory: /var/cache/debconf/config\n"
2598 msgstr ""
2599
2600 #. type: Plain text
2601 #: debconf.conf.5:469
2602 #, no-wrap
2603 msgid ""
2604 " # This is another database that I use to hold\n"
2605 " # only X server configuration.\n"
2606 " Name: X\n"
2607 " Driver: File\n"
2608 " Filename: /etc/X11/debconf.dat\n"
2609 " Mode: 644\n"
2610 " # It's sorta hard to work out what questions\n"
2611 " # belong to X; it should be using a deeper\n"
2612 " # tree structure so I could just match on ^X/\n"
2613 " # Oh well.\n"
2614 " Accept-Name: xserver|xfree86|xbase\n"
2615 msgstr ""
2616
2617 #. type: Plain text
2618 #: debconf.conf.5:485
2619 #, no-wrap
2620 msgid ""
2621 " # This is our company's global, read-only\n"
2622 " # (for me!) debconf database.\n"
2623 " Name: company\n"
2624 " Driver: LDAP\n"
2625 " Server: debconf.foo.com\n"
2626 " BaseDN: cn=debconf,dc=foo,dc=com\n"
2627 " BindDN: uid=admin,dc=foo,dc=com\n"
2628 " BindPasswd: secret\n"
2629 " Readonly: true\n"
2630 " # I don't want any passwords that might be\n"
2631 " # floating around in there.\n"
2632 " Reject-Type: password\n"
2633 " # If this db is not accessible for whatever\n"
2634 " # reason, carry on anyway.\n"
2635 " Required: false\n"
2636 msgstr ""
2637
2638 #. type: Plain text
2639 #: debconf.conf.5:493
2640 #, no-wrap
2641 msgid ""
2642 " # I use this database to hold\n"
2643 " # passwords safe and secure.\n"
2644 " Name: passwords\n"
2645 " Driver: File\n"
2646 " Filename: /etc/debconf/passwords\n"
2647 " Mode: 600\n"
2648 " Accept-Type: password\n"
2649 msgstr ""
2650
2651 #. type: Plain text
2652 #: debconf.conf.5:506
2653 #, no-wrap
2654 msgid ""
2655 " # Let's put them all together\n"
2656 " # in a database stack.\n"
2657 " Name: stack\n"
2658 " Driver: Stack\n"
2659 " Stack: passwords, X, mydb, company\n"
2660 " # So, all passwords go to the password database.\n"
2661 " # Most X configuration stuff goes to the X\n"
2662 " # database, and anything else goes to my main\n"
2663 " # database. Values are looked up in each of those\n"
2664 " # in turn, and if none has a particular value, it\n"
2665 " # is looked up in the company-wide LDAP database\n"
2666 " # (unless it's a password).\n"
2667 msgstr ""
2668
2669 #. type: Plain text
2670 #: debconf.conf.5:514
2671 #, no-wrap
2672 msgid ""
2673 " # A database is also used to hold templates. We\n"
2674 " # don't need to make this as fancy.\n"
2675 " Name: templates\n"
2676 " Driver: File\n"
2677 " Mode: 644\n"
2678 " Format: 822\n"
2679 " Filename: /var/cache/debconf/templates\n"
2680 msgstr ""
2681
2682 #. type: SH
2683 #: debconf.conf.5:514 confmodule.3:22
2684 #, no-wrap
2685 msgid "NOTES"
2686 msgstr ""
2687
2688 #. type: Plain text
2689 #: debconf.conf.5:517
2690 msgid ""
2691 "If you use something like ${HOME} in this file, it will be replaced with the "
2692 "value of the named environment variable."
2693 msgstr ""
2694
2695 #. type: Plain text
2696 #: debconf.conf.5:521
2697 msgid ""
2698 "Environment variables can also be used to override the databases on the fly, "
2699 "see B<debconf>(7)"
2700 msgstr ""
2701
2702 #. type: Plain text
2703 #: debconf.conf.5:524
2704 msgid ""
2705 "The field names (the part of the line before the colon) is case-insensitive. "
2706 "The values, though, are case sensitive."
2707 msgstr ""
2708
2709 #. type: SH
2710 #: debconf.conf.5:524
2711 #, no-wrap
2712 msgid "PLANNED ENHANCEMENTS"
2713 msgstr ""
2714
2715 #. type: Plain text
2716 #: debconf.conf.5:533
2717 msgid ""
2718 "More drivers and formats. Some ideas include: A SQL driver, with the "
2719 "capability to access a remote database. A DHCP driver, that makes available "
2720 "some special things like hostname, IP address, and DNS servers. A driver "
2721 "that pulls values out of public DNS records TXT fields. A format that is "
2722 "compatible with the output of cdebconf. An override driver, which can "
2723 "override the value field or flags of all requests that pass through it."
2724 msgstr ""
2725
2726 #. type: SH
2727 #: debconf.conf.5:533
2728 #, no-wrap
2729 msgid "FILES"
2730 msgstr ""
2731
2732 #. type: Plain text
2733 #: debconf.conf.5:535
2734 msgid "/etc/debconf.conf"
2735 msgstr ""
2736
2737 #. type: Plain text
2738 #: debconf.conf.5:537
2739 msgid "~/.debconfrc"
2740 msgstr ""
2741
2742 #. type: Plain text
2743 #: debconf.conf.5:539
2744 msgid "B<debconf>(7)"
2745 msgstr ""
2746
2747 #. type: Plain text
2748 #: debconf.conf.5:540 confmodule.3:43 debconf.7:383 debconf-devel.7:969
2749 msgid "Joey Hess E<lt>[email protected]<gt>"
2750 msgstr ""
2751
2752 #. type: TH
2753 #: confmodule.3:1
2754 #, no-wrap
2755 msgid "CONFMODULE"
2756 msgstr ""
2757
2758 #. type: Plain text
2759 #: confmodule.3:4
2760 msgid "confmodule - communicate with Debian configuration system FrontEnd."
2761 msgstr ""
2762
2763 #. type: Plain text
2764 #: confmodule.3:12
2765 #, no-wrap
2766 msgid ""
2767 " #!/bin/sh -e\n"
2768 " . /usr/share/debconf/confmodule\n"
2769 " db_version 2.0\n"
2770 " db_capb 'backup'\n"
2771 " CAPB=$RET\n"
2772 " db_input 'foo/bar' || true\n"
2773 " db_go || true\n"
2774 msgstr ""
2775
2776 #. type: Plain text
2777 #: confmodule.3:22
2778 msgid ""
2779 "This is a library of shell functions that eases communication with Debian's "
2780 "configuration management system. It can communicate with a FrontEnd via the "
2781 "debconf protocol. The design is that each command in the protocol is "
2782 "represented by one function in this module. The functionname is the same as "
2783 "the command, except it is prefixed with \"db_\" and is lower-case. Call the "
2784 "function and pass in any parameters you want to follow the command. Any "
2785 "textual return code from the FrontEnd will be returned to you in the $RET "
2786 "variable, while the numeric return code from the FrontEnd will be returned "
2787 "as a return code (and so those return codes must be captured or ignored)."
2788 msgstr ""
2789
2790 #. type: Plain text
2791 #: confmodule.3:29
2792 #, no-wrap
2793 msgid ""
2794 "Once this library is loaded, any text you later output will go to standard\n"
2795 "error, rather than standard output. This is a good thing in general, because\n"
2796 "text sent to standard output is interpreted by the FrontEnd as commands. If\n"
2797 "you do want to send a command directly to the FrontEnd, you must output it\n"
2798 "to file descriptor 3, like this:\n"
2799 " echo GET foo/bar E<gt>&3\n"
2800 msgstr ""
2801
2802 #. type: Plain text
2803 #: confmodule.3:36
2804 msgid ""
2805 "The library checks to make sure it is actually speaking to a FrontEnd by "
2806 "examining the DEBIAN_HAS_FRONTEND variable. If it is set, a FrontEnd is "
2807 "assumed to be running. If not, the library turns into one, and runs a copy "
2808 "of the script that loaded the library connected to it. This means that if "
2809 "you source this library, you should do so very near to the top of your "
2810 "script, because everything before the sourcing of the library may well be "
2811 "run again."
2812 msgstr ""
2813
2814 #. type: Plain text
2815 #: confmodule.3:42
2816 msgid ""
2817 "B<debconf-devel>(7), B<dpkg-preconfigure>(8), B<dpkg-reconfigure>(8), "
2818 "debconf_specification in the debian-policy package"
2819 msgstr ""
2820
2821 #. type: TH
2822 #: debconf.7:1
2823 #, no-wrap
2824 msgid "DEBCONF"
2825 msgstr ""
2826
2827 #. type: Plain text
2828 #: debconf.7:4
2829 msgid "debconf - Debian package configuration system"
2830 msgstr ""
2831
2832 #. type: Plain text
2833 #: debconf.7:8
2834 msgid ""
2835 "Debconf is a configuration system for Debian packages. There is a rarely-"
2836 "used command named debconf, documented in B<debconf>(1)"
2837 msgstr ""
2838
2839 #. type: Plain text
2840 #: debconf.7:16
2841 msgid ""
2842 "Debconf provides a consistent interface for configuring packages, allowing "
2843 "you to choose from several user interface frontends. It supports "
2844 "preconfiguring packages before they are installed, which allows large "
2845 "installs and upgrades to ask you for all the necessary information up front, "
2846 "and then go do the work while you do something else. It lets you, if you're "
2847 "in a hurry, skip over less important questions and information while "
2848 "installing a package (and revisit it later)."
2849 msgstr ""
2850
2851 #. type: SH
2852 #: debconf.7:16
2853 #, no-wrap
2854 msgid "Preconfiguring packages"
2855 msgstr ""
2856
2857 #. type: Plain text
2858 #: debconf.7:22
2859 msgid ""
2860 "Debconf can configure packages before they are even installed onto your "
2861 "system. This is useful because it lets all the questions the packages are "
2862 "going to ask be asked at the beginning of an install, so the rest of the "
2863 "install can proceed while you are away getting a cup of coffee."
2864 msgstr ""
2865
2866 #. type: Plain text
2867 #: debconf.7:27
2868 msgid ""
2869 "If you use apt (version 0.5 or above), and you have apt-utils installed, "
2870 "each package apt installs will be automatically preconfigured. This is "
2871 "controlled via I</etc/apt/apt.conf.d/70debconf>"
2872 msgstr ""
2873
2874 #. type: Plain text
2875 #: debconf.7:33
2876 msgid ""
2877 "Sometimes you might want to preconfigure a package by hand, when you're not "
2878 "installing it with apt. You can use B<dpkg-preconfigure>(8) to do that, "
2879 "just pass it the filenames of the packages you want to preconfigure. You "
2880 "will need apt-utils installed for that to work."
2881 msgstr ""
2882
2883 #. type: SH
2884 #: debconf.7:33
2885 #, no-wrap
2886 msgid "Reconfiguring packages"
2887 msgstr ""
2888
2889 #. type: Plain text
2890 #: debconf.7:40
2891 msgid ""
2892 "Suppose you installed the package, and answered debconf's questions, but now "
2893 "that you've used it awhile, you realize you want to go back and change some "
2894 "of your answers. In the past, reinstalling a package was often the thing to "
2895 "do when you got in this situation, but when you reinstall the package, "
2896 "debconf seems to remember you have answered the questions, and doesn't ask "
2897 "them again (this is a feature)."
2898 msgstr ""
2899
2900 #. type: Plain text
2901 #: debconf.7:44
2902 #, no-wrap
2903 msgid ""
2904 "Luckily, debconf makes it easy to reconfigure any package that uses it.\n"
2905 "Suppose you want to reconfigure debconf itself. Just run, as root:\n"
2906 " dpkg-reconfigure debconf\n"
2907 msgstr ""
2908
2909 #. type: Plain text
2910 #: debconf.7:49
2911 msgid ""
2912 "This will ask all the questions you saw when debconf was first installed. "
2913 "It may ask you other questions as well, since it asks even low priority "
2914 "questions that may have been skipped when the package was installed. You "
2915 "can use it on any other package that uses debconf, as well."
2916 msgstr ""
2917
2918 #. type: SH
2919 #: debconf.7:49
2920 #, no-wrap
2921 msgid "Frontends"
2922 msgstr ""
2923
2924 #. type: Plain text
2925 #: debconf.7:53
2926 msgid ""
2927 "One of debconf's unique features is that the interface it presents to you is "
2928 "only one of many, that can be swapped in at will. There are many debconf "
2929 "frontends available:"
2930 msgstr ""
2931
2932 #. type: TP
2933 #: debconf.7:53
2934 #, no-wrap
2935 msgid "B<dialog>"
2936 msgstr ""
2937
2938 #. type: Plain text
2939 #: debconf.7:60
2940 msgid ""
2941 "The default frontend, this uses the B<whiptail>(1) or B<dialog>(1) "
2942 "programs to display questions to you. It works in text mode."
2943 msgstr ""
2944
2945 #. type: TP
2946 #: debconf.7:60
2947 #, no-wrap
2948 msgid "B<readline>"
2949 msgstr ""
2950
2951 #. type: Plain text
2952 #: debconf.7:72
2953 msgid ""
2954 "The most traditional frontend, this looks quite similar to how Debian "
2955 "configuration always has been: a series of questions, printed out at the "
2956 "console using plain text, and prompts done using the readline library. It "
2957 "even supports tab completion. The libterm-readline-gnu-perl package is "
2958 "strongly recommended if you chose to use this frontend; the default readline "
2959 "module does not support prompting with default values. At the minimum, "
2960 "you'll need the perl-modules package installed to use this frontend."
2961 msgstr ""
2962
2963 #. type: Plain text
2964 #: debconf.7:77
2965 msgid ""
2966 "This frontend has some special hotkeys. Pageup (or ctrl-u) will go back to "
2967 "the previous question (if that is supported by the package that is using "
2968 "debconf), and pagedown (or ctrl-v) will skip forward to the next question."
2969 msgstr ""
2970
2971 #. type: Plain text
2972 #: debconf.7:80
2973 msgid ""
2974 "This is the best frontend for remote admin work over a slow connection, or "
2975 "for those who are comfortable with unix."
2976 msgstr ""
2977
2978 #. type: TP
2979 #: debconf.7:81
2980 #, no-wrap
2981 msgid "B<noninteractive>"
2982 msgstr ""
2983
2984 #. type: Plain text
2985 #: debconf.7:90
2986 msgid ""
2987 "This is the anti-frontend. It never interacts with you at all, and makes the "
2988 "default answers be used for all questions. It might mail error messages to "
2989 "root, but that's it; otherwise it is completely silent and unobtrusive, a "
2990 "perfect frontend for automatic installs. If you are using this front-end, "
2991 "and require non-default answers to questions, you will need to preseed the "
2992 "debconf database; see the section below on Unattended Package Installation "
2993 "for more details."
2994 msgstr ""
2995
2996 #. type: TP
2997 #: debconf.7:90
2998 #, no-wrap
2999 msgid "B<gnome>"
3000 msgstr ""
3001
3002 #. type: Plain text
3003 #: debconf.7:96
3004 msgid ""
3005 "This is a modern X GUI using the gtk and gnome libraries. Of course, it "
3006 "requires a valid DISPLAY to work; debconf will fall back to other frontends "
3007 "if it can't work. Note that this frontend requires you have the libgtk3-perl "
3008 "package installed."
3009 msgstr ""
3010
3011 #. type: TP
3012 #: debconf.7:96
3013 #, no-wrap
3014 msgid "B<kde>"
3015 msgstr ""
3016
3017 #. type: Plain text
3018 #: debconf.7:102
3019 msgid ""
3020 "This frontend provides a modern X GUI based on the KDE Platform. You of "
3021 "course need a DISPLAY to use this frontend and you must install debconf-kde-"
3022 "helper package. The frontend will fall back to dialog if some of the "
3023 "prerequisites are not met."
3024 msgstr ""
3025
3026 #. type: TP
3027 #: debconf.7:102
3028 #, no-wrap
3029 msgid "B<editor>"
3030 msgstr ""
3031
3032 #. type: Plain text
3033 #: debconf.7:110
3034 msgid ""
3035 "This is for those fanatics who have to do everything in a text editor. It "
3036 "runs your editor on a file that looks something like a typical unix config "
3037 "file, and you edit the file to communicate with debconf. Debconf's author "
3038 "prefers to not comment regarding the circumstances that led to this frontend "
3039 "being written."
3040 msgstr ""
3041
3042 #. type: TP
3043 #: debconf.7:110
3044 #, no-wrap
3045 msgid "B<web>"
3046 msgstr ""
3047
3048 #. type: Plain text
3049 #: debconf.7:120
3050 msgid ""
3051 "This frontend acts as a web server, that you connect to with your web "
3052 "browser, to browse the questions and answer them. It has a lot of promise, "
3053 "but is a little rough so far. When this frontend starts up, it will print "
3054 "out the location you should point your web browser to. You have to run the "
3055 "web browser on the same machine you are configuring, for security reasons."
3056 msgstr ""
3057
3058 #. type: Plain text
3059 #: debconf.7:126
3060 msgid ""
3061 "Do keep in mind that this is not a very secure frontend. Anyone who has "
3062 "access to the computer being configured can currently access the web server "
3063 "and configure things while this frontend is running. So this is more of a "
3064 "proof of concept than anything."
3065 msgstr ""
3066
3067 #. type: Plain text
3068 #: debconf.7:133
3069 #, no-wrap
3070 msgid ""
3071 "You can change the default frontend debconf uses by reconfiguring\n"
3072 "debconf. On the other hand, if you just want to change the frontend\n"
3073 "for a minute, you can set the DEBIAN_FRONTEND environment variable to\n"
3074 "the name of the frontend to use. For example:\n"
3075 " DEBIAN_FRONTEND=readline apt-get install slrn\n"
3076 msgstr ""
3077
3078 #. type: Plain text
3079 #: debconf.7:141
3080 msgid ""
3081 "The B<dpkg-reconfigure>(8) and B<dpkg-preconfigure>(8) commands also let "
3082 "you pass I<--frontend=> to them, followed by the frontend you want them to "
3083 "use."
3084 msgstr ""
3085
3086 #. type: Plain text
3087 #: debconf.7:145
3088 msgid ""
3089 "Note that not all frontends will work in all circumstances. If a frontend "
3090 "fails to start up for some reason, debconf will print out a message "
3091 "explaining why, and fall back to the next-most similar frontend."
3092 msgstr ""
3093
3094 #. type: SH
3095 #: debconf.7:145
3096 #, no-wrap
3097 msgid "Priorities"
3098 msgstr ""
3099
3100 #. type: Plain text
3101 #: debconf.7:152
3102 msgid ""
3103 "Another nice feature of debconf is that the questions it asks you are "
3104 "prioritized. If you don't want to be bothered about every little thing, you "
3105 "can set up debconf to only ask you the most important questions. On the "
3106 "other hand, if you are a control freak, you can make it show you all "
3107 "questions. Each question has a priority. In increasing order of importance:"
3108 msgstr ""
3109
3110 #. type: TP
3111 #: debconf.7:152 debconf-devel.7:294
3112 #, no-wrap
3113 msgid "B<low>"
3114 msgstr ""
3115
3116 #. type: Plain text
3117 #: debconf.7:156
3118 msgid ""
3119 "Very trivial questions that have defaults that will work in the vast "
3120 "majority of cases."
3121 msgstr ""
3122
3123 #. type: TP
3124 #: debconf.7:156 debconf-devel.7:298
3125 #, no-wrap
3126 msgid "B<medium>"
3127 msgstr ""
3128
3129 #. type: Plain text
3130 #: debconf.7:159
3131 msgid "Normal questions that have reasonable defaults."
3132 msgstr ""
3133
3134 #. type: TP
3135 #: debconf.7:159 debconf-devel.7:301
3136 #, no-wrap
3137 msgid "B<high>"
3138 msgstr ""
3139
3140 #. type: Plain text
3141 #: debconf.7:162
3142 msgid "Questions that don't have a reasonable default."
3143 msgstr ""
3144
3145 #. type: TP
3146 #: debconf.7:162 debconf-devel.7:304
3147 #, no-wrap
3148 msgid "B<critical>"
3149 msgstr ""
3150
3151 #. type: Plain text
3152 #: debconf.7:165
3153 msgid "Questions that you really, really need to see (or else)."
3154 msgstr ""
3155
3156 #. type: Plain text
3157 #: debconf.7:175
3158 msgid ""
3159 "Only questions with a priority equal to or greater than the priority you "
3160 "choose will be shown to you. You can set the priority value by reconfiguring "
3161 "debconf, or temporarily by passing I<--priority=> followed by the value to "
3162 "the B<dpkg-reconfigure>(8) and B<dpkg-preconfigure>(8) commands, or by "
3163 "setting the DEBIAN_PRIORITY environment variable."
3164 msgstr ""
3165
3166 #. type: SH
3167 #: debconf.7:175
3168 #, no-wrap
3169 msgid "Backend Database"
3170 msgstr ""
3171
3172 #. type: Plain text
3173 #: debconf.7:187
3174 msgid ""
3175 "Debconf uses a rather flexible and potentially complicated backend database "
3176 "for storing data such as the answers to questions. The file B</etc/debconf."
3177 "conf> is used to configure this database. If you need to set up something "
3178 "complicated, like make debconf read a remote database to get defaults, with "
3179 "local overrides, read the B<debconf.conf>(5) man page for all the gory "
3180 "details. Generally, the backend database is located in B</var/cache/debconf/"
3181 "> ."
3182 msgstr ""
3183
3184 #. type: SH
3185 #: debconf.7:187
3186 #, no-wrap
3187 msgid "Unattended Package Installation"
3188 msgstr ""
3189
3190 #. type: Plain text
3191 #: debconf.7:194
3192 msgid ""
3193 "If you have many machines to manage you will sometimes find yourself in the "
3194 "position of needing to perform an unattended installation or upgrade of "
3195 "packages on many systems, when the default answers to some configuration "
3196 "questions are not acceptable. There are many ways to approach this; all "
3197 "involve setting up a database and making debconf use it to get the answers "
3198 "you want."
3199 msgstr ""
3200
3201 #. type: Plain text
3202 #: debconf.7:198
3203 msgid ""
3204 "You should really read B<debconf.conf>(5) before this section, as you need "
3205 "to understand how debconf's databases work."
3206 msgstr ""
3207
3208 #. type: Plain text
3209 #: debconf.7:205
3210 msgid ""
3211 "The easiest way to set up the database is to install the packages on one "
3212 "machine and answer their questions as usual. Or you might just use B<dpkg-"
3213 "preconfigure>(8) to configure a set of packages without actually installing "
3214 "them. Or you might even decide to write a plain text debconf database by "
3215 "hand or something."
3216 msgstr ""
3217
3218 #. type: Plain text
3219 #: debconf.7:209
3220 msgid ""
3221 "Once you have the database, you need to figure out how to make the remote "
3222 "systems use it. This depends of course on the configuration of those systems "
3223 "and what database types they are set up to use."
3224 msgstr ""
3225
3226 #. type: Plain text
3227 #: debconf.7:213
3228 msgid ""
3229 "If you are using the LDAP debconf database, an entire network of debian "
3230 "machines can also have any or all package installation questions answered "
3231 "automatically by a single LDAP server."
3232 msgstr ""
3233
3234 #. type: Plain text
3235 #: debconf.7:222
3236 msgid ""
3237 "But perhaps you're using something a little bit easier to set up like, say, "
3238 "the default debconf database configuration, or you just don't want your "
3239 "remote systems to use LDAP all the time. In this case the best approach is "
3240 "to temporarily configure the remote systems to stack your database "
3241 "underneath their own existing databases, so they pull default values out of "
3242 "it. Debconf offers two environment variables, DEBCONF_DB_FALLBACK and "
3243 "DEBCONF_DB_OVERRIDE, to make it easy to do this on the fly. Here is a sample "
3244 "use:"
3245 msgstr ""
3246
3247 #. type: Plain text
3248 #: debconf.7:226
3249 #, no-wrap
3250 msgid ""
3251 " cat /var/cache/debconf/config.dat | \\e\n"
3252 " ssh root@target \"DEBIAN_FRONTEND=noninteractive \\e\n"
3253 " DEBCONF_DB_FALLBACK=Pipe apt-get upgrade\"\n"
3254 msgstr ""
3255
3256 #. type: Plain text
3257 #: debconf.7:232
3258 msgid ""
3259 "This makes the debconf on the remote host read in the data that is piped "
3260 "across the ssh connection and interpret it as a plain text format debconf "
3261 "database. It then uses that database as a fallback database -- a read-only "
3262 "database that is queried for answers to questions if the system's main "
3263 "debconf database lacks answers."
3264 msgstr ""
3265
3266 #. type: Plain text
3267 #: debconf.7:234
3268 msgid "Here's another way to use the DEBCONF_DB_FALLBACK environment variable:"
3269 msgstr ""
3270
3271 #. type: Plain text
3272 #: debconf.7:237
3273 #, no-wrap
3274 msgid ""
3275 " ssh -R 389:ldap:389 root@target \\e\n"
3276 " \t\"DEBCONF_DB_FALLBACK='LDAP{host:localhost}' apt-get upgrade\"\n"
3277 msgstr ""
3278
3279 #. type: Plain text
3280 #: debconf.7:242
3281 msgid ""
3282 "Here ssh is used to set up a tunneled LDAP connection and run debconf. "
3283 "Debconf is told to use the LDAP server as the fallback database. Note the "
3284 "use of \"{host:localhost}\" to configure how debconf accesses the LDAP "
3285 "database by providing the \"host\" field with a value of \"localhost\"."
3286 msgstr ""
3287
3288 #. type: Plain text
3289 #: debconf.7:244
3290 msgid "Here's another method:"
3291 msgstr ""
3292
3293 #. type: Plain text
3294 #: debconf.7:247
3295 #, no-wrap
3296 msgid ""
3297 " scp config.dat root@target:\n"
3298 " ssh root@target \"DEBCONF_DB_FALLBACK='File{/root/config.dat}' apt-get upgrade\n"
3299 msgstr ""
3300
3301 #. type: Plain text
3302 #: debconf.7:252
3303 msgid ""
3304 "Here you copy the database over with scp, and then ssh over and make debconf "
3305 "use the file you copied over. This illustrates a shorthand you can use in "
3306 "the DEBCONF_DB_FALLBACK parameters -- if a field name is left off, it "
3307 "defaults to \"filename\"."
3308 msgstr ""
3309
3310 #. type: Plain text
3311 #: debconf.7:261
3312 msgid ""
3313 "There is only one problem with these uses of the DEBCONF_DB_FALLBACK "
3314 "parameter: While the fallback database can provide answers to questions the "
3315 "other debconf databases have never seen, it is only queried as a fallback; "
3316 "after the other databases. If you need to instead temporarily override an "
3317 "existing value on the remote host, you should instead use the "
3318 "DEBCONF_DB_OVERRIDE variable. Like DEBCONF_DB_FALLBACK, it sets up a "
3319 "temporary database, but this database is consulted before any others, and "
3320 "can be used to override existing values."
3321 msgstr ""
3322
3323 #. type: SH
3324 #: debconf.7:261
3325 #, no-wrap
3326 msgid "Developing for Debconf"
3327 msgstr ""
3328
3329 #. type: Plain text
3330 #: debconf.7:266
3331 msgid ""
3332 "Package developers and others who want to develop packages that use debconf "
3333 "should read B<debconf-devel>(7) ."
3334 msgstr ""
3335
3336 #. type: Plain text
3337 #: debconf.7:274
3338 msgid ""
3339 "Briefly, debconf communicates with maintainer scripts or other programs via "
3340 "standard input and output, using a simple line-oriented command language "
3341 "similar to that used by common internet protocols such as SMTP. Programs use "
3342 "this protocol to ask debconf to display questions to the user, and retrieve "
3343 "the user's answers. The questions themselves are defined in a separate file, "
3344 "called the \"templates file\", which has a format not unlike a debian "
3345 "control file."
3346 msgstr ""
3347
3348 #. type: Plain text
3349 #: debconf.7:278
3350 msgid ""
3351 "Debian packages which use debconf typically provide both a templates file "
3352 "and a \"config\" script (run to preconfigure the package) in the control "
3353 "metadata section of the package."
3354 msgstr ""
3355
3356 #. type: SH
3357 #: debconf.7:278
3358 #, no-wrap
3359 msgid "ENVIRONMENT"
3360 msgstr "MILJØ"
3361
3362 #. type: TP
3363 #: debconf.7:279
3364 #, no-wrap
3365 msgid "B<DEBIAN_FRONTEND>"
3366 msgstr "B<DEBIAN_FRONTEND (DEBIAN_BRUGERFLADE)>"
3367
3368 #. type: Plain text
3369 #: debconf.7:282
3370 msgid "Used to temporarily change the frontend debconf uses. See above."
3371 msgstr ""
3372 "Brugt til midlertidigt at ændre den brugerflade som debconf bruger Se "
3373 "ovenfor."
3374
3375 #. type: TP
3376 #: debconf.7:282
3377 #, no-wrap
3378 msgid "B<DEBIAN_PRIORITY>"
3379 msgstr "B<DEBIAN_PRIORITY (DEBIAN-PRIORITET)>"
3380
3381 #. type: Plain text
3382 #: debconf.7:286
3383 msgid ""
3384 "Used to temporarily change the minimum priority of question debconf will "
3385 "display. See above."
3386 msgstr ""
3387
3388 #. type: TP
3389 #: debconf.7:286 debconf-devel.7:576
3390 #, no-wrap
3391 msgid "B<DEBCONF_DEBUG>"
3392 msgstr "B<DEBCONF_DEBUG (DEBCONF_FEJLSØG)>"
3393
3394 #. type: Plain text
3395 #: debconf.7:292
3396 msgid ""
3397 "Turns on debugging output on standard error. May be set to a facility name "
3398 "or a regular expression which matches a facility name (such as '.*' to "
3399 "output all debug info). The facility names include:"
3400 msgstr ""
3401
3402 #. type: TP
3403 #: debconf.7:292
3404 #, no-wrap
3405 msgid "B<user>"
3406 msgstr "B<user (bruger)>"
3407
3408 #. type: Plain text
3409 #: debconf.7:295
3410 msgid "Debugging info of interest to a debconf user."
3411 msgstr "Fejlsøgningsinformation af interesse for en debconfbruger."
3412
3413 #. type: TP
3414 #: debconf.7:295
3415 #, no-wrap
3416 msgid "B<developer>"
3417 msgstr "B<developer (udvikler)>"
3418
3419 #. type: Plain text
3420 #: debconf.7:298
3421 msgid "Debugging info of interest to a package developer."
3422 msgstr "Fejlsøgningsinformation af interesse for en pakkeudvikler."
3423
3424 #. type: TP
3425 #: debconf.7:298
3426 #, no-wrap
3427 msgid "B<db>"
3428 msgstr "B<db (database)>"
3429
3430 #. type: Plain text
3431 #: debconf.7:301
3432 msgid "Debugging info about the backend database."
3433 msgstr "Fejlsøgningsinformation om motorens database."
3434
3435 #. type: TP
3436 #: debconf.7:302
3437 #, no-wrap
3438 msgid "B<DEBCONF_NOWARNINGS>"
3439 msgstr "B<DEBCONF_NOWARNINGS (DEBCONF_INGEN ADVARSLER>"
3440
3441 #. type: Plain text
3442 #: debconf.7:306
3443 msgid ""
3444 "Set to \"yes\" to disable some warnings that debconf may display. Does not "
3445 "suppress display of fatal errors."
3446 msgstr ""
3447 "Sat til yes (ja) for at deaktivere nogle advarsler som debconf måske viser. "
3448 "Undertrykker ikke visning af fatale fejl."
3449
3450 #. type: TP
3451 #: debconf.7:306
3452 #, no-wrap
3453 msgid "B<DEBCONF_TERSE>"
3454 msgstr ""
3455
3456 #. type: Plain text
3457 #: debconf.7:310
3458 msgid ""
3459 "Set to \"yes\" to enable terse mode, in which debconf frontends cut down on "
3460 "the verbiage as much as possible."
3461 msgstr ""
3462
3463 #. type: TP
3464 #: debconf.7:310
3465 #, no-wrap
3466 msgid "B<DEBCONF_DB_FALLBACK>"
3467 msgstr ""
3468
3469 #. type: Plain text
3470 #: debconf.7:320
3471 msgid ""
3472 "Stack a database after the normally used databases, so that it is used as a "
3473 "fallback to get configuration information from. See \"Unattended Package "
3474 "Installation\" above. If the value of the variable is the name of an "
3475 "existing database in debconf.conf, then that database will be used. "
3476 "Otherwise, the environment variable can be used to configure a database on "
3477 "the fly, by telling the type of database, and optionally passing field:value "
3478 "settings, inside curly braces after the type. Spaces are used to separate "
3479 "fields, so you cannot specify a field value containing whitespace."
3480 msgstr ""
3481
3482 #. type: Plain text
3483 #: debconf.7:323
3484 #, no-wrap
3485 msgid ""
3486 "Thus, this uses the fallbackdb in debconf.conf:\n"
3487 " DEBCONF_DB_FALLBACK=fallbackdb\n"
3488 msgstr ""
3489
3490 #. type: Plain text
3491 #: debconf.7:327
3492 #, no-wrap
3493 msgid ""
3494 "While this sets up a new database of type File, and tells it a filename to\n"
3495 "use and turns off backups:\n"
3496 " DEBCONF_DB_FALLBACK=File{Filename:/root/config.dat Backup:no}\n"
3497 msgstr ""
3498
3499 #. type: Plain text
3500 #: debconf.7:330
3501 #, no-wrap
3502 msgid ""
3503 "And as a shorthand, this sets up a database of type File with a filename:\n"
3504 " DEBCONF_DB_FALLBACK=File{/root/config.dat}\n"
3505 msgstr ""
3506
3507 #. type: Plain text
3508 #: debconf.7:333
3509 msgid ""
3510 "Note that if a fallback database is set up on the fly, it will be read-only "
3511 "by default."
3512 msgstr ""
3513
3514 #. type: TP
3515 #: debconf.7:333
3516 #, no-wrap
3517 msgid "B<DEBCONF_DB_OVERRIDE>"
3518 msgstr ""
3519
3520 #. type: Plain text
3521 #: debconf.7:338
3522 msgid ""
3523 "Stack a database before the normally used databases, so that it can override "
3524 "values from them. The value of the variable works the same as does the value "
3525 "of DEBCONF_DB_FALLBACK."
3526 msgstr ""
3527
3528 #. type: TP
3529 #: debconf.7:338
3530 #, no-wrap
3531 msgid "B<DEBCONF_DB_REPLACE>"
3532 msgstr ""
3533
3534 #. type: Plain text
3535 #: debconf.7:343
3536 msgid ""
3537 "Use a given database instead of the normally used databases. This may be "
3538 "useful for testing with a separate database without having to create a "
3539 "separate debconf.conf, or to avoid locking the normal databases."
3540 msgstr ""
3541
3542 #. type: TP
3543 #: debconf.7:343
3544 #, no-wrap
3545 msgid "B<DEBCONF_SYSTEMRC>"
3546 msgstr ""
3547
3548 #. type: Plain text
3549 #: debconf.7:349
3550 msgid ""
3551 "If this environment variable is set, debconf will ignore a user's ~/."
3552 "debconfrc file, and use the system one instead. If it is set to the name of "
3553 "a regular file, debconf will use that file in preference to the system "
3554 "configuration files."
3555 msgstr ""
3556
3557 #. type: TP
3558 #: debconf.7:349
3559 #, no-wrap
3560 msgid "B<DEBCONF_FORCE_DIALOG>"
3561 msgstr ""
3562
3563 #. type: Plain text
3564 #: debconf.7:353
3565 msgid ""
3566 "If this environment variable is set, debconf will use dialog in preference "
3567 "to whiptail for the dialog frontend."
3568 msgstr ""
3569
3570 #. type: TP
3571 #: debconf.7:353
3572 #, no-wrap
3573 msgid "B<DEBCONF_FORCE_XDIALOG>"
3574 msgstr ""
3575
3576 #. type: Plain text
3577 #: debconf.7:357
3578 msgid ""
3579 "If this environment variable is set, debconf will use Xdialog in preference "
3580 "to whiptail for the dialog frontend."
3581 msgstr ""
3582
3583 #. type: TP
3584 #: debconf.7:357
3585 #, no-wrap
3586 msgid "B<DEBCONF_NONINTERACTIVE_SEEN>"
3587 msgstr ""
3588
3589 #. type: Plain text
3590 #: debconf.7:361
3591 msgid ""
3592 "Set to \"true\" to cause the seen flag to be set for questions asked in the "
3593 "noninteractive frontend."
3594 msgstr ""
3595
3596 #. type: SH
3597 #: debconf.7:361
3598 #, no-wrap
3599 msgid "BUGS"
3600 msgstr "FEJL"
3601
3602 #. type: Plain text
3603 #: debconf.7:363
3604 msgid "Probably quite a few, there's a lot of code here."
3605 msgstr "Sikkert en del, der er meget kode her."
3606
3607 #. type: Plain text
3608 #: debconf.7:365
3609 msgid ""
3610 "If you do file a bug report, be sure to include the following information:"
3611 msgstr ""
3612 "Hvis du indsender en fejlrapport, så sikr dig at du inkluderer den følgende "
3613 "information:"
3614
3615 #. type: TP
3616 #: debconf.7:365 debconf.7:368 debconf.7:371 debconf-devel.7:469
3617 #: debconf-devel.7:473 debconf-devel.7:479 debconf-devel.7:484
3618 #: debconf-devel.7:489
3619 #, no-wrap
3620 msgid "B<*>"
3621 msgstr "B<*>"
3622
3623 #. type: Plain text
3624 #: debconf.7:368
3625 msgid "The debconf frontend you were using when the problem occurred"
3626 msgstr "Brugerfladen for debconf som du brugt da problemet opstod"
3627
3628 #. type: Plain text
3629 #: debconf.7:371
3630 msgid "What you did to trigger the problem."
3631 msgstr "Hvad du gjorde som udløste problemet."
3632
3633 #. type: Plain text
3634 #: debconf.7:376
3635 msgid ""
3636 "The full text of any error messages. If you can reproduce the bug, do so "
3637 "with DEBCONF_DEBUG='.*' set and exported. This speeds up debugging a lot."
3638 msgstr ""
3639 "Den fulde tekst for eventuelle fejlbeskeder. Hvis du kan genskabe fejlen, så "
3640 "gør det med DEBCONF_DEBUG=».*« angivet og eksporteret. Dette øger markant "
3641 "hastigheden for fejlsøgning."
3642
3643 #. type: Plain text
3644 #: debconf.7:382
3645 msgid ""
3646 "B<debconf.conf>(5), B<debconf-devel>(7), B<dpkg-preconfigure>(8), B<dpkg-"
3647 "reconfigure>(8), B<debconf>(1),"
3648 msgstr ""
3649
3650 #. type: TH
3651 #: debconf-devel.7:1
3652 #, no-wrap
3653 msgid "DEBCONF-DEVEL"
3654 msgstr ""
3655
3656 #. type: Plain text
3657 #: debconf-devel.7:4
3658 msgid "debconf - developers guide"
3659 msgstr "debconf - vejledning for udviklere"
3660
3661 #. type: Plain text
3662 #: debconf-devel.7:6
3663 msgid "This is a guide for developing packages that use debconf."
3664 msgstr "Dette er en vejledning for udvikling af pakker som bruger debconf."
3665
3666 #. type: Plain text
3667 #: debconf-devel.7:9
3668 msgid ""
3669 "This manual assumes that you are familiar with debconf as a user, and are "
3670 "familiar with the basics of debian package construction."
3671 msgstr ""
3672 "Denne manual antager at du er bekendt med debconf som en bruger, og at du er "
3673 "bekendt med den grundlæggende konstruktion for en debianpakke."
3674
3675 #. type: Plain text
3676 #: debconf-devel.7:18
3677 msgid ""
3678 "This manual begins by explaining two new files that are added to debian "
3679 "packages that use debconf. Then it explains how the debconf protocol works, "
3680 "and points you at some libraries that will let your programs speak the "
3681 "protocol. It discusses other maintainer scripts that debconf is typically "
3682 "used in: the postinst and postrm scripts. Then moves on to more advanced "
3683 "topics like shared debconf templates, debugging, and some common techniques "
3684 "and pitfalls of programming with debconf. It closes with a discussion of "
3685 "debconf's current shortcomings."
3686 msgstr ""
3687
3688 #. type: SH
3689 #: debconf-devel.7:18
3690 #, no-wrap
3691 msgid "THE CONFIG SCRIPT"
3692 msgstr ""
3693
3694 #. type: Plain text
3695 #: debconf-devel.7:23
3696 msgid ""
3697 "Debconf adds an additional maintainer script, the config script, to the set "
3698 "of maintainer scripts that can be in debian packages (the postinst, preinst, "
3699 "postrm, and prerm). The config script is responsible for asking any "
3700 "questions necessary to configure the package."
3701 msgstr ""
3702
3703 #. type: Plain text
3704 #: debconf-devel.7:28
3705 msgid ""
3706 "Note: It is a little confusing that dpkg refers to running a package's "
3707 "postinst script as \"configuring\" the package, since a package that uses "
3708 "debconf is often fully pre-configured, by its config script, before the "
3709 "postinst ever runs. Oh well."
3710 msgstr ""
3711
3712 #. type: Plain text
3713 #: debconf-devel.7:34
3714 msgid ""
3715 "Like the postinst, the config script is passed two parameters when it is "
3716 "run. The first tells what action is being performed, and the second is the "
3717 "version of the package that is currently installed. So, like in a postinst, "
3718 "you can use dpkg --compare-versions on $2 to make some behavior happen only "
3719 "on upgrade from a particular version of a package, and things like that."
3720 msgstr ""
3721
3722 #. type: Plain text
3723 #: debconf-devel.7:36
3724 msgid "The config script can be run in one of three ways:"
3725 msgstr "Konfigurationsskriptet kan køres på en af tre måder:"
3726
3727 #. type: TP
3728 #: debconf-devel.7:36
3729 #, no-wrap
3730 msgid "B<1>"
3731 msgstr "B<1>"
3732
3733 #. type: Plain text
3734 #: debconf-devel.7:40
3735 msgid ""
3736 "If a package is pre-configured, with dpkg-preconfigure, its config script is "
3737 "run, and is passed the parameters \"configure\", and installed-version."
3738 msgstr ""
3739
3740 #. type: TP
3741 #: debconf-devel.7:40
3742 #, no-wrap
3743 msgid "B<2>"
3744 msgstr "B<2>"
3745
3746 #. type: Plain text
3747 #: debconf-devel.7:47
3748 msgid ""
3749 "When a package's postinst is run, debconf will try to run the config script "
3750 "then too, and it will be passed the same parameters it was passed when it is "
3751 "pre-configured. This is necessary because the package might not have been "
3752 "pre-configured, and the config script still needs to get a chance to run. "
3753 "See HACKS for details."
3754 msgstr ""
3755
3756 #. type: TP
3757 #: debconf-devel.7:47
3758 #, no-wrap
3759 msgid "B<3>"
3760 msgstr "B<3>"
3761
3762 #. type: Plain text
3763 #: debconf-devel.7:52
3764 msgid ""
3765 "If a package is reconfigured, with dpkg-reconfigure, its config script it "
3766 "run, and is passed the parameters \"reconfigure\" and installed-version."
3767 msgstr ""
3768
3769 #. type: Plain text
3770 #: debconf-devel.7:58
3771 msgid ""
3772 "Note that since a typical package install or upgrade using apt runs steps 1 "
3773 "and 2, the config script will typically be run twice. It should do nothing "
3774 "the second time (to ask questions twice in a row is annoying), and it should "
3775 "definitely be idempotent. Luckily, debconf avoids repeating questions by "
3776 "default, so this is generally easy to accomplish."
3777 msgstr ""
3778
3779 #. type: Plain text
3780 #: debconf-devel.7:64
3781 msgid ""
3782 "Note that the config script is run before the package is unpacked. It should "
3783 "only use commands that are in essential packages. The only dependency of "
3784 "your package that is guaranteed to be met when its config script is run is a "
3785 "dependency (possibly versioned) on debconf itself."
3786 msgstr ""
3787
3788 #. type: Plain text
3789 #: debconf-devel.7:70
3790 msgid ""
3791 "The config script should not need to modify the filesystem at all. It just "
3792 "examines the state of the system, and asks questions, and debconf stores the "
3793 "answers to be acted on later by the postinst script. Conversely, the "
3794 "postinst script should almost never use debconf to ask questions, but should "
3795 "instead act on the answers to questions asked by the config script."
3796 msgstr ""
3797
3798 #. type: SH
3799 #: debconf-devel.7:70
3800 #, no-wrap
3801 msgid "THE TEMPLATES FILE"
3802 msgstr "SKABELONFILEN"
3803
3804 #. type: Plain text
3805 #: debconf-devel.7:73
3806 msgid ""
3807 "A package that uses debconf probably wants to ask some questions. These "
3808 "questions are stored, in template form, in the templates file."
3809 msgstr ""
3810 "En pakke som bruger debconf vil sikkert ønske at stille nogle spørgsmål. "
3811 "Disse spørgsmål gemmes, i skabelonform, i skabelonfilen."
3812
3813 #. type: Plain text
3814 #: debconf-devel.7:78
3815 msgid ""
3816 "Like the config script, the templates file is put in the control.tar.gz "
3817 "section of a deb. Its format is similar to a debian control file; a set of "
3818 "stanzas separated by blank lines, with each stanza having a RFC822-like form:"
3819 msgstr ""
3820
3821 #. type: Plain text
3822 #: debconf-devel.7:94
3823 #, no-wrap
3824 msgid ""
3825 " Template: foo/bar\n"
3826 " Type: string\n"
3827 " Default: foo\n"
3828 " Description: This is a sample string question.\n"
3829 " This is its extended description.\n"
3830 " .\n"
3831 " Notice that:\n"
3832 " - Like in a debian package description, a dot\n"
3833 " on its own line sets off a new paragraph.\n"
3834 " - Most text is word-wrapped, but doubly-indented\n"
3835 " text is left alone, so you can use it for lists\n"
3836 " of items, like this list. Be careful, since\n"
3837 " it is not word-wrapped, if it's too wide\n"
3838 " it will look bad. Using it for short items\n"
3839 " is best (so this is a bad example).\n"
3840 msgstr ""
3841
3842 #. type: Plain text
3843 #: debconf-devel.7:99
3844 #, no-wrap
3845 msgid ""
3846 " Template: foo/baz\n"
3847 " Type: boolean\n"
3848 " Description: Clear enough, no?\n"
3849 " This is another question, of boolean type.\n"
3850 msgstr ""
3851
3852 #. type: Plain text
3853 #: debconf-devel.7:103
3854 msgid ""
3855 "For some real-life examples of templates files, see /var/lib/dpkg/info/"
3856 "debconf.templates, and other .templates files in that directory."
3857 msgstr ""
3858
3859 #. type: Plain text
3860 #: debconf-devel.7:105
3861 msgid "Let's look at each of the fields in turn.."
3862 msgstr ""
3863
3864 #. type: TP
3865 #: debconf-devel.7:105
3866 #, no-wrap
3867 msgid "B<Template>"
3868 msgstr ""
3869
3870 #. type: Plain text
3871 #: debconf-devel.7:111
3872 msgid ""
3873 "The name of the template, in the 'Template' field, is generally prefixed "
3874 "with the name of the package. After that the namespace is wide open; you can "
3875 "use a simple flat layout like the one above, or set up \"subdirectories\" "
3876 "containing related questions."
3877 msgstr ""
3878
3879 #. type: TP
3880 #: debconf-devel.7:111
3881 #, no-wrap
3882 msgid "B<Type>"
3883 msgstr "B<Type>"
3884
3885 #. type: Plain text
3886 #: debconf-devel.7:115
3887 msgid ""
3888 "The type of the template determines what kind of widget is displayed to the "
3889 "user. The currently supported types are:"
3890 msgstr ""
3891 "Skabelonstypen bestemmer hvilken slags kontrol der vises for brugeren. De "
3892 "aktuelt understøttede typer er:"
3893
3894 #. type: TP
3895 #: debconf-devel.7:116
3896 #, no-wrap
3897 msgid "B<string>"
3898 msgstr "B<string (streng)>"
3899
3900 #. type: Plain text
3901 #: debconf-devel.7:119
3902 msgid ""
3903 "Results in a free-form input field that the user can type any string into."
3904 msgstr ""
3905 "Resulterer i et inddatafelt i fri form som brugeren kan indtaste alle slags "
3906 "strenge i."
3907
3908 #. type: TP
3909 #: debconf-devel.7:119
3910 #, no-wrap
3911 msgid "B<password>"
3912 msgstr "B<password (adgangskode)>"
3913
3914 #. type: Plain text
3915 #: debconf-devel.7:124
3916 msgid ""
3917 "Prompts the user for a password. Use this with caution; be aware that the "
3918 "password the user enters will be written to debconf's database. You should "
3919 "probably clean that value out of the database as soon as is possible."
3920 msgstr ""
3921 "Spørger brugeren om en adgangskode. Brug denne med forsigtighed; vær "
3922 "opmærksom på at adgangskoden som brugeren indtaster vil blive skrevet til "
3923 "debconfs database. Det er sikkert en god ide at fjerne denne værdi fra "
3924 "databasen så snart som muligt."
3925
3926 #. type: TP
3927 #: debconf-devel.7:124
3928 #, no-wrap
3929 msgid "B<boolean>"
3930 msgstr "B<boolean (boolesk)>"
3931
3932 #. type: Plain text
3933 #: debconf-devel.7:127
3934 msgid "A true/false choice."
3935 msgstr "Et valg med sand/falsk."
3936
3937 #. type: TP
3938 #: debconf-devel.7:127
3939 #, no-wrap
3940 msgid "B<select>"
3941 msgstr "B<select (vælg)>"
3942
3943 #. type: Plain text
3944 #: debconf-devel.7:132
3945 msgid ""
3946 "A choice between one of a number of values. The choices must be specified in "
3947 "a field named 'Choices'. Separate the possible values with commas and "
3948 "spaces, like this:"
3949 msgstr ""
3950 "Et valg mellem et antal værdier. Valgene skal være angivet i et felt med "
3951 "navnet »Choices«. Adskil de mulige værdier med kommaer og mellemrum, således:"
3952
3953 #. type: Plain text
3954 #: debconf-devel.7:134
3955 #, no-wrap
3956 msgid " Choices: yes, no, maybe\n"
3957 msgstr " Valg: ja, nej, måske\n"
3958
3959 #. type: TP
3960 #: debconf-devel.7:135
3961 #, no-wrap
3962 msgid "B<multiselect>"
3963 msgstr "B<multiselect (flere valg)>"
3964
3965 #. type: Plain text
3966 #: debconf-devel.7:139
3967 msgid ""
3968 "Like the select data type, except the user can choose any number of items "
3969 "from the choices list (or choose none of them)."
3970 msgstr ""
3971 "Ligner vælg datatype, med undtagelse af at brugeren kan vælge et antal "
3972 "punkter fra listen over valgmuligheder (eller undlade at vælge nogen af dem)."
3973
3974 #. type: TP
3975 #: debconf-devel.7:139
3976 #, no-wrap
3977 msgid "B<note>"
3978 msgstr "B<note (bemærk)>"
3979
3980 #. type: Plain text
3981 #: debconf-devel.7:147
3982 msgid ""
3983 "Rather than being a question per se, this datatype indicates a note that can "
3984 "be displayed to the user. It should be used only for important notes that "
3985 "the user really should see, since debconf will go to great pains to make "
3986 "sure the user sees it; halting the install for them to press a key. It's "
3987 "best to use these only for warning about very serious problems, and the "
3988 "error datatype is often more suitable."
3989 msgstr ""
3990 "Fremfor at være et spørgsmål, så indikerer denne datatype en bemærkning, som "
3991 "kan vises for brugeren. Den skal kun bruges for vigtige bemærkninger, som "
3992 "det er vigtigt at brugeren ser, da debconf vil gøre sit yderste for at sikre "
3993 "sig, at brugeren rent faktisk ser bemærkningen; ved at stoppe installationen "
3994 "indtil der trykkes på en tast. Det er bedst kun at bruge disse for advarsler "
3995 "om meget alvorlige problemer, og datatypen error (fejl) vil derfor ofte være "
3996 "mere egnet."
3997
3998 #. type: TP
3999 #: debconf-devel.7:147
4000 #, no-wrap
4001 msgid "B<error>"
4002 msgstr "B<error (fejl>"
4003
4004 #. type: Plain text
4005 #: debconf-devel.7:152
4006 msgid ""
4007 "This datatype is used for error messages, such as input validation errors. "
4008 "Debconf will show a question of this type even if the priority is too high "
4009 "or the user has already seen it."
4010 msgstr ""
4011 "Denne datatype bruges for fejlbeskeder, såsom fejl ved inddatavalidering. "
4012 "Debconf vil vise et spørgsmål af denne type selv om prioriteten er for høj "
4013 "eller brugeren allerede har set den."
4014
4015 #. type: TP
4016 #: debconf-devel.7:152
4017 #, no-wrap
4018 msgid "B<title>"
4019 msgstr "B<title (titel)>"
4020
4021 #. type: Plain text
4022 #: debconf-devel.7:155
4023 msgid "This datatype is used for titles, to be set with the SETTITLE command."
4024 msgstr "Denne datatype bruges for titler, som sættes med kommandoen SETTITLE."
4025
4026 #. type: TP
4027 #: debconf-devel.7:155
4028 #, no-wrap
4029 msgid "B<text>"
4030 msgstr "B<text (tekst)>"
4031
4032 #. type: Plain text
4033 #: debconf-devel.7:162
4034 msgid ""
4035 "This datatype can be used for fragments of text, such as labels, that can be "
4036 "used for cosmetic reasons in the displays of some frontends. Other frontends "
4037 "will not use it at all. There is no point in using this datatype yet, since "
4038 "no frontends support it well. It may even be removed in the future."
4039 msgstr ""
4040 "Denne datatype kan bruges for tekstfragmenter, såsom etiketter, som kan "
4041 "bruges af kosmetiske årsager i visningen på nogle brugerflader. Andre "
4042 "brugerflader vil slet ikke bruge den. Der er endnu ingen ide i at bruge "
4043 "denne datatype, da ingen brugerflader endnu understøtter den godt. Den kan "
4044 "endda blive fjernet igen."
4045
4046 #. type: TP
4047 #: debconf-devel.7:163
4048 #, no-wrap
4049 msgid "B<Default>"
4050 msgstr "B<Default (standard)>"
4051
4052 #. type: Plain text
4053 #: debconf-devel.7:171
4054 msgid ""
4055 "The 'Default' field tells debconf what the default value should be. For "
4056 "multiselect, it can be a list of choices, separated by commas and spaces, "
4057 "similar to the 'Choices' field. For select, it should be one of the choices. "
4058 "For boolean, it is \"true\" or \"false\", while it can be anything for a "
4059 "string, and it is ignored for passwords."
4060 msgstr ""
4061 "Feltet »Default« (standard) fortæller debconf hvad standardværdien skal "
4062 "være. For flere valg, kan det være en liste af valgmuligheder, adskilt af "
4063 "komma eller mellemrum, på samme måde som felter »Choises«. For select, skal "
4064 "det være en af valgene. For boolesk, er det »true« (sand) eller "
4065 "»false« (falsk), mens det kan være alt for en streng, og det ignoreres for "
4066 "adgangskoder."
4067
4068 #. type: Plain text
4069 #: debconf-devel.7:178
4070 msgid ""
4071 "Don't make the mistake of thinking that the default field contains the "
4072 "\"value\" of the question, or that it can be used to change the value of the "
4073 "question. It does not, and cannot, it just provides a default value for the "
4074 "first time the question is displayed. To provide a default that changes on "
4075 "the fly, you'd have to use the SET command to change the value of a question."
4076 msgstr ""
4077 "Gør ikke den fejltagelse at tro, at standardfeltet indeholder »værdien« for "
4078 "spørgsmålet, eller at den kan bruges til at ændre værdien for spørgsmålet. "
4079 "Det gør feltet ikke, og kan ikke gøre det, det giver kun en standardværdi "
4080 "for den første gang spørgsmålet vises. For at tilbyde en standard der ændrer "
4081 "sig løbende, skal du bruge kommandoen SET for at ændre værdien for et "
4082 "spørgsmål."
4083
4084 #. type: TP
4085 #: debconf-devel.7:179
4086 #, no-wrap
4087 msgid "B<Description>"
4088 msgstr "B<Description (beskrivelse)>"
4089
4090 #. type: Plain text
4091 #: debconf-devel.7:187
4092 msgid ""
4093 "The 'Description' field, like the description of a Debian package, has two "
4094 "parts: A short description and an extended description. Note that some "
4095 "debconf frontends don't display the long description, or might only display "
4096 "it if the user asks for help. So the short description should be able to "
4097 "stand on its own."
4098 msgstr ""
4099 "Feltet Description (beskrivelse), såsom beskrivelsen af en Debianpakke, har "
4100 "to dele: En kort beskrivelse og en udvidet beskrivelse. Bemærk at nogle "
4101 "debconfbrugerflader ikke viser den lange beskrivelse, eller måske kun viser "
4102 "den hvis brugeren spørger efter hjælp. Så den korte beskrivelse skal være "
4103 "forklarende i sig selv."
4104
4105 #. type: Plain text
4106 #: debconf-devel.7:193
4107 msgid ""
4108 "If you can't think up a long description, then first, think some more. Post "
4109 "to debian-devel. Ask for help. Take a writing class! That extended "
4110 "description is important. If after all that you still can't come up with "
4111 "anything, leave it blank. There is no point in duplicating the short "
4112 "description."
4113 msgstr ""
4114 "Hvis du ikke kan finde på en lang beskrivelse, så prøv først igen. Spørg på "
4115 "debian-devl. Spørg om hjælp. Tag et skrivekursus! Den udvidede beskrivelse "
4116 "er vigtig. Hvis du stadig ikke kan finde på noget, så efterlad den blank. "
4117 "Der er ingen ide i at kopiere den korte beskrivelse."
4118
4119 #. type: Plain text
4120 #: debconf-devel.7:198
4121 msgid ""
4122 "Text in the extended description will be word-wrapped, unless it is prefixed "
4123 "by additional whitespace (beyond the one required space). You can break it "
4124 "up into separate paragraphs by putting \" .\" on a line by itself between "
4125 "them."
4126 msgstr ""
4127 "Tekst i den udvidede beskrivelse vil blive orddelt, medmindre den er "
4128 "udarbejdet med yderligere mellemrum (udover det ene krævede mellemrum). Du "
4129 "kan opdele beskrivelsen i separate afsnit ved at placere » .« på en separat "
4130 "linje mellem afsnitene."
4131
4132 #. type: SH
4133 #: debconf-devel.7:199
4134 #, no-wrap
4135 msgid "QUESTIONS"
4136 msgstr "SPØRGSMÅL"
4137
4138 #. type: Plain text
4139 #: debconf-devel.7:211
4140 msgid ""
4141 "A question is an instantiated template. By asking debconf to display a "
4142 "question, your config script can interact with the user. When debconf loads "
4143 "a templates file (this happens whenever a config or postinst script is run), "
4144 "it automatically instantiates a question from each template. It is actually "
4145 "possible to instantiate several independent questions from the same template "
4146 "(using the REGISTER command), but that is rarely necessary. Templates are "
4147 "static data that comes from the templates file, while questions are used to "
4148 "store dynamic data, like the current value of the question, whether a user "
4149 "has seen a question, and so on. Keep the distinction between a template and "
4150 "a question in mind, but don't worry too much about it."
4151 msgstr ""
4152
4153 #. type: SH
4154 #: debconf-devel.7:211
4155 #, no-wrap
4156 msgid "SHARED TEMPLATES"
4157 msgstr "DELTE SKABELONER"
4158
4159 #. type: Plain text
4160 #: debconf-devel.7:218
4161 msgid ""
4162 "It's actually possible to have a template and a question that are shared "
4163 "among a set of packages. All the packages have to provide an identical copy "
4164 "of the template in their templates files. This can be useful if a bunch of "
4165 "packages need to ask the same question, and you only want to bother the user "
4166 "with it once. Shared templates are generally put in the shared/ pseudo-"
4167 "directory in the debconf template namespace."
4168 msgstr ""
4169
4170 #. type: SH
4171 #: debconf-devel.7:218
4172 #, no-wrap
4173 msgid "THE DEBCONF PROTOCOL"
4174 msgstr "DEBCONF-PROTOKOLLEN"
4175
4176 #. type: Plain text
4177 #: debconf-devel.7:224
4178 msgid ""
4179 "Config scripts communicate with debconf using the debconf protocol. This is "
4180 "a simple line-oriented protocol, similar to common internet protocols such "
4181 "as SMTP. The config script sends debconf a command by writing the command to "
4182 "standard output. Then it can read debconf's reply from standard input."
4183 msgstr ""
4184
4185 #. type: Plain text
4186 #: debconf-devel.7:230
4187 msgid ""
4188 "Debconf's reply can be broken down into two parts: A numeric result code "
4189 "(the first word of the reply), and an optional extended result code (the "
4190 "remainder of the reply). The numeric code uses 0 to indicate success, and "
4191 "other numbers to indicate various kinds of failure. For full details, see "
4192 "the table in Debian policy's debconf specification document."
4193 msgstr ""
4194
4195 #. type: Plain text
4196 #: debconf-devel.7:235
4197 msgid ""
4198 "The extended return code is generally free form and unspecified, so you "
4199 "should generally ignore it, and should certainly not try to parse it in a "
4200 "program to work out what debconf is doing. The exception is commands like "
4201 "GET, that cause a value to be returned in the extended return code."
4202 msgstr ""
4203
4204 #. type: Plain text
4205 #: debconf-devel.7:239
4206 msgid ""
4207 "Generally you'll want to use a language-specific library that handles the "
4208 "nuts and bolts of setting up these connections to debconf and communicating "
4209 "with it."
4210 msgstr ""
4211
4212 #. type: Plain text
4213 #: debconf-devel.7:242
4214 msgid ""
4215 "For now, here are the commands in the protocol. This is not the definitive "
4216 "definition, see Debian policy's debconf specification document for that."
4217 msgstr ""
4218 "For nu så er her kommandoerne i protokollen. Dette er ikke den endelige "
4219 "definition, se Debians politiks debconf-specifikationsdokument for den."
4220
4221 #. type: TP
4222 #: debconf-devel.7:242
4223 #, no-wrap
4224 msgid "B<VERSION number>"
4225 msgstr "B<VERSION number (versionsnummer)>"
4226
4227 #. type: Plain text
4228 #: debconf-devel.7:250
4229 msgid ""
4230 "You generally don't need to use this command. It exchanges with debconf the "
4231 "protocol version number that is being used. The current protocol version is "
4232 "2.0, and versions in the 2.x series will be backwards-compatible. You may "
4233 "specify the protocol version number you are speaking and debconf will return "
4234 "the version of the protocol it speaks in the extended result code. If the "
4235 "version you specify is too low, debconf will reply with numeric code 30."
4236 msgstr ""
4237
4238 #. type: TP
4239 #: debconf-devel.7:250
4240 #, no-wrap
4241 msgid "B<CAPB capabilities>"
4242 msgstr ""
4243
4244 #. type: Plain text
4245 #: debconf-devel.7:257
4246 msgid ""
4247 "You generally don't need to use this command. It exchanges with debconf a "
4248 "list of supported capabilities (separated by spaces). Capabilities that both "
4249 "you and debconf support will be used, and debconf will reply with all the "
4250 "capabilities it supports."
4251 msgstr ""
4252
4253 #. type: Plain text
4254 #: debconf-devel.7:267
4255 msgid ""
4256 "If 'escape' is found among your capabilities, debconf will expect commands "
4257 "you send it to have backslashes and newlines escaped (as \\e\\e and \\en "
4258 "respectively) and will in turn escape backslashes and newlines in its "
4259 "replies. This can be used, for example, to substitute multi-line strings "
4260 "into templates, or to get multi-line extended descriptions reliably using "
4261 "METAGET. In this mode, you must escape input text yourself (you can use "
4262 "B<debconf-escape>(1) to help with this if you want), but the confmodule "
4263 "libraries will unescape replies for you."
4264 msgstr ""
4265
4266 #. type: TP
4267 #: debconf-devel.7:268
4268 #, no-wrap
4269 msgid "B<SETTITLE question>"
4270 msgstr "B<SETTITLE question (SETTITLE-spørgsmål)>"
4271
4272 #. type: Plain text
4273 #: debconf-devel.7:275
4274 msgid ""
4275 "This sets the title debconf displays to the user, using the short "
4276 "description of the template for the specified question. The template should "
4277 "be of type title. You rarely need to use this command since debconf can "
4278 "automatically generate a title based on your package's name."
4279 msgstr ""
4280
4281 #. type: Plain text
4282 #: debconf-devel.7:278
4283 msgid ""
4284 "Setting the title from a template means they are stored in the same place as "
4285 "the rest of the debconf questions, and allows them to be translated."
4286 msgstr ""
4287
4288 #. type: TP
4289 #: debconf-devel.7:279
4290 #, no-wrap
4291 msgid "B<TITLE string>"
4292 msgstr "B<TITLE string (titelstreng)>"
4293
4294 #. type: Plain text
4295 #: debconf-devel.7:284
4296 msgid ""
4297 "This sets the title debconf displays to the user to the specified string. "
4298 "Use of the SETTITLE command is normally to be preferred as it allows for "
4299 "translation of the title."
4300 msgstr ""
4301
4302 #. type: TP
4303 #: debconf-devel.7:284
4304 #, no-wrap
4305 msgid "B<INPUT priority question>"
4306 msgstr ""
4307
4308 #. type: Plain text
4309 #: debconf-devel.7:291
4310 msgid ""
4311 "Ask debconf to prepare to display a question to the user. The question is "
4312 "not actually displayed until a GO command is issued; this lets several INPUT "
4313 "commands be given in series, to build up a set of questions, which might all "
4314 "be asked on a single screen."
4315 msgstr ""
4316
4317 #. type: Plain text
4318 #: debconf-devel.7:294
4319 msgid ""
4320 "The priority field tells debconf how important it is that this question be "
4321 "shown to the user. The priority values are:"
4322 msgstr ""
4323
4324 #. type: Plain text
4325 #: debconf-devel.7:298
4326 msgid ""
4327 "Very trivial items that have defaults that will work in the vast majority of "
4328 "cases; only control freaks see these."
4329 msgstr ""
4330
4331 #. type: Plain text
4332 #: debconf-devel.7:301
4333 msgid "Normal items that have reasonable defaults."
4334 msgstr "Normale punkter som har fornuftige standarder."
4335
4336 #. type: Plain text
4337 #: debconf-devel.7:304
4338 msgid "Items that don't have a reasonable default."
4339 msgstr "Punkter som ikke har en fornuftig standard."
4340
4341 #. type: Plain text
4342 #: debconf-devel.7:307
4343 msgid "Items that will probably break the system without user intervention."
4344 msgstr ""
4345
4346 #. type: Plain text
4347 #: debconf-devel.7:312
4348 msgid ""
4349 "Debconf decides if the question is actually displayed, based on its "
4350 "priority, and whether the user has seen it before, and which frontend is "
4351 "being used. If the question will not be displayed, debconf replies with code "
4352 "30."
4353 msgstr ""
4354
4355 #. type: TP
4356 #: debconf-devel.7:313
4357 #, no-wrap
4358 msgid "B<GO>"
4359 msgstr "B<GO (gå igang)>"
4360
4361 #. type: Plain text
4362 #: debconf-devel.7:318
4363 msgid ""
4364 "Tells debconf to display the accumulated set of questions (from INPUT "
4365 "commands) to the user."
4366 msgstr ""
4367 "Giver debconf besked om at vise det akkumulerede sæt af spørgsmål fra INPUT-"
4368 "kommandoer) til brugeren."
4369
4370 #. type: Plain text
4371 #: debconf-devel.7:321
4372 msgid ""
4373 "If the backup capability is supported and the user indicates they want to "
4374 "back up a step, debconf replies with code 30."
4375 msgstr ""
4376
4377 #. type: TP
4378 #: debconf-devel.7:322
4379 #, no-wrap
4380 msgid "B<CLEAR>"
4381 msgstr "B<CLEAR (ryd)>"
4382
4383 #. type: Plain text
4384 #: debconf-devel.7:326
4385 msgid ""
4386 "Clears the accumulated set of questions (from INPUT commands) without "
4387 "displaying them."
4388 msgstr ""
4389 "Rydder det akkumulrede sæt af spørgsmål (fra INPUT-kommandoer) uden at vise "
4390 "dem."
4391
4392 #. type: TP
4393 #: debconf-devel.7:326
4394 #, no-wrap
4395 msgid "B<BEGINBLOCK>"
4396 msgstr ""
4397
4398 #. type: TP
4399 #: debconf-devel.7:328
4400 #, no-wrap
4401 msgid "B<ENDBLOCK>"
4402 msgstr ""
4403
4404 #. type: Plain text
4405 #: debconf-devel.7:336
4406 msgid ""
4407 "Some debconf frontends can display a number of questions to the user at "
4408 "once. Maybe in the future a frontend will even be able to group these "
4409 "questions into blocks on screen. BEGINBLOCK and ENDBLOCK can be placed "
4410 "around a set of INPUT commands to indicate blocks of questions (and blocks "
4411 "can even be nested). Since no debconf frontend is so sophisticated yet, "
4412 "these commands are ignored for now."
4413 msgstr ""
4414
4415 #. type: TP
4416 #: debconf-devel.7:336
4417 #, no-wrap
4418 msgid "B<STOP>"
4419 msgstr "B<STOP>"
4420
4421 #. type: Plain text
4422 #: debconf-devel.7:340
4423 msgid ""
4424 "This command tells debconf that you're done talking to it. Often debconf can "
4425 "detect termination of your program and this command is not necessary."
4426 msgstr ""
4427 "Denne kommando fortæller debconf at du er færdig med at snakke med den. Ofte "
4428 "kan debconf detektere afslutning af dit program og så er denne kommando ikke "
4429 "nødvendig."
4430
4431 #. type: TP
4432 #: debconf-devel.7:340
4433 #, no-wrap
4434 msgid "B<GET question>"
4435 msgstr "B<GET question (hent sprøgsmål)>"
4436
4437 #. type: Plain text
4438 #: debconf-devel.7:345
4439 msgid ""
4440 "After using INPUT and GO to display a question, you can use this command to "
4441 "get the value the user entered. The value is returned in the extended result "
4442 "code."
4443 msgstr ""
4444
4445 #. type: TP
4446 #: debconf-devel.7:345
4447 #, no-wrap
4448 msgid "B<SET question value>"
4449 msgstr ""
4450
4451 #. type: Plain text
4452 #: debconf-devel.7:349
4453 msgid ""
4454 "This sets the value of a question, and it can be used to override the "
4455 "default value with something your program calculates on the fly."
4456 msgstr ""
4457
4458 #. type: TP
4459 #: debconf-devel.7:349
4460 #, no-wrap
4461 msgid "B<RESET question>"
4462 msgstr ""
4463
4464 #. type: Plain text
4465 #: debconf-devel.7:353
4466 msgid ""
4467 "This resets the question to its default value (as is specified in the "
4468 "'Default' field of its template)."
4469 msgstr ""
4470
4471 #. type: TP
4472 #: debconf-devel.7:353
4473 #, no-wrap
4474 msgid "B<SUBST question key value>"
4475 msgstr ""
4476
4477 #. type: Plain text
4478 #: debconf-devel.7:362
4479 msgid ""
4480 "Questions can have substitutions embedded in their 'Description' and "
4481 "'Choices' fields (use of substitutions in 'Choices' fields is a bit of a "
4482 "hack though; a better mechanism will eventually be developed). These "
4483 "substitutions look like \"${key}\". When the question is displayed, the "
4484 "substitutions are replaced with their values. This command can be used to "
4485 "set the value of a substitution. This is useful if you need to display some "
4486 "message to the user that you can't hard-code in the templates file."
4487 msgstr ""
4488
4489 #. type: Plain text
4490 #: debconf-devel.7:365
4491 msgid ""
4492 "Do not try to use SUBST to change the default value of a question; it won't "
4493 "work since there is a SET command explicitly for that purpose."
4494 msgstr ""
4495
4496 #. type: TP
4497 #: debconf-devel.7:365
4498 #, no-wrap
4499 msgid "B<FGET question flag>"
4500 msgstr ""
4501
4502 #. type: Plain text
4503 #: debconf-devel.7:369
4504 msgid ""
4505 "Questions can have flags associated with them. The flags can have a value of "
4506 "\"true\" or \"false\". This command returns the value of a flag."
4507 msgstr ""
4508 "Spørgsmål kan have flag associeret med dem. Flagende kan have en værdien "
4509 "»true« (sand) eller »false« (falsk). Denne kommando returnerer værdien for "
4510 "et flag."
4511
4512 #. type: TP
4513 #: debconf-devel.7:369
4514 #, no-wrap
4515 msgid "B<FSET question flag value>"
4516 msgstr ""
4517
4518 #. type: Plain text
4519 #: debconf-devel.7:374
4520 msgid ""
4521 "This sets the value of a question's flag. The value must be either \"true\" "
4522 "or \"false\"."
4523 msgstr ""
4524 "Denne indstilling angiver værdien for et spørgsmåls flag. Værdien skal være "
4525 "enten »true« (sand) eller »false« (falsk)."
4526
4527 #. type: Plain text
4528 #: debconf-devel.7:380
4529 msgid ""
4530 "One common flag is the \"seen\" flag. It is normally only set if a user has "
4531 "already seen a question. Debconf usually only displays questions to users if "
4532 "they have the seen flag set to \"false\" (or if it is reconfiguring a "
4533 "package). Sometimes you want the user to see a question again -- in these "
4534 "cases you can set the seen flag to false to force debconf to redisplay it."
4535 msgstr ""
4536 "Et udbredt flag er flaget »seen«. Det angives normalt kune hvis en bruger "
4537 "allerede har set et spørgsmål. Debconf viser normalt kun spørgsmål for "
4538 "brugerne hvis de har sat flaget seen til »false« (falsk) (eller hvis "
4539 "programmet rekonfigurerer en pakke). Undertiden ønsker du at brugeren skal "
4540 "se et spørgsmål igen - i disse tilfælde kan du angive flaget seen til false "
4541 "(falsk) for at tvinge debconf til at vise det igen."
4542
4543 #. type: TP
4544 #: debconf-devel.7:381
4545 #, no-wrap
4546 msgid "B<METAGET question field>"
4547 msgstr "B<METAGET spørgsmålsfelt>"
4548
4549 #. type: Plain text
4550 #: debconf-devel.7:385
4551 msgid ""
4552 "This returns the value of any field of a question's associated template (the "
4553 "Description, for example)."
4554 msgstr ""
4555
4556 #. type: TP
4557 #: debconf-devel.7:385
4558 #, no-wrap
4559 msgid "B<REGISTER template question>"
4560 msgstr ""
4561
4562 #. type: Plain text
4563 #: debconf-devel.7:391
4564 msgid ""
4565 "This creates a new question that is bound to a template. By default each "
4566 "template has an associated question with the same name. However, any number "
4567 "of questions can really be associated with a template, and this lets you "
4568 "create more such questions."
4569 msgstr ""
4570
4571 #. type: TP
4572 #: debconf-devel.7:391
4573 #, no-wrap
4574 msgid "B<UNREGISTER question>"
4575 msgstr ""
4576
4577 #. type: Plain text
4578 #: debconf-devel.7:394
4579 msgid "This removes a question from the database."
4580 msgstr ""
4581
4582 #. type: TP
4583 #: debconf-devel.7:394
4584 #, no-wrap
4585 msgid "B<PURGE>"
4586 msgstr ""
4587
4588 #. type: Plain text
4589 #: debconf-devel.7:398
4590 msgid ""
4591 "Call this in your postrm when your package is purged. It removes all of your "
4592 "package's questions from debconf's database."
4593 msgstr ""
4594 "Kald denne i din postrm når din pakke afinstalleres. Den fjerner alle din "
4595 "pakkes spørgsmål fra debconfs database."
4596
4597 #. type: TP
4598 #: debconf-devel.7:398
4599 #, no-wrap
4600 msgid "B<X_LOADTEMPLATEFILE /path/to/templates [owner]>"
4601 msgstr ""
4602
4603 #. type: Plain text
4604 #: debconf-devel.7:402
4605 msgid ""
4606 "This extension loads the specified template file into debconf's database. "
4607 "The owner defaults to the package that is being configured with debconf."
4608 msgstr ""
4609
4610 #. type: Plain text
4611 #: debconf-devel.7:404
4612 msgid "Here is a simple example of the debconf protocol in action."
4613 msgstr "Her er et simpelt eksempel på debconf-protokollen i aktion."
4614
4615 #. type: Plain text
4616 #: debconf-devel.7:418
4617 #, no-wrap
4618 msgid ""
4619 " INPUT medium debconf/frontend\n"
4620 " 30 question skipped\n"
4621 " FSET debconf/frontend seen false\n"
4622 " 0 false\n"
4623 " INPUT high debconf/frontend\n"
4624 " 0 question will be asked\n"
4625 " GO\n"
4626 " [ Here debconf displays a question to the user. ]\n"
4627 " 0 ok\n"
4628 " GET no/such/question\n"
4629 " 10 no/such/question doesn't exist\n"
4630 " GET debconf/frontend\n"
4631 " 0 Dialog\n"
4632 msgstr ""
4633
4634 #. type: SH
4635 #: debconf-devel.7:418
4636 #, no-wrap
4637 msgid "LIBRARIES"
4638 msgstr "BIBLIOTEKER"
4639
4640 #. type: Plain text
4641 #: debconf-devel.7:422
4642 msgid ""
4643 "Setting things up so you can talk to debconf, and speaking the debconf "
4644 "protocol by hand is a little too much work, so some thin libraries exist to "
4645 "relieve this minor drudgery."
4646 msgstr ""
4647
4648 #. type: Plain text
4649 #: debconf-devel.7:430
4650 msgid ""
4651 "For shell programming, there is the /usr/share/debconf/confmodule library, "
4652 "which you can source at the top of a shell script, and talk to debconf in a "
4653 "fairly natural way, using lower-case versions of the debconf protocol "
4654 "commands, that are prefixed with \"db_\" (ie, \"db_input\" and \"db_go\"). "
4655 "For details, see B<confmodule>(3) ."
4656 msgstr ""
4657
4658 #. type: Plain text
4659 #: debconf-devel.7:434
4660 msgid ""
4661 "Perl programmers can use the B<Debconf::Client::ConfModule>(3pm) perl "
4662 "module, and python programmers can use the debconf python module."
4663 msgstr ""
4664
4665 #. type: Plain text
4666 #: debconf-devel.7:438
4667 msgid ""
4668 "The rest of this manual will use the /usr/share/debconf/confmodule library "
4669 "in example shell scripts. Here is an example config script using that "
4670 "library, that just asks a question:"
4671 msgstr ""
4672
4673 #. type: Plain text
4674 #: debconf-devel.7:445
4675 #, no-wrap
4676 msgid ""
4677 " #!/bin/sh\n"
4678 " set -e\n"
4679 " . /usr/share/debconf/confmodule\n"
4680 " db_set mypackage/reboot-now false\n"
4681 " db_input high mypackage/reboot-now || true\n"
4682 " db_go || true\n"
4683 msgstr ""
4684
4685 #. type: Plain text
4686 #: debconf-devel.7:450
4687 msgid ""
4688 "Notice the uses of \"|| true\" to prevent the script from dying if debconf "
4689 "decides it can't display a question, or the user tries to back up. In those "
4690 "situations, debconf returns a non-zero exit code, and since this shell "
4691 "script is set -e, an untrapped exit code would make it abort."
4692 msgstr ""
4693
4694 #. type: Plain text
4695 #: debconf-devel.7:454
4696 msgid ""
4697 "And here is a corresponding postinst script, that uses the user's answer to "
4698 "the question to see if the system should be rebooted (a rather absurd "
4699 "example..):"
4700 msgstr ""
4701
4702 #. type: Plain text
4703 #: debconf-devel.7:462
4704 #, no-wrap
4705 msgid ""
4706 " #!/bin/sh\n"
4707 " set -e\n"
4708 " . /usr/share/debconf/confmodule\n"
4709 " db_get mypackage/reboot-now\n"
4710 " if [ \"$RET\" = true ]; then\n"
4711 " \tshutdown -r now\n"
4712 " fi\n"
4713 msgstr ""
4714
4715 #. type: Plain text
4716 #: debconf-devel.7:465
4717 msgid ""
4718 "Notice the use of the $RET variable to get at the extended return code from "
4719 "the GET command, which holds the user's answer to the question."
4720 msgstr ""
4721
4722 #. type: SH
4723 #: debconf-devel.7:465
4724 #, no-wrap
4725 msgid "THE POSTINST SCRIPT"
4726 msgstr ""
4727
4728 #. type: Plain text
4729 #: debconf-devel.7:469
4730 msgid ""
4731 "The last section had an example of a postinst script that uses debconf to "
4732 "get the value of a question, and act on it. Here are some things to keep in "
4733 "mind when writing postinst scripts that use debconf:"
4734 msgstr ""
4735
4736 #. type: Plain text
4737 #: debconf-devel.7:473
4738 msgid ""
4739 "Avoid asking questions in the postinst. Instead, the config script should "
4740 "ask questions using debconf, so that pre-configuration will work."
4741 msgstr ""
4742
4743 #. type: Plain text
4744 #: debconf-devel.7:479
4745 msgid ""
4746 "Always source /usr/share/debconf/confmodule at the top of your postinst, "
4747 "even if you won't be running any db_* commands in it. This is required to "
4748 "make sure the config script gets a chance to run (see HACKS for details)."
4749 msgstr ""
4750
4751 #. type: Plain text
4752 #: debconf-devel.7:484
4753 msgid ""
4754 "Avoid outputting anything to stdout in your postinst, since that can confuse "
4755 "debconf, and postinst should not be verbose anyway. Output to stderr is ok, "
4756 "if you must."
4757 msgstr ""
4758
4759 #. type: Plain text
4760 #: debconf-devel.7:489
4761 msgid ""
4762 "If your postinst launches a daemon, make sure you tell debconf to STOP at "
4763 "the end, since debconf can become a little confused about when your postinst "
4764 "is done otherwise."
4765 msgstr ""
4766
4767 #. type: Plain text
4768 #: debconf-devel.7:494
4769 msgid ""
4770 "Make your postinst script accept a first parameter of \"reconfigure\". It "
4771 "can treat it just like \"configure\". This will be used in a later version "
4772 "of debconf to let postinsts know when they are reconfigured."
4773 msgstr ""
4774
4775 #. type: SH
4776 #: debconf-devel.7:494
4777 #, no-wrap
4778 msgid "OTHER SCRIPTS"
4779 msgstr "ANDRE SKRIPTER"
4780
4781 #. type: Plain text
4782 #: debconf-devel.7:502
4783 msgid ""
4784 "Besides the config script and postinst, you can use debconf in any of the "
4785 "other maintainer scripts. Most commonly, you'll be using debconf in your "
4786 "postrm, to call the PURGE command when your package is purged, to clean out "
4787 "its entries in the debconf database. (This is automatically set up for you "
4788 "by B<dh_installdebconf>(1)B<,> by the way.)"
4789 msgstr ""
4790
4791 #. type: Plain text
4792 #: debconf-devel.7:510
4793 msgid ""
4794 "A more involved use of debconf would be if you want to use it in the postrm "
4795 "when your package is purged, to ask a question about deleting something. Or "
4796 "maybe you find you need to use it in the preinst or prerm for some reason. "
4797 "All of these uses will work, though they'll probably involve asking "
4798 "questions and acting on the answers in the same program, rather than "
4799 "separating the two activities as is done in the config and postinst scripts."
4800 msgstr ""
4801
4802 #. type: Plain text
4803 #: debconf-devel.7:515
4804 msgid ""
4805 "Note that if your package's sole use of debconf is in the postrm, you should "
4806 "make your package's postinst source /usr/share/debconf/confmodule, to give "
4807 "debconf a chance to load up your templates file into its database. Then the "
4808 "templates will be available when your package is being purged."
4809 msgstr ""
4810
4811 #. type: Plain text
4812 #: debconf-devel.7:522
4813 msgid ""
4814 "You can also use debconf in other, standalone programs. The issue to watch "
4815 "out for here is that debconf is not intended to be, and must not be used as "
4816 "a registry. This is unix after all, and programs are configured by files in /"
4817 "etc, not by some nebulous debconf database (that is only a cache anyway and "
4818 "might get blown away). So think long and hard before using debconf in a "
4819 "standalone program."
4820 msgstr ""
4821
4822 #. type: Plain text
4823 #: debconf-devel.7:527
4824 msgid ""
4825 "There are times when it can make sense, as in the apt-setup program which "
4826 "uses debconf to prompt the user in a manner consistent with the rest of the "
4827 "debian install process, and immediately acts on their answers to set up "
4828 "apt's sources.list."
4829 msgstr ""
4830
4831 #. type: SH
4832 #: debconf-devel.7:527
4833 #, no-wrap
4834 msgid "LOCALIZATION"
4835 msgstr ""
4836
4837 #. type: Plain text
4838 #: debconf-devel.7:534
4839 msgid ""
4840 "Debconf supports localization of templates files. This is accomplished by "
4841 "adding more fields, with translated text in them. Any of the fields can be "
4842 "translated. For example, you might want to translate the description into "
4843 "Spanish. Just make a field named 'Description-es' that holds the "
4844 "translation. If a translated field is not available, debconf falls back to "
4845 "the normal English field."
4846 msgstr ""
4847
4848 #. type: Plain text
4849 #: debconf-devel.7:540
4850 msgid ""
4851 "Besides the 'Description' field, you should translate the 'Choices' field of "
4852 "a select or multiselect template. Be sure to list the translated choices in "
4853 "the same order as they appear in the main 'Choices' field. You do not need "
4854 "to translate the 'Default' field of a select or multiselect question, and "
4855 "the value of the question will be automatically returned in English."
4856 msgstr ""
4857
4858 #. type: Plain text
4859 #: debconf-devel.7:552
4860 msgid ""
4861 "You will find it easier to manage translations if you keep them in separate "
4862 "files; one file per translation. In the past, the B<debconf-getlang>(1) and "
4863 "B<debconf-mergetemplate>(1) programs were used to manage debian/template.ll "
4864 "files. This has been superseded by the B<po-debconf>(7) package, which lets "
4865 "you deal with debconf translations in .po files, just like any other "
4866 "translations. Your translators will thank you for using this new improved "
4867 "mechanism."
4868 msgstr ""
4869
4870 #. type: Plain text
4871 #: debconf-devel.7:558
4872 msgid ""
4873 "For the details on po-debconf, see its man page. If you're using debhelper, "
4874 "converting to po-debconf is as simple as running the B<debconf-"
4875 "gettextize>(1) command once, and adding a Build-Dependency on po-debconf "
4876 "and on debhelper (E<gt>= 4.1.13)."
4877 msgstr ""
4878
4879 #. type: SH
4880 #: debconf-devel.7:558
4881 #, no-wrap
4882 msgid "PUTTING IT ALL TOGETHER"
4883 msgstr ""
4884
4885 #. type: Plain text
4886 #: debconf-devel.7:568
4887 msgid ""
4888 "So you have a config script, a templates file, a postinst script that uses "
4889 "debconf, and so on. Putting these pieces together into a debian package "
4890 "isn't hard. You can do it by hand, or can use B<dh_installdebconf>(1) which "
4891 "will merge your translated templates, copy the files into the right places "
4892 "for you, and can even generate the call to PURGE that should go in your "
4893 "postrm script. Make sure that your package depends on debconf (E<gt>= 0.5), "
4894 "since earlier versions were not compatible with everything described in this "
4895 "manual. And you're done."
4896 msgstr ""
4897
4898 #. type: Plain text
4899 #: debconf-devel.7:571
4900 msgid ""
4901 "Well, except for testing, debugging, and actually using debconf for more "
4902 "interesting things than asking a few basic questions. For that, read on.."
4903 msgstr ""
4904
4905 #. type: SH
4906 #: debconf-devel.7:571
4907 #, no-wrap
4908 msgid "DEBUGGING"
4909 msgstr ""
4910
4911 #. type: Plain text
4912 #: debconf-devel.7:576
4913 msgid ""
4914 "So you have a package that's supposed to use debconf, but it doesn't quite "
4915 "work. Maybe debconf is just not asking that question you set up. Or maybe "
4916 "something weirder is happening; it spins forever in some kind of loop, or "
4917 "worse. Luckily, debconf has plenty of debugging facilities."
4918 msgstr ""
4919
4920 #. type: Plain text
4921 #: debconf-devel.7:583
4922 msgid ""
4923 "The first thing to reach for is the DEBCONF_DEBUG environment variable. If "
4924 "you set and export DEBCONF_DEBUG=developer, debconf will output to stderr a "
4925 "dump of the debconf protocol as your program runs. It'll look something like "
4926 "this -- the typo is made clear:"
4927 msgstr ""
4928
4929 #. type: Plain text
4930 #: debconf-devel.7:588
4931 #, no-wrap
4932 msgid ""
4933 " debconf (developer): E<lt>-- input high debconf/frontand\n"
4934 " debconf (developer): --E<gt> 10 \"debconf/frontand\" doesn't exist\n"
4935 " debconf (developer): E<lt>-- go\n"
4936 " debconf (developer): --E<gt> 0 ok\n"
4937 msgstr ""
4938
4939 #. type: Plain text
4940 #: debconf-devel.7:592
4941 msgid ""
4942 "It's rather useful to use debconf's readline frontend when you're debugging "
4943 "(in the author's opinion), as the questions don't get in the way, and all "
4944 "the debugging output is easily preserved and logged."
4945 msgstr ""
4946
4947 #. type: TP
4948 #: debconf-devel.7:593
4949 #, no-wrap
4950 msgid "B<DEBCONF_C_VALUES>"
4951 msgstr ""
4952
4953 #. type: Plain text
4954 #: debconf-devel.7:599
4955 msgid ""
4956 "If this environment variable is set to 'true', the frontend will display the "
4957 "values in Choices-C fields (if present) of select and multiselect templates "
4958 "rather than the descriptive values."
4959 msgstr ""
4960
4961 #. type: TP
4962 #: debconf-devel.7:600
4963 #, no-wrap
4964 msgid "B<debconf-communicate>"
4965 msgstr ""
4966
4967 #. type: Plain text
4968 #: debconf-devel.7:606
4969 msgid ""
4970 "Another useful tool is the B<debconf-communicate>(1) program. Fire it up "
4971 "and you can speak the raw debconf protocol to debconf, interactively. This "
4972 "is a great way to try stuff out on the fly."
4973 msgstr ""
4974
4975 #. type: TP
4976 #: debconf-devel.7:606
4977 #, no-wrap
4978 msgid "B<debconf-show>"
4979 msgstr ""
4980
4981 #. type: Plain text
4982 #: debconf-devel.7:612
4983 msgid ""
4984 "If a user is reporting a problem, B<debconf-show>(1) can be used to dump "
4985 "out all the questions owned by your package, displaying their values and "
4986 "whether the user has seen them."
4987 msgstr ""
4988
4989 #. type: TP
4990 #: debconf-devel.7:612
4991 #, no-wrap
4992 msgid "B<.debconfrc>"
4993 msgstr ""
4994
4995 #. type: Plain text
4996 #: debconf-devel.7:623
4997 msgid ""
4998 "To avoid the often tedious build/install/debug cycle, it can be useful to "
4999 "load up your templates with B<debconf-loadtemplate>(1) and run your config "
5000 "script by hand with the B<debconf>(1) command. However, you still have to "
5001 "do that as root, right? Not so good. And ideally you'd like to be able to "
5002 "see what a fresh installation of your package looks like, with a clean "
5003 "debconf database."
5004 msgstr ""
5005
5006 #. type: Plain text
5007 #: debconf-devel.7:629
5008 msgid ""
5009 "It turns out that if you set up a ~/.debconfrc file for a normal user, "
5010 "pointing at a personal config.dat and template.dat for the user, you can "
5011 "load up templates and run config scripts all you like, without any root "
5012 "access. If you want to start over with a clean database, just blow away the "
5013 "*.dat files."
5014 msgstr ""
5015
5016 #. type: Plain text
5017 #: debconf-devel.7:634
5018 msgid ""
5019 "For details about setting this up, see B<debconf.conf>(5)B<,> and note that /"
5020 "etc/debconf.conf makes a good template for a personal ~/.debconfrc file."
5021 msgstr ""
5022
5023 #. type: SH
5024 #: debconf-devel.7:635
5025 #, no-wrap
5026 msgid "ADVANCED PROGRAMMING WITH DEBCONF"
5027 msgstr "AVANCERET PROGRAMMERING MED DEBCONF"
5028
5029 #. type: SS
5030 #: debconf-devel.7:636
5031 #, no-wrap
5032 msgid "Config file handling"
5033 msgstr ""
5034
5035 #. type: Plain text
5036 #: debconf-devel.7:643
5037 msgid ""
5038 "Many of you seem to want to use debconf to help manage config files that are "
5039 "part of your package. Perhaps there is no good default to ship in a "
5040 "conffile, and so you want to use debconf to prompt the user, and write out a "
5041 "config file based on their answers. That seems easy enough to do, but then "
5042 "you consider upgrades, and what to do when someone modifies the config file "
5043 "you generate, and dpkg-reconfigure, and ..."
5044 msgstr ""
5045
5046 #. type: Plain text
5047 #: debconf-devel.7:651
5048 msgid ""
5049 "There are a lot of ways to do this, and most of them are wrong, and will "
5050 "often earn you annoyed bug reports. Here is one right way to do it. It "
5051 "assumes that your config file is really just a series of shell variables "
5052 "being set, with comments in between, and so you can just source the file to "
5053 "\"load\" it. If you have a more complicated format, reading (and writing) "
5054 "it becomes a bit trickier."
5055 msgstr ""
5056
5057 #. type: Plain text
5058 #: debconf-devel.7:653
5059 msgid "Your config script will look something like this:"
5060 msgstr ""
5061
5062 #. type: Plain text
5063 #: debconf-devel.7:658 debconf-devel.7:680
5064 #, no-wrap
5065 msgid ""
5066 " #!/bin/sh\n"
5067 " CONFIGFILE=/etc/foo.conf\n"
5068 " set -e\n"
5069 " . /usr/share/debconf/confmodule\n"
5070 msgstr ""
5071
5072 #. type: Plain text
5073 #: debconf-devel.7:662
5074 #, no-wrap
5075 msgid ""
5076 " # Load config file, if it exists.\n"
5077 " if [ -e $CONFIGFILE ]; then\n"
5078 " \t. $CONFIGFILE || true\n"
5079 msgstr ""
5080
5081 #. type: Plain text
5082 #: debconf-devel.7:668
5083 #, no-wrap
5084 msgid ""
5085 " \t# Store values from config file into\n"
5086 " \t# debconf db.\n"
5087 " \tdb_set mypackage/foo \"$FOO\"\n"
5088 " \tdb_set mypackage/bar \"$BAR\"\n"
5089 " fi\n"
5090 msgstr ""
5091
5092 #. type: Plain text
5093 #: debconf-devel.7:673
5094 #, no-wrap
5095 msgid ""
5096 " # Ask questions.\n"
5097 " db_input medium mypackage/foo || true\n"
5098 " db_input medium mypackage/bar || true\n"
5099 " db_go || true\n"
5100 msgstr ""
5101 " # Stil spørgsmål.\n"
5102 " db_input medium mypackage/foo || true\n"
5103 " db_input medium mypackage/bar || true\n"
5104 " db_go || true\n"
5105
5106 #. type: Plain text
5107 #: debconf-devel.7:675
5108 msgid "And the postinst will look something like this:"
5109 msgstr ""
5110
5111 #. type: Plain text
5112 #: debconf-devel.7:689
5113 #, no-wrap
5114 msgid ""
5115 " # Generate config file, if it doesn't exist.\n"
5116 " # An alternative is to copy in a template\n"
5117 " # file from elsewhere.\n"
5118 " if [ ! -e $CONFIGFILE ]; then\n"
5119 " \techo \"# Config file for my package\" E<gt> $CONFIGFILE\n"
5120 " \techo \"FOO=\" E<gt>E<gt> $CONFIGFILE\n"
5121 " \techo \"BAR=\" E<gt>E<gt> $CONFIGFILE\n"
5122 " fi\n"
5123 msgstr ""
5124
5125 #. type: Plain text
5126 #: debconf-devel.7:699
5127 #, no-wrap
5128 msgid ""
5129 " # Substitute in the values from the debconf db.\n"
5130 " # There are obvious optimizations possible here.\n"
5131 " # The cp before the sed ensures we do not mess up\n"
5132 " # the config file's ownership and permissions.\n"
5133 " db_get mypackage/foo\n"
5134 " FOO=\"$RET\"\n"
5135 " db_get mypackage/bar\n"
5136 " BAR=\"$RET\"\n"
5137 " cp -a -f $CONFIGFILE $CONFIGFILE.tmp\n"
5138 msgstr ""
5139
5140 #. type: Plain text
5141 #: debconf-devel.7:706
5142 #, no-wrap
5143 msgid ""
5144 " # If the admin deleted or commented some variables but then set\n"
5145 " # them via debconf, (re-)add them to the conffile.\n"
5146 " test -z \"$FOO\" || grep -Eq '^ *FOO=' $CONFIGFILE || \\e\n"
5147 " \techo \"FOO=\" E<gt>E<gt> $CONFIGFILE\n"
5148 " test -z \"$BAR\" || grep -Eq '^ *BAR=' $CONFIGFILE || \\e\n"
5149 " \techo \"BAR=\" E<gt>E<gt> $CONFIGFILE\n"
5150 msgstr ""
5151
5152 #. type: Plain text
5153 #: debconf-devel.7:711
5154 #, no-wrap
5155 msgid ""
5156 " sed -e \"s/^ *FOO=.*/FOO=\\e\"$FOO\\e\"/\" \\e\n"
5157 " -e \"s/^ *BAR=.*/BAR=\\e\"$BAR\\e\"/\" \\e\n"
5158 " E<lt> $CONFIGFILE E<gt> $CONFIGFILE.tmp\n"
5159 " mv -f $CONFIGFILE.tmp $CONFIGFILE\n"
5160 msgstr ""
5161
5162 #. type: Plain text
5163 #: debconf-devel.7:719
5164 msgid ""
5165 "Consider how these two scripts handle all the cases. On fresh installs the "
5166 "questions are asked by the config script, and a new config file generated by "
5167 "the postinst. On upgrades and reconfigures, the config file is read in, and "
5168 "the values in it are used to change the values in the debconf database, so "
5169 "the admin's manual changes are not lost. The questions are asked again (and "
5170 "may or may not be displayed). Then the postinst substitutes the values back "
5171 "into the config file, leaving the rest of it unchanged."
5172 msgstr ""
5173
5174 #. type: SS
5175 #: debconf-devel.7:719
5176 #, no-wrap
5177 msgid "Letting the user back up"
5178 msgstr ""
5179
5180 #. type: Plain text
5181 #: debconf-devel.7:725
5182 msgid ""
5183 "Few things are more frustrating when using a system like debconf than being "
5184 "asked a question, and answering it, then moving on to another screen with a "
5185 "new question on it, and realizing that hey, you made a mistake, with that "
5186 "last question, and you want to go back to it, and discovering that you can't."
5187 msgstr ""
5188
5189 #. type: Plain text
5190 #: debconf-devel.7:731
5191 msgid ""
5192 "Since debconf is driven by your config script, it can't jump back to a "
5193 "previous question on its own but with a little help from you, it can "
5194 "accomplish this feat. The first step is to make your config script let "
5195 "debconf know it is capable of handling the user pressing a back button. You "
5196 "use the CAPB command to do this, passing backup as a parameter."
5197 msgstr ""
5198
5199 #. type: Plain text
5200 #: debconf-devel.7:735
5201 msgid ""
5202 "Then after each GO command, you must test to see if the user asked to back "
5203 "up (debconf returns a code of 30), and if so jump back to the previous "
5204 "question."
5205 msgstr ""
5206
5207 #. type: Plain text
5208 #: debconf-devel.7:741
5209 msgid ""
5210 "There are several ways to write the control structures of your program so it "
5211 "can jump back to previous questions when necessary. You can write goto-laden "
5212 "spaghetti code. Or you can create several functions and use recursion. But "
5213 "perhaps the cleanest and easiest way is to construct a state machine. Here "
5214 "is a skeleton of a state machine that you can fill out and expand."
5215 msgstr ""
5216
5217 #. type: Plain text
5218 #: debconf-devel.7:746
5219 #, no-wrap
5220 msgid ""
5221 " #!/bin/sh\n"
5222 " set -e\n"
5223 " . /usr/share/debconf/confmodule\n"
5224 " db_capb backup\n"
5225 msgstr ""
5226
5227 #. type: Plain text
5228 #: debconf-devel.7:773
5229 #, no-wrap
5230 msgid ""
5231 " STATE=1\n"
5232 " while true; do\n"
5233 " \tcase \"$STATE\" in\n"
5234 " \t1)\n"
5235 " \t\t# Two unrelated questions.\n"
5236 " \t\tdb_input medium my/question || true\n"
5237 " \t\tdb_input medium my/other_question || true\n"
5238 " \t;;\n"
5239 " \t2)\n"
5240 " \t\t# Only ask this question if the\n"
5241 " \t\t# first question was answered in\n"
5242 " \t\t# the affirmative.\n"
5243 " \tdb_get my/question\n"
5244 " \t\tif [ \"$RET\" = \"true\" ]; then\n"
5245 " \t\t\tdb_input medium my/dep_question || true\n"
5246 " \t\tfi\n"
5247 " \t;;\n"
5248 " \t*)\n"
5249 " \t\t# The default case catches when $STATE is greater than the\n"
5250 " \t\t# last implemented state, and breaks out of the loop. This\n"
5251 " \t\t# requires that states be numbered consecutively from 1\n"
5252 " \t\t# with no gaps, as the default case will also be entered\n"
5253 " \t\t# if there is a break in the numbering\n"
5254 " \t\tbreak # exits the enclosing \"while\" loop\n"
5255 " \t;;\n"
5256 " \tesac\n"
5257 msgstr ""
5258
5259 #. type: Plain text
5260 #: debconf-devel.7:780
5261 #, no-wrap
5262 msgid ""
5263 " \tif db_go; then\n"
5264 " \t\tSTATE=$((STATE + 1))\n"
5265 " \telse\n"
5266 " \t\tSTATE=$((STATE - 1))\n"
5267 " \tfi\n"
5268 " done\n"
5269 msgstr ""
5270
5271 #. type: Plain text
5272 #: debconf-devel.7:791
5273 #, no-wrap
5274 msgid ""
5275 " if [ $STATE -eq 0 ]; then\n"
5276 " \t# The user has asked to back up from the first\n"
5277 " \t# question. This case is problematical. Regular\n"
5278 " \t# dpkg and apt package installation isn't capable\n"
5279 " \t# of backing up questions between packages as this\n"
5280 " \t# is written, so this will exit leaving the package\n"
5281 " \t# unconfigured - probably the best way to handle\n"
5282 " \t# the situation.\n"
5283 " \texit 10\n"
5284 " fi\n"
5285 msgstr ""
5286
5287 #. type: Plain text
5288 #: debconf-devel.7:796
5289 msgid ""
5290 "Note that if all your config script does is ask a few unrelated questions, "
5291 "then there is no need for the state machine. Just ask them all, and GO; "
5292 "debconf will do its best to present them all in one screen, and the user "
5293 "won't need to back up."
5294 msgstr ""
5295
5296 #. type: SS
5297 #: debconf-devel.7:796
5298 #, no-wrap
5299 msgid "Preventing infinite loops"
5300 msgstr ""
5301
5302 #. type: Plain text
5303 #: debconf-devel.7:800
5304 msgid ""
5305 "One gotcha with debconf comes up if you have a loop in your config script. "
5306 "Suppose you're asking for input and validating it, and looping if it's not "
5307 "valid:"
5308 msgstr ""
5309
5310 #. type: Plain text
5311 #: debconf-devel.7:810
5312 #, no-wrap
5313 msgid ""
5314 " ok=''\n"
5315 " do while [ ! \"$ok\" ];\n"
5316 " \tdb_input low foo/bar || true\n"
5317 " \tdb_go || true\n"
5318 " \tdb_get foo/bar\n"
5319 " \tif [ \"$RET\" ]; then\n"
5320 " \t\tok=1\n"
5321 " \tfi\n"
5322 " done\n"
5323 msgstr ""
5324
5325 #. type: Plain text
5326 #: debconf-devel.7:817
5327 msgid ""
5328 "This looks ok at first glance. But consider what happens if the value of foo/"
5329 "bar is \"\" when this loop is entered, and the user has their priority set "
5330 "high, or is using a non-interactive frontend, and so they are not really "
5331 "asked for input. The value of foo/bar is not changed by the db_input, and so "
5332 "it fails the test and loops. And loops ..."
5333 msgstr ""
5334
5335 #. type: Plain text
5336 #: debconf-devel.7:823
5337 msgid ""
5338 "One fix for this is to make sure that before the loop is entered, the value "
5339 "of foo/bar is set to something that will pass the test in the loop. So for "
5340 "example if the default value of foo/bar is \"1\", then you could RESET foo/"
5341 "bar just before entering the loop."
5342 msgstr ""
5343
5344 #. type: Plain text
5345 #: debconf-devel.7:827
5346 msgid ""
5347 "Another fix is to check the return code of the INPUT command. If it is 30 "
5348 "then the user is not being shown the question you asked them, and you should "
5349 "break out of the loop."
5350 msgstr ""
5351
5352 #. type: SS
5353 #: debconf-devel.7:827
5354 #, no-wrap
5355 msgid "Choosing among related packages"
5356 msgstr ""
5357
5358 #. type: Plain text
5359 #: debconf-devel.7:832
5360 msgid ""
5361 "Sometimes a set of related packages can be installed, and you want to prompt "
5362 "the user which of the set should be used by default. Examples of such sets "
5363 "are window managers, or ispell dictionary files."
5364 msgstr ""
5365
5366 #. type: Plain text
5367 #: debconf-devel.7:838
5368 msgid ""
5369 "While it would be possible for each package in the set to simply prompt, "
5370 "\"Should this package be default?\", this leads to a lot of repetitive "
5371 "questions if several of the packages are installed. It's possible with "
5372 "debconf to present a list of all the packages in the set and allow the user "
5373 "to choose between them. Here's how."
5374 msgstr ""
5375
5376 #. type: Plain text
5377 #: debconf-devel.7:841
5378 msgid ""
5379 "Make all the packages in the set use a shared template. Something like this:"
5380 msgstr ""
5381
5382 #. type: Plain text
5383 #: debconf-devel.7:848
5384 #, no-wrap
5385 msgid ""
5386 " Template: shared/window-manager\n"
5387 " Type: select\n"
5388 " Choices: ${choices}\n"
5389 " Description: Select the default window manager.\n"
5390 " Select the window manager that will be started by\n"
5391 " default when X starts.\n"
5392 msgstr ""
5393
5394 #. type: Plain text
5395 #: debconf-devel.7:851
5396 msgid ""
5397 "Each package should include a copy of the template. Then it should include "
5398 "some code like this in its config script:"
5399 msgstr ""
5400
5401 #. type: Plain text
5402 #: debconf-devel.7:856
5403 #, no-wrap
5404 msgid ""
5405 " db_metaget shared/window-manager owners\n"
5406 " OWNERS=$RET\n"
5407 " db_metaget shared/window-manager choices\n"
5408 " CHOICES=$RET\n"
5409 msgstr ""
5410
5411 #. type: Plain text
5412 #: debconf-devel.7:861
5413 #, no-wrap
5414 msgid ""
5415 " if [ \"$OWNERS\" != \"$CHOICES\" ]; then\n"
5416 " \tdb_subst shared/window-manager choices $OWNERS\n"
5417 " \tdb_fset shared/window-manager seen false\n"
5418 " fi\n"
5419 msgstr ""
5420
5421 #. type: Plain text
5422 #: debconf-devel.7:864
5423 #, no-wrap
5424 msgid ""
5425 " db_input medium shared/window-manager || true\n"
5426 " db_go || true\n"
5427 msgstr ""
5428
5429 #. type: Plain text
5430 #: debconf-devel.7:872
5431 msgid ""
5432 "A bit of an explanation is called for. By the time your config script runs, "
5433 "debconf has already read in all the templates for the packages that are "
5434 "being installed. Since the set of packages share a question, debconf records "
5435 "that fact in the owners field. By a strange coincidence, the format of the "
5436 "owners field is the same as that of the choices field (a comma and space "
5437 "delimited list of values)."
5438 msgstr ""
5439
5440 #. type: Plain text
5441 #: debconf-devel.7:877
5442 msgid ""
5443 "The METAGET command can be used to get the list of owners and the list of "
5444 "choices. If they are different, then a new package has been installed. So "
5445 "use the SUBST command to change the list of choices to be the same as the "
5446 "list of owners, and ask the question."
5447 msgstr ""
5448
5449 #. type: Plain text
5450 #: debconf-devel.7:881
5451 msgid ""
5452 "When a package is removed, you probably want to see if that package is the "
5453 "currently selected choice, and if so, prompt the user to select a different "
5454 "package to replace it."
5455 msgstr ""
5456
5457 #. type: Plain text
5458 #: debconf-devel.7:885
5459 msgid ""
5460 "This can be accomplished by adding something like this to the prerm scripts "
5461 "of all related packages (replacing E<lt>packageE<gt> with the package name):"
5462 msgstr ""
5463
5464 #. type: Plain text
5465 #: debconf-devel.7:890
5466 #, no-wrap
5467 msgid ""
5468 " if [ -e /usr/share/debconf/confmodule ]; then\n"
5469 " \t. /usr/share/debconf/confmodule\n"
5470 " \t# I no longer claim this question.\n"
5471 " \tdb_unregister shared/window-manager\n"
5472 msgstr ""
5473
5474 #. type: Plain text
5475 #: debconf-devel.7:901
5476 #, no-wrap
5477 msgid ""
5478 " \t# See if the shared question still exists.\n"
5479 " \tif db_get shared/window-manager; then\n"
5480 " \t\tdb_metaget shared/window-manager owners\n"
5481 " \t\tdb_subst shared/window-manager choices $RET\n"
5482 " \t\tdb_metaget shared/window-manager value\n"
5483 " \t\tif [ \"E<lt>packageE<gt>\" = \"$RET\" ] ; then\n"
5484 " \t\t\tdb_fset shared/window-manager seen false\n"
5485 " \t\t\tdb_input high shared/window-manager || true\n"
5486 " \t\t\tdb_go || true\n"
5487 " \t\tfi\n"
5488 msgstr ""
5489
5490 #. type: Plain text
5491 #: debconf-devel.7:906
5492 #, no-wrap
5493 msgid ""
5494 " \t\t# Now do whatever the postinst script did\n"
5495 " \t\t# to update the window manager symlink.\n"
5496 " \tfi\n"
5497 " fi\n"
5498 msgstr ""
5499
5500 #. type: SH
5501 #: debconf-devel.7:906
5502 #, no-wrap
5503 msgid "HACKS"
5504 msgstr ""
5505
5506 #. type: Plain text
5507 #: debconf-devel.7:909
5508 msgid ""
5509 "Debconf is currently not fully integrated into dpkg (but I want to change "
5510 "this in the future), and so some messy hacks are currently called for."
5511 msgstr ""
5512
5513 #. type: Plain text
5514 #: debconf-devel.7:920
5515 msgid ""
5516 "The worst of these involves getting the config script to run. The way that "
5517 "works now is the config script will be run when the package is pre-"
5518 "configured. Then, when the postinst script runs, it starts up debconf again. "
5519 "Debconf notices it is being used by the postinst script, and so it goes off "
5520 "and runs the config script. This can only work if your postinst loads up one "
5521 "of the debconf libraries though, so postinsts always have to take care to do "
5522 "that. We hope to address this later by adding explicit support to dpkg for "
5523 "debconf. The B<debconf>(1) program is a step in this direction."
5524 msgstr ""
5525
5526 #. type: Plain text
5527 #: debconf-devel.7:931
5528 msgid ""
5529 "A related hack is getting debconf running when a config script, postinst, or "
5530 "other program that uses it starts up. After all, they expect to be able to "
5531 "talk to debconf right away. The way this is accomplished for now is that "
5532 "when such a script loads a debconf library (like /usr/share/debconf/"
5533 "confmodule), and debconf is not already running, it is started up, and a new "
5534 "copy of the script is re-execed. The only noticeable result is that you need "
5535 "to put the line that loads a debconf library at the very top of the script, "
5536 "or weird things will happen. We hope to address this later by changing how "
5537 "debconf is invoked, and turning it into something more like a transient "
5538 "daemon."
5539 msgstr ""
5540
5541 #. type: Plain text
5542 #: debconf-devel.7:942
5543 msgid ""
5544 "It's rather hackish how debconf figures out what templates files to load, "
5545 "and when it loads them. When the config, preinst, and postinst scripts "
5546 "invoke debconf, it will automatically figure out where the templates file "
5547 "is, and load it. Standalone programs that use debconf will cause debconf to "
5548 "look for templates files in /usr/share/debconf/templates/progname."
5549 "templates. And if a postrm wants to use debconf at purge time, the "
5550 "templates won't be available unless debconf had a chance to load them in its "
5551 "postinst. This is messy, but rather unavoidable. In the future some of these "
5552 "programs may be able to use debconf-loadtemplate by hand though."
5553 msgstr ""
5554
5555 #. type: Plain text
5556 #: debconf-devel.7:950
5557 msgid ""
5558 "/usr/share/debconf/confmodule's historic behavior of playing with file "
5559 "descriptors and setting up a fd #3 that talks to debconf, can cause all "
5560 "sorts of trouble when a postinst runs a daemon, since the daemon ends up "
5561 "talking to debconf, and debconf can't figure out when the script terminates. "
5562 "The STOP command can work around this. In the future, we are considering "
5563 "making debconf communication happen over a socket or some other mechanism "
5564 "than stdio."
5565 msgstr ""
5566
5567 #. type: Plain text
5568 #: debconf-devel.7:958
5569 msgid ""
5570 "Debconf sets DEBCONF_RECONFIGURE=1 before running postinst scripts, so a "
5571 "postinst script that needs to avoid some expensive operation when "
5572 "reconfigured can look at that variable. This is a hack because the right "
5573 "thing would be to pass $1 = \"reconfigure\", but doing so without breaking "
5574 "all the postinsts that use debconf is difficult. The migration plan away "
5575 "from this hack is to encourage people to write postinsts that accept "
5576 "\"reconfigure\", and once they all do, begin passing that parameter."
5577 msgstr ""
5578
5579 #. type: Plain text
5580 #: debconf-devel.7:961
5581 msgid "B<debconf>(7) is the debconf user's guide."
5582 msgstr "B<debconf>(7) er brugervejledning for debconf."
5583
5584 #. type: Plain text
5585 #: debconf-devel.7:964
5586 msgid ""
5587 "The debconf specification in debian policy is the canonical definition of "
5588 "the debconf protocol. /usr/share/doc/debian-policy/debconf_specification.txt."
5589 "gz"
5590 msgstr ""
5591
5592 #. type: Plain text
5593 #: debconf-devel.7:968
5594 msgid ""
5595 "B<debconf.conf>(5) has much useful information, including some info about "
5596 "the backend database."
5597 msgstr ""
5598 "B<debconf.conf>(5) har mange brugbare informationer, inklusiv lidt "
5599 "information om den bagvedliggende database."