Initial import from FreeBSD RELENG_4:
[dragonfly.git] / release / sysinstall / menus.c
1 /*
2  * The new sysinstall program.
3  *
4  * This is probably the last program in the `sysinstall' line - the next
5  * generation being essentially a complete rewrite.
6  *
7  * Copyright (c) 1995
8  *      Jordan Hubbard.  All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  * 1. Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer,
15  *    verbatim and that no modifications are made prior to this
16  *    point in the file.
17  * 2. Redistributions in binary form must reproduce the above copyright
18  *    notice, this list of conditions and the following disclaimer in the
19  *    documentation and/or other materials provided with the distribution.
20  *
21  * THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND
22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED.  IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27  * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31  * SUCH DAMAGE.
32  *
33  */
34
35 #ifndef lint
36 static const char rcsid[] =
37   "$FreeBSD: src/release/sysinstall/menus.c,v 1.252.2.67 2003/05/15 02:05:31 murray Exp $";
38 #endif
39
40 #include "sysinstall.h"
41
42 /* Miscellaneous work routines for menus */
43 static int
44 setSrc(dialogMenuItem *self)
45 {
46     Dists |= DIST_SRC;
47     SrcDists = DIST_SRC_ALL;
48     CRYPTODists |= (DIST_CRYPTO_SCRYPTO | DIST_CRYPTO_SSECURE |
49         DIST_CRYPTO_SKERBEROS4 | DIST_CRYPTO_SKERBEROS5);
50     return DITEM_SUCCESS | DITEM_REDRAW;
51 }
52
53 static int
54 clearSrc(dialogMenuItem *self)
55 {
56     Dists &= ~DIST_SRC;
57     SrcDists = 0;
58     CRYPTODists &= ~(DIST_CRYPTO_SCRYPTO | DIST_CRYPTO_SSECURE |
59         DIST_CRYPTO_SKERBEROS4 | DIST_CRYPTO_SKERBEROS5);
60     return DITEM_SUCCESS | DITEM_REDRAW;
61 }
62
63 static int
64 setX11Misc(dialogMenuItem *self)
65 {
66     XF86Dists |= DIST_XF86_MISC_ALL;
67     Dists |= DIST_XF86;
68     return DITEM_SUCCESS | DITEM_REDRAW;
69 }
70
71 static int
72 clearX11Misc(dialogMenuItem *self)
73 {
74     XF86Dists &= ~DIST_XF86_MISC_ALL;
75     if (!XF86ServerDists && !XF86FontDists)
76         Dists &= ~DIST_XF86;
77     return DITEM_SUCCESS | DITEM_REDRAW;
78 }
79
80 static int
81 setX11Servers(dialogMenuItem *self)
82 {
83     XF86Dists |= DIST_XF86_SERVER;
84     XF86ServerDists = DIST_XF86_SERVER_ALL;
85     return DITEM_SUCCESS | DITEM_REDRAW;
86 }
87
88 static int
89 clearX11Servers(dialogMenuItem *self)
90 {
91     XF86Dists &= ~DIST_XF86_SERVER;
92     XF86ServerDists = 0;
93     return DITEM_SUCCESS | DITEM_REDRAW;
94 }
95
96 static int
97 setX11Fonts(dialogMenuItem *self)
98 {
99     XF86Dists |= DIST_XF86_FONTS;
100     XF86FontDists = DIST_XF86_FONTS_ALL;
101     return DITEM_SUCCESS | DITEM_REDRAW;
102 }
103
104 static int
105 clearX11Fonts(dialogMenuItem *self)
106 {
107     XF86Dists &= ~DIST_XF86_FONTS;
108     XF86FontDists = 0;
109     return DITEM_SUCCESS | DITEM_REDRAW;
110 }
111
112 #define _IS_SET(dist, set) (((dist) & (set)) == (set))
113
114 #define IS_DEVELOPER(dist, extra) (_IS_SET(dist, _DIST_DEVELOPER | extra) || \
115         _IS_SET(dist, _DIST_DEVELOPER | extra))
116
117 #define IS_USER(dist, extra) (_IS_SET(dist, _DIST_USER | extra) || \
118         _IS_SET(dist, _DIST_USER | extra))
119
120 static int
121 checkDistDeveloper(dialogMenuItem *self)
122 {
123     return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_ALL);
124 }
125
126 static int
127 checkDistXDeveloper(dialogMenuItem *self)
128 {
129     return IS_DEVELOPER(Dists, DIST_XF86) && _IS_SET(SrcDists, DIST_SRC_ALL);
130 }
131
132 static int
133 checkDistKernDeveloper(dialogMenuItem *self)
134 {
135     return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_SYS);
136 }
137
138 static int
139 checkDistXKernDeveloper(dialogMenuItem *self)
140 {
141     return IS_DEVELOPER(Dists, DIST_XF86) && _IS_SET(SrcDists, DIST_SRC_SYS);
142 }
143
144 static int
145 checkDistUser(dialogMenuItem *self)
146 {
147     return IS_USER(Dists, 0);
148 }
149
150 static int
151 checkDistXUser(dialogMenuItem *self)
152 {
153     return IS_USER(Dists, DIST_XF86);
154 }
155
156 static int
157 checkDistMinimum(dialogMenuItem *self)
158 {
159     return Dists == (DIST_BIN | DIST_CRYPTO);
160 }
161
162 static int
163 checkDistEverything(dialogMenuItem *self)
164 {
165     return Dists == DIST_ALL && CRYPTODists == DIST_CRYPTO_ALL && \
166         _IS_SET(SrcDists, DIST_SRC_ALL) && \
167         _IS_SET(XF86Dists, DIST_XF86_ALL) && \
168         _IS_SET(XF86ServerDists, DIST_XF86_SERVER_ALL) && \
169         _IS_SET(XF86FontDists, DIST_XF86_FONTS_ALL);
170 }
171
172 static int
173 srcFlagCheck(dialogMenuItem *item)
174 {
175     return SrcDists;
176 }
177
178 static int
179 x11FlagCheck(dialogMenuItem *item)
180 {
181     return Dists & DIST_XF86;
182 }
183
184 static int
185 checkTrue(dialogMenuItem *item)
186 {
187     return TRUE;
188 }
189
190 /* All the system menus go here.
191  *
192  * Hardcoded things like version number strings will disappear from
193  * these menus just as soon as I add the code for doing inline variable
194  * expansion.
195  */
196
197 DMenu MenuIndex = {
198     DMENU_NORMAL_TYPE,
199     "Glossary of functions",
200     "This menu contains an alphabetized index of the top level functions in\n"
201     "this program (sysinstall).  Invoke an option by pressing [SPACE] or\n"
202     "[ENTER].  To exit, use [TAB] to move to the Cancel button.",
203     "Use PageUp or PageDown to move through this menu faster!",
204     NULL,
205     { { " Anon FTP",            "Configure anonymous FTP logins.",      dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
206       { " Commit",              "Commit any pending actions (dangerous!)", NULL, installCustomCommit },
207       { " Console settings",    "Customize system console behavior.",   NULL, dmenuSubmenu, NULL, &MenuSyscons },
208       { " Configure",           "The system configuration menu.",       NULL, dmenuSubmenu, NULL, &MenuConfigure },
209       { " Defaults, Load",      "Load default settings.",               NULL, dispatch_load_floppy },
210       { " Device, Mouse",       "The mouse configuration menu.",        NULL, dmenuSubmenu, NULL, &MenuMouse },
211       { " Disklabel",           "The disk Label editor",                NULL, diskLabelEditor },
212       { " Dists, All",          "Root of the distribution tree.",       NULL, dmenuSubmenu, NULL, &MenuDistributions },
213       { " Dists, Basic",                "Basic FreeBSD distribution menu.",     NULL, dmenuSubmenu, NULL, &MenuSubDistributions },
214       { " Dists, Developer",    "Select developer's distribution.",     checkDistDeveloper, distSetDeveloper },
215       { " Dists, Src",          "Src distribution menu.",               NULL, dmenuSubmenu, NULL, &MenuSrcDistributions },
216       { " Dists, X Developer",  "Select X developer's distribution.",   checkDistXDeveloper, distSetXDeveloper },
217       { " Dists, Kern Developer", "Select kernel developer's distribution.", checkDistKernDeveloper, distSetKernDeveloper },
218       { " Dists, User",         "Select average user distribution.",    checkDistUser, distSetUser },
219       { " Dists, X User",       "Select average X user distribution.",  checkDistXUser, distSetXUser },
220       { " Distributions, Adding", "Installing additional distribution sets", NULL, distExtractAll },
221       { " Distributions, XFree86","XFree86 distribution menu.",         NULL, distSetXF86 },
222       { " Documentation",       "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
223       { " Doc, README",         "The distribution README file.",        NULL, dmenuDisplayFile, NULL, "README" },
224       { " Doc, Errata",         "The distribution errata.",     NULL, dmenuDisplayFile, NULL, "ERRATA" },
225       { " Doc, Hardware",       "The distribution hardware guide.",     NULL, dmenuDisplayFile, NULL, "HARDWARE" },
226       { " Doc, Install",                "The distribution installation guide.", NULL, dmenuDisplayFile, NULL, "INSTALL" },
227       { " Doc, Copyright",      "The distribution copyright notices.",  NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
228       { " Doc, Release",                "The distribution release notes.",      NULL, dmenuDisplayFile, NULL, "RELNOTES" },
229       { " Doc, HTML",           "The HTML documentation menu.",         NULL, docBrowser },
230       { " Dump Vars",           "(debugging) dump out internal variables.", NULL, dump_variables },
231       { " Emergency shell",     "Start an Emergency Holographic shell.",        NULL, installFixitHoloShell },
232 #ifdef __i386__
233       { " Fdisk",               "The disk Partition Editor",            NULL, diskPartitionEditor },
234 #endif
235       { " Fixit",               "Repair mode with CDROM or fixit floppy.",      NULL, dmenuSubmenu, NULL, &MenuFixit },
236       { " FTP sites",           "The FTP mirror site listing.",         NULL, dmenuSubmenu, NULL, &MenuMediaFTP },
237       { " Gateway",             "Set flag to route packets between interfaces.", dmenuVarCheck, dmenuToggleVariable, NULL, "gateway=YES" },
238       { " HTML Docs",           "The HTML documentation menu",          NULL, docBrowser },
239       { " inetd Configuration", "Configure inetd and simple internet services.",        dmenuVarCheck, configInetd, NULL, "inetd_enable=YES" },
240       { " Install, Standard",   "A standard system installation.",      NULL, installStandard },
241       { " Install, Express",    "An express system installation.",      NULL, installExpress },
242       { " Install, Custom",     "The custom installation menu",         NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
243       { " Label",               "The disk Label editor",                NULL, diskLabelEditor },
244       { " Media",               "Top level media selection menu.",      NULL, dmenuSubmenu, NULL, &MenuMedia },
245       { " Media, Tape",         "Select tape installation media.",      NULL, mediaSetTape },
246       { " Media, NFS",          "Select NFS installation media.",       NULL, mediaSetNFS },
247       { " Media, Floppy",       "Select floppy installation media.",    NULL, mediaSetFloppy },
248       { " Media, CDROM/DVD",    "Select CDROM/DVD installation media.", NULL, mediaSetCDROM },
249       { " Media, DOS",          "Select DOS installation media.",       NULL, mediaSetDOS },
250       { " Media, UFS",          "Select UFS installation media.",       NULL, mediaSetUFS },
251       { " Media, FTP",          "Select FTP installation media.",       NULL, mediaSetFTP },
252       { " Media, FTP Passive",  "Select passive FTP installation media.", NULL, mediaSetFTPPassive },
253       { " Media, HTTP",         "Select FTP via HTTP proxy installation media.", NULL, mediaSetHTTP },
254       { " Network Interfaces",  "Configure network interfaces",         NULL, tcpMenuSelect },
255       { " Networking Services", "The network services menu.",           NULL, dmenuSubmenu, NULL, &MenuNetworking },
256       { " NFS, client",         "Set NFS client flag.",                 dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
257       { " NFS, server",         "Set NFS server flag.",                 dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
258       { " NTP Menu",            "The NTP configuration menu.",          NULL, dmenuSubmenu, NULL, &MenuNTP },
259       { " Options",             "The options editor.",                  NULL, optionsEditor },
260       { " Packages",            "The packages collection",              NULL, configPackages },
261       { " Partition",           "The disk Slice (PC-style partition) Editor",   NULL, diskPartitionEditor },
262       { " PCNFSD",              "Run authentication server for PC-NFS.", dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
263       { " Root Password",       "Set the system manager's password.",   NULL, dmenuSystemCommand, NULL, "passwd root" },
264       { " Router",              "Select routing daemon (default: routed)", NULL, configRouter, NULL, "router_enable" },
265       { " Security",            "Select a default system security profile.", NULL, dmenuSubmenu, NULL, &MenuSecurityProfile },
266       { " Syscons",             "The system console configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSyscons },
267       { " Syscons, Font",       "The console screen font.",       NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
268       { " Syscons, Keymap",     "The console keymap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
269       { " Syscons, Keyrate",    "The console key rate configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
270       { " Syscons, Saver",      "The console screen saver configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
271       { " Syscons, Screenmap",  "The console screenmap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
272       { " Time Zone",           "Set the system's time zone.",          NULL, dmenuSystemCommand, NULL, "tzsetup" },
273       { " TTYs",                "Configure system ttys.",               NULL, configEtcTtys, NULL, "ttys" },
274       { " Upgrade",             "Upgrade an existing system.",          NULL, installUpgrade },
275       { " Usage",               "Quick start - How to use this menu system.",   NULL, dmenuDisplayFile, NULL, "usage" },
276       { " User Management",     "Add user and group information.",      NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
277       { " XFree86, Fonts",      "XFree86 Font selection menu.",         NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
278       { " XFree86, Server",     "XFree86 Server selection menu.",       NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
279 #if defined(__i386__) && defined(PC98)
280       { " XFree86, PC98 Server",        "XFree86 PC98 Server selection menu.",  NULL, dmenuSubmenu, NULL, &MenuXF86SelectPC98Server },
281 #endif
282       { NULL } },
283 };
284
285 /* The initial installation menu */
286 DMenu MenuInitial = {
287     DMENU_NORMAL_TYPE,
288     "sysinstall Main Menu",                             /* title */
289     "Welcome to the FreeBSD installation and configuration tool.  Please\n" /* prompt */
290     "select one of the options below by using the arrow keys or typing the\n"
291     "first character of the option name you're interested in.  Invoke an\n"
292     "option with [SPACE] or [ENTER].  To exit, use [TAB] to move to Exit.", 
293     "Press F1 for Installation Guide",                  /* help line */
294     "INSTALL",                                          /* help file */
295     { { "Select" },
296       { "X Exit Install",       NULL, NULL, dmenuExit },
297       { " Usage",       "Quick start - How to use this menu system",    NULL, dmenuDisplayFile, NULL, "usage" },
298       { "Standard",     "Begin a standard installation (recommended)",  NULL, installStandard },
299       { "Express",      "Begin a quick installation (for the impatient)", NULL, installExpress },
300       { " Custom",      "Begin a custom installation (for experts)",    NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
301       { "Configure",    "Do post-install configuration of FreeBSD",     NULL, dmenuSubmenu, NULL, &MenuConfigure },
302       { "Doc",  "Installation instructions, README, etc.",      NULL, dmenuSubmenu, NULL, &MenuDocumentation },
303       { "Keymap",       "Select keyboard type",                         NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
304       { "Options",      "View/Set various installation options",        NULL, optionsEditor },
305       { "Fixit",        "Repair mode with CDROM/DVD/floppy or start shell",     NULL, dmenuSubmenu, NULL, &MenuFixit },
306       { "Upgrade",      "Upgrade an existing system",                   NULL, installUpgrade },
307       { "Load Config","Load default install configuration",             NULL, dispatch_load_floppy },
308       { "Index",        "Glossary of functions",                        NULL, dmenuSubmenu, NULL, &MenuIndex },
309       { NULL } },
310 };
311
312 /* The main documentation menu */
313 DMenu MenuDocumentation = {
314     DMENU_NORMAL_TYPE,
315     "FreeBSD Documentation Menu",
316     "If you are at all unsure about the configuration of your hardware\n"
317     "or are looking to build a system specifically for FreeBSD, read the\n"
318     "Hardware guide!  New users should also read the Install document for\n"
319     "a step-by-step tutorial on installing FreeBSD.  For general information,\n"
320     "consult the README file.",
321     "Confused?  Press F1 for help.",
322     "usage",
323     { { "X Exit",       "Exit this menu (returning to previous)",       NULL, dmenuExit },
324       { "1 README",     "A general description of FreeBSD.  Read this!", NULL, dmenuDisplayFile, NULL, "README" },
325       { "2 Errata",     "Late-breaking, post-release news.", NULL, dmenuDisplayFile, NULL, "ERRATA" },
326       { "3 Hardware",   "The FreeBSD survival guide for PC hardware.",  NULL, dmenuDisplayFile, NULL, "HARDWARE" },
327       { "4 Install",    "A step-by-step guide to installing FreeBSD.",  NULL, dmenuDisplayFile, NULL, "INSTALL" },
328       { "5 Copyright",  "The FreeBSD Copyright notices.",               NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
329       { "6 Release"     ,"The release notes for this version of FreeBSD.", NULL, dmenuDisplayFile, NULL, "RELNOTES" },
330       { "7 Shortcuts",  "Creating shortcuts to sysinstall.",            NULL, dmenuDisplayFile, NULL, "shortcuts" },
331       { "8 HTML Docs",  "Go to the HTML documentation menu (post-install).", NULL, docBrowser },
332       { NULL } },
333 };
334
335 DMenu MenuMouseType = {
336     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
337     "Select a protocol type for your mouse",
338     "If your mouse is attached to the PS/2 mouse port or the bus mouse port,\n"
339     "you should always choose \"Auto\", regardless of the model and the brand\n"
340     "of the mouse.  All other protocol types are for serial mice and should\n"
341     "not be used with the PS/2 port mouse or the bus mouse.  If you have\n"
342     "a serial mouse and are not sure about its protocol, you should also try\n"
343     "\"Auto\".  It may not work for the serial mouse if the mouse does not\n"
344     "support the PnP standard.  But, it won't hurt.  Many 2-button serial mice\n"
345     "are compatible with \"Microsoft\" or \"MouseMan\".  3-button serial mice\n"
346     "may be compatible with \"MouseSystems\" or \"MouseMan\".  If the serial\n"
347     "mouse has a wheel, it may be compatible with \"IntelliMouse\".",
348     NULL,
349     NULL,
350     { { "1 Auto",       "Bus mouse, PS/2 style mouse or PnP serial mouse",      
351         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=auto" },
352       { "2 GlidePoint", "ALPS GlidePoint pad (serial)",
353         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=glidepoint" },
354       { "3 Hitachi","Hitachi tablet (serial)",
355         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmhittab" },
356       { "4 IntelliMouse",       "Microsoft IntelliMouse (serial)",
357         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=intellimouse" },
358       { "5 Logitech",   "Logitech protocol (old models) (serial)",
359         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=logitech" },
360       { "6 Microsoft",  "Microsoft protocol (serial)",
361         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=microsoft" },
362       { "7 MM Series","MM Series protocol (serial)",
363         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmseries" },
364       { "8 MouseMan",   "Logitech MouseMan/TrackMan models (serial)",
365         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mouseman" },
366       { "9 MouseSystems",       "MouseSystems protocol (serial)",
367         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mousesystems" },
368       { "A ThinkingMouse","Kensington ThinkingMouse (serial)",
369         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=thinkingmouse" },
370       { NULL } },
371 };
372
373 DMenu MenuMousePort = {
374     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
375     "Select your mouse port from the following menu",
376     "The built-in pointing device of laptop/notebook computers is usually\n"
377     "a PS/2 style device.",
378     NULL,
379     NULL,
380     { { "1 PS/2",       "PS/2 style mouse (/dev/psm0)", 
381         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" },
382       { "2 COM1",       "Serial mouse on COM1 (/dev/cuaa0)",
383         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa0" },
384       { "3 COM2",       "Serial mouse on COM2 (/dev/cuaa1)",
385         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa1" },
386       { "4 COM3",       "Serial mouse on COM3 (/dev/cuaa2)",
387         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa2" },
388       { "5 COM4",       "Serial mouse on COM4 (/dev/cuaa3)", 
389         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa3" },
390       { "6 BusMouse",   "Logitech, ATI or MS bus mouse (/dev/mse0)", 
391         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" },
392       { NULL } },
393 };
394
395 DMenu MenuMouse = {
396     DMENU_NORMAL_TYPE,
397     "Please configure your mouse",
398     "You can cut and paste text in the text console by running the mouse\n"
399     "daemon.  Specify a port and a protocol type of your mouse and enable\n"
400     "the mouse daemon.  If you don't want this feature, select 6 to disable\n"
401     "the daemon.\n"
402     "Once you've enabled the mouse daemon, you can specify \"/dev/sysmouse\"\n"
403     "as your mouse device and \"SysMouse\" or \"MouseSystems\" as mouse\n"
404     "protocol when running the X configuration utility (see Configuration\n"
405     "menu).",
406     NULL,
407     NULL,
408     { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
409       { "2 Enable",     "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL },
410       { "3 Type",       "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType },
411       { "4 Port",       "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort },
412       { "5 Flags",      "Set additional flags", dmenuVarCheck, setMouseFlags,
413         NULL, VAR_MOUSED_FLAGS "=" },
414       { "6 Disable",    "Disable the mouse daemon", NULL, mousedDisable, NULL, NULL },
415       { NULL } },
416 };
417
418 DMenu MenuMediaCDROM = {
419     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
420     "Choose a CD/DVD type",
421     "FreeBSD can be installed directly from a CD/DVD containing a valid\n"
422     "FreeBSD distribution.  If you are seeing this menu it is because\n"
423     "more than one CD/DVD drive was found on your system.  Please select one\n"
424     "of the following CD/DVD drives as your installation drive.",
425     "Press F1 to read the installation guide",
426     "INSTALL",
427     { { NULL } },
428 };
429
430 DMenu MenuMediaFloppy = {
431     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
432     "Choose a Floppy drive",
433     "You have more than one floppy drive.  Please choose which drive\n"
434     "you would like to use.",
435     NULL,
436     NULL,
437     { { NULL } },
438 };
439
440 DMenu MenuMediaDOS = {
441     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
442     "Choose a DOS partition",
443     "FreeBSD can be installed directly from a DOS partition\n"
444     "assuming, of course, that you have copied the relevant\n"
445     "distributions into your DOS partition before starting this\n"
446     "installation.  If this is not the case then you should reboot\n"
447     "DOS at this time and copy the distributions you wish to install\n"
448     "into a \"FREEBSD\" subdirectory on one of your DOS partitions.\n"
449     "Otherwise, please select the DOS partition containing the FreeBSD\n"
450     "distribution files.",
451     "Press F1 to read the installation guide",
452     "INSTALL",
453     { { NULL } },
454 };
455
456 DMenu MenuMediaFTP = {
457     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
458     "Please select a FreeBSD FTP distribution site",
459     "Please select the site closest to you or \"other\" if you'd like to\n"
460     "specify a different choice.  Also note that not every site listed here\n"
461     "carries more than the base distribution kits. Only the Primary site is\n"
462     "guaranteed to carry the full range of possible distributions.",
463     "Select a site that's close!",
464     "INSTALL",
465     { { "Primary Site", "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
466         VAR_FTP_PATH "=ftp://ftp.freebsd.org" },
467       { "URL", "Specify some other ftp site by URL", NULL, dmenuSetVariable, NULL,
468         VAR_FTP_PATH "=other" },
469       { " 5.0 SNAP Server", "current.freebsd.org", NULL, dmenuSetVariable, NULL,
470         VAR_FTP_PATH "=ftp://current.freebsd.org" },
471       { " 4.x SNAP Server", "releng4.freebsd.org", NULL, dmenuSetVariable, NULL,
472         VAR_FTP_PATH "=ftp://releng4.freebsd.org" },
473       { " jp.FreeBSD.org SNAP Server", "snapshots.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
474         VAR_FTP_PATH "=ftp://snapshots.jp.freebsd.org" },
475       { " IPv6 Ready", "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
476         VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
477       { " IPv6 Ready #2", "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
478         VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
479       { " IPv6 Ready #3", "ftp3.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
480         VAR_FTP_PATH "=ftp://ftp3.ie.freebsd.org" },
481       { "Argentina",    "ftp.ar.freebsd.org", NULL, dmenuSetVariable, NULL,
482         VAR_FTP_PATH "=ftp://ftp.ar.freebsd.org" },
483       { " Australia",   "ftp.au.freebsd.org", NULL, dmenuSetVariable, NULL,
484         VAR_FTP_PATH "=ftp://ftp.au.freebsd.org" },
485       { " Australia #2","ftp2.au.freebsd.org", NULL, dmenuSetVariable, NULL,
486         VAR_FTP_PATH "=ftp://ftp2.au.freebsd.org" },
487       { " Australia #3","ftp3.au.freebsd.org", NULL, dmenuSetVariable, NULL,
488         VAR_FTP_PATH "=ftp://ftp3.au.freebsd.org" },
489       { " Australia #4","ftp4.au.freebsd.org", NULL, dmenuSetVariable, NULL,
490         VAR_FTP_PATH "=ftp://ftp4.au.freebsd.org" },
491       { " Australia #5","ftp5.au.freebsd.org", NULL, dmenuSetVariable, NULL,
492         VAR_FTP_PATH "=ftp://ftp5.au.freebsd.org" },
493       { "Brazil",       "ftp.br.freebsd.org", NULL, dmenuSetVariable, NULL,
494         VAR_FTP_PATH "=ftp://ftp.br.freebsd.org" },
495       { " Brazil #2",   "ftp2.br.freebsd.org", NULL, dmenuSetVariable, NULL,
496         VAR_FTP_PATH "=ftp://ftp2.br.freebsd.org" },
497       { " Brazil #3",   "ftp3.br.freebsd.org", NULL, dmenuSetVariable, NULL,
498         VAR_FTP_PATH "=ftp://ftp3.br.freebsd.org" },
499       { " Brazil #4",   "ftp4.br.freebsd.org", NULL, dmenuSetVariable, NULL,
500         VAR_FTP_PATH "=ftp://ftp4.br.freebsd.org" },
501       { " Brazil #5",   "ftp5.br.freebsd.org", NULL, dmenuSetVariable, NULL,
502         VAR_FTP_PATH "=ftp://ftp5.br.freebsd.org" },
503       { " Brazil #6",   "ftp6.br.freebsd.org", NULL, dmenuSetVariable, NULL,
504         VAR_FTP_PATH "=ftp://ftp6.br.freebsd.org" },
505       { " Brazil #7",   "ftp7.br.freebsd.org", NULL, dmenuSetVariable, NULL,
506         VAR_FTP_PATH "=ftp://ftp7.br.freebsd.org" },
507       { " Canada",      "ftp.ca.freebsd.org", NULL, dmenuSetVariable, NULL,
508         VAR_FTP_PATH "=ftp://ftp.ca.freebsd.org" },
509       { " Czech Republic", "ftp.cz.freebsd.org", NULL, dmenuSetVariable, NULL,
510         VAR_FTP_PATH "=ftp://ftp.cz.freebsd.org" },
511       { "Denmark (Primary)",    "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
512         VAR_FTP_PATH "=ftp://ftp.dk.freebsd.org" },
513       { " Denmark",     "ftp.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
514         VAR_FTP_PATH "=ftp://ftp.dk.freebsd.org" },
515       { " Denmark #2",  "ftp2.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
516         VAR_FTP_PATH "=ftp://ftp2.dk.freebsd.org" },
517       { "Estonia",      "ftp.ee.freebsd.org", NULL, dmenuSetVariable, NULL,
518         VAR_FTP_PATH "=ftp://ftp.ee.freebsd.org" },
519       { "Finland",      "ftp.fi.freebsd.org", NULL, dmenuSetVariable, NULL,
520         VAR_FTP_PATH "=ftp://ftp.fi.freebsd.org" },
521       { " France",      "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
522         VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org" },
523       { " France #1",   "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
524         VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org" },
525       { " France #2",   "ftp2.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
526         VAR_FTP_PATH "=ftp://ftp2.fr.freebsd.org" },
527       { " France #3",   "ftp3.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
528         VAR_FTP_PATH "=ftp://ftp3.fr.freebsd.org" },
529       { " France #4",   "ftp4.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
530         VAR_FTP_PATH "=ftp://ftp4.fr.freebsd.org" },
531       { " France #5",   "ftp5.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
532         VAR_FTP_PATH "=ftp://ftp5.fr.freebsd.org" },
533       { " France #6",   "ftp6.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
534         VAR_FTP_PATH "=ftp://ftp6.fr.freebsd.org" },
535       { " France #7",   "ftp7.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
536         VAR_FTP_PATH "=ftp://ftp7.fr.freebsd.org" },
537       { " France #8",   "ftp8.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
538         VAR_FTP_PATH "=ftp://ftp8.fr.freebsd.org" },
539       { "Germany",      "ftp.de.freebsd.org", NULL, dmenuSetVariable, NULL,
540         VAR_FTP_PATH "=ftp://ftp.de.freebsd.org" },
541       { " Germany #2",  "ftp2.de.freebsd.org", NULL, dmenuSetVariable, NULL,
542         VAR_FTP_PATH "=ftp://ftp2.de.freebsd.org" },
543       { " Germany #3",  "ftp3.de.freebsd.org", NULL, dmenuSetVariable, NULL,
544         VAR_FTP_PATH "=ftp://ftp3.de.freebsd.org" },
545       { " Germany #4",  "ftp4.de.freebsd.org", NULL, dmenuSetVariable, NULL,
546         VAR_FTP_PATH "=ftp://ftp4.de.freebsd.org" },
547       { " Germany #5",  "ftp5.de.freebsd.org", NULL, dmenuSetVariable, NULL,
548         VAR_FTP_PATH "=ftp://ftp5.de.freebsd.org" },
549       { " Germany #6",  "ftp6.de.freebsd.org", NULL, dmenuSetVariable, NULL,
550         VAR_FTP_PATH "=ftp://ftp6.de.freebsd.org" },
551       { " Germany #7",  "ftp7.de.freebsd.org", NULL, dmenuSetVariable, NULL,
552         VAR_FTP_PATH "=ftp://ftp7.de.freebsd.org" },
553       { " Greece",      "ftp.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
554         VAR_FTP_PATH "=ftp://ftp.gr.freebsd.org" },
555       { " Greece #2",   "ftp2.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
556         VAR_FTP_PATH "=ftp://ftp2.gr.freebsd.org" },
557       { "Holland",      "ftp.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
558         VAR_FTP_PATH "=ftp://ftp.nl.freebsd.org" },
559       { " Hong Kong",   "ftp.hk.super.net", NULL, dmenuSetVariable, NULL,
560         VAR_FTP_PATH "=ftp://ftp.hk.super.net" },
561       { " Hungary",     "ftp.hu.freebsd.org", NULL, dmenuSetVariable, NULL,
562         VAR_FTP_PATH "=ftp://ftp.hu.freebsd.org" },
563       { "Iceland",      "ftp.is.freebsd.org", NULL, dmenuSetVariable, NULL,
564         VAR_FTP_PATH "=ftp://ftp.is.freebsd.org" },
565       { " Ireland",     "ftp.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
566         VAR_FTP_PATH "=ftp://ftp.ie.freebsd.org" },
567       { " Ireland #2",  "ftp2.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
568         VAR_FTP_PATH "=ftp://ftp2.ie.freebsd.org" },
569       { " Ireland #3",  "ftp3.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
570         VAR_FTP_PATH "=ftp://ftp3.ie.freebsd.org" },
571       { " Israel",      "ftp.il.freebsd.org", NULL, dmenuSetVariable, NULL,
572         VAR_FTP_PATH "=ftp://ftp.il.freebsd.org" },
573       { " Israel #2",   "ftp2.il.freebsd.org", NULL, dmenuSetVariable, NULL,
574         VAR_FTP_PATH "=ftp://ftp2.il.freebsd.org" },
575       { "Japan",        "ftp.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
576         VAR_FTP_PATH "=ftp://ftp.jp.freebsd.org" },
577       { " Japan #2",    "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
578         VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
579       { " Japan #3",    "ftp3.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
580         VAR_FTP_PATH "=ftp://ftp3.jp.freebsd.org" },
581       { " Japan #4",    "ftp4.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
582         VAR_FTP_PATH "=ftp://ftp4.jp.freebsd.org" },
583       { " Japan #5",    "ftp5.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
584         VAR_FTP_PATH "=ftp://ftp5.jp.freebsd.org" },
585       { " Japan #6",    "ftp6.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
586         VAR_FTP_PATH "=ftp://ftp6.jp.freebsd.org" },
587       { " Japan #7",    "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
588         VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
589       { "Korea",        "ftp.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
590         VAR_FTP_PATH "=ftp://ftp.kr.freebsd.org" },
591       { " Korea #2",    "ftp2.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
592         VAR_FTP_PATH "=ftp://ftp2.kr.freebsd.org" },
593       { " Korea #3",    "ftp3.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
594         VAR_FTP_PATH "=ftp://ftp3.kr.freebsd.org" },
595       { " Korea #4",    "ftp4.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
596         VAR_FTP_PATH "=ftp://ftp4.kr.freebsd.org" },
597       { " Korea #5",    "ftp5.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
598         VAR_FTP_PATH "=ftp://ftp5.kr.freebsd.org" },
599       { "Lithuania",    "ftp.lt.freebsd.org", NULL, dmenuSetVariable, NULL,
600         VAR_FTP_PATH "=ftp://ftp.lt.freebsd.org" },
601       { "New Zealand",  "ftp.nz.freebsd.org", NULL, dmenuSetVariable, NULL,
602         VAR_FTP_PATH "=ftp://ftp.nz.freebsd.org" },
603       { "Norway",       "ftp.no.freebsd.org", NULL, dmenuSetVariable, NULL,
604         VAR_FTP_PATH "=ftp://ftp.no.freebsd.org" },
605       { "Poland",       "ftp.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
606         VAR_FTP_PATH "=ftp://ftp.pl.freebsd.org" },
607       { " Portugal",    "ftp.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
608         VAR_FTP_PATH "=ftp://ftp.pt.freebsd.org" },
609       { " Portugal #2", "ftp2.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
610         VAR_FTP_PATH "=ftp://ftp2.pt.freebsd.org" },
611       { "Romania",      "ftp.ro.freebsd.org", NULL, dmenuSetVariable, NULL,
612         VAR_FTP_PATH "=ftp://ftp.ro.freebsd.org" },
613       { " Russia",      "ftp.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
614         VAR_FTP_PATH "=ftp://ftp.ru.freebsd.org" },
615       { " Russia #2",   "ftp2.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
616         VAR_FTP_PATH "=ftp://ftp2.ru.freebsd.org" },
617       { " Russia #3",   "ftp3.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
618         VAR_FTP_PATH "=ftp://ftp3.ru.freebsd.org" },
619       { " Russia #4",    "ftp4.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
620         VAR_FTP_PATH "=ftp://ftp4.ru.freebsd.org" },
621       { "Slovak Republic",      "ftp.sk.freebsd.org", NULL, dmenuSetVariable, NULL,
622         VAR_FTP_PATH "=ftp://ftp.sk.freebsd.org" },
623       { "Slovenia",     "ftp.si.freebsd.org", NULL, dmenuSetVariable, NULL,
624         VAR_FTP_PATH "=ftp://ftp.si.freebsd.org" },
625       { " South Africa",        "ftp.za.freebsd.org", NULL, dmenuSetVariable, NULL,
626         VAR_FTP_PATH "=ftp://ftp.za.freebsd.org" },
627       { " South Africa #2", "ftp2.za.freebsd.org", NULL, dmenuSetVariable, NULL,
628         VAR_FTP_PATH "=ftp://ftp2.za.freebsd.org" },
629       { " South Africa #3", "ftp3.za.freebsd.org", NULL, dmenuSetVariable, NULL,
630         VAR_FTP_PATH "=ftp://ftp3.za.freebsd.org" },
631       { " South Africa #4", "ftp4.za.freebsd.org", NULL, dmenuSetVariable, NULL,
632         VAR_FTP_PATH "=ftp://ftp4.za.freebsd.org" },
633       { " Spain",       "ftp.es.freebsd.org", NULL, dmenuSetVariable, NULL,
634         VAR_FTP_PATH "=ftp://ftp.es.freebsd.org" },
635       { " Spain #2",    "ftp2.es.freebsd.org", NULL, dmenuSetVariable, NULL,
636         VAR_FTP_PATH "=ftp://ftp2.es.freebsd.org" },
637       { " Spain #3",    "ftp3.es.freebsd.org", NULL, dmenuSetVariable, NULL,
638         VAR_FTP_PATH "=ftp://ftp3.es.freebsd.org" },
639       { " Sweden",      "ftp.se.freebsd.org", NULL, dmenuSetVariable, NULL,
640         VAR_FTP_PATH "=ftp://ftp.se.freebsd.org" },
641       { " Sweden #2",   "ftp2.se.freebsd.org", NULL, dmenuSetVariable, NULL,
642         VAR_FTP_PATH "=ftp://ftp2.se.freebsd.org" },
643       { " Sweden #3",   "ftp3.se.freebsd.org", NULL, dmenuSetVariable, NULL,
644         VAR_FTP_PATH "=ftp://ftp3.se.freebsd.org" },
645       { "Taiwan",       "ftp.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
646         VAR_FTP_PATH "=ftp://ftp.tw.freebsd.org" },
647       { " Taiwan #2",   "ftp2.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
648         VAR_FTP_PATH "=ftp://ftp2.tw.freebsd.org" },
649       { " Taiwan #3",   "ftp3.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
650         VAR_FTP_PATH "=ftp://ftp3.tw.freebsd.org" },
651       { " Taiwan #4",   "ftp4.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
652         VAR_FTP_PATH "=ftp://ftp4.tw.freebsd.org" },
653       { " Thailand",    "ftp.nectec.or.th", NULL, dmenuSetVariable, NULL,
654         VAR_FTP_PATH "=ftp://ftp.nectec.or.th/pub/mirrors/FreeBSD/" },
655       { "UK",           "ftp.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
656         VAR_FTP_PATH "=ftp://ftp.uk.freebsd.org" },
657       { " UK #2",       "ftp2.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
658         VAR_FTP_PATH "=ftp://ftp2.uk.freebsd.org" },
659       { " UK #3",       "ftp3.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
660         VAR_FTP_PATH "=ftp://ftp3.uk.freebsd.org" },
661       { " UK #4",       "ftp4.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
662         VAR_FTP_PATH "=ftp://ftp4.uk.freebsd.org" },
663       { " UK #5",       "ftp5.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
664         VAR_FTP_PATH "=ftp://ftp5.uk.freebsd.org" },
665       { " Ukraine",     "ftp.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
666         VAR_FTP_PATH "=ftp://ftp.ua.freebsd.org" },
667       { " Ukraine #2",  "ftp2.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
668         VAR_FTP_PATH "=ftp://ftp2.ua.freebsd.org" },
669       { " Ukraine #3",  "ftp3.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
670         VAR_FTP_PATH "=ftp://ftp3.ua.freebsd.org" },
671       { " USA #2",      "ftp2.freebsd.org", NULL, dmenuSetVariable, NULL,
672         VAR_FTP_PATH "=ftp://ftp2.freebsd.org" },
673       { " USA #3",      "ftp3.freebsd.org", NULL, dmenuSetVariable, NULL,
674         VAR_FTP_PATH "=ftp://ftp3.freebsd.org" },
675       { " USA #4",      "ftp4.freebsd.org", NULL, dmenuSetVariable, NULL,
676         VAR_FTP_PATH "=ftp://ftp4.freebsd.org" },
677       { " USA #5",      "ftp5.freebsd.org", NULL, dmenuSetVariable, NULL,
678         VAR_FTP_PATH "=ftp://ftp5.freebsd.org" },
679       { " USA #6",      "ftp6.freebsd.org", NULL, dmenuSetVariable, NULL,
680         VAR_FTP_PATH "=ftp://ftp6.freebsd.org" },
681       { NULL } }
682 };
683
684 DMenu MenuMediaTape = {
685     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
686     "Choose a tape drive type",
687     "FreeBSD can be installed from tape drive, though this installation\n"
688     "method requires a certain amount of temporary storage in addition\n"
689     "to the space required by the distribution itself (tape drives make\n"
690     "poor random-access devices, so we extract _everything_ on the tape\n"
691     "in one pass).  If you have sufficient space for this, then you should\n"
692     "select one of the following tape devices detected on your system.",
693     "Press F1 to read the installation guide",
694     "INSTALL",
695     { { NULL } },
696 };
697
698 DMenu MenuNetworkDevice = {
699     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
700     "Network interface information required",
701     "If you are using PPP over a serial device, as opposed to a direct\n"
702     "ethernet connection, then you may first need to dial your Internet\n"
703     "Service Provider using the ppp utility we provide for that purpose.\n"
704     "If you're using SLIP over a serial device then the expectation is\n"
705     "that you have a HARDWIRED connection.\n\n"
706     "You can also install over a parallel port using a special \"laplink\"\n"
707     "cable to another machine running a fairly recent (2.0R or later)\n"
708     "version of FreeBSD.",
709     "Press F1 to read network configuration manual",
710     "network_device",
711     { { NULL } },
712 };
713
714 /* Prototype KLD load menu */
715 DMenu MenuKLD = {
716     DMENU_NORMAL_TYPE,
717     "KLD Menu",
718     "Load a KLD from a floppy\n",
719     NULL,
720     NULL,
721     { { NULL } },
722 };
723
724 /* The media selection menu */
725 DMenu MenuMedia = {
726     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
727     "Choose Installation Media",
728     "FreeBSD can be installed from a variety of different installation\n"
729     "media, ranging from floppies to an Internet FTP server.  If you're\n"
730     "installing FreeBSD from a supported CD/DVD drive then this is generally\n"
731     "the best media to use if you have no overriding reason for using other\n"
732     "media.",
733     "Press F1 for more information on the various media types",
734     "media",
735     { { "1 CD/DVD",             "Install from a FreeBSD CD/DVD",        NULL, mediaSetCDROM },
736       { "2 FTP",                "Install from an FTP server",           NULL, mediaSetFTPActive },
737       { "3 FTP Passive",        "Install from an FTP server through a firewall", NULL, mediaSetFTPPassive },
738       { "4 HTTP",               "Install from an FTP server through a http proxy", NULL, mediaSetHTTP },
739       { "5 DOS",                "Install from a DOS partition",         NULL, mediaSetDOS },
740       { "6 NFS",                "Install over NFS",                     NULL, mediaSetNFS },
741       { "7 File System",        "Install from an existing filesystem",  NULL, mediaSetUFS },
742       { "8 Floppy",             "Install from a floppy disk set",       NULL, mediaSetFloppy },
743       { "9 Tape",               "Install from SCSI or QIC tape",        NULL, mediaSetTape },
744       { "X Options",            "Go to the Options screen",             NULL, optionsEditor },
745       { NULL } },
746 };
747
748 /* The distributions menu */
749 DMenu MenuDistributions = {
750     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
751     "Choose Distributions",
752     "As a convenience, we provide several \"canned\" distribution sets.\n"
753     "These select what we consider to be the most reasonable defaults for the\n"
754     "type of system in question.  If you would prefer to pick and choose the\n"
755     "list of distributions yourself, simply select \"Custom\".  You can also\n"
756     "pick a canned distribution set and then fine-tune it with the Custom item.\n\n"
757     "Choose an item by pressing [SPACE] or [ENTER].  When finished, choose the\n"
758     "Exit item or move to the OK button with [TAB].",
759     "Press F1 for more information on these options.",
760     "distributions",
761     { { "X Exit", "Exit this menu (returning to previous)",
762         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
763       { "All",                  "All system sources, binaries and X Window System)",
764         checkDistEverything,    distSetEverything, NULL, NULL, ' ', ' ', ' ' },
765       { "Reset",                "Reset selected distribution list to nothing",
766         NULL,                   distReset, NULL, NULL, ' ', ' ', ' ' },
767       { "4 Developer",          "Full sources, binaries and doc but no games", 
768         checkDistDeveloper,     distSetDeveloper },
769       { "5 X-Developer",        "Same as above + X Window System",
770         checkDistXDeveloper,    distSetXDeveloper },
771       { "6 Kern-Developer",     "Full binaries and doc, kernel sources only",
772         checkDistKernDeveloper, distSetKernDeveloper },
773       { "7 X-Kern-Developer",   "Same as above + X Window System",
774         checkDistXKernDeveloper, distSetXKernDeveloper },
775       { "8 User",               "Average user - binaries and doc only",
776         checkDistUser,          distSetUser },
777       { "9 X-User",             "Same as above + X Window System",
778         checkDistXUser,         distSetXUser },
779       { "A Minimal",            "The smallest configuration possible",
780         checkDistMinimum,       distSetMinimum },
781       { "B Custom",             "Specify your own distribution set",
782         NULL,                   dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
783       { NULL } },
784 };
785
786 DMenu MenuSubDistributions = {
787     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
788     "Select the distributions you wish to install.",
789     "Please check off the distributions you wish to install.  At the\n"
790     "very minimum, this should be \"bin\".",
791     NULL,
792     NULL,
793     { { "X Exit", "Exit this menu (returning to previous)",
794         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
795       { "All",          "All system sources, binaries and X Window System",
796         NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
797       { "Reset",        "Reset all of the below",
798         NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
799       { " bin",         "Binary base distribution (required)",
800         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BIN },
801 #ifdef __i386__
802       { " compat1x",    "FreeBSD 1.x binary compatibility",
803         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT1X },
804       { " compat20",    "FreeBSD 2.0 binary compatibility",
805         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT20 },
806       { " compat21",    "FreeBSD 2.1 binary compatibility",
807         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT21 },
808       { " compat22",    "FreeBSD 2.2.x and 3.0 a.out binary compatibility",
809         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT22 },
810 #if __FreeBSD__ > 3
811       { " compat3x",    "FreeBSD 3.x binary compatibility",
812         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT3X },
813 #endif
814 #if __FreeBSD__ >= 4
815       { " compat4x",    "FreeBSD 4.x binary compatibility",
816         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT4X },
817 #endif
818 #endif
819       { " crypto",      "Basic encryption services",
820         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_CRYPTO, },
821 #if __FreeBSD__ <= 3
822       { " krb",         "KerberosIV authentication services",
823         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS },
824 #else
825       { " krb4",        "KerberosIV authentication services",
826         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS4 },
827       { " krb5",        "Kerberos5 authentication services",
828         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_KERBEROS5 },
829 #endif
830       { " dict",        "Spelling checker dictionary files",
831         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DICT },
832       { " doc",         "Miscellaneous FreeBSD online docs",
833         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DOC },
834       { " games",       "Games (non-commercial)",
835         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_GAMES },
836       { " info",        "GNU info files",
837         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_INFO },
838       { " man",         "System manual pages - recommended",
839         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_MANPAGES },
840       { " catman",      "Preformatted system manual pages",
841         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_CATPAGES },
842       { " proflibs",    "Profiled versions of the libraries",
843         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PROFLIBS },
844       { " src",         "Sources for everything",
845         srcFlagCheck,   distSetSrc },
846       { " ports",       "The FreeBSD Ports collection",
847         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
848       { " local",       "Local additions collection",
849         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
850       { " XFree86",     "The XFree86 distribution",
851 #ifdef X_AS_PKG
852         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_XF86 },
853 #else
854         x11FlagCheck,   distSetXF86 },
855 #endif
856       { NULL } },
857 };
858
859 DMenu MenuSrcDistributions = {
860     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
861     "Select the sub-components of src you wish to install.",
862     "Please check off those portions of the FreeBSD source tree\n"
863     "you wish to install.",
864     NULL,
865     NULL,
866     { { "X Exit", "Exit this menu (returning to previous)",
867         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
868       { "All",          "Select all of the below",
869         NULL,           setSrc, NULL, NULL, ' ', ' ', ' ' },
870       { "Reset",        "Reset all of the below",
871         NULL,           clearSrc, NULL, NULL, ' ', ' ', ' ' },
872       { " base",        "top-level files in /usr/src",
873         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BASE },
874       { " contrib",     "/usr/src/contrib (contributed software)",
875         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CONTRIB },
876       { " gnu",         "/usr/src/gnu (software from the GNU Project)",
877         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GNU },
878       { " etc",         "/usr/src/etc (miscellaneous system files)",
879         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_ETC },
880       { " games",       "/usr/src/games (the obvious!)",
881         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GAMES },
882       { " include",     "/usr/src/include (header files)",
883         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_INCLUDE },
884       { " lib",         "/usr/src/lib (system libraries)",
885         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIB },
886       { " libexec",     "/usr/src/libexec (system programs)",
887         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIBEXEC },
888       { " release",     "/usr/src/release (release-generation tools)",
889         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RELEASE },
890       { " bin",         "/usr/src/bin (system binaries)",
891         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BIN },
892       { " sbin",        "/usr/src/sbin (system binaries)",
893         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SBIN },
894       { " scrypto",     "/usr/src/crypto (contrib encryption sources)",
895         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SCRYPTO },
896       { " share",       "/usr/src/share (documents and shared files)",
897         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SHARE },
898       { " skrb4",       "/usr/src/kerberosIV (sources for KerberosIV)",
899         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SKERBEROS4 },
900       { " skrb5",       "/usr/src/kerberos5 (sources for Kerberos5)",
901         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SKERBEROS5 },
902       { " ssecure",     "/usr/src/secure (BSD encryption sources)",
903         dmenuFlagCheck, dmenuSetFlag, NULL, &CRYPTODists, '[', 'X', ']', DIST_CRYPTO_SSECURE },
904       { " sys",         "/usr/src/sys (FreeBSD kernel)",
905         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SYS },
906       { " tools",       "/usr/src/tools (miscellaneous tools)",
907         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_TOOLS },
908       { " ubin",        "/usr/src/usr.bin (user binaries)",
909         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_UBIN },
910       { " usbin",       "/usr/src/usr.sbin (aux system binaries)",
911         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_USBIN },
912       { NULL } },
913 };
914
915 DMenu MenuXF86Config = {
916     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
917     "Please select the XFree86 configuration tool you want to use.",
918     "The first option, xf86cfg, is fully graphical.\n"
919     "The second option provides a menu-based interface similar to\n"
920     "what you are currently using. "
921     "The third option, xf86config, is\n"
922     "a more simplistic shell-script based tool and less friendly to\n"
923     "new users, but it may work in situations where the other options\n"
924     "do not.",
925     NULL,
926     NULL,
927     { { "X Exit", "Exit this menu (returning to previous)",
928         NULL, dmenuExit },
929       { "2 xf86cfg",    "Fully graphical XFree86 configuration tool.",
930         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86cfg" },
931       { "3 xf86cfg -textmode",  "ncurses-based XFree86 configuration tool.",
932         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86cfg -textmode" },
933       { "4 xf86config", "Shell-script based XFree86 configuration tool.",
934         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
935       { "D XDesktop",   "X already set up, just do desktop configuration.",
936         NULL, dmenuSubmenu, NULL, &MenuXDesktops },
937       { NULL } },
938 };
939
940 DMenu MenuXDesktops = {
941     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
942     "Please select the default X desktop to use.",
943     "By default, XFree86 comes with a fairly vanilla desktop which\n"
944     "is based around the twm(1) window manager and does not offer\n"
945     "much in the way of features.  It does have the advantage of\n"
946     "being a standard part of X so you don't need to load anything\n"
947     "extra in order to use it.  If, however, you have access to a\n"
948     "reasonably full packages collection on your installation media,\n"
949     "you can choose any one of the following desktops as alternatives.",
950     NULL,
951     NULL,
952     { { "X Exit", "Exit this menu (returning to previous)",
953         NULL, dmenuExit },
954       { "2 KDE",                "The K Desktop Environment.",
955         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=kde" },
956       { "3 GNOME 2",            "The GNOME 2 Desktop Environment",
957         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=gnome2" },
958       { "4 Afterstep",  "The Afterstep window manager",
959         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=afterstep" },
960       { "5 Windowmaker",        "The Windowmaker window manager",
961         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=windowmaker" },
962       { "6 fvwm",               "The fvwm window manager",
963         NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=fvwm2" },
964       { NULL } },
965 };
966
967 DMenu MenuXF86Select = {
968     DMENU_NORMAL_TYPE,
969     "XFree86 Distribution",
970     "Please select the components you need from the XFree86\n"
971     "distribution sets.",
972     NULL,
973     NULL,
974     { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
975       { "Basic",        "Basic component menu (required)",      NULL, dmenuSubmenu, NULL, &MenuXF86SelectCore },
976       { "Server",       "X server menu",                        NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
977       { "Fonts",        "Font set menu",                        NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
978       { NULL } },
979 };
980
981 DMenu MenuXF86SelectCore = {
982     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
983     "XFree86 base distribution types",
984     "Please check off the basic XFree86 components you wish to install.\n"
985     "Bin, lib, and set are recommended for a minimum installaion.",
986     NULL,
987     NULL,
988     { { "X Exit",       "Exit this menu (returning to previous)",
989         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
990       { "All",          "Select all below",
991         NULL,           setX11Misc, NULL, NULL, ' ', ' ', ' ' },
992       { "Reset",        "Reset all below",
993         NULL,           clearX11Misc, NULL, NULL, ' ', ' ', ' ' },
994       { " bin",         "Client applications and shared libs",
995         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_BIN },
996       { " lib",         "Data files needed at runtime",
997         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LIB },
998       { " cfg",         "Configuration files",
999         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_CFG },
1000       { " set",         "XFree86 Setup Utility",
1001         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_SET },
1002       { " man",         "Manual pages",
1003         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_MAN },
1004       { " doc",         "READMEs and release notes",
1005         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_DOC },
1006       { " html",        "HTML documentation files",
1007         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_HTML },
1008       { " lkit",        "Server link kit for all other machines",
1009         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT },
1010       { " prog",        "Programmer's header and library files",
1011         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_PROG },
1012 #if defined(__i386__) && defined(PC98)
1013       { " 9set",        "XFree86 Setup Utility for PC98 machines",
1014         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_9SET },
1015       { " lk98",        "Server link kit for PC98 machines",
1016         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT98 },
1017 #endif
1018       { NULL } },
1019 };
1020
1021 DMenu MenuXF86SelectFonts = {
1022     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1023     "Font distribution selection.",
1024     "Please check off the individual font distributions you wish to\n\
1025 install.  At the minimum, you should install the standard\n\
1026 75 DPI and misc fonts if you're also installing a server\n\
1027 (these are selected by default).",
1028     NULL,
1029     NULL,
1030     { { "X Exit",       "Exit this menu (returning to previous)",
1031         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1032       { "All",          "All fonts",
1033         NULL,           setX11Fonts, NULL, NULL, ' ', ' ', ' ' },
1034       { "Reset",        "Reset font selections",
1035         NULL,           clearX11Fonts, NULL, NULL, ' ', ' ', ' ' },
1036       { " fnts",        "Standard 75 DPI and miscellaneous fonts",
1037         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_MISC },
1038       { " f100",        "100 DPI fonts",
1039         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_100 },
1040       { " fcyr",        "Cyrillic Fonts",
1041         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_CYR },
1042       { " fscl",        "Speedo and Type scalable fonts",
1043         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_SCALE },
1044       { " non",         "Japanese, Chinese and other non-english fonts",
1045         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_NON },
1046       { " server",      "Font server",
1047         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_SERVER },
1048       { NULL } },
1049 };
1050
1051 DMenu MenuXF86SelectServer = {
1052     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1053     "X Server selection.",
1054     "Please check off the types of X servers you wish to install.\n"
1055     "If you are unsure as to which server will work for your graphics card,\n"
1056     "it is recommended that try the SVGA or VGA16 servers or, for PC98\n"
1057     "machines, the 9EGC or 9840 servers.",
1058     NULL,
1059     NULL,
1060     { { "X Exit",       "Exit this menu (returning to previous)",
1061         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1062       { "All",          "Select all of the above",
1063         NULL,           setX11Servers, NULL, NULL, ' ', ' ', ' ' },
1064       { "Reset",        "Reset all of the above",
1065         NULL,           clearX11Servers, NULL, NULL, ' ', ' ', ' ' },
1066       { " SVGA",        "Standard VGA or Super VGA card",
1067         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_SVGA },
1068       { " VGA16",       "Standard 16 color VGA card",
1069         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_VGA16 },
1070       { " Mono",        "Standard Monochrome card",
1071         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MONO },
1072       { " 3DL",         "8, 16 and 24 bit color 3D Labs boards",
1073         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_3DL },
1074       { " 8514",        "8-bit (256 color) IBM 8514 or compatible card",
1075         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_8514 },
1076       { " AGX",         "8-bit AGX card",
1077         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_AGX },
1078       { " I128",        "8, 16 and 24-bit #9 Imagine I128 card",
1079         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_I128 },
1080       { " Ma8",         "8-bit ATI Mach8 card",
1081         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH8 },
1082       { " Ma32",        "8 and 16-bit (65K color) ATI Mach32 card",
1083         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH32 },
1084       { " Ma64",        "8 and 16-bit (65K color) ATI Mach64 card",
1085         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH64 },
1086       { " P9K",         "8, 16, and 24-bit color Weitek P9000 based boards",
1087         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_P9000 },
1088       { " S3",          "8, 16 and 24-bit color S3 based boards",
1089         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_S3 },
1090       { " S3V",         "8, 16 and 24-bit color S3 Virge based boards",
1091         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_S3V },
1092       { " W32",         "8-bit ET4000/W32, /W32i and /W32p cards",
1093         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_W32 },
1094 #if defined(__i386__) && defined(PC98)
1095       { " PC98",        "Select an X server for a NEC PC98 [Submenu]",
1096         NULL,           dmenuSubmenu,  NULL, &MenuXF86SelectPC98Server, '>', ' ', '>', 0 },
1097 #elif __alpha__
1098       { " TGA",         "TGA cards (alpha architecture only)",
1099         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_TGA },
1100 #endif
1101       { NULL } },
1102 };
1103
1104 #if defined(__i386__) && defined(PC98)
1105 DMenu MenuXF86SelectPC98Server = {
1106     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1107     "PC98 X Server selection.",
1108     "Please check off the types of NEC PC98 X servers you wish to install.\n\
1109 If you are unsure as to which server will work for your graphics card,\n\
1110 it is recommended that try the SVGA or VGA16 servers (the VGA16 and\n\
1111 Mono servers are particularly well-suited to most LCD displays).",
1112     NULL,
1113     NULL,
1114     { { " 9480",        "PC98 8-bit (256 color) PEGC-480 card",
1115         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9480 },
1116       { " 9EGC",        "PC98 4-bit (16 color) EGC card",
1117         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9EGC },
1118       { " 9GA9",        "PC98 GA-968V4/PCI (S3 968) card",
1119         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9GA9 },
1120       { " 9GAN",        "PC98 GANB-WAP (cirrus) card",
1121         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9GAN },
1122       { " 9LPW",        "PC98 PowerWindowLB (S3) card",
1123         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9LPW },
1124       { " 9MGA",        "PC98 MGA (Matrox) card",
1125         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9MGA },
1126       { " 9NKV",        "PC98 NKV-NEC (cirrus) card",
1127         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9NKV },
1128       { " 9NS3",        "PC98 NEC (S3) card",
1129         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9NS3 },
1130       { " 9SPW",        "PC98 SKB-PowerWindow (S3) card",
1131         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9SPW },
1132       { " 9SVG",        "PC98 generic SVGA card",
1133         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9SVG },
1134       { " 9TGU",        "PC98 Cyber9320 and TGUI9680 cards",
1135         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9TGU },
1136       { " 9WEP",        "PC98 WAB-EP (cirrus) card",
1137         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WEP },
1138       { " 9WS",         "PC98 WABS (cirrus) card",
1139         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WS },
1140       { " 9WSN",        "PC98 WSN-A2F (cirrus) card",
1141         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WSN },
1142       { NULL } }
1143 };
1144 #endif
1145
1146 DMenu MenuDiskDevices = {
1147     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1148     "Select Drive(s)",
1149     "Please select the drive, or drives, on which you wish to perform\n"
1150     "this operation.  If you are attempting to install a boot partition\n"
1151     "on a drive other than the first one or have multiple operating\n"
1152     "systems on your machine, you will have the option to install a boot\n"
1153     "manager later.  To select a drive, use the arrow keys to move to it\n"
1154     "and press [SPACE] or [ENTER].  To de-select it, press it again.\n\n"
1155     "Use [TAB] to get to the buttons and leave this menu.",
1156     "Press F1 for important information regarding disk geometry!",
1157     "drives",
1158     { { NULL } },
1159 };
1160
1161 DMenu MenuHTMLDoc = {
1162     DMENU_NORMAL_TYPE,
1163     "Select HTML Documentation pointer",
1164     "Please select the body of documentation you're interested in, the main\n"
1165     "ones right now being the FAQ and the Handbook.  You can also choose \"other\"\n"
1166     "to enter an arbitrary URL for browsing.",
1167     "Press F1 for more help on what you see here.",
1168     "html",
1169     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1170       { "2 Handbook",   "The FreeBSD Handbook.",                                NULL, docShowDocument },
1171       { "3 FAQ",        "The Frequently Asked Questions guide.",                NULL, docShowDocument },
1172       { "4 Home",       "The Home Pages for the FreeBSD Project (requires net)", NULL, docShowDocument },
1173       { "5 Other",      "Enter a URL.",                                         NULL, docShowDocument },
1174       { NULL } },
1175 };
1176
1177 /* The main installation menu */
1178 DMenu MenuInstallCustom = {
1179     DMENU_NORMAL_TYPE,
1180     "Choose Custom Installation Options",
1181     "This is the custom installation menu. You may use this menu to specify\n"
1182     "details on the type of distribution you wish to have, where you wish\n"
1183     "to install it from and how you wish to allocate disk storage to FreeBSD.",
1184     "Press F1 to read the installation guide",
1185     "INSTALL",
1186     { { "X Exit",               "Exit this menu (returning to previous)", NULL, dmenuExit },
1187       { "2 Options",            "View/Set various installation options", NULL, optionsEditor },
1188 #ifdef __alpha__
1189       { "3 Label",              "Label disk partitions",                NULL, diskLabelEditor },
1190       { "4 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1191       { "5 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1192       { "6 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1193 #else
1194       { "3 Partition",          "Allocate disk space for FreeBSD",      NULL, diskPartitionEditor },
1195       { "4 Label",              "Label allocated disk partitions",      NULL, diskLabelEditor },
1196       { "5 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1197       { "6 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1198       { "7 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1199 #endif
1200       { NULL } },
1201 };
1202
1203 /* MBR type menu */
1204 DMenu MenuMBRType = {
1205     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1206     "overwrite me",             /* will be disk specific label */
1207     "FreeBSD comes with a boot selector that allows you to easily\n"
1208     "select between FreeBSD and any other operating systems on your machine\n"
1209     "at boot time.  If you have more than one drive and want to boot\n"
1210     "from the second one, the boot selector will also make it possible\n"
1211     "to do so (limitations in the PC BIOS usually prevent this otherwise).\n"
1212     "If you do not want a boot selector, or wish to replace an existing\n"
1213     "one, select \"standard\".  If you would prefer your Master Boot\n"
1214     "Record to remain untouched then select \"None\".\n\n"
1215     "  NOTE:  PC-DOS users will almost certainly require \"None\"!",
1216     "Press F1 to read about drive setup",
1217     "drives",
1218     { { "BootMgr",      "Install the FreeBSD Boot Manager",
1219         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr },
1220 #ifndef PC98
1221       { "Standard",     "Install a standard MBR (no boot manager)",
1222         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
1223 #endif
1224       { "None",         "Leave the Master Boot Record untouched",
1225         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
1226       { NULL } },
1227 };
1228
1229 /* Final configuration menu */
1230 DMenu MenuConfigure = {
1231     DMENU_NORMAL_TYPE,
1232     "FreeBSD Configuration Menu",       /* title */
1233     "If you've already installed FreeBSD, you may use this menu to customize\n"
1234     "it somewhat to suit your particular configuration.  Most importantly,\n"
1235     "you can use the Packages utility to load extra \"3rd party\"\n"
1236     "software not provided in the base distributions.",
1237     "Press F1 for more information on these options",
1238     "configure",
1239     { { "X Exit",               "Exit this menu (returning to previous)",
1240         NULL,   dmenuExit },
1241       { " Distributions", "Install additional distribution sets",
1242         NULL, distExtractAll },
1243       { " Packages",    "Install pre-packaged software for FreeBSD",
1244         NULL, configPackages },
1245       { " Root Password", "Set the system manager's password",
1246         NULL,   dmenuSystemCommand, NULL, "passwd root" },
1247 #ifdef __i386__
1248       { " Fdisk",       "The disk Slice (PC-style partition) Editor",
1249         NULL, diskPartitionEditor },
1250 #endif
1251       { " Label",       "The disk Label editor",
1252         NULL, diskLabelEditor },
1253       { " User Management",     "Add user and group information",
1254         NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
1255       { " Console",     "Customize system console behavior",
1256         NULL,   dmenuSubmenu, NULL, &MenuSyscons },
1257       { " Time Zone",   "Set which time zone you're in",
1258         NULL,   dmenuSystemCommand, NULL, "tzsetup" },
1259       { " Media",       "Change the installation media type",
1260         NULL,   dmenuSubmenu, NULL, &MenuMedia },
1261       { " Mouse",       "Configure your mouse",
1262         NULL,   dmenuSubmenu, NULL, &MenuMouse, NULL },
1263       { " Networking",  "Configure additional network services",
1264         NULL,   dmenuSubmenu, NULL, &MenuNetworking },
1265       { " Security",    "Select default system security profile",
1266         NULL,   dmenuSubmenu, NULL, &MenuSecurityProfile },
1267       { " Startup",     "Configure system startup options",
1268         NULL,   dmenuSubmenu, NULL, &MenuStartup },
1269       { " TTYs",        "Configure system ttys.",
1270         NULL,   configEtcTtys, NULL, "ttys" },
1271       { " Options",     "View/Set various installation options",
1272         NULL, optionsEditor },
1273       { " XFree86",     "Configure XFree86 Server",
1274         NULL, configXSetup },
1275       { " Desktop",     "Configure XFree86 Desktop",
1276         NULL, configXDesktop },
1277       { " HTML Docs",   "Go to the HTML documentation menu (post-install)",
1278         NULL, docBrowser },
1279       { " Load KLD",    "Load a KLD from a floppy",
1280         NULL, kldBrowser },
1281       { NULL } },
1282 };
1283
1284 DMenu MenuStartup = {
1285     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1286     "Startup Services Menu",
1287     "This menu allows you to configure various aspects of your system's\n"
1288     "startup configuration.  Use [SPACE] or [ENTER] to select items, and\n"
1289     "[TAB] to move to the buttons.  Select Exit to leave this menu.",
1290     NULL,
1291     NULL,
1292     { { "X Exit",       "Exit this menu (returning to previous)",
1293         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1294       { " APM",         "Auto-power management services (typically laptops)",
1295         dmenuVarCheck,  dmenuToggleVariable, NULL, "apm_enable=YES" },
1296 #ifdef PCCARD_ARCH
1297       { " pccard",      "Enable PCCARD (AKA PCMCIA) services (also laptops)",
1298         dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },
1299       { " pccard mem",  "Set PCCARD memory address (if enabled)",
1300         dmenuVarCheck, dmenuISetVariable, NULL, "pccard_mem" },
1301       { " pccard ifconfig",     "List of PCCARD ethernet devices to configure",
1302         dmenuVarCheck, dmenuISetVariable, NULL, "pccard_ifconfig" },
1303 #endif
1304       { " usbd", "Enable USB daemon (detect USB attach / detach)",
1305         dmenuVarCheck, dmenuToggleVariable, NULL, "usbd_enable=YES" },
1306       { " usbd flags", "Set default flags to usbd (if enabled)", 
1307         dmenuVarCheck, dmenuISetVariable, NULL, "usbd_flags" },
1308       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1309       { " startup dirs",        "Set the list of dirs to look for startup scripts",
1310         dmenuVarCheck, dmenuISetVariable, NULL, "local_startup" },
1311       { " named",       "Run a local name server on this host",
1312         dmenuVarCheck, dmenuToggleVariable, NULL, "named_enable=YES" },
1313       { " named flags", "Set default flags to named (if enabled)",
1314         dmenuVarCheck, dmenuISetVariable, NULL, "named_flags" },
1315       { " nis client",  "This host wishes to be an NIS client.",
1316         dmenuVarCheck, dmenuToggleVariable, NULL, "nis_client_enable=YES" },
1317       { " nis domainname",      "Set NIS domainname (if enabled)",
1318         dmenuVarCheck, dmenuISetVariable, NULL, "nisdomainname" },
1319       { " nis server",  "This host wishes to be an NIS server.",
1320         dmenuVarCheck, dmenuToggleVariable, NULL, "nis_server_enable=YES" },
1321       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1322       { " accounting",  "This host wishes to run process accounting.",
1323         dmenuVarCheck, dmenuToggleVariable, NULL, "accounting_enable=YES" },
1324       { " lpd",         "This host has a printer and wants to run lpd.",
1325         dmenuVarCheck, dmenuToggleVariable, NULL, "lpd_enable=YES" },
1326 #ifdef __i386__
1327       { " linux",       "This host wants to be able to run linux binaries.",
1328         dmenuVarCheck, configLinux, NULL, VAR_LINUX_ENABLE "=YES" },
1329       { " SVR4",        "This host wants to be able to run SVR4 binaries.",
1330         dmenuVarCheck, dmenuToggleVariable, NULL, "svr4_enable=YES" },
1331       { " SCO",         "This host wants to be able to run IBCS2 binaries.",
1332         dmenuVarCheck, dmenuToggleVariable, NULL, "ibcs2_enable=YES" },
1333 #elif __alpha__
1334       { " OSF/1",       "This host wants to be able to run DEC OSF/1 binaries.",
1335         dmenuVarCheck, dmenuToggleVariable, NULL, "osf1_enable=YES" },
1336 #endif
1337       { " quotas",      "This host wishes to check quotas on startup.",
1338         dmenuVarCheck, dmenuToggleVariable, NULL, "check_quotas=YES" },
1339       { NULL } },
1340 };
1341
1342 DMenu MenuNetworking = {
1343     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1344     "Network Services Menu",
1345     "You may have already configured one network device (and the other\n"
1346     "various hostname/gateway/name server parameters) in the process\n"
1347     "of installing FreeBSD.  This menu allows you to configure other\n"
1348     "aspects of your system's network configuration.",
1349     NULL,
1350     NULL,
1351     { { "X Exit",       "Exit this menu (returning to previous)",
1352         checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1353       { " Interfaces",  "Configure additional network interfaces",
1354         NULL, tcpMenuSelect },
1355       { " AMD",         "This machine wants to run the auto-mounter service",
1356         dmenuVarCheck,  dmenuToggleVariable, NULL, "amd_enable=YES" },
1357       { " AMD Flags",   "Set flags to AMD service (if enabled)",
1358         dmenuVarCheck,  dmenuISetVariable, NULL, "amd_flags" },
1359       { " Anon FTP",    "This machine wishes to allow anonymous FTP.",
1360         dmenuVarCheck,  configAnonFTP, NULL, "anon_ftp" },
1361       { " Gateway",     "This machine will route packets between interfaces",
1362         dmenuVarCheck,  dmenuToggleVariable, NULL, "gateway_enable=YES" },
1363       { " inetd",       "This machine wants to run the inet daemon",
1364         dmenuVarCheck,  configInetd, NULL, "inetd_enable=YES" },
1365       { " NFS client",  "This machine will be an NFS client",
1366         dmenuVarCheck,  dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
1367       { " NFS server",  "This machine will be an NFS server",
1368         dmenuVarCheck,  configNFSServer, NULL, "nfs_server_enable=YES" },
1369       { " Ntpdate",     "Select a clock-synchronization server",
1370         dmenuVarCheck,  dmenuSubmenu, NULL, &MenuNTP, '[', 'X', ']', "ntpdate_enable=YES" },
1371       { " PCNFSD",      "Run authentication server for clients with PC-NFS.",
1372         dmenuVarCheck,  configPCNFSD, NULL, "pcnfsd" },
1373       { " portmap",     "This machine wants to run the portmapper daemon",
1374         dmenuVarCheck,  dmenuToggleVariable, NULL, "portmap_enable=YES" },
1375       { " Routed",      "Select routing daemon (default: routed)",
1376         dmenuVarCheck,  configRouter, NULL, "router_enable=YES" },
1377       { " Rwhod",       "This machine wants to run the rwho daemon",
1378         dmenuVarCheck,  dmenuToggleVariable, NULL, "rwhod_enable=YES" },
1379       { " Sendmail",    "This machine wants to run the sendmail daemon",
1380         NULL,           dmenuSubmenu, NULL, &MenuSendmail },
1381       { " Sshd",        "This machine wants to run the ssh daemon",
1382         dmenuVarCheck,  dmenuToggleVariable, NULL, "sshd_enable=YES" },
1383       { " TCP Extensions", "Allow RFC1323 and RFC1644 TCP extensions?",
1384         dmenuVarCheck,  dmenuToggleVariable, NULL, "tcp_extensions=YES" },
1385       { NULL } },
1386 };
1387
1388 DMenu MenuSendmail = {
1389     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1390     "Sendmail Invocation Selection",
1391     "There are three options for invoking sendmail at startup.\n"
1392     "Please select Yes if you want to use sendmail as your mail transfer\n"
1393     "agent.  Selecting No disables sendmail's network socket for incoming\n"
1394     "email, but still enables sendmail for local and outbound mail.\n"
1395     "None disables sendmail completely at startup and disables inbound,\n"
1396     "outbound, and local mail.  See /etc/mail/README for more\n"
1397     "information.\n",
1398     NULL,
1399     NULL,
1400     {
1401       { " Yes",         "Start sendmail",
1402         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=YES" },
1403       { " No",          "Start sendmail, but don't listen from network",
1404         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NO" },
1405       { " None",        "Don't start any sendmail processes",
1406         dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NONE" },
1407       { NULL } },
1408 };
1409
1410 DMenu MenuNTP = {
1411     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1412     "NTPDATE Server Selection",
1413     "There are a number of time synchronization servers available\n"
1414     "for public use around the Internet.  Please select one reasonably\n"
1415     "close to you to have your system time synchronized accordingly.",
1416     "These are the primary open-access NTP servers",
1417     NULL,
1418     { { "None",                 "No NTP server",
1419         dmenuVarsCheck, dmenuSetVariables, NULL, 
1420         "ntpdate_enable=NO,ntpdate_flags=none" },
1421       { "Other",                "Select a site not on this list",
1422         dmenuVarsCheck, configNTP, NULL, NULL },
1423       { "Argentina",            "tick.nap.com.ar",
1424         dmenuVarsCheck, dmenuSetVariables, NULL,
1425         "ntpdate_enable=YES,ntpdate_flags=tick.nap.com.ar" },
1426       { "Argentina #2",         "time.sinectis.com.ar",
1427         dmenuVarsCheck, dmenuSetVariables, NULL,
1428         "ntpdate_enable=YES,ntpdate_flags=time.sinectis.com.ar" },
1429       { "Argentina #3",         "tock.nap.com.ar",
1430         dmenuVarsCheck, dmenuSetVariables, NULL,
1431         "ntpdate_enable=YES,ntpdate_flags=tock.nap.com.ar" },
1432       { "Australia",            "augean.eleceng.adelaide.edu.au",
1433         dmenuVarsCheck, dmenuSetVariables, NULL, 
1434         "ntpdate_enable=YES,ntpdate_flags=augean.eleceng.adelaide.edu.au" },
1435       { "Australia #2",         "ntp.adelaide.edu.au",
1436         dmenuVarsCheck, dmenuSetVariables, NULL, 
1437         "ntpdate_enable=YES,ntpdate_flags=ntp.adelaide.edu.au" },
1438       { "Australia #3",         "ntp.saard.net",
1439         dmenuVarsCheck, dmenuSetVariables, NULL, 
1440         "ntpdate_enable=YES,ntpdate_flags=ntp.saard.net" },
1441       { "Australia #4",         "time.deakin.edu.au",
1442         dmenuVarsCheck, dmenuSetVariables, NULL, 
1443         "ntpdate_enable=YES,ntpdate_flags=time.deakin.edu.au" },
1444       { "Australia #5",         "time.esec.com.au",
1445         dmenuVarsCheck, dmenuSetVariables, NULL, 
1446         "ntpdate_enable=YES,ntpdate_flags=time.esec.com.au" },
1447       { "Belgium",              "ntp1.belbone.be",
1448         dmenuVarsCheck, dmenuSetVariables, NULL,
1449         "ntpdate_enable=YES,ntpdate_flags=ntp1.belbone.be" },
1450       { "Belgium #2",           "ntp2.belbone.be",
1451         dmenuVarsCheck, dmenuSetVariables, NULL,
1452         "ntpdate_enable=YES,ntpdate_flags=ntp2.belbone.be" },
1453       { "Brazil",               "ntp.cais.rnp.br",
1454         dmenuVarsCheck, dmenuSetVariables, NULL,
1455         "ntpdate_enable=YES,ntpdate_flags=ntp.cais.rnp.br" },
1456       { "Brazil #2",            "ntp.pop-df.rnp.br",
1457         dmenuVarsCheck, dmenuSetVariables, NULL,
1458         "ntpdate_enable=YES,ntpdate_flags=ntp.pop-df.rnp.br" },
1459       { "Brazil #3",            "ntp.ufes.br",
1460         dmenuVarsCheck, dmenuSetVariables, NULL,
1461         "ntpdate_enable=YES,ntpdate_flags=ntp.ufes.br" },
1462       { "Brazil #4",            "ntp1.pucpr.br",
1463         dmenuVarsCheck, dmenuSetVariables, NULL,
1464         "ntpdate_enable=YES,ntpdate_flags=ntp1.pucpr.br" },
1465       { "Canada",               "ntp.cpsc.ucalgary.ca",
1466         dmenuVarsCheck, dmenuSetVariables, NULL, 
1467         "ntpdate_enable=YES,ntpdate_flags=ntp.cpsc.ucalgary.ca" },
1468       { "Canada #2",            "ntp1.cmc.ec.gc.ca",
1469         dmenuVarsCheck, dmenuSetVariables, NULL, 
1470         "ntpdate_enable=YES,ntpdate_flags=ntp1.cmc.ec.gc.ca" },
1471       { "Canada #3",            "ntp2.cmc.ec.gc.ca",
1472         dmenuVarsCheck, dmenuSetVariables, NULL, 
1473         "ntpdate_enable=YES,ntpdate_flags=ntp2.cmc.ec.gc.ca" },
1474       { "Canada #4",            "tick.utoronto.ca",
1475         dmenuVarsCheck, dmenuSetVariables, NULL, 
1476         "ntpdate_enable=YES,ntpdate_flags=tick.utoronto.ca" },
1477       { "Canada #5",            "time.chu.nrc.ca",
1478         dmenuVarsCheck, dmenuSetVariables, NULL, 
1479         "ntpdate_enable=YES,ntpdate_flags=time.chu.nrc.ca" },
1480       { "Canada #6",            "time.nrc.ca",
1481         dmenuVarsCheck, dmenuSetVariables, NULL, 
1482         "ntpdate_enable=YES,ntpdate_flags=time.nrc.ca" },
1483       { "Canada #7",            "timelord.uregina.ca",
1484         dmenuVarsCheck, dmenuSetVariables, NULL, 
1485         "ntpdate_enable=YES,ntpdate_flags=timelord.uregina.ca" },
1486       { "Canada #8",            "tock.utoronto.ca",
1487         dmenuVarsCheck, dmenuSetVariables, NULL, 
1488         "ntpdate_enable=YES,ntpdate_flags=tock.utoronto.ca" },
1489       { "Czech",                "ntp.karpo.cz",
1490         dmenuVarsCheck, dmenuSetVariables, NULL,
1491         "ntpdate_enable=YES,ntpdate_flags=ntp.karpo.cz" },
1492       { "Denmark",              "clock.netcetera.dk",
1493         dmenuVarsCheck, dmenuSetVariables, NULL,
1494         "ntpdate_enable=YES,ntpdate_flags=clock.netcetera.dk" },
1495       { "Denmark",              "clock2.netcetera.dk",
1496         dmenuVarsCheck, dmenuSetVariables, NULL,
1497         "ntpdate_enable=YES,ntpdate_flags=clock2.netcetera.dk" },
1498       { "Spain",                "slug.ctv.es",
1499         dmenuVarsCheck, dmenuSetVariables, NULL,
1500         "ntpdate_enable=YES,ntpdate_flags=slug.ctv.es" },
1501       { "Finland",              "tick.keso.fi",
1502         dmenuVarsCheck, dmenuSetVariables, NULL,
1503         "ntpdate_enable=YES,ntpdate_flags=tick.keso.fi" },
1504       { "Finland #2",           "tock.keso.fi",
1505         dmenuVarsCheck, dmenuSetVariables, NULL,
1506         "ntpdate_enable=YES,ntpdate_flags=tock.keso.fi" },
1507       { "France",               "ntp.obspm.fr",
1508         dmenuVarsCheck, dmenuSetVariables, NULL, 
1509         "ntpdate_enable=YES,ntpdate_flags=ntp.obspm.fr" },
1510       { "France #2",            "ntp.univ-lyon1.fr",
1511         dmenuVarsCheck, dmenuSetVariables, NULL,
1512         "ntpdate_enable=YES,ntpdate_flags=ntp.univ-lyon1.fr" },
1513       { "France #3",            "ntp.via.ecp.fr",
1514         dmenuVarsCheck, dmenuSetVariables, NULL,
1515         "ntpdate_enable=YES,ntpdate_flags=ntp.via.ecp.fr" },
1516       { "Croatia",              "zg1.ntp.carnet.hr",
1517         dmenuVarsCheck, dmenuSetVariables, NULL,
1518         "ntpdate_enable=YES,ntpdate_flags=zg1.ntp.carnet.hr" },
1519       { "Croatia #2",           "zg2.ntp.carnet.hr",
1520         dmenuVarsCheck, dmenuSetVariables, NULL,
1521         "ntpdate_enable=YES,ntpdate_flags=zg2.ntp.carnet.hr" },
1522       { "Croatia #3",           "st.ntp.carnet.hr",
1523         dmenuVarsCheck, dmenuSetVariables, NULL,
1524         "ntpdate_enable=YES,ntpdate_flags=st.ntp.carnet.hr" },
1525       { "Croatia #4",           "ri.ntp.carnet.hr",
1526         dmenuVarsCheck, dmenuSetVariables, NULL,
1527         "ntpdate_enable=YES,ntpdate_flags=ri.ntp.carnet.hr" },
1528       { "Croatia #5",           "os.ntp.carnet.hr",
1529         dmenuVarsCheck, dmenuSetVariables, NULL,
1530         "ntpdate_enable=YES,ntpdate_flags=os.ntp.carnet.hr" },
1531       { "Hungary",              "time.kfki.hu",
1532         dmenuVarsCheck, dmenuSetVariables, NULL,
1533         "ntpdate_enable=YES,ntpdate_flags=time.kfki.hu" },
1534       { "Indonesia",            "ntp.incaf.net",
1535         dmenuVarsCheck, dmenuSetVariables, NULL,
1536         "ntpdate_enable=YES,ntpdate_flags=ntp.incaf.net" },
1537       { "Ireland",              "ntp.maths.tcd.ie",
1538         dmenuVarsCheck, dmenuSetVariables, NULL,
1539         "ntpdate_enable=YES,ntpdate_flags=ntp.maths.tcd.ie" },
1540       { "Italy",                "ntps.net4u.it",
1541         dmenuVarsCheck, dmenuSetVariables, NULL,
1542         "ntpdate_enable=YES,ntpdate_flags=" },
1543       { "Japan",                "ntp.cyber-fleet.net",
1544         dmenuVarsCheck, dmenuSetVariables, NULL, 
1545         "ntpdate_enable=YES,ntpdate_flags=ntp.cyber-fleet.net" },
1546       { "Korea",                "time.nuri.net",
1547         dmenuVarsCheck, dmenuSetVariables, NULL, 
1548         "ntpdate_enable=YES,ntpdate_flags=time.nuri.net" },
1549       { "Mexico",               "ntp2a.audiotel.com.mx",
1550         dmenuVarsCheck, dmenuSetVariables, NULL,
1551         "ntpdate_enable=YES,ntpdate_flags=ntp2a.audiotel.com.mx" },
1552       { "Mexico #2",            "ntp2b.audiotel.com.mx",
1553         dmenuVarsCheck, dmenuSetVariables, NULL,
1554         "ntpdate_enable=YES,ntpdate_flags=ntp2b.audiotel.com.mx" },
1555       { "Mexico #3",            "ntp2c.audiotel.com.mx",
1556         dmenuVarsCheck, dmenuSetVariables, NULL,
1557         "ntpdate_enable=YES,ntpdate_flags=ntp2c.audiotel.com.mx" },
1558       { "Nigeria",              "ntp.supernet300.com",
1559         dmenuVarsCheck, dmenuSetVariables, NULL,
1560         "ntpdate_enable=YES,ntpdate_flags=ntp.supernet300.com" },
1561       { "Netherlands",          "ntp1.theinternetone.net",
1562         dmenuVarsCheck, dmenuSetVariables, NULL,
1563         "ntpdate_enable=YES,ntpdate_flags=ntp1.theinternetone.net" },
1564       { "Netherlands #2",       "ntp2.theinternetone.net",
1565         dmenuVarsCheck, dmenuSetVariables, NULL,
1566         "ntpdate_enable=YES,ntpdate_flags=ntp2.theinternetone.net" },
1567       { "Netherlands #3",       "ntp3.theinternetone.net",
1568         dmenuVarsCheck, dmenuSetVariables, NULL,
1569         "ntpdate_enable=YES,ntpdate_flags=ntp3.theinternetone.net" },
1570       { "Norway",               "fartein.ifi.uio.no",
1571         dmenuVarsCheck, dmenuSetVariables, NULL, 
1572         "ntpdate_enable=YES,ntpdate_flags=fartein.ifi.uio.no" },
1573       { "Norway #2",            "time.alcanet.no",
1574         dmenuVarsCheck, dmenuSetVariables, NULL, 
1575         "ntpdate_enable=YES,ntpdate_flags=time.alcanet.no" },
1576       { "New Zealand",          "ntp.massey.ac.nz",
1577         dmenuVarsCheck, dmenuSetVariables, NULL,
1578         "ntpdate_enable=YES,ntpdate_flags=ntp.massey.ac.nz" },
1579       { "New Zealand #2",       "ntp.public.otago.ac.nz",
1580         dmenuVarsCheck, dmenuSetVariables, NULL,
1581         "ntpdate_enable=YES,ntpdate_flags=ntp.public.otago.ac.nz" },
1582       { "New Zealand #3",       "tk1.ihug.co.nz",
1583         dmenuVarsCheck, dmenuSetVariables, NULL,
1584         "ntpdate_enable=YES,ntpdate_flags=tk1.ihug.co.nz" },
1585       { "New Zealand #4",       "ntp.waikato.ac.nz",
1586         dmenuVarsCheck, dmenuSetVariables, NULL,
1587         "ntpdate_enable=YES,ntpdate_flags=ntp.waikato.ac.nz" },
1588       { "Poland",               "info.cyf-kr.edu.pl",
1589         dmenuVarsCheck, dmenuSetVariables, NULL,
1590         "ntpdate_enable=YES,ntpdate_flags=info.cyf-kr.edu.pl" },
1591       { "Portugal",             "bug.fe.up.pt",
1592         dmenuVarsCheck, dmenuSetVariables, NULL,
1593         "ntpdate_enable=YES,ntpdate_flags=bug.fe.up.pt" },
1594       { "Romania",              "ntp.ip.ro",
1595         dmenuVarsCheck, dmenuSetVariables, NULL,
1596         "ntpdate_enable=YES,ntpdate_flags=ntp.ip.ro" },
1597       { "Russia",               "ntp.psn.ru",
1598         dmenuVarsCheck, dmenuSetVariables, NULL,
1599         "ntpdate_enable=YES,ntpdate_flags=ntp.psn.ru" },
1600       { "Russia #2",            "sign.chg.ru",
1601         dmenuVarsCheck, dmenuSetVariables, NULL,
1602         "ntpdate_enable=YES,ntpdate_flags=sign.chg.ru" },
1603       { "Sweden",               "ntp.lth.se",
1604         dmenuVarsCheck, dmenuSetVariables, NULL, 
1605         "ntpdate_enable=YES,ntpdate_flags=ntp.lth.se" },
1606       { "Singapore",            "ntp.shim.org",
1607         dmenuVarsCheck, dmenuSetVariables, NULL,
1608         "ntpdate_enable=YES,ntpdate_flags=ntp.shim.org" },
1609       { "Slovenia",             "calvus.rzs-hm.si",
1610         dmenuVarsCheck, dmenuSetVariables, NULL,
1611         "ntpdate_enable=YES,ntpdate_flags=calvus.rzs-hm.si" },
1612       { "Slovenia #2",          "sizif.mf.uni-lj.si",
1613         dmenuVarsCheck, dmenuSetVariables, NULL,
1614         "ntpdate_enable=YES,ntpdate_flags=sizif.mf.uni-lj.si" },
1615       { "Slovenia #3",          "ntp1.arnes.si",
1616         dmenuVarsCheck, dmenuSetVariables, NULL,
1617         "ntpdate_enable=YES,ntpdate_flags=ntp1.arnes.si" },
1618       { "Slovenia #4",          "ntp2.arnes.si",
1619         dmenuVarsCheck, dmenuSetVariables, NULL,
1620         "ntpdate_enable=YES,ntpdate_flags=ntp2.arnes.si" },
1621       { "Slovenia #5",          "time.ijs.si",
1622         dmenuVarsCheck, dmenuSetVariables, NULL,
1623         "ntpdate_enable=YES,ntpdate_flags=time.ijs.si" },
1624       { "Scotland",             "ntp.cs.strath.ac.uk",
1625         dmenuVarsCheck, dmenuSetVariables, NULL,
1626         "ntpdate_enable=YES,ntpdate_flags=ntp.cs.strath.ac.uk" },
1627       { "United Kingdom",       "ntp.exnet.com",
1628         dmenuVarsCheck, dmenuSetVariables, NULL,
1629         "ntpdate_enable=YES,ntpdate_flags=ntp.exnet.com" },
1630       { "United Kingdom #2",    "ntp0.uk.uu.net",
1631         dmenuVarsCheck, dmenuSetVariables, NULL,
1632         "ntpdate_enable=YES,ntpdate_flags=ntp0.uk.uu.net" },
1633       { "United Kingdom #3",    "ntp1.uk.uu.net",
1634         dmenuVarsCheck, dmenuSetVariables, NULL,
1635         "ntpdate_enable=YES,ntpdate_flags=ntp1.uk.uu.net" },
1636       { "United Kingdom #4",    "ntp2.uk.uu.net",
1637         dmenuVarsCheck, dmenuSetVariables, NULL,
1638         "ntpdate_enable=YES,ntpdate_flags=ntp2.uk.uu.net" },
1639       { "United Kingdom #5",    "ntp2a.mcc.ac.uk",
1640         dmenuVarsCheck, dmenuSetVariables, NULL,
1641         "ntpdate_enable=YES,ntpdate_flags=ntp2a.mcc.ac.uk" },
1642       { "United Kingdom #6",    "ntp2b.mcc.ac.uk",
1643         dmenuVarsCheck, dmenuSetVariables, NULL,
1644         "ntpdate_enable=YES,ntpdate_flags=ntp2b.mcc.ac.uk" },
1645       { "United Kingdom #7",    "ntp2c.mcc.ac.uk",
1646         dmenuVarsCheck, dmenuSetVariables, NULL,
1647         "ntpdate_enable=YES,ntpdate_flags=ntp2c.mcc.ac.uk" },
1648       { "United Kingdom #8",    "ntp2d.mcc.ac.uk",
1649         dmenuVarsCheck, dmenuSetVariables, NULL,
1650         "ntpdate_enable=YES,ntpdate_flags=ntp2d.mcc.ac.uk" },
1651       { "United Kingdom #9",    "tick.tanac.net",
1652         dmenuVarsCheck, dmenuSetVariables, NULL,
1653         "ntpdate_enable=YES,ntpdate_flags=tick.tanac.net" },
1654       { "U.S. AR",      "sushi.compsci.lyon.edu",
1655         dmenuVarsCheck, dmenuSetVariables, NULL, 
1656         "ntpdate_enable=YES,ntpdate_flags=sushi.compsci.lyon.edu" },
1657       { "U.S. AZ",      "ntp.drydog.com",
1658         dmenuVarsCheck, dmenuSetVariables, NULL, 
1659         "ntpdate_enable=YES,ntpdate_flags=ntp.drydog.com" },
1660       { "U.S. CA",      "ntp.ucsd.edu",
1661         dmenuVarsCheck, dmenuSetVariables, NULL, 
1662         "ntpdate_enable=YES,ntpdate_flags=ntp.ucsd.edu" },
1663       { "U.S. CA #2",   "ntp1.mainecoon.com",
1664         dmenuVarsCheck, dmenuSetVariables, NULL, 
1665         "ntpdate_enable=YES,ntpdate_flags=ntp1.mainecoon.com" },
1666       { "U.S. CA #3",   "ntp2.mainecoon.com",
1667         dmenuVarsCheck, dmenuSetVariables, NULL, 
1668         "ntpdate_enable=YES,ntpdate_flags=ntp2.mainecoon.com" },
1669       { "U.S. CA #4",   "reloj.kjsl.com",
1670         dmenuVarsCheck, dmenuSetVariables, NULL, 
1671         "ntpdate_enable=YES,ntpdate_flags=reloj.kjsl.com" },
1672       { "U.S. CA #5",   "time.five-ten-sg.com",
1673         dmenuVarsCheck, dmenuSetVariables, NULL, 
1674         "ntpdate_enable=YES,ntpdate_flags=time.five-ten-sg.com" },
1675       { "U.S. DE",      "louie.udel.edu",
1676         dmenuVarsCheck, dmenuSetVariables, NULL, 
1677         "ntpdate_enable=YES,ntpdate_flags=louie.udel.edu" },
1678       { "U.S. GA",              "ntp.shorty.com",
1679         dmenuVarsCheck, dmenuSetVariables, NULL, 
1680         "ntpdate_enable=YES,ntpdate_flags=ntp.shorty.com" },
1681       { "U.S. GA #2",           "rolex.usg.edu",
1682         dmenuVarsCheck, dmenuSetVariables, NULL, 
1683         "ntpdate_enable=YES,ntpdate_flags=rolex.usg.edu" },
1684       { "U.S. GA #3",           "timex.usg.edu",
1685         dmenuVarsCheck, dmenuSetVariables, NULL, 
1686         "ntpdate_enable=YES,ntpdate_flags=timex.usg.edu" },
1687       { "U.S. IL",      "ntp-0.cso.uiuc.edu",
1688         dmenuVarsCheck, dmenuSetVariables, NULL,
1689         "ntpdate_enable=YES,ntpdate_flags=ntp-0.cso.uiuc.edu" },
1690       { "U.S. IL #2",   "ntp-1.cso.uiuc.edu",
1691         dmenuVarsCheck, dmenuSetVariables, NULL,
1692         "ntpdate_enable=YES,ntpdate_flags=ntp-1.cso.uiuc.edu" },
1693       { "U.S. IL #3",   "ntp-1.mcs.anl.gov",
1694         dmenuVarsCheck, dmenuSetVariables, NULL,
1695         "ntpdate_enable=YES,ntpdate_flags=ntp-1.mcs.anl.gov" },
1696       { "U.S. IL #4",   "ntp-2.cso.uiuc.edu",
1697         dmenuVarsCheck, dmenuSetVariables, NULL,
1698         "ntpdate_enable=YES,ntpdate_flags=ntp-2.cso.uiuc.edu" },
1699       { "U.S. IL #5",   "ntp-2.mcs.anl.gov",
1700         dmenuVarsCheck, dmenuSetVariables, NULL,
1701         "ntpdate_enable=YES,ntpdate_flags=ntp-2.mcs.anl.gov" },
1702       { "U.S. IN",      "gilbreth.ecn.purdue.edu",
1703         dmenuVarsCheck, dmenuSetVariables, NULL,
1704         "ntpdate_enable=YES,ntpdate_flags=gilbreth.ecn.purdue.edu" },
1705       { "U.S. IN #2",   "harbor.ecn.purdue.edu",
1706         dmenuVarsCheck, dmenuSetVariables, NULL,
1707         "ntpdate_enable=YES,ntpdate_flags=harbor.ecn.purdue.edu" },
1708       { "U.S. IN #3",   "molecule.ecn.purdue.edu",
1709         dmenuVarsCheck, dmenuSetVariables, NULL,
1710         "ntpdate_enable=YES,ntpdate_flags=molecule.ecn.purdue.edu" },
1711       { "U.S. KS",      "ntp1.kansas.net",
1712         dmenuVarsCheck, dmenuSetVariables, NULL,
1713         "ntpdate_enable=YES,ntpdate_flags=ntp1.kansas.net" },
1714       { "U.S. KS #2",   "ntp2.kansas.net",
1715         dmenuVarsCheck, dmenuSetVariables, NULL,
1716         "ntpdate_enable=YES,ntpdate_flags=ntp2.kansas.net" },
1717       { "U.S. MA",      "ntp.ourconcord.net",
1718         dmenuVarsCheck, dmenuSetVariables, NULL,
1719         "ntpdate_enable=YES,ntpdate_flags=ntp.ourconcord.net" },
1720       { "U.S. MA #2",   "timeserver.cs.umb.edu",
1721         dmenuVarsCheck, dmenuSetVariables, NULL,
1722         "ntpdate_enable=YES,ntpdate_flags=timeserver.cs.umb.edu" },
1723       { "U.S. MN",      "ns.nts.umn.edu",
1724         dmenuVarsCheck, dmenuSetVariables, NULL,
1725         "ntpdate_enable=YES,ntpdate_flags=ns.nts.umn.edu" },
1726       { "U.S. MN #2",   "nss.nts.umn.edu",
1727         dmenuVarsCheck, dmenuSetVariables, NULL,
1728         "ntpdate_enable=YES,ntpdate_flags=nss.nts.umn.edu" },
1729       { "U.S. MO",      "time-ext.missouri.edu",
1730         dmenuVarsCheck, dmenuSetVariables, NULL,
1731         "ntpdate_enable=YES,ntpdate_flags=time-ext.missouri.edu" },
1732       { "U.S. MT",      "chronos1.umt.edu",
1733         dmenuVarsCheck, dmenuSetVariables, NULL,
1734         "ntpdate_enable=YES,ntpdate_flags=chronos1.umt.edu" },
1735       { "U.S. MT #2",   "chronos2.umt.edu",
1736         dmenuVarsCheck, dmenuSetVariables, NULL,
1737         "ntpdate_enable=YES,ntpdate_flags=chronos2.umt.edu" },
1738       { "U.S. MT #3",   "chronos3.umt.edu",
1739         dmenuVarsCheck, dmenuSetVariables, NULL,
1740         "ntpdate_enable=YES,ntpdate_flags=chronos3.umt.edu" },
1741       { "U.S. NC",      "clock1.unc.edu",
1742         dmenuVarsCheck, dmenuSetVariables, NULL,
1743         "ntpdate_enable=YES,ntpdate_flags=clock1.unc.edu" },
1744       { "U.S. NV",      "cuckoo.nevada.edu",
1745         dmenuVarsCheck, dmenuSetVariables, NULL,
1746         "ntpdate_enable=YES,ntpdate_flags=cuckoo.nevada.edu" },
1747       { "U.S. NV #2",   "tick.cs.unlv.edu",
1748         dmenuVarsCheck, dmenuSetVariables, NULL,
1749         "ntpdate_enable=YES,ntpdate_flags=tick.cs.unlv.edu" },
1750       { "U.S. NV #3",   "tock.cs.unlv.edu",
1751         dmenuVarsCheck, dmenuSetVariables, NULL,
1752         "ntpdate_enable=YES,ntpdate_flags=tock.cs.unlv.edu" },
1753       { "U.S. NY",      "clock.linuxshell.net",
1754         dmenuVarsCheck, dmenuSetVariables, NULL,
1755         "ntpdate_enable=YES,ntpdate_flags=clock.linuxshell.net" },
1756       { "U.S. NY #2",   "ntp.ctr.columbia.edu",
1757         dmenuVarsCheck, dmenuSetVariables, NULL,
1758         "ntpdate_enable=YES,ntpdate_flags=ntp.ctr.columbia.edu" },
1759       { "U.S. NY #3",   "ntp0.cornell.edu",
1760         dmenuVarsCheck, dmenuSetVariables, NULL,
1761         "ntpdate_enable=YES,ntpdate_flags=ntp0.cornell.edu" },
1762       { "U.S. NY #4",   "ntp1.mpis.net",
1763         dmenuVarsCheck, dmenuSetVariables, NULL,
1764         "ntpdate_enable=YES,ntpdate_flags=ntp1.mpis.net" },
1765       { "U.S. NY #5",   "ntp2.mpis.net",
1766         dmenuVarsCheck, dmenuSetVariables, NULL,
1767         "ntpdate_enable=YES,ntpdate_flags=ntp2.mpis.net" },
1768       { "U.S. NY #6",   "sundial.columbia.edu",
1769         dmenuVarsCheck, dmenuSetVariables, NULL,
1770         "ntpdate_enable=YES,ntpdate_flags=sundial.columbia.edu" },
1771       { "U.S. NY #7",   "timex.cs.columbia.edu",
1772         dmenuVarsCheck, dmenuSetVariables, NULL,
1773         "ntpdate_enable=YES,ntpdate_flags=timex.cs.columbia.edu" },
1774       { "U.S. OK",      "constellation.ecn.uoknor.edu",
1775         dmenuVarsCheck, dmenuSetVariables, NULL,
1776         "ntpdate_enable=YES,ntpdate_flags=constellation.ecn.uoknor.edu" },
1777       { "U.S. PA",      "clock-1.cs.cmu.edu",
1778         dmenuVarsCheck, dmenuSetVariables, NULL,
1779         "ntpdate_enable=YES,ntpdate_flags=clock-1.cs.cmu.edu" },
1780       { "U.S. PA #2",   "clock-2.cs.cmu.edu",
1781         dmenuVarsCheck, dmenuSetVariables, NULL,
1782         "ntpdate_enable=YES,ntpdate_flags=clock-2.cs.cmu.edu" },
1783       { "U.S. PA #3",   "clock.psu.edu",
1784         dmenuVarsCheck, dmenuSetVariables, NULL,
1785         "ntpdate_enable=YES,ntpdate_flags=clock.psu.edu" },
1786       { "U.S. PA #4",   "fuzz.psc.edu",
1787         dmenuVarsCheck, dmenuSetVariables, NULL,
1788         "ntpdate_enable=YES,ntpdate_flags=fuzz.psc.edu" },
1789       { "U.S. PA #5",   "ntp-1.ece.cmu.edu",
1790         dmenuVarsCheck, dmenuSetVariables, NULL,
1791         "ntpdate_enable=YES,ntpdate_flags=ntp-1.ece.cmu.edu" },
1792       { "U.S. PA #6",   "ntp-2.ece.cmu.edu",
1793         dmenuVarsCheck, dmenuSetVariables, NULL,
1794         "ntpdate_enable=YES,ntpdate_flags=ntp-2.ece.cmu.edu" },
1795       { "U.S. TX",      "ntp.cox.smu.edu",
1796         dmenuVarsCheck, dmenuSetVariables, NULL,
1797         "ntpdate_enable=YES,ntpdate_flags=ntp.cox.smu.edu" },
1798       { "U.S. TX #2",   "ntp.fnbhs.com",
1799         dmenuVarsCheck, dmenuSetVariables, NULL,
1800         "ntpdate_enable=YES,ntpdate_flags=ntp.fnbhs.com" },
1801       { "U.S. TX #3",   "ntp.tmc.edu",
1802         dmenuVarsCheck, dmenuSetVariables, NULL,
1803         "ntpdate_enable=YES,ntpdate_flags=ntp.tmc.edu" },
1804       { "U.S. TX #4",   "ntp5.tamu.edu",
1805         dmenuVarsCheck, dmenuSetVariables, NULL,
1806         "ntpdate_enable=YES,ntpdate_flags=ntp5.tamu.edu" },
1807       { "U.S. TX #5",   "tick.greyware.com",
1808         dmenuVarsCheck, dmenuSetVariables, NULL,
1809         "ntpdate_enable=YES,ntpdate_flags=tick.greyware.com" },
1810       { "U.S. TX #6",   "tock.greyware.com",
1811         dmenuVarsCheck, dmenuSetVariables, NULL,
1812         "ntpdate_enable=YES,ntpdate_flags=tock.greyware.com" },
1813       { "U.S. VA",      "ntp-1.vt.edu",
1814         dmenuVarsCheck, dmenuSetVariables, NULL,
1815         "ntpdate_enable=YES,ntpdate_flags=ntp-1.vt.edu" },
1816       { "U.S. VA #2",   "ntp-2.vt.edu",
1817         dmenuVarsCheck, dmenuSetVariables, NULL,
1818         "ntpdate_enable=YES,ntpdate_flags=ntp-2.vt.edu" },
1819       { "U.S. VA #3",   "ntp.cmr.gov",
1820         dmenuVarsCheck, dmenuSetVariables, NULL,
1821         "ntpdate_enable=YES,ntpdate_flags=ntp.cmr.gov" },
1822       { "U.S. VT",      "ntp0.state.vt.us",
1823         dmenuVarsCheck, dmenuSetVariables, NULL,
1824         "ntpdate_enable=YES,ntpdate_flags=ntp0.state.vt.us" },
1825       { "U.S. VT #2",   "ntp1.state.vt.us",
1826         dmenuVarsCheck, dmenuSetVariables, NULL,
1827         "ntpdate_enable=YES,ntpdate_flags=ntp1.state.vt.us" },
1828       { "U.S. VT #3",   "ntp2.state.vt.us",
1829         dmenuVarsCheck, dmenuSetVariables, NULL,
1830         "ntpdate_enable=YES,ntpdate_flags=ntp2.state.vt.us" },
1831       { "U.S. WA",      "clock.tricity.wsu.edu",
1832         dmenuVarsCheck, dmenuSetVariables, NULL,
1833         "ntpdate_enable=YES,ntpdate_flags=clock.tricity.wsu.edu" },
1834       { "U.S. WA #2",   "ntp.tcp-udp.net",
1835         dmenuVarsCheck, dmenuSetVariables, NULL,
1836         "ntpdate_enable=YES,ntpdate_flags=ntp.tcp-udp.net" },
1837       { "U.S. WI",      "ntp1.cs.wisc.edu",
1838         dmenuVarsCheck, dmenuSetVariables, NULL,
1839         "ntpdate_enable=YES,ntpdate_flags=ntp1.cs.wisc.edu" },
1840       { "U.S. WI #2",   "ntp3.cs.wisc.edu",
1841         dmenuVarsCheck, dmenuSetVariables, NULL,
1842         "ntpdate_enable=YES,ntpdate_flags=ntp3.cs.wisc.edu" },
1843       { "Venezuela",    "ntp.linux.org.ve",
1844         dmenuVarsCheck, dmenuSetVariables, NULL,
1845         "ntpdate_enable=YES,ntpdate_flags=ntp.linux.org.ve" },
1846       { "South Africa", "ntp.cs.unp.ac.za",
1847         dmenuVarsCheck, dmenuSetVariables, NULL,
1848         "ntpdate_enable=YES,ntpdate_flags=ntp.cs.unp.ac.za" },
1849       { NULL } },
1850 };
1851
1852 DMenu MenuSyscons = {
1853     DMENU_NORMAL_TYPE,
1854     "System Console Configuration",
1855     "The default system console driver for FreeBSD (syscons) has a\n"
1856     "number of configuration options which may be set according to\n"
1857     "your preference.\n\n"
1858     "When you are done setting configuration options, select Cancel.",
1859     "Configure your system console settings",
1860     NULL,
1861     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
1862       { "2 Font",       "Choose an alternate screen font",      NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
1863       { "3 Keymap",     "Choose an alternate keyboard map",     NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
1864       { "4 Repeat",     "Set the rate at which keys repeat",    NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
1865       { "5 Saver",      "Configure the screen saver",           NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
1866       { "6 Screenmap",  "Choose an alternate screenmap",        NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
1867       { NULL } },
1868 };
1869
1870 #ifdef PC98
1871 DMenu MenuSysconsKeymap = {
1872     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1873     "System Console Keymap",
1874     "The default system console driver for FreeBSD (syscons) defaults\n"
1875     "to a standard \"PC-98x1\" keyboard map.  Users may wish to choose\n"
1876     "one of the other keymaps below.\n"
1877     "Note that sysinstall itself only uses the part of the keyboard map\n"
1878     "which is required to generate the ANSI character subset, but your\n"
1879     "choice of keymap will also be saved for later (fuller) use.",
1880     "Choose a keyboard map",
1881     NULL,
1882     { { "Japanese PC-98x1",             "Japanese PC-98x1 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98" },
1883       { " Japanese PC-98x1 (ISO)",      "Japanese PC-98x1 (ISO) keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98.iso" },
1884       { NULL } },
1885 };
1886 #else
1887 DMenu MenuSysconsKeymap = {
1888     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1889     "System Console Keymap",
1890     "The default system console driver for FreeBSD (syscons) defaults\n"
1891     "to a standard \"American\" keyboard map.  Users in other countries\n"
1892     "(or with different keyboard preferences) may wish to choose one of\n"
1893     "the other keymaps below.\n"
1894     "Note that sysinstall itself only uses the part of the keyboard map\n"
1895     "which is required to generate the ANSI character subset, but your\n"
1896     "choice of keymap will also be saved for later (fuller) use.",
1897     "Choose a keyboard map",
1898     NULL,
1899     { { "Belgian",      "Belgian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=be.iso" },
1900       { " Brazil CP850",        "Brazil CP850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.cp850" },
1901       { " Brazil ISO (accent)", "Brazil ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso.acc" },
1902       { " Brazil ISO",  "Brazil ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso" },
1903       { " Bulgarian BDS",       "Bulgarian BDS keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=bg.bds.ctrlcaps" },
1904       { " Bulgarian Phonetic",  "Bulgarian Phonetic keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=bg.phonetic.ctrlcaps" },
1905       { " Croatian ISO",        "Croatian ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hr.iso" },
1906       { " Czech ISO (accent)",  "Czech ISO keymap (accent keys)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=cs.latin2.qwertz" },
1907       { "Danish CP865", "Danish Code Page 865 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.cp865" },
1908       { " Danish ISO",  "Danish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.iso" },
1909       { "Estonian ISO", "Estonian ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso" },
1910       { " Estonian ISO 15", "Estonian ISO 8859-15 keymap",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso15" },
1911       { " Estonian CP850", "Estonian Code Page 850 keymap",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.cp850" },
1912       { "Finnish CP850","Finnish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.cp850" },
1913       { " Finnish ISO",  "Finnish ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.iso" },
1914       { " French ISO (accent)", "French ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso.acc" },
1915       { " French ISO",  "French ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso" },
1916       { "German CP850", "German Code Page 850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.cp850"        },
1917       { " German ISO",  "German ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.iso" },
1918       { "Hungarian 101", "Hungarian ISO keymap (101 key)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.101keys" },
1919       { " Hungarian 102", "Hungarian ISO keymap (102 key)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.102keys" },
1920       { "Icelandic (accent)", "Icelandic ISO keymap (accent keys)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso.acc" },
1921       { " Icelandic",   "Icelandic ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso" },
1922       { " Italian",     "Italian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=it.iso" },
1923       { "Japanese 106", "Japanese 106 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.106" },
1924       { "Latin American", "Latin American ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=lat-amer" },
1925       { "Norway ISO",   "Norwegian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=norwegian.iso" },
1926       { "Polish ISO",   "Polish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pl_PL.ISO8859-2" },
1927       { " Portuguese (accent)", "Portuguese ISO keymap (accent keys)",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso.acc" },
1928       { " Portuguese",  "Portuguese ISO keymap",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso" },
1929       { "Russia KOI8-R", "Russian KOI8-R keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ru.koi8-r" },
1930       { "Slovenian", "Slovenian ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=si.iso" },
1931       { " Spanish (accent)", "Spanish ISO keymap (accent keys)",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso.acc" },
1932       { " Spanish",     "Spanish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso" },
1933       { " Swedish CP850", "Swedish Code Page 850 keymap", dmenuVarCheck,        dmenuSetKmapVariable, NULL, "keymap=swedish.cp850" },
1934       { " Swedish ISO", "Swedish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.iso" },
1935       { " Swiss French ISO (accent)", "Swiss French ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso.acc" },
1936       { " Swiss French ISO", "Swiss French ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso" },
1937       { " Swiss French CP850", "Swiss French Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.cp850" },
1938       { " Swiss German ISO (accent)", "Swiss German ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso.acc" },
1939       { " Swiss German ISO", "Swiss German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso" },
1940       { " Swiss German CP850", "Swiss German Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.cp850" },
1941       { "UK CP850",     "UK Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.cp850" },
1942       { " UK ISO",      "UK ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.iso" },
1943       { " Ukrainian KOI8-U",    "Ukrainian KOI8-U keymap",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u" },
1944       { " Ukrainian KOI8-U+KOI8-R",     "Ukrainian KOI8-U+KOI8-R keymap (alter)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u.shift.alt" },
1945       { " USA CapsLock->Ctrl",  "US standard (Caps as L-Control)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.pc-ctrl" },
1946       { " USA Dvorak",  "US Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorak" },
1947       { " USA Dvorak (left)",   "US left handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakl" },
1948       { " USA Dvorak (right)",  "US right handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakr" },
1949       { " USA Emacs",   "US standard optimized for EMACS",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.emacs" },
1950       { " USA ISO",     "US ISO keymap",        dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.iso" },
1951       { " USA UNIX",    "US traditional UNIX-workstation",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.unix" },
1952       { NULL } },
1953 };
1954 #endif
1955
1956 DMenu MenuSysconsKeyrate = {
1957     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1958     "System Console Keyboard Repeat Rate",
1959     "This menu allows you to set the speed at which keys repeat\n"
1960     "when held down.",
1961     "Choose a keyboard repeat rate",
1962     NULL,
1963     { { "Slow", "Slow keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=slow" },
1964       { "Normal", "\"Normal\" keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=normal" },
1965       { "Fast", "Fast keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=fast" },
1966       { "Default", "Use default keyboard repeat rate",  dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=NO" },
1967       { NULL } },
1968 };
1969
1970 DMenu MenuSysconsSaver = {
1971     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1972     "System Console Screen Saver",
1973     "By default, the console driver will not attempt to do anything\n"
1974     "special with your screen when it's idle.  If you expect to leave your\n"
1975     "monitor switched on and idle for long periods of time then you should\n"
1976     "probably enable one of these screen savers to prevent phosphor burn-in.",
1977     "Choose a nifty-looking screen saver",
1978     NULL,
1979     { { "1 Blank",      "Simply blank the screen",
1980         dmenuVarCheck, configSaver, NULL, "saver=blank" },
1981       { "2 Daemon",     "\"BSD Daemon\" animated screen saver (text)",
1982         dmenuVarCheck, configSaver, NULL, "saver=daemon" },
1983       { "3 Fade",       "Fade out effect screen saver",
1984         dmenuVarCheck, configSaver, NULL, "saver=fade" },
1985       { "4 Fire",       "Flames effect screen saver",
1986         dmenuVarCheck, configSaver, NULL, "saver=fire" },
1987       { "5 Green",      "\"Green\" power saving mode (if supported by monitor)",
1988         dmenuVarCheck, configSaver, NULL, "saver=green" },
1989       { "6 Logo",       "\"BSD Daemon\" animated screen saver (graphics)",
1990         dmenuVarCheck, configSaver, NULL, "saver=logo" },
1991       { "7 Rain",       "Rain drops screen saver",
1992         dmenuVarCheck, configSaver, NULL, "saver=rain" },
1993       { "8 Snake",      "Draw a FreeBSD \"snake\" on your screen",
1994         dmenuVarCheck, configSaver, NULL, "saver=snake" },
1995       { "9 Star",       "A \"twinkling stars\" effect",
1996         dmenuVarCheck, configSaver, NULL, "saver=star" },
1997       { "Warp", "A \"stars warping\" effect",
1998         dmenuVarCheck, configSaver, NULL, "saver=warp" },
1999       { "Dragon", "Dragon screensaver (graphics)",
2000         dmenuVarCheck, configSaver, NULL, "saver=dragon" },
2001       { "Timeout",      "Set the screen saver timeout interval",
2002         NULL, configSaverTimeout, NULL, NULL, ' ', ' ', ' ' },
2003       { NULL } },
2004 };
2005
2006 DMenu MenuSysconsScrnmap = {
2007     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2008     "System Console Screenmap",
2009     "Unless you load a specific font, most PC hardware defaults to\n"
2010     "displaying characters in the IBM 437 character set.  However,\n"
2011     "in the Unix world, this character set is very rarely used.  Most\n"
2012     "Western European countries, for example, prefer ISO 8859-1.\n"
2013     "American users won't notice the difference since the bottom half\n"
2014     "of all these character sets is ANSI anyway.\n"
2015     "If your hardware is capable of downloading a new display font,\n"
2016     "you should probably choose that option.  However, for hardware\n"
2017     "where this is not possible (e.g. monochrome adapters), a screen\n"
2018     "map will give you the best approximation that your hardware can\n"
2019     "display at all.",
2020     "Choose a screen map",
2021     NULL,
2022     { { "None",                 "No screenmap, use default font", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=NO" },
2023       { "KOI8-R to IBM866",     "Russian KOI8-R to IBM 866 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-r2cp866" },
2024       { "KOI8-U to IBM866u",    "Ukrainian KOI8-U to IBM 866u screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-u2cp866u" },
2025       { "ISO 8859-1 to IBM437", "W-Europe ISO 8859-1 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-1_to_cp437" },
2026       { NULL } },
2027 };
2028
2029 DMenu MenuSysconsFont = {
2030     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2031     "System Console Font",
2032     "Most PC hardware defaults to displaying characters in the\n"
2033     "IBM 437 character set.  However, in the Unix world, this\n"
2034     "character set is very rarely used.  Most Western European\n"
2035     "countries, for example, prefer ISO 8859-1.\n"
2036     "American users won't notice the difference since the bottom half\n"
2037     "of all these charactersets is ANSI anyway.  However, they might\n"
2038     "want to load a font anyway to use the 30- or 50-line displays.\n"
2039     "If your hardware is capable of downloading a new display font,\n"
2040     "you can select the appropriate font below.",
2041     "Choose a font",
2042     NULL,
2043     { { "1 None", "Use hardware default font", dmenuVarCheck, dmenuSetVariables, NULL,
2044         "font8x8=NO,font8x14=NO,font8x16=NO" },
2045       { "2 IBM 437", "English and others, VGA default", dmenuVarCheck,  dmenuSetVariables, NULL,
2046         "font8x8=cp437-8x8,font8x14=cp437-8x14,font8x16=cp437-8x16" },
2047       { "3 IBM 850", "Western Europe, IBM encoding",    dmenuVarCheck,  dmenuSetVariables, NULL,
2048         "font8x8=cp850-8x8,font8x14=cp850-8x14,font8x16=cp850-8x16" },
2049       { "4 IBM 865", "Norwegian, IBM encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2050         "font8x8=cp865-8x8,font8x14=cp865-8x14,font8x16=cp865-8x16" },
2051       { "5 IBM 866", "Russian, IBM encoding (use with KOI8-R screenmap)",   dmenuVarCheck,  dmenuSetVariables, NULL,
2052         "font8x8=cp866-8x8,font8x14=cp866-8x14,font8x16=cp866b-8x16,mousechar_start=3" },
2053       { "6 IBM 866u", "Ukrainian, IBM encoding (use with KOI8-U screenmap)",   dmenuVarCheck,  dmenuSetVariables, NULL,
2054         "font8x8=cp866u-8x8,font8x14=cp866u-8x14,font8x16=cp866u-8x16,mousechar_start=3" },
2055       { "7 IBM 1251", "Cyrillic, MS Windows encoding",  dmenuVarCheck, dmenuSetVariables, NULL,
2056         "font8x8=cp1251-8x8,font8x14=cp1251-8x14,font8x16=cp1251-8x16,mousechar_start=3" },
2057       { "8 ISO 8859-1", "Western Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2058         "font8x8=iso-8x8,font8x14=iso-8x14,font8x16=iso-8x16" },
2059       { "9 ISO 8859-2", "Eastern Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2060         "font8x8=iso02-8x8,font8x14=iso02-8x14,font8x16=iso02-8x16" },
2061       { "a ISO 8859-4", "Baltic, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2062         "font8x8=iso04-8x8,font8x14=iso04-8x14,font8x16=iso04-8x16" },
2063       { "b ISO 8859-7", "Greek, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2064         "font8x8=iso07-8x8,font8x14=iso07-8x14,font8x16=iso07-8x16" },
2065       { "c ISO 8859-8", "Hebrew, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2066         "font8x8=iso08-8x8,font8x14=iso08-8x14,font8x16=iso08-8x16" },
2067       { "d ISO 8859-15", "Europe, ISO encoding", dmenuVarCheck,  dmenuSetVariables, NULL,
2068         "font8x8=iso15-8x8,font8x14=iso15-8x14,font8x16=iso15-8x16" },
2069       { "e SWISS", "English, better resolution", dmenuVarCheck, dmenuSetVariables, NULL,
2070         "font8x8=swiss-8x8,font8x14=NO,font8x16=swiss-8x16" },
2071       { NULL } },
2072 };
2073
2074 DMenu MenuUsermgmt = {
2075     DMENU_NORMAL_TYPE,
2076     "User and group management",
2077     "The submenus here allow to manipulate user groups and\n"
2078     "login accounts.\n",
2079     "Configure your user groups and users",
2080     NULL,
2081     { { "X Exit",       "Exit this menu (returning to previous)", NULL, dmenuExit },
2082       { "User",         "Add a new user to the system.",        NULL, userAddUser },
2083       { "Group",        "Add a new user group to the system.",  NULL, userAddGroup },
2084       { NULL } },
2085 };
2086
2087 DMenu MenuSecurityProfile = {
2088     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2089     "Default system security profile",
2090     "Each item in this list will set what it considers to\n"
2091     "be \"appropriate\" values in that category for various\n"
2092     "security-related knobs in /etc/rc.conf.",
2093     "Select a canned security profile - F1 for help",
2094     "security",                                         /* help file */
2095     { { "X Exit",       "Exit this menu (returning to previous)", NULL, configSecurityModerate },
2096       { "Medium",       "Moderate security settings [DEFAULT].", NULL, configSecurityModerate },
2097       { "Extreme",      "Very restrictive security settings.", NULL, configSecurityExtreme },
2098       { NULL } },
2099 };
2100
2101 DMenu MenuFixit = {
2102     DMENU_NORMAL_TYPE,
2103     "Please choose a fixit option",
2104     "There are three ways of going into \"fixit\" mode:\n"
2105     "- you can use the live filesystem CDROM/DVD, in which case there will be\n"
2106     "  full access to the complete set of FreeBSD commands and utilities,\n"
2107     "- you can use the more limited (but perhaps customized) fixit floppy,\n"
2108     "- or you can start an Emergency Holographic Shell now, which is\n"
2109     "  limited to the subset of commands that is already available right now.",
2110     "Press F1 for more detailed repair instructions",
2111     "fixit",
2112 { { "X Exit",           "Exit this menu (returning to previous)",       NULL, dmenuExit },
2113   { "2 CDROM/DVD",      "Use the \"live\" filesystem CDROM/DVD",        NULL, installFixitCDROM },
2114   { "3 Floppy",         "Use a floppy generated from the fixit image",  NULL, installFixitFloppy },
2115   { "4 Shell",          "Start an Emergency Holographic Shell",         NULL, installFixitHoloShell },
2116   { NULL } },
2117 };