]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/sade/menus.c
Add new Korean FTP mirror sites.
[FreeBSD/FreeBSD.git] / usr.sbin / sade / 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  * $Id: menus.c,v 1.173 1998/11/24 00:18:56 jkh Exp $
8  *
9  * Copyright (c) 1995
10  *      Jordan Hubbard.  All rights reserved.
11  *
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions
14  * are met:
15  * 1. Redistributions of source code must retain the above copyright
16  *    notice, this list of conditions and the following disclaimer,
17  *    verbatim and that no modifications are made prior to this
18  *    point in the file.
19  * 2. Redistributions in binary form must reproduce the above copyright
20  *    notice, this list of conditions and the following disclaimer in the
21  *    documentation and/or other materials provided with the distribution.
22  *
23  * THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED.  IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE
27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29  * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33  * SUCH DAMAGE.
34  *
35  */
36
37 #include "sysinstall.h"
38
39 /* Miscellaneous work routines for menus */
40 static int
41 setSrc(dialogMenuItem *self)
42 {
43     Dists |= DIST_SRC;
44     SrcDists = DIST_SRC_ALL | DIST_SRC_SMAILCF;
45     return DITEM_SUCCESS | DITEM_REDRAW;
46 }
47
48 static int
49 clearSrc(dialogMenuItem *self)
50 {
51     Dists &= ~DIST_SRC;
52     SrcDists = 0;
53     return DITEM_SUCCESS | DITEM_REDRAW;
54 }
55
56 static int
57 setX11All(dialogMenuItem *self)
58 {
59     XF86Dists = DIST_XF86_ALL;
60     XF86ServerDists = DIST_XF86_SERVER_ALL;
61     XF86FontDists = DIST_XF86_FONTS_ALL;
62     Dists |= DIST_XF86;
63     return DITEM_SUCCESS | DITEM_REDRAW;
64 }
65
66 static int
67 clearX11All(dialogMenuItem *self)
68 {
69     XF86Dists = 0;
70     XF86ServerDists = 0;
71     XF86FontDists = 0;
72     Dists &= ~DIST_XF86;
73     return DITEM_SUCCESS | DITEM_REDRAW;
74 }
75
76 static int
77 setX11Misc(dialogMenuItem *self)
78 {
79     XF86Dists |= DIST_XF86_MISC_ALL;
80     Dists |= DIST_XF86;
81     return DITEM_SUCCESS | DITEM_REDRAW;
82 }
83
84 static int
85 clearX11Misc(dialogMenuItem *self)
86 {
87     XF86Dists &= ~DIST_XF86_MISC_ALL;
88     if (!XF86ServerDists && !XF86FontDists)
89         Dists &= ~DIST_XF86;
90     return DITEM_SUCCESS | DITEM_REDRAW;
91 }
92
93 static int
94 setX11Servers(dialogMenuItem *self)
95 {
96     XF86Dists |= DIST_XF86_SERVER;
97     XF86ServerDists = DIST_XF86_SERVER_ALL;
98     return DITEM_SUCCESS | DITEM_REDRAW;
99 }
100
101 static int
102 clearX11Servers(dialogMenuItem *self)
103 {
104     XF86Dists &= ~DIST_XF86_SERVER;
105     XF86ServerDists = 0;
106     return DITEM_SUCCESS | DITEM_REDRAW;
107 }
108
109 static int
110 setX11Fonts(dialogMenuItem *self)
111 {
112     XF86Dists |= DIST_XF86_FONTS;
113     XF86FontDists = DIST_XF86_FONTS_ALL;
114     return DITEM_SUCCESS | DITEM_REDRAW;
115 }
116
117 static int
118 clearX11Fonts(dialogMenuItem *self)
119 {
120     XF86Dists &= ~DIST_XF86_FONTS;
121     XF86FontDists = 0;
122     return DITEM_SUCCESS | DITEM_REDRAW;
123 }
124
125 #define _IS_SET(dist, set) (((dist) & (set)) == (set))
126
127 #define IS_DEVELOPER(dist, extra) (_IS_SET(dist, _DIST_DEVELOPER | extra) || \
128         _IS_SET(dist, _DIST_DEVELOPER | DIST_DES | extra))
129
130 #define IS_USER(dist, extra) (_IS_SET(dist, _DIST_USER | extra) || \
131         _IS_SET(dist, _DIST_USER | DIST_DES | extra))
132
133 static int
134 checkDistDeveloper(dialogMenuItem *self)
135 {
136     return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_ALL);
137 }
138
139 static int
140 checkDistXDeveloper(dialogMenuItem *self)
141 {
142     return IS_DEVELOPER(Dists, DIST_XF86) && _IS_SET(SrcDists, DIST_SRC_ALL);
143 }
144
145 static int
146 checkDistKernDeveloper(dialogMenuItem *self)
147 {
148     return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_SYS);
149 }
150
151 static int
152 checkDistUser(dialogMenuItem *self)
153 {
154     return IS_USER(Dists, 0);
155 }
156
157 static int
158 checkDistXUser(dialogMenuItem *self)
159 {
160     return IS_USER(Dists, DIST_XF86);
161 }
162
163 static int
164 checkDistMinimum(dialogMenuItem *self)
165 {
166     return Dists == DIST_BIN;
167 }
168
169 static int
170 checkDistEverything(dialogMenuItem *self)
171 {
172     return Dists == DIST_ALL && _IS_SET(SrcDists, DIST_SRC_ALL) && \
173         _IS_SET(XF86Dists, DIST_XF86_ALL) && \
174         _IS_SET(XF86ServerDists, DIST_XF86_SERVER_ALL) && \
175         _IS_SET(XF86FontDists, DIST_XF86_FONTS_ALL);
176 }
177
178 static int
179 DESFlagCheck(dialogMenuItem *item)
180 {
181     return DESDists;
182 }
183
184 static int
185 srcFlagCheck(dialogMenuItem *item)
186 {
187     return SrcDists;
188 }
189
190 static int
191 x11FlagCheck(dialogMenuItem *item)
192 {
193     return Dists & DIST_XF86;
194 }
195
196 static int
197 checkTrue(dialogMenuItem *item)
198 {
199     return TRUE;
200 }
201
202 /* All the system menus go here.
203  *
204  * Hardcoded things like version number strings will disappear from
205  * these menus just as soon as I add the code for doing inline variable
206  * expansion.
207  */
208
209 DMenu MenuIndex = {
210     DMENU_NORMAL_TYPE,
211     "Glossary of functions",
212     "This menu contains an alphabetized index of the top level functions in\n"
213     "this program (sysinstall).  Invoke an option by pressing [ENTER].\n"
214     "Leave the index page by selecting Cancel [TAB-ENTER].",
215     "Use PageUp or PageDown to move through this menu faster!",
216     NULL,
217     { { "Anon FTP",             "Configure anonymous FTP logins.",      dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
218       { "Commit",               "Commit any pending actions (dangerous!)", NULL, installCustomCommit },
219       { "Console settings",     "Customize system console behavior.",   NULL, dmenuSubmenu, NULL, &MenuSyscons },
220       { "Configure",            "The system configuration menu.",       NULL, dmenuSubmenu, NULL, &MenuConfigure },
221       { "Defaults, Load",       "Load default settings.",               NULL, dispatch_load_floppy },
222       { "Device, Mouse",        "The mouse configuration menu.",        NULL, dmenuSubmenu, NULL, &MenuMouse },
223       { "Disklabel",            "The disk Label editor",                NULL, diskLabelEditor },
224       { "Dists, All",           "Root of the distribution tree.",       NULL, dmenuSubmenu, NULL, &MenuDistributions },
225       { "Dists, Basic",         "Basic FreeBSD distribution menu.",     NULL, dmenuSubmenu, NULL, &MenuSubDistributions },
226       { "Dists, DES",           "DES distribution menu.",               NULL, dmenuSubmenu, NULL, &MenuDESDistributions },
227       { "Dists, Developer",     "Select developer's distribution.",     checkDistDeveloper, distSetDeveloper },
228       { "Dists, Src",           "Src distribution menu.",               NULL, dmenuSubmenu, NULL, &MenuSrcDistributions },
229       { "Dists, X Developer",   "Select X developer's distribution.",   checkDistXDeveloper, distSetXDeveloper },
230       { "Dists, Kern Developer", "Select kernel developer's distribution.", checkDistKernDeveloper, distSetKernDeveloper },
231       { "Dists, User",          "Select average user distribution.",    checkDistUser, distSetUser },
232       { "Dists, X User",        "Select average X user distribution.",  checkDistXUser, distSetXUser },
233       { "Distributions, Adding", "Installing additional distribution sets", NULL, distExtractAll },
234       { "Distributions, XFree86","XFree86 distribution menu.",          NULL, distSetXF86 },
235       { "Documentation",        "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
236       { "Doc, README",          "The distribution README file.",        NULL, dmenuDisplayFile, NULL, "README" },
237       { "Doc, Hardware",        "The distribution hardware guide.",     NULL, dmenuDisplayFile, NULL, "HARDWARE" },
238       { "Doc, Install",         "The distribution installation guide.", NULL, dmenuDisplayFile, NULL, "INSTALL" },
239       { "Doc, Copyright",       "The distribution copyright notices.",  NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
240       { "Doc, Release",         "The distribution release notes.",      NULL, dmenuDisplayFile, NULL, "RELNOTES" },
241       { "Doc, HTML",            "The HTML documentation menu.",         NULL, docBrowser },
242       { "Emergency shell",      "Start an Emergency Holographic shell.",        NULL, installFixitHoloShell },
243       { "Fdisk",                "The disk Partition Editor",            NULL, diskPartitionEditor },
244       { "Fixit",                "Repair mode with CDROM or fixit floppy.",      NULL, dmenuSubmenu, NULL, &MenuFixit },
245       { "FTP sites",            "The FTP mirror site listing.",         NULL, dmenuSubmenu, NULL, &MenuMediaFTP },
246       { "Gateway",              "Set flag to route packets between interfaces.", dmenuVarCheck, dmenuToggleVariable, NULL, "gateway=YES" },
247       { "HTML Docs",            "The HTML documentation menu",          NULL, docBrowser },
248       { "Install, Novice",      "A novice system installation.",        NULL, installNovice },
249       { "Install, Express",     "An express system installation.",      NULL, installExpress },
250       { "Install, Custom",      "The custom installation menu",         NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
251       { "Label",                "The disk Label editor",                NULL, diskLabelEditor },
252       { "Media",                "Top level media selection menu.",      NULL, dmenuSubmenu, NULL, &MenuMedia },
253       { "Media, Tape",          "Select tape installation media.",      NULL, mediaSetTape },
254       { "Media, NFS",           "Select NFS installation media.",       NULL, mediaSetNFS },
255       { "Media, Floppy",        "Select floppy installation media.",    NULL, mediaSetFloppy },
256       { "Media, CDROM",         "Select CDROM installation media.",     NULL, mediaSetCDROM },
257       { "Media, DOS",           "Select DOS installation media.",       NULL, mediaSetDOS },
258       { "Media, UFS",           "Select UFS installation media.",       NULL, mediaSetUFS },
259       { "Media, FTP",           "Select FTP installation media.",       NULL, mediaSetFTP },
260       { "Media, FTP Passive",   "Select passive FTP installation media.", NULL, mediaSetFTPPassive },
261       { "Network Interfaces",   "Configure network interfaces",         NULL, tcpMenuSelect },
262       { "Networking Services",  "The network services menu.",           NULL, dmenuSubmenu, NULL, &MenuNetworking },
263       { "NFS, client",          "Set NFS client flag.",                 dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
264       { "NFS, server",          "Set NFS server flag.",                 dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
265       { "NTP Menu",             "The NTP configuration menu.",          NULL, dmenuSubmenu, NULL, &MenuNTP },
266       { "Options",              "The options editor.",                  NULL, optionsEditor },
267       { "Packages",             "The packages collection",              NULL, configPackages },
268       { "Partition",            "The disk Slice (PC-style partition) Editor",   NULL, diskPartitionEditor },
269       { "PCNFSD",               "Run authentication server for PC-NFS.", dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
270       { "Register",             "Register yourself or company as a FreeBSD user.", dmenuVarCheck, configRegister, NULL, "registered" },
271       { "Root Password",        "Set the system manager's password.",   NULL, dmenuSystemCommand, NULL, "passwd root" },
272       { "Root Password",        "Set the system manager's password.",   NULL, dmenuSystemCommand, NULL, "passwd root" },
273       { "Router",               "Select routing daemon (default: routed)", NULL, configRouter, NULL, "router" },
274       { "Syscons",              "The system console configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSyscons },
275       { "Syscons, Font",        "The console screen font.",       NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
276       { "Syscons, Keymap",      "The console keymap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
277       { "Syscons, Keyrate",     "The console key rate configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
278       { "Syscons, Saver",       "The console screen saver configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
279       { "Syscons, Screenmap",   "The console screenmap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
280       { "Time Zone",            "Set the system's time zone.",          NULL, dmenuSystemCommand, NULL, "tzsetup" },
281       { "Upgrade",              "Upgrade an existing system.",          NULL, installUpgrade },
282       { "Usage",                "Quick start - How to use this menu system.",   NULL, dmenuDisplayFile, NULL, "usage" },
283       { "User Management",      "Add user and group information.",      NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
284       { "XFree86, Fonts",       "XFree86 Font selection menu.",         NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
285       { "XFree86, Server",      "XFree86 Server selection menu.",       NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
286       { "XFree86, PC98 Server", "XFree86 PC98 Server selection menu.",  NULL, dmenuSubmenu, NULL, &MenuXF86SelectPC98Server },
287       { NULL } },
288 };
289
290 /* The initial installation menu */
291 DMenu MenuInitial = {
292     DMENU_NORMAL_TYPE,
293     "/stand/sysinstall Main Menu",                      /* title */
294     "Welcome to the FreeBSD installation and configuration tool.  Please\n" /* prompt */
295     "select one of the options below by using the arrow keys or typing the\n"
296     "first character of the option name you're interested in.  Invoke an\n"
297     "option by pressing [ENTER] or [TAB-ENTER] to exit the installation.", 
298     "Press F1 for Installation Guide",                  /* help line */
299     "install",                                          /* help file */
300     { { "Select" },
301       { "Exit Install", NULL, NULL, dmenuExit },
302       { "1 Usage",      "Quick start - How to use this menu system",    NULL, dmenuDisplayFile, NULL, "usage" },
303       { "2 Doc",        "Installation instructions, README, etc.",      NULL, dmenuSubmenu, NULL, &MenuDocumentation },
304       { "3 Keymap",     "Select keyboard type",                         NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
305       { "4 Options",    "View/Set various installation options",        NULL, optionsEditor },
306       { "5 Novice",     "Begin a novice installation (for beginners)",  NULL, installNovice },
307       { "6 Express",    "Begin a quick installation (for the impatient)", NULL, installExpress },
308       { "7 Custom",     "Begin a custom installation (for experts)",    NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
309       { "8 Fixit",      "Enter repair mode with CDROM/floppy or start shell",   NULL, dmenuSubmenu, NULL, &MenuFixit },
310       { "9 Upgrade",    "Upgrade an existing system",                   NULL, installUpgrade },
311       { "c Configure",  "Do post-install configuration of FreeBSD",     NULL, dmenuSubmenu, NULL, &MenuConfigure },
312       { "l Load Config","Load default install configuration",           NULL, dispatch_load_floppy },
313       { "0 Index",      "Glossary of functions",                        NULL, dmenuSubmenu, NULL, &MenuIndex },
314       { NULL } },
315 };
316
317 /* The main documentation menu */
318 DMenu MenuDocumentation = {
319     DMENU_NORMAL_TYPE,
320     "FreeBSD Documentation Menu",
321     "If you are at all unsure about the configuration of your hardware\n"
322     "or are looking to build a system specifically for FreeBSD, read the\n"
323     "Hardware guide!  New users should also read the Install document for\n"
324     "a step-by-step tutorial on installing FreeBSD.  For general information,\n"
325     "consult the README file.",
326     "Confused?  Press F1 for help.",
327     "usage",
328     { { "1 README",     "A general description of FreeBSD.  Read this!", NULL, dmenuDisplayFile, NULL, "README" },
329       { "2 Hardware",   "The FreeBSD survival guide for PC hardware.",  NULL, dmenuDisplayFile, NULL, "HARDWARE" },
330       { "3 Install",    "A step-by-step guide to installing FreeBSD.",  NULL, dmenuDisplayFile, NULL, "INSTALL" },
331       { "4 Copyright",  "The FreeBSD Copyright notices.",               NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
332       { "5 Release"     ,"The release notes for this version of FreeBSD.", NULL, dmenuDisplayFile, NULL, "RELNOTES" },
333       { "6 Shortcuts",  "Creating shortcuts to sysinstall.",            NULL, dmenuDisplayFile, NULL, "shortcuts" },
334       { "7 HTML Docs",  "Go to the HTML documentation menu (post-install).", NULL, docBrowser },
335       { "0 Exit",       "Exit this menu (returning to previous)",       NULL, dmenuExit },
336       { NULL } },
337 };
338
339 DMenu MenuMouseType = {
340     DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
341     "Select a protocol type for your mouse",
342     "If you are not sure, choose \"Auto\".  It should always work for bus\n"
343     "and PS/2 style mice.  It may not work for the serial mouse if the mouse\n"
344     "does not support the PnP standard.  But, it won't hurt.  Many 2-button\n"
345     "serial mice are compatible with \"Microsoft\" or \"MouseMan\".  3-button\n"
346     "serial mice may be compatible with \"MouseSystems\" or \"MouseMan\".  If\n"
347     "the mouse has a wheel, it may be compatible with \"IntelliMouse\".",
348     NULL,
349     NULL,
350     { { "Auto",         "Bus mouse, PS/2 style mouse or PnP serial mouse",      
351         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=auto" },
352       { "GlidePoint",   "ALPS GlidePoint pad (serial)",
353         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=glidepoint" },
354       { "Hitachi","Hitachi tablet (serial)",
355         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmhittab" },
356       { "IntelliMouse", "Microsoft IntelliMouse (serial)",
357         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=intellimouse" },
358       { "Logitech",     "Logitech protocol (old models) (serial)",
359         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=logitech" },
360       { "Microsoft",    "Microsoft protocol (serial)",
361         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=microsoft" },
362       { "MM Series","MM Series protocol (serial)",
363         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmseries" },
364       { "MouseMan",     "Logitech MouseMan/TrackMan models (serial)",
365         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mouseman" },
366       { "MouseSystems", "MouseSystems protocol (serial)",
367         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mousesystems" },
368       { "ThinkingMouse","Kensington ThinkingMouse (serial)",
369         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=thinkingmouse" },
370       { NULL } },
371 };
372
373 DMenu MenuMousePort = {
374     DMENU_RADIO_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     { { "COM1", "Serial mouse on COM1 (/dev/cuaa0)",
381         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa0" },
382       { "COM2", "Serial mouse on COM2 (/dev/cuaa1)",
383         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa1" },
384       { "COM3", "Serial mouse on COM3 (/dev/cuaa2)",
385         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa2" },
386       { "COM4", "Serial mouse on COM4 (/dev/cuaa3)", 
387         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa3" },
388       { "BusMouse", "Logitech, ATI or MS bus mouse (/dev/mse0)", 
389         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" },
390       { "PS/2", "PS/2 style mouse (/dev/psm0)", 
391         dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" },
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 4 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     { { "1 Type",       "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType },
409       { "2 Port",       "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort },
410       { "3 Enable",     "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL },
411       { "4 Disable",    "Disable the mouse daemon", NULL, mousedDisable, NULL, NULL },
412       { "0 Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
413       { NULL } },
414 };
415
416 DMenu MenuXF86Config = {
417     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
418     "Please select the XFree86 configuration tool you want to use.",
419     "The first tool, XF86Setup, is fully graphical and requires the\n"
420     "VGA16 server in order to work (should have been selected by\n"
421     "default, but if you de-selected it then you won't be able to\n"
422     "use this fancy setup tool).  The second tool, xf86config, is\n"
423     "a more simplistic shell-script based tool and less friendly to\n"
424     "new users, but it may work in situations where the fancier one\n"
425     "does not.",
426     "Press F1 to read the XFree86 release notes for FreeBSD",
427     "XF86",
428     { { "XF86Setup",    "Fully graphical XFree86 configuration tool.",
429         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=XF86Setup" },
430       { "xf86config",   "Shell-script based XFree86 configuration tool.",
431         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
432       { "XF98Setup",    "Fully graphical XFree86 configuration tool (PC98).",
433         NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=XF98Setup" },
434       { NULL } },
435 };
436
437 DMenu MenuMediaCDROM = {
438     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
439     "Choose a CDROM type",
440     "FreeBSD can be installed directly from a CDROM containing a valid\n"
441     "FreeBSD distribution.  If you are seeing this menu it is because\n"
442     "more than one CDROM drive was found on your system.  Please select one\n"
443     "of the following CDROM drives as your installation drive.",
444     "Press F1 to read the installation guide",
445     "install",
446     { { NULL } },
447 };
448
449 DMenu MenuMediaFloppy = {
450     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
451     "Choose a Floppy drive",
452     "You have more than one floppy drive.  Please chose which drive\n"
453     "you would like to use.",
454     NULL,
455     NULL,
456     { { NULL } },
457 };
458
459 DMenu MenuMediaDOS = {
460     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
461     "Choose a DOS partition",
462     "FreeBSD can be installed directly from a DOS partition\n"
463     "assuming, of course, that you have copied the relevant\n"
464     "distributions into your DOS partition before starting this\n"
465     "installation.  If this is not the case then you should reboot\n"
466     "DOS at this time and copy the distributions you wish to install\n"
467     "into a \"FREEBSD\" subdirectory on one of your DOS partitions.\n"
468     "Otherwise, please select the DOS partition containing the FreeBSD\n"
469     "distribution files.",
470     "Press F1 to read the installation guide",
471     "install",
472     { { NULL } },
473 };
474
475 DMenu MenuMediaFTP = {
476     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
477     "Please select a FreeBSD FTP distribution site",
478     "Please select the site closest to you or \"other\" if you'd like to\n"
479     "specify a different choice.  Also note that not every site listed here\n"
480     "carries more than the base distribution kits. Only the Primary site is\n"
481     "guaranteed to carry the full range of possible distributions.",
482     "Select a site that's close!",
483     "install",
484     { { "Primary Site", "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
485         VAR_FTP_PATH "=ftp://ftp.freebsd.org/pub/FreeBSD/" },
486       { "URL", "Specify some other ftp site by URL", NULL, dmenuSetVariable, NULL,
487         VAR_FTP_PATH "=other" },
488       { "3.0 SNAP Server", "current.freebsd.org", NULL, dmenuSetVariable, NULL,
489         VAR_FTP_PATH "=ftp://current.freebsd.org/pub/FreeBSD/" },
490       { "2.2 SNAP Server", "releng22.freebsd.org", NULL, dmenuSetVariable, NULL,
491         VAR_FTP_PATH "=ftp://releng22.freebsd.org/pub/FreeBSD/" },
492       { "2.1 SNAP Server", "releng210.freebsd.org", NULL, dmenuSetVariable, NULL,
493         VAR_FTP_PATH "=ftp://releng210.freebsd.org/pub/FreeBSD/" },
494       { "Argentina",    "ftp.ar.freebsd.org", NULL, dmenuSetVariable, NULL,
495         VAR_FTP_PATH "=ftp://ftp.ar.freebsd.org/pub/FreeBSD/" },
496       { "Australia",    "ftp.au.freebsd.org", NULL, dmenuSetVariable, NULL,
497         VAR_FTP_PATH "=ftp://ftp.au.freebsd.org/pub/FreeBSD/" },
498       { "Australia #2", "ftp2.au.freebsd.org", NULL, dmenuSetVariable, NULL,
499         VAR_FTP_PATH "=ftp://ftp2.au.freebsd.org/pub/FreeBSD/" },
500       { "Australia #3", "ftp3.au.freebsd.org", NULL, dmenuSetVariable, NULL,
501         VAR_FTP_PATH "=ftp://ftp3.au.freebsd.org/pub/FreeBSD/" },
502       { "Australia #4", "ftp4.au.freebsd.org", NULL, dmenuSetVariable, NULL,
503         VAR_FTP_PATH "=ftp://ftp4.au.freebsd.org/pub/FreeBSD/" },
504       { "Australia #5", "ftp5.au.freebsd.org", NULL, dmenuSetVariable, NULL,
505         VAR_FTP_PATH "=ftp://ftp5.au.freebsd.org/pub/FreeBSD/" },
506       { "Brazil",       "ftp.br.freebsd.org", NULL, dmenuSetVariable, NULL,
507         VAR_FTP_PATH "=ftp://ftp.br.freebsd.org/pub/FreeBSD/" },
508       { "Brazil #2",    "ftp2.br.freebsd.org", NULL, dmenuSetVariable, NULL,
509         VAR_FTP_PATH "=ftp://ftp2.br.freebsd.org/pub/FreeBSD/" },
510       { "Brazil #3",    "ftp3.br.freebsd.org", NULL, dmenuSetVariable, NULL,
511         VAR_FTP_PATH "=ftp://ftp3.br.freebsd.org/pub/FreeBSD/" },
512       { "Brazil #4",    "ftp4.br.freebsd.org", NULL, dmenuSetVariable, NULL,
513         VAR_FTP_PATH "=ftp://ftp4.br.freebsd.org/pub/FreeBSD/" },
514       { "Brazil #5",    "ftp5.br.freebsd.org", NULL, dmenuSetVariable, NULL,
515         VAR_FTP_PATH "=ftp://ftp5.br.freebsd.org/pub/FreeBSD/" },
516       { "Brazil #6",    "ftp6.br.freebsd.org", NULL, dmenuSetVariable, NULL,
517         VAR_FTP_PATH "=ftp://ftp6.br.freebsd.org/pub/FreeBSD/" },
518       { "Brazil #7",    "ftp7.br.freebsd.org", NULL, dmenuSetVariable, NULL,
519         VAR_FTP_PATH "=ftp://ftp7.br.freebsd.org/pub/FreeBSD/" },
520       { "Canada",       "ftp.ca.freebsd.org", NULL, dmenuSetVariable, NULL,
521         VAR_FTP_PATH "=ftp://ftp.ca.freebsd.org/pub/FreeBSD/" },
522       { "Czech Republic", "ftp.cz.freebsd.org", NULL, dmenuSetVariable, NULL,
523         VAR_FTP_PATH "=ftp://ftp.cz.freebsd.org/pub/FreeBSD/" },
524       { "Denmark",      "ftp.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
525         VAR_FTP_PATH "=ftp://ftp.dk.freebsd.org/pub/FreeBSD/" },
526       { "Denmark #2",   "ftp2.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
527         VAR_FTP_PATH "=ftp://ftp2.dk.freebsd.org/pub/FreeBSD/" },
528       { "Estonia",      "ftp.ee.freebsd.org", NULL, dmenuSetVariable, NULL,
529         VAR_FTP_PATH "=ftp://ftp.ee.freebsd.org/pub/FreeBSD/" },
530       { "Finland",      "ftp.fi.freebsd.org", NULL, dmenuSetVariable, NULL,
531         VAR_FTP_PATH "=ftp://ftp.fi.freebsd.org/pub/FreeBSD/" },
532       { "France",       "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
533         VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org/pub/FreeBSD/" },
534       { "France #2",    "ftp2.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
535         VAR_FTP_PATH "=ftp://ftp2.fr.freebsd.org/pub/FreeBSD/" },
536       { "Germany",      "ftp.de.freebsd.org", NULL, dmenuSetVariable, NULL,
537         VAR_FTP_PATH "=ftp://ftp.de.freebsd.org/pub/FreeBSD/" },
538       { "Germany #2",   "ftp2.de.freebsd.org", NULL, dmenuSetVariable, NULL,
539         VAR_FTP_PATH "=ftp://ftp2.de.freebsd.org/pub/FreeBSD/" },
540       { "Germany #3",   "ftp3.de.freebsd.org", NULL, dmenuSetVariable, NULL,
541         VAR_FTP_PATH "=ftp://ftp3.de.freebsd.org/pub/FreeBSD/" },
542       { "Germany #4",   "ftp4.de.freebsd.org", NULL, dmenuSetVariable, NULL,
543         VAR_FTP_PATH "=ftp://ftp4.de.freebsd.org/pub/FreeBSD/" },
544       { "Germany #5",   "ftp5.de.freebsd.org", NULL, dmenuSetVariable, NULL,
545         VAR_FTP_PATH "=ftp://ftp5.de.freebsd.org/pub/FreeBSD/" },
546       { "Germany #6",   "ftp6.de.freebsd.org", NULL, dmenuSetVariable, NULL,
547         VAR_FTP_PATH "=ftp://ftp6.de.freebsd.org/pub/FreeBSD/" },
548       { "Germany #7",   "ftp7.de.freebsd.org", NULL, dmenuSetVariable, NULL,
549         VAR_FTP_PATH "=ftp://ftp7.de.freebsd.org/pub/FreeBSD/" },
550       { "Holland",      "ftp.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
551         VAR_FTP_PATH "=ftp://ftp.nl.freebsd.org/pub/FreeBSD/" },
552       { "Hong Kong",    "ftp.hk.super.net", NULL, dmenuSetVariable, NULL,
553         VAR_FTP_PATH "=ftp://ftp.hk.super.net/pub/FreeBSD/" },
554       { "Iceland",      "ftp.is.freebsd.org", NULL, dmenuSetVariable, NULL,
555         VAR_FTP_PATH "=ftp://ftp.is.freebsd.org/pub/FreeBSD/" },
556       { "Ireland",      "ftp.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
557         VAR_FTP_PATH "=ftp://ftp.ie.freebsd.org/pub/FreeBSD/" },
558       { "Israel",       "ftp.il.freebsd.org", NULL, dmenuSetVariable, NULL,
559         VAR_FTP_PATH "=ftp://ftp.il.freebsd.org/pub/FreeBSD/" },
560       { "Israel #2",    "ftp2.il.freebsd.org", NULL, dmenuSetVariable, NULL,
561         VAR_FTP_PATH "=ftp://ftp2.il.freebsd.org/pub/FreeBSD/" },
562       { "Japan",        "ftp.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
563         VAR_FTP_PATH "=ftp://ftp.jp.freebsd.org/pub/FreeBSD/" },
564       { "Japan #2",     "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
565         VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org/pub/FreeBSD/" },
566       { "Japan #3",     "ftp3.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
567         VAR_FTP_PATH "=ftp://ftp3.jp.freebsd.org/pub/FreeBSD/" },
568       { "Japan #4",     "ftp4.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
569         VAR_FTP_PATH "=ftp://ftp4.jp.freebsd.org/pub/FreeBSD/" },
570       { "Japan #5",     "ftp5.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
571         VAR_FTP_PATH "=ftp://ftp5.jp.freebsd.org/pub/FreeBSD/" },
572       { "Japan #6",     "ftp6.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
573         VAR_FTP_PATH "=ftp://ftp6.jp.freebsd.org/pub/FreeBSD/" },
574       { "Korea",        "ftp.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
575         VAR_FTP_PATH "=ftp://ftp.kr.freebsd.org/pub/FreeBSD/" },
576       { "Korea #2",     "ftp2.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
577         VAR_FTP_PATH "=ftp://ftp2.kr.freebsd.org/pub/FreeBSD/" },
578       { "Korea #3",     "ftp3.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
579         VAR_FTP_PATH "=ftp://ftp3.kr.freebsd.org/pub/FreeBSD/" },
580       { "Korea #4",     "ftp4.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
581         VAR_FTP_PATH "=ftp://ftp4.kr.freebsd.org/pub/FreeBSD/" },
582       { "Korea #5",     "ftp5.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
583         VAR_FTP_PATH "=ftp://ftp5.kr.freebsd.org/pub/FreeBSD/" },
584       { "Poland",       "ftp.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
585         VAR_FTP_PATH "=ftp://ftp.pl.freebsd.org/pub/FreeBSD/" },
586       { "Portugal",     "ftp.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
587         VAR_FTP_PATH "=ftp://ftp.pt.freebsd.org/pub/misc/FreeBSD/" },
588       { "Portugal #2",  "ftp2.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
589         VAR_FTP_PATH "=ftp://ftp2.pt.freebsd.org/pub/FreeBSD/" },
590       { "Russia",       "ftp.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
591         VAR_FTP_PATH "=ftp://ftp.ru.freebsd.org/pub/FreeBSD/" },
592       { "Russia #2",    "ftp2.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
593         VAR_FTP_PATH "=ftp://ftp2.ru.freebsd.org/pub/FreeBSD/" },
594       { "Russia #3",    "ftp3.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
595         VAR_FTP_PATH "=ftp://ftp3.ru.freebsd.org/pub/FreeBSD/" },
596       { "Russia #4",    "ftp4.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
597         VAR_FTP_PATH "=ftp://ftp4.ru.freebsd.org/pub/FreeBSD/" },
598       { "South Africa", "ftp.za.freebsd.org", NULL, dmenuSetVariable, NULL,
599         VAR_FTP_PATH "=ftp://ftp.za.freebsd.org/pub/FreeBSD/" },
600       { "South Africa #2", "ftp2.za.freebsd.org", NULL, dmenuSetVariable, NULL,
601         VAR_FTP_PATH "=ftp://ftp2.za.freebsd.org/pub/FreeBSD/" },
602       { "South Africa #3", "ftp3.za.freebsd.org", NULL, dmenuSetVariable, NULL,
603         VAR_FTP_PATH "=ftp://ftp3.za.freebsd.org/pub/FreeBSD/" },
604       { "South Africa #4", "ftp4.za.freebsd.org", NULL, dmenuSetVariable, NULL,
605         VAR_FTP_PATH "=ftp://ftp4.za.freebsd.org/pub/FreeBSD/" },
606       { "Sweden",       "ftp.se.freebsd.org", NULL, dmenuSetVariable, NULL,
607         VAR_FTP_PATH "=ftp://ftp.se.freebsd.org/pub/FreeBSD/" },
608       { "Sweden #2",    "ftp2.se.freebsd.org", NULL, dmenuSetVariable, NULL,
609         VAR_FTP_PATH "=ftp://ftp2.se.freebsd.org/pub/FreeBSD/" },
610       { "Sweden #3",    "ftp3.se.freebsd.org", NULL, dmenuSetVariable, NULL,
611         VAR_FTP_PATH "=ftp://ftp3.se.freebsd.org/pub/FreeBSD/" },
612       { "Taiwan",       "ftp.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
613         VAR_FTP_PATH "=ftp://ftp.tw.freebsd.org/pub/FreeBSD" },
614       { "Taiwan #2",    "ftp2.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
615         VAR_FTP_PATH "=ftp://ftp2.tw.freebsd.org/pub/FreeBSD" },
616       { "Taiwan #3",    "ftp3.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
617         VAR_FTP_PATH "=ftp://ftp3.tw.freebsd.org/pub/FreeBSD/" },
618       { "Thailand",     "ftp.nectec.or.th", NULL, dmenuSetVariable, NULL,
619         VAR_FTP_PATH "=ftp://ftp.nectec.or.th/pub/mirrors/FreeBSD/" },
620       { "UK",           "ftp.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
621         VAR_FTP_PATH "=ftp://ftp.uk.freebsd.org/pub/FreeBSD/" },
622       { "UK #2",        "ftp2.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
623         VAR_FTP_PATH "=ftp://ftp2.uk.freebsd.org/pub/FreeBSD/" },
624       { "UK #3",        "ftp3.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
625         VAR_FTP_PATH "=ftp://ftp3.uk.freebsd.org/pub/FreeBSD/" },
626       { "UK #4",        "ftp4.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
627         VAR_FTP_PATH "=ftp://ftp4.uk.freebsd.org/pub/FreeBSD/" },
628       { "USA",          "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
629         VAR_FTP_PATH "=ftp://ftp.freebsd.org/pub/FreeBSD/" },
630       { "USA #2",       "ftp2.freebsd.org", NULL, dmenuSetVariable, NULL,
631         VAR_FTP_PATH "=ftp://ftp2.freebsd.org/pub/FreeBSD/" },
632       { "USA #3",       "ftp3.freebsd.org", NULL, dmenuSetVariable, NULL,
633         VAR_FTP_PATH "=ftp://ftp3.freebsd.org/pub/FreeBSD/" },
634       { "USA #4",       "ftp4.freebsd.org", NULL, dmenuSetVariable, NULL,
635         VAR_FTP_PATH "=ftp://ftp4.freebsd.org/pub/FreeBSD/" },
636       { "USA #5",       "ftp5.freebsd.org", NULL, dmenuSetVariable, NULL,
637         VAR_FTP_PATH "=ftp://ftp5.freebsd.org/pub/FreeBSD/" },
638       { "USA #6",       "ftp6.freebsd.org", NULL, dmenuSetVariable, NULL,
639         VAR_FTP_PATH "=ftp://ftp6.freebsd.org/pub/FreeBSD/" },
640       { NULL } }
641 };
642
643 DMenu MenuMediaTape = {
644     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
645     "Choose a tape drive type",
646     "FreeBSD can be installed from tape drive, though this installation\n"
647     "method requires a certain amount of temporary storage in addition\n"
648     "to the space required by the distribution itself (tape drives make\n"
649     "poor random-access devices, so we extract _everything_ on the tape\n"
650     "in one pass).  If you have sufficient space for this, then you should\n"
651     "select one of the following tape devices detected on your system.",
652     "Press F1 to read the installation guide",
653     "install",
654     { { NULL } },
655 };
656
657 DMenu MenuNetworkDevice = {
658     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
659     "Network interface information required",
660     "If you are using PPP over a serial device, as opposed to a direct\n"
661     "ethernet connection, then you may first need to dial your Internet\n"
662     "Service Provider using the ppp utility we provide for that purpose.\n"
663     "If you're using SLIP over a serial device then the expectation is\n"
664     "that you have a HARDWIRED connection.\n\n"
665     "You can also install over a parallel port using a special \"laplink\"\n"
666     "cable to another machine running a fairly recent (2.0R or later)\n"
667     "version of FreeBSD.",
668     "Press F1 to read network configuration manual",
669     "network_device",
670     { { NULL } },
671 };
672
673 /* The media selection menu */
674 DMenu MenuMedia = {
675     DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
676     "Choose Installation Media",
677     "FreeBSD can be installed from a variety of different installation\n"
678     "media, ranging from floppies to an Internet FTP server.  If you're\n"
679     "installing FreeBSD from a supported CDROM drive then this is generally\n"
680     "the best media to use if you have no overriding reason for using other\n"
681     "media.",
682     "Press F1 for more information on the various media types",
683     "media",
684     { { "1 CDROM",              "Install from a FreeBSD CDROM",         NULL, mediaSetCDROM },
685       { "2 FTP",                "Install from an FTP server",           NULL, mediaSetFTPActive },
686       { "3 FTP Passive",        "Install from an FTP server through a firewall", NULL, mediaSetFTPPassive },
687       { "4 DOS",                "Install from a DOS partition",         NULL, mediaSetDOS },
688       { "5 NFS",                "Install over NFS",                     NULL, mediaSetNFS },
689       { "6 File System",        "Install from an existing filesystem",  NULL, mediaSetUFS },
690       { "7 Floppy",             "Install from a floppy disk set",       NULL, mediaSetFloppy },
691       { "8 Tape",               "Install from SCSI or QIC tape",        NULL, mediaSetTape },
692       { "9 Options",            "Go to the Options screen",             NULL, optionsEditor },
693       { NULL } },
694 };
695
696 /* The distributions menu */
697 DMenu MenuDistributions = {
698     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
699     "Choose Distributions",
700     "As a convenience, we provide several \"canned\" distribution sets.\n"
701     "These select what we consider to be the most reasonable defaults for the\n"
702     "type of system in question.  If you would prefer to pick and choose the\n"
703     "list of distributions yourself, simply select \"Custom\".  You can also\n"
704     "pick a canned distribution set and then fine-tune it with the Custom item.\n\n"
705     "Choose an item by pressing [SPACE]. When you are finished, chose the Exit\n"
706     "item or press [ENTER].",
707     "Press F1 for more information on these options.",
708     "distributions",
709     { { "1 Developer",          "Full sources, binaries and doc but no games", 
710         checkDistDeveloper,     distSetDeveloper },
711       { "2 X-Developer",        "Same as above, but includes the X Window System",
712         checkDistXDeveloper,    distSetXDeveloper },
713       { "3 Kern-Developer",     "Full binaries and doc, kernel sources only",
714         checkDistKernDeveloper, distSetKernDeveloper },
715       { "4 User",               "Average user - binaries and doc only",
716         checkDistUser,          distSetUser },
717       { "5 X-User",             "Same as above, but includes the X Window System",
718         checkDistXUser,         distSetXUser },
719       { "6 Minimal",            "The smallest configuration possible",
720         checkDistMinimum,       distSetMinimum },
721       { "7 Custom",             "Specify your own distribution set",
722         NULL,                   dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
723       { "8 All",                "All sources and binaries (incl X Window System)",
724         checkDistEverything,    distSetEverything },
725       { "9 Clear",              "Reset selected distribution list to nothing",
726         NULL,                   distReset, NULL, NULL, ' ', ' ', ' ' },
727       { "0 Exit",               "Exit this menu (returning to previous)",
728         checkTrue,              dmenuExit, NULL, NULL, '<', '<', '<' },
729       { NULL } },
730 };
731
732 DMenu MenuSubDistributions = {
733     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
734     "Select the distributions you wish to install.",
735     "Please check off the distributions you wish to install.  At the\n"
736     "very minimum, this should be \"bin\".  WARNING:  Do not export the\n"
737     "DES distribution out of the U.S.!  It is for U.S. customers only.",
738     NULL,
739     NULL,
740     { { "bin",          "Binary base distribution (required)",
741         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BIN },
742       { "compat1x",     "FreeBSD 1.x binary compatibility",
743         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT1X },
744       { "compat20",     "FreeBSD 2.0 binary compatibility",
745         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT20 },
746       { "compat21",     "FreeBSD 2.1 binary compatibility",
747         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT21 },
748       { "DES",          "DES encryption code - NOT FOR EXPORT!",
749         DESFlagCheck,   distSetDES },
750       { "dict",         "Spelling checker dictionary files",
751         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DICT },
752       { "doc",          "Miscellaneous FreeBSD online docs",
753         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DOC },
754       { "games",        "Games (non-commercial)",
755         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_GAMES },
756       { "info",         "GNU info files",
757         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_INFO },
758       { "man",          "System manual pages - recommended",
759         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_MANPAGES },
760       { "catman",       "Preformatted system manual pages",
761         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_CATPAGES },
762       { "proflibs",     "Profiled versions of the libraries",
763         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PROFLIBS },
764       { "src",          "Sources for everything but DES",
765         srcFlagCheck,   distSetSrc },
766       { "ports",        "The FreeBSD Ports collection",
767         dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
768       { "XFree86",      "The XFree86 3.3.2.3 distribution",
769         x11FlagCheck,   distSetXF86 },
770       { "All",          "All sources, binaries and X Window System binaries",
771         NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
772       { "Clear",        "Reset all of the above",
773         NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
774       { "Exit",         "Exit this menu (returning to previous)",
775         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
776       { NULL } },
777 };
778
779 DMenu MenuDESDistributions = {
780     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
781     "Select the encryption facilities you wish to install.",
782     "Please check off any special DES-based encryption distributions\n"
783     "you would like to install.  Please note that these services are NOT FOR\n"
784     "EXPORT from the United States.  For information on non-U.S. FTP\n"
785     "distributions of this software, please consult the release notes.",
786     NULL,
787     NULL,
788     { { "des",          "Basic DES encryption services",
789         dmenuFlagCheck, dmenuSetFlag, NULL, &DESDists, '[', 'X', ']', DIST_DES_DES, },
790       { "krb",          "Kerberos encryption services",
791         dmenuFlagCheck, dmenuSetFlag, NULL, &DESDists, '[', 'X', ']', DIST_DES_KERBEROS },
792       { "skerbero",     "Sources for Kerberos IV",
793         dmenuFlagCheck, dmenuSetFlag, NULL, &DESDists, '[', 'X', ']', DIST_DES_SKERBEROS },
794       { "ssecure",      "Sources for DES",
795         dmenuFlagCheck, dmenuSetFlag, NULL, &DESDists, '[', 'X', ']', DIST_DES_SSECURE },
796       { "scrypto",      "Export controlled crypto sources",
797         dmenuFlagCheck, dmenuSetFlag, NULL, &DESDists, '[', 'X', ']', DIST_DES_SCRYPTO },
798       { "Exit",         "Exit this menu (returning to previous)",
799         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
800       { NULL } },
801 };
802
803 DMenu MenuSrcDistributions = {
804     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS ,
805     "Select the sub-components of src you wish to install.",
806     "Please check off those portions of the FreeBSD source tree\n"
807     "you wish to install.",
808     NULL,
809     NULL,
810     { { "base",         "top-level files in /usr/src",
811         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BASE },
812       { "contrib",      "/usr/src/contrib (contributed software)",
813         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CONTRIB },
814       { "gnu",          "/usr/src/gnu (software from the GNU Project)",
815         dmenuFlagCheck, dmenuSetFlag,   NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GNU },
816       { "etc",          "/usr/src/etc (miscellaneous system files)",
817         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_ETC },
818       { "games",        "/usr/src/games (the obvious!)",
819         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GAMES },
820       { "include",      "/usr/src/include (header files)",
821         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_INCLUDE },
822       { "lib",          "/usr/src/lib (system libraries)",
823         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIB },
824       { "libexec",      "/usr/src/libexec (system programs)",
825         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIBEXEC },
826       { "lkm",          "/usr/src/lkm (Loadable Kernel Modules)",
827         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LKM      },
828       { "release",      "/usr/src/release (release-generation tools)",
829         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RELEASE },
830       { "bin",          "/usr/src/bin (system binaries)",
831         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BIN },
832       { "sbin",         "/usr/src/sbin (system binaries)",
833         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SBIN },
834       { "share",        "/usr/src/share (documents and shared files)",
835         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SHARE },
836       { "sys",          "/usr/src/sys (FreeBSD kernel)",
837         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SYS },
838       { "ubin",         "/usr/src/usr.bin (user binaries)",
839         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_UBIN },
840       { "usbin",        "/usr/src/usr.sbin (aux system binaries)",
841         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_USBIN },
842       { "smailcf",      "/usr/src/usr.sbin (sendmail config macros)",
843         dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SMAILCF },
844       { "All",          "Select all of the above",
845         NULL,           setSrc, NULL, NULL, ' ', ' ', ' ' },
846       { "Clear",        "Reset all of the above",
847         NULL,           clearSrc, NULL, NULL, ' ', ' ', ' ' },
848       { "Exit",         "Exit this menu (returning to previous)",
849         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
850       { NULL } },
851 };
852
853 DMenu MenuXF86Select = {
854     DMENU_NORMAL_TYPE,
855     "XFree86 3.3.2.3 Distribution",
856     "Please select the components you need from the XFree86 3.3.2.3\n"
857     "distribution sets.",
858     "Press F1 to read the XFree86 release notes for FreeBSD",
859     "XF86",
860     { { "Basic",        "Basic component menu (required)",      NULL, dmenuSubmenu, NULL, &MenuXF86SelectCore },
861       { "Server",       "X server menu",                        NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
862       { "Fonts",        "Font set menu",                        NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
863       { "All",          "Select all XFree86 distribution sets", NULL, setX11All },
864       { "Clear",        "Reset XFree86 distribution list",      NULL, clearX11All },
865       { "Exit",         "Exit this menu (returning to previous)", checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
866       { NULL } },
867 };
868
869 DMenu MenuXF86SelectCore = {
870     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
871     "XFree86 3.3.2.3 base distribution types",
872     "Please check off the basic XFree86 components you wish to install.\n"
873     "Bin, lib, and set are recommended for a minimum installaion.",
874     "Press F1 to read the XFree86 release notes for FreeBSD",
875     "XF86",
876     { { "bin",          "Client applications and shared libs",
877         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_BIN },
878       { "cfg",          "Configuration files",
879         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_CFG },
880       { "doc",          "READMEs and release notes",
881         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_DOC },
882       { "html",         "HTML documentation files",
883         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_HTML },
884       { "lib",          "Data files needed at runtime",
885         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LIB },
886       { "lk98",         "Server link kit for PC98 machines",
887         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT98 },
888       { "lkit",         "Server link kit for all other machines",
889         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT },
890       { "man",          "Manual pages",
891         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_MAN },
892       { "prog",         "Programmer's header and library files",
893         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_PROG },
894       { "set",          "XFree86 Setup Utility",
895         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_SET },
896       { "9set",         "XFree86 Setup Utility for PC98 machines",
897         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_9SET },
898       { "sources",      "XFree86 3.3.2.3 standard sources",
899         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_SRC },
900       { "csources",     "XFree86 3.3.2.3 contrib sources",
901         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_CSRC },
902       { "All",          "Select all of the above",
903         NULL,           setX11Misc, NULL, NULL, ' ', ' ', ' ' },
904       { "Clear",        "Reset all of the above",
905         NULL,           clearX11Misc, NULL, NULL, ' ', ' ', ' ' },
906       { "Exit",         "Exit this menu (returning to previous)",
907         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
908       { NULL } },
909 };
910
911 DMenu MenuXF86SelectFonts = {
912     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS ,
913     "Font distribution selection.",
914     "Please check off the individual font distributions you wish to\n\
915 install.  At the minimum, you should install the standard\n\
916 75 DPI and misc fonts if you're also installing a server\n\
917 (these are selected by default).",
918     "Press F1 to read the XFree86 release notes for FreeBSD",
919     "XF86",
920     { { "fnts",         "Standard 75 DPI and miscellaneous fonts",
921         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_MISC },
922       { "f100",         "100 DPI fonts",
923         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_100 },
924       { "fcyr",         "Cyrillic Fonts",
925         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_CYR },
926       { "fscl",         "Speedo and Type scalable fonts",
927         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_SCALE },
928       { "non",          "Japanese, Chinese and other non-english fonts",
929         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_NON },
930       { "server",       "Font server",
931         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86FontDists, '[', 'X', ']', DIST_XF86_FONTS_SERVER },
932       { "All",          "All fonts",
933         NULL,           setX11Fonts, NULL, NULL, ' ', ' ', ' ' },
934       { "Clear",        "Reset font selections",
935         NULL,           clearX11Fonts, NULL, NULL, ' ', ' ', ' ' },
936       { "Exit",         "Exit this menu (returning to previous)",
937         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
938       { NULL } },
939 };
940
941 DMenu MenuXF86SelectServer = {
942     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
943     "X Server selection.",
944     "Please check off the types of X servers you wish to install.\n"
945     "If you are unsure as to which server will work for your graphics card,\n"
946     "it is recommended that try the SVGA or VGA16 servers or, for PC98\n"
947     "machines, the 9EGC or 9840 servers.",
948     "Press F1 to read the XFree86 release notes for FreeBSD",
949     "XF86",
950     { { "SVGA",         "Standard VGA or Super VGA card",
951         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_SVGA },
952       { "VGA16",        "Standard 16 color VGA card",
953         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_VGA16 },
954       { "Mono",         "Standard Monochrome card",
955         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MONO },
956       { "8514",         "8-bit (256 color) IBM 8514 or compatible card",
957         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_8514 },
958       { "AGX",          "8-bit AGX card",
959         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_AGX },
960       { "I128",         "8, 16 and 24-bit #9 Imagine I128 card",
961         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_I128 },
962       { "Ma8",          "8-bit ATI Mach8 card",
963         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH8 },
964       { "Ma32",         "8 and 16-bit (65K color) ATI Mach32 card",
965         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH32 },
966       { "Ma64",         "8 and 16-bit (65K color) ATI Mach64 card",
967         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_MACH64 },
968       { "P9K",          "8, 16, and 24-bit color Weitek P9000 based boards",
969         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_P9000 },
970       { "S3",           "8, 16 and 24-bit color S3 based boards",
971         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_S3 },
972       { "S3V",          "8, 16 and 24-bit color S3 Virge based boards",
973         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_S3V },
974       { "W32",          "8-bit ET4000/W32, /W32i and /W32p cards",
975         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_W32 },
976       { "nest",         "A nested server for testing purposes",
977         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_NEST },
978       { "PC98",         "Select an X server for a NEC PC98 [Submenu]",
979         NULL,           dmenuSubmenu,  NULL, &MenuXF86SelectPC98Server, '>', ' ', '>', 0 },
980       { "All",          "Select all of the above",
981         NULL,           setX11Servers, NULL, NULL, ' ', ' ', ' ' },
982       { "Clear",        "Reset all of the above",
983         NULL,           clearX11Servers, NULL, NULL, ' ', ' ', ' ' },
984       { "Exit",         "Exit this menu (returning to previous)",
985         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
986       { NULL } },
987 };
988
989 DMenu MenuXF86SelectPC98Server = {
990     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
991     "PC98 X Server selection.",
992     "Please check off the types of NEC PC98 X servers you wish to install.\n\
993 If you are unsure as to which server will work for your graphics card,\n\
994 it is recommended that try the SVGA or VGA16 servers (the VGA16 and\n\
995 Mono servers are particularly well-suited to most LCD displays).",
996     "Press F1 to read the XFree86 release notes for FreeBSD",
997     "XF86",
998     { { "9480",         "PC98 8-bit (256 color) PEGC-480 card",
999         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9480 },
1000       { "9EGC",         "PC98 4-bit (16 color) EGC card",
1001         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9EGC },
1002       { "9GA9",         "PC98 GA-968V4/PCI (S3 968) card",
1003         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9GA9 },
1004       { "9GAN",         "PC98 GANB-WAP (cirrus) card",
1005         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9GAN },
1006       { "9LPW",         "PC98 PowerWindowLB (S3) card",
1007         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9LPW },
1008       { "9MGA",         "PC98 MGA (Matrox) card",
1009         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9MGA },
1010       { "9NKV",         "PC98 NKV-NEC (cirrus) card",
1011         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9NKV },
1012       { "9NS3",         "PC98 NEC (S3) card",
1013         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9NS3 },
1014       { "9SPW",         "PC98 SKB-PowerWindow (S3) card",
1015         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9SPW },
1016       { "9SVG",         "PC98 generic SVGA card",
1017         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9SVG },
1018       { "9TGU",         "PC98 Cyber9320 and TGUI9680 cards",
1019         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9TGU },
1020       { "9WEP",         "PC98 WAB-EP (cirrus) card",
1021         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WEP },
1022       { "9WS",          "PC98 WABS (cirrus) card",
1023         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WS },
1024       { "9WSN",         "PC98 WSN-A2F (cirrus) card",
1025         dmenuFlagCheck, dmenuSetFlag, NULL, &XF86ServerDists, '[', 'X', ']', DIST_XF86_SERVER_9WSN },
1026       { "Exit",         "Exit this menu (returning to previous)",
1027         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
1028       { NULL } }
1029 };
1030
1031 DMenu MenuDiskDevices = {
1032     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1033     "Select Drive(s)",
1034     "Please select the drive, or drives, on which you wish to perform\n"
1035     "this operation.  If you are attempting to install a boot partition\n"
1036     "on a drive other than the first one or have multiple operating\n"
1037     "systems on your machine, you will have the option to install a boot\n"
1038     "manager later.  To select a drive, use the arrow keys to move to it\n"
1039     "and press [SPACE].  To de-select it, press [SPACE] again.\n\n"
1040     "Select OK or Cancel to leave this menu.",
1041     "Press F1 for important information regarding disk geometry!",
1042     "drives",
1043     { { NULL } },
1044 };
1045
1046 DMenu MenuHTMLDoc = {
1047     DMENU_NORMAL_TYPE,
1048     "Select HTML Documentation pointer",
1049     "Please select the body of documentation you're interested in, the main\n"
1050     "ones right now being the FAQ and the Handbook.  You can also chose \"other\"\n"
1051     "to enter an arbitrary URL for browsing.",
1052     "Press F1 for more help on what you see here.",
1053     "html",
1054     { { "Handbook",     "The FreeBSD Handbook.",                                NULL, docShowDocument },
1055       { "FAQ",          "The Frequently Asked Questions guide.",                NULL, docShowDocument },
1056       { "Home",         "The Home Pages for the FreeBSD Project (requires net)", NULL, docShowDocument },
1057       { "Other",        "Enter a URL.",                                         NULL, docShowDocument },
1058       { NULL } },
1059 };
1060
1061 /* The main installation menu */
1062 DMenu MenuInstallCustom = {
1063     DMENU_NORMAL_TYPE,
1064     "Choose Custom Installation Options",
1065     "This is the custom installation menu. You may use this menu to specify\n"
1066     "details on the type of distribution you wish to have, where you wish\n"
1067     "to install it from and how you wish to allocate disk storage to FreeBSD.",
1068     "Press F1 to read the installation guide",
1069     "install",
1070     { { "1 Options",            "View/Set various installation options", NULL, optionsEditor },
1071       { "2 Partition",          "Allocate disk space for FreeBSD",      NULL, diskPartitionEditor },
1072       { "3 Label",              "Label allocated disk partitions",      NULL, diskLabelEditor },
1073       { "4 Distributions",      "Select distribution(s) to extract",    NULL, dmenuSubmenu, NULL, &MenuDistributions },
1074       { "5 Media",              "Choose the installation media type",   NULL, dmenuSubmenu, NULL, &MenuMedia },
1075       { "6 Commit",             "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1076       { "0 Exit",               "Exit this menu (returning to previous)", NULL, dmenuExit },
1077       { NULL } },
1078 };
1079
1080 /* MBR type menu */
1081 DMenu MenuMBRType = {
1082     DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
1083     "overwrite me",             /* will be disk specific label */
1084     "FreeBSD comes with a boot selector that allows you to easily\n"
1085     "select between FreeBSD and any other operating systems on your machine\n"
1086     "at boot time.  If you have more than one drive and want to boot\n"
1087     "from the second one, the boot selector will also make it possible\n"
1088     "to do so (limitations in the PC BIOS usually prevent this otherwise).\n"
1089     "If you do not want a boot selector, or wish to replace an existing\n"
1090     "one, select \"standard\".  If you would prefer your Master Boot\n"
1091     "Record to remain untouched then select \"None\".\n\n"
1092     "  NOTE:  PC-DOS users will almost certainly require \"None\"!",
1093     "Press F1 to read about drive setup",
1094     "drives",
1095     { { "BootMgr",      "Install the FreeBSD Boot Manager (\"Booteasy\")",
1096         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr },
1097       { "Standard",     "Install a standard MBR (no boot manager)",
1098         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
1099       { "None",         "Leave the Master Boot Record untouched",
1100         dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
1101       { NULL } },
1102 };
1103
1104 /* Final configuration menu */
1105 DMenu MenuConfigure = {
1106     DMENU_NORMAL_TYPE,
1107     "FreeBSD Configuration Menu",       /* title */
1108     "If you've already installed FreeBSD, you may use this menu to customize\n"
1109     "it somewhat to suit your particular configuration.  Most importantly,\n"
1110     "you can use the Packages utility to load extra \"3rd party\"\n"
1111     "software not provided in the base distributions.",
1112     "Press F1 for more information on these options",
1113     "configure",
1114     { { "1 User Management",    "Add user and group information",
1115         NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
1116       { "2 Console",    "Customize system console behavior",
1117         NULL,   dmenuSubmenu, NULL, &MenuSyscons },
1118       { "3 Time Zone",  "Set which time zone you're in",
1119         NULL,   dmenuSystemCommand, NULL, "tzsetup" },
1120       { "4 Media",      "Change the installation media type",
1121         NULL,   dmenuSubmenu, NULL, &MenuMedia  },
1122       { "5 Mouse",      "Configure your mouse",
1123         NULL,   dmenuSubmenu, NULL, &MenuMouse, NULL },
1124       { "6 Networking", "Configure additional network services",
1125         NULL,   dmenuSubmenu, NULL, &MenuNetworking },
1126       { "7 Startup",    "Configure system startup options",
1127         NULL,   dmenuSubmenu, NULL, &MenuStartup },
1128       { "8 Options",    "View/Set various installation options",
1129         NULL, optionsEditor },
1130       { "9 Distributions", "Install additional distribution sets",
1131         NULL, distExtractAll },
1132       { "P Packages",   "Install pre-packaged software for FreeBSD",
1133         NULL, configPackages },
1134       { "R Root Password", "Set the system manager's password",
1135         NULL,   dmenuSystemCommand, NULL, "passwd root" },
1136       { "D HTML Docs",  "Go to the HTML documentation menu (post-install)",
1137         NULL, docBrowser },
1138       { "X XFree86",    "Configure XFree86",
1139         NULL, configXEnvironment },
1140       { "L Label",      "The disk Label editor",
1141         NULL, diskLabelEditor },
1142       { "F Fdisk",      "The disk Slice (PC-style partition) Editor",
1143         NULL, diskPartitionEditor },
1144       { "U Register",   "Register yourself or company as a FreeBSD user.", NULL, configRegister },
1145       { "E Exit",               "Exit this menu (returning to previous)",
1146         NULL,   dmenuExit },
1147       { NULL } },
1148 };
1149
1150 DMenu MenuStartup = {
1151     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1152     "Startup Services Menu",
1153     "This menu allows you to configure various aspects of your system's\n"
1154     "startup configuration.  Remember to use SPACE to select items!  The\n"
1155     "RETURN key will leave this menu (as with all checkbox menus).",
1156     NULL,
1157     NULL,
1158     { { "APM",          "Auto-power management services (typically laptops)",
1159         dmenuVarCheck,  dmenuToggleVariable, NULL, "apm_enable=YES" },
1160       { "pccard",       "Enable PCCARD (AKA PCMCIA) services (also laptops)",
1161         dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },
1162       { "pccard mem",   "Set PCCARD memory address (if enabled)",
1163         dmenuVarCheck, dmenuISetVariable, NULL, "pccard_mem" },
1164       { "pccard ifconfig",      "List of PCCARD ethernet devices to configure",
1165         dmenuVarCheck, dmenuISetVariable, NULL, "pccard_ifconfig" },
1166       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1167       { "startup dirs", "Set the list of dirs to look for startup scripts",
1168         dmenuVarCheck, dmenuISetVariable, NULL, "local_startup" },
1169       { "named",        "Run a local name server on this host",
1170         dmenuVarCheck, dmenuToggleVariable, NULL, "named_enable=YES" },
1171       { "named flags",  "Set default flags to named (if enabled)",
1172         dmenuVarCheck, dmenuISetVariable, NULL, "named_flags" },
1173       { "nis client",   "This host wishes to be an NIS client.",
1174         dmenuVarCheck, dmenuToggleVariable, NULL, "nis_client_enable=YES" },
1175       { "nis server",   "This host wishes to be an NIS server.",
1176         dmenuVarCheck, dmenuToggleVariable, NULL, "nis_server_enable=YES" },
1177       { " ",            " -- ", NULL,   NULL, NULL, NULL, ' ', ' ', ' ' },
1178       { "accounting",   "This host wishes to run process accounting.",
1179         dmenuVarCheck, dmenuToggleVariable, NULL, "accounting_enable=YES" },
1180       { "lpd",          "This host has a printer and wants to run lpd.",
1181         dmenuVarCheck, dmenuToggleVariable, NULL, "lpd_enable=YES" },
1182       { "linux",        "This host wants to be able to run linux binaries.",
1183         dmenuVarCheck, dmenuToggleVariable, NULL, "linux_enable=YES" },
1184       { "quotas",       "This host wishes to check quotas on startup.",
1185         dmenuVarCheck, dmenuToggleVariable, NULL, "check_quotas=YES" },
1186       { "SCO",          "This host wants to be able to run IBCS2 binaries.",
1187         dmenuVarCheck, dmenuToggleVariable, NULL, "ibcs2_enable=YES" },
1188       { "Exit",         "Exit this menu (returning to previous)",
1189         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
1190       { NULL } },
1191 };
1192
1193 DMenu MenuNetworking = {
1194     DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1195     "Network Services Menu",
1196     "You may have already configured one network device (and the other\n"
1197     "various hostname/gateway/name server parameters) in the process\n"
1198     "of installing FreeBSD.  This menu allows you to configure other\n"
1199     "aspects of your system's network configuration.",
1200     NULL,
1201     NULL,
1202     { { "Interfaces",   "Configure additional network interfaces",
1203         NULL, tcpMenuSelect },
1204       { "NFS client",   "This machine will be an NFS client",
1205         dmenuVarCheck,  dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
1206       { "NFS server",   "This machine will be an NFS server",
1207         dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
1208       { "AMD",  "This machine wants to run the auto-mounter service",
1209         dmenuVarCheck, dmenuToggleVariable, NULL, "amd_enable=YES" },
1210       { "AMD Flags",    "Set flags to AMD service (if enabled)",
1211         dmenuVarCheck, dmenuISetVariable, NULL, "amd_flags" },
1212       { "TCP Extensions",       "Allow RFC1323 and RFC1644 TCP extensions?",
1213         dmenuVarCheck, dmenuToggleVariable, NULL, "tcp_extensions=YES" },
1214       { "Gateway",      "This machine will route packets between interfaces",
1215         dmenuVarCheck,  dmenuToggleVariable, NULL, "gateway_enable=YES" },
1216       { "Ntpdate",      "Select a clock-synchronization server",
1217         dmenuVarCheck,  dmenuSubmenu, NULL, &MenuNTP, '[', 'X', ']', "ntpdate_enable=YES" },
1218       { "router",       "Select routing daemon (default: routed)",
1219         dmenuVarCheck, configRouter, NULL, "router" },
1220       { "Rwhod",        "This machine wants to run the rwho daemon",
1221         dmenuVarCheck,  dmenuToggleVariable, NULL, "rwhod_enable=YES" },
1222       { "Anon FTP",     "This machine wishes to allow anonymous FTP.",
1223         dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
1224       { "PCNFSD",       "Run authentication server for clients with PC-NFS.",
1225         dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
1226       { "Exit",         "Exit this menu (returning to previous)",
1227         checkTrue,      dmenuExit, NULL, NULL, '<', '<', '<' },
1228       { NULL } },
1229 };
1230
1231 DMenu MenuNTP = {
1232     DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
1233     "NTPDATE Server Selection",
1234     "There are a number of time synchronization servers available\n"
1235     "for public use around the Internet.  Please select one reasonably\n"
1236     "close to you to have your system time synchronized accordingly.",
1237     "These are the primary open-access NTP servers",
1238     NULL,
1239     { { "None",                 "No ntp server",
1240         dmenuVarsCheck, dmenuSetVariables, NULL, 
1241         "ntpdate_enable=NO,ntpdate_flags=none" },
1242       { "Other",                "Select a site not on this list",
1243         dmenuVarsCheck, configNTP, NULL, NULL },
1244       { "Australia",            "ntp.syd.dms.csiro.au (HP 5061 Cesium Beam)",
1245         dmenuVarsCheck, dmenuSetVariables, NULL, 
1246         "ntpdate_enable=YES,ntpdate_flags=ntp.syd.dms.csiro.au" },
1247       { "Canada",               "tick.usask.ca (GOES clock)",
1248         dmenuVarsCheck, dmenuSetVariables, NULL, 
1249         "ntpdate_enable=YES,ntpdate_flags=tick.usask.ca" },
1250       { "France",               "canon.inria.fr (TDF clock)",
1251         dmenuVarsCheck, dmenuSetVariables, NULL, 
1252         "ntpdate_enable=YES,ntpdate_flags=canon.inria.fr" },
1253       { "Germany",              "ntps1-{0,1,2}.uni-erlangen.de (GPS)",
1254         dmenuVarsCheck, dmenuSetVariables, NULL, 
1255         "ntpdate_enable=YES,ntpdate_flags=ntps1-0.uni-erlangen.de" },
1256       { "Germany #2",           "ntps1-0.cs.tu-berlin.de (GPS)",
1257         dmenuVarsCheck, dmenuSetVariables, NULL, 
1258         "ntpdate_enable=YES,ntpdate_flags=ntps1-0.cs.tu-berlin.de" },
1259       { "Japan",                "clock.nc.fukuoka-u.ac.jp (GPS clock)",
1260         dmenuVarsCheck, dmenuSetVariables, NULL, 
1261         "ntpdate_enable=YES,ntpdate_flags=clock.nc.fukuoka-u.ac.jp" },
1262       { "Japan #2",             "clock.tl.fukuoka-u.ac.jp (GPS clock)",
1263         dmenuVarsCheck, dmenuSetVariables, NULL, 
1264         "ntpdate_enable=YES,ntpdate_flags=clock.tl.fukuoka-u.ac.jp" },
1265       { "Netherlands",          "ntp0.nl.net (GPS clock)",
1266         dmenuVarsCheck, dmenuSetVariables, NULL, 
1267         "ntpdate_enable=YES,ntpdate_flags=ntp0.nl.net" },
1268       { "Norway",               "timer.unik.no (NTP clock)",
1269         dmenuVarsCheck, dmenuSetVariables, NULL, 
1270         "ntpdate_enable=YES,ntpdate_flags=timer.unik.no" },
1271       { "Sweden",               "Time1.Stupi.SE (Cesium/GPS)",
1272         dmenuVarsCheck, dmenuSetVariables, NULL, 
1273         "ntpdate_enable=YES,ntpdate_flags=Time1.Stupi.SE" },
1274       { "Switzerland",          "swisstime.ethz.ch (DCF77 clock)",
1275         dmenuVarsCheck, dmenuSetVariables, NULL, 
1276         "ntpdate_enable=YES,ntpdate_flags=swisstime.ethz.ch" },
1277       { "U.S. East Coast",      "bitsy.mit.edu (WWV clock)",
1278         dmenuVarsCheck, dmenuSetVariables, NULL, 
1279         "ntpdate_enable=YES,ntpdate_flags=bitsy.mit.edu" },
1280       { "U.S. East Coast #2",   "otc1.psu.edu (WWV clock)",
1281         dmenuVarsCheck, dmenuSetVariables, NULL, 
1282         "ntpdate_enable=YES,ntpdate_flags=otc1.psu.edu" },
1283       { "U.S. West Coast",      "apple.com (WWV clock)",
1284         dmenuVarsCheck, dmenuSetVariables, NULL, 
1285         "ntpdate_enable=YES,ntpdate_flags=apple.com" },
1286       { "U.S. West Coast #2",   "clepsydra.dec.com (GOES clock)",
1287         dmenuVarsCheck, dmenuSetVariables, NULL, 
1288         "ntpdate_enable=YES,ntpdate_flags=clepsydra.dec.com" },
1289       { "U.S. West Coast #3",   "clock.llnl.gov (WWVB clock)",
1290         dmenuVarsCheck, dmenuSetVariables, NULL, 
1291         "ntpdate_enable=YES,ntpdate_flags=clock.llnl.gov" },
1292       { "U.S. Midwest",         "ncar.ucar.edu (WWVB clock)",
1293         dmenuVarsCheck, dmenuSetVariables, NULL, 
1294         "ntpdate_enable=YES,ntpdate_flags=ncar.ucar.edu" },
1295       { "U.S. Pacific",         "chantry.hawaii.net (WWV/H clock)",
1296         dmenuVarsCheck, dmenuSetVariables, NULL, 
1297         "ntpdate_enable=YES,ntpdate_flags=chantry.hawaii.net" },
1298       { "U.S. Southwest",       "shorty.chpc.utexas.edu (WWV clock)",
1299         dmenuVarsCheck, dmenuSetVariables, NULL, 
1300         "ntpdate_enable=YES,ntpdate_flags=shorty.chpc.utexas.edu" },
1301       { NULL } },
1302 };
1303
1304 DMenu MenuSyscons = {
1305     DMENU_NORMAL_TYPE,
1306     "System Console Configuration",
1307     "The default system console driver for FreeBSD (syscons) has a\n"
1308     "number of configuration options which may be set according to\n"
1309     "your preference.\n\n"
1310     "When you are done setting configuration options, select Cancel.",
1311     "Configure your system console settings",
1312     NULL,
1313     { { "Font",         "Choose an alternate screen font",      NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
1314       { "Keymap",       "Choose an alternate keyboard map",     NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
1315       { "Repeat",       "Set the rate at which keys repeat",    NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
1316       { "Saver",        "Configure the screen saver",           NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
1317       { "Screenmap",    "Choose an alternate screenmap",        NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
1318       { "Exit",         "Exit this menu (returning to previous)", NULL, dmenuExit },
1319       { NULL } },
1320 };
1321
1322 DMenu MenuSysconsKeymap = {
1323     DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
1324     "System Console Keymap",
1325     "The default system console driver for FreeBSD (syscons) defaults\n"
1326     "to a standard \"American\" keyboard map.  Users in other countries\n"
1327     "(or with different keyboard preferences) may wish to choose one of\n"
1328     "the other keymaps below.\n"
1329     "Note that sysinstall itself only uses the part of the keyboard map\n"
1330     "which is required to generate the ANSI character subset, but your\n"
1331     "choice of keymap will also be saved for later (fuller) use.",
1332     "Choose a keyboard map",
1333     NULL,
1334     { { "Belgian",      "Belgian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=be.iso" },
1335       { "Brazil CP850", "Brazil CP850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.cp850" },
1336       { "Brazil ISO (accent)",  "Brazil ISO keymap (accent keys)",      dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso.acc" },
1337       { "Brazil ISO",   "Brazil ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso" },
1338       { "Danish CP865", "Danish Code Page 865 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.cp865" },
1339       { "Danish ISO",   "Danish ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.iso" },
1340       { "French ISO (accent)", "French ISO keymap (accent keys)",       dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso.acc" },
1341       { "French ISO",   "French ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso" },
1342       { "German CP850", "German Code Page 850 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.cp850"        },
1343       { "German ISO",   "German ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.iso" },
1344       { "Icelandic (accent)", "Icelandic ISO keymap (accent keys)",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso.acc" },
1345       { "Icelandic",    "Icelandic ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso" },
1346       { "Italian",      "Italian ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=it.iso" },
1347       { "Latin American", "Latin American ISO keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=lat-amer" },
1348       { "Japanese 106", "Japanese 106 keymap",  dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.106" },
1349       { "Norway ISO",   "Norwegian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=norwegian.iso" },
1350       { "Russia CP866", "Russian CP866 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ru.cp866" },
1351       { "Russia KOI8-R", "Russian KOI8-R keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ru.koi8-r" },
1352       { "Slovenian", "Slovenian ISO keymap",    dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=si.iso.acc" },
1353       { "Spanish (accent)", "Spanish ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso.acc" },
1354       { "Spanish",      "Spanish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso" },
1355       { "Swedish CP850", "Swedish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.cp850" },
1356       { "Swedish ISO",  "Swedish ISO keymap",   dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.iso" },
1357       { "Swiss German", "Swiss German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso" },
1358       { "U.K. CP850",   "United Kingdom Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.cp850" },
1359       { "U.K. ISO",     "United Kingdom ISO keymap", dmenuVarCheck,     dmenuSetKmapVariable, NULL, "keymap=uk.iso" },
1360       { "U.S. Dvorak",  "United States Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorak" },
1361       { "U.S. ISO",     "United States ISO keymap",     dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.iso" },
1362       { NULL } },
1363 };
1364
1365 DMenu MenuSysconsKeyrate = {
1366     DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
1367     "System Console Keyboard Repeat Rate",
1368     "This menu allows you to set the speed at which keys repeat\n"
1369     "when held down.",
1370     "Choose a keyboard repeat rate",
1371     NULL,
1372     { { "Slow", "Slow keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=slow" },
1373       { "Normal", "\"Normal\" keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=normal" },
1374       { "Fast", "Fast keyboard repeat rate",    dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=fast" },
1375       { "Default", "Use default keyboard repeat rate",  dmenuVarCheck,  dmenuSetVariable, NULL, "keyrate=NO" },
1376       { NULL } },
1377 };
1378
1379 DMenu MenuSysconsSaver = {
1380     DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
1381     "System Console Screen Saver",
1382     "By default, the console driver will not attempt to do anything\n"
1383     "special with your screen when it's idle.  If you expect to leave your\n"
1384     "monitor switched on and idle for long periods of time then you should\n"
1385     "probably enable one of these screen savers to prevent phosphor burn-in.",
1386     "Choose a nifty-looking screen saver",
1387     NULL,
1388     { { "blank",        "Simply blank the screen",
1389         dmenuVarCheck, configSaver, NULL, "saver=blank" },
1390       { "Daemon",       "\"BSD Daemon\" animated screen saver",
1391         dmenuVarCheck, configSaver, NULL, "saver=daemon" },
1392       { "Green",        "\"Green\" power saving mode (if supported by monitor)",
1393         dmenuVarCheck, configSaver, NULL, "saver=green" },
1394       { "Snake",        "Draw a FreeBSD \"snake\" on your screen",
1395         dmenuVarCheck, configSaver, NULL, "saver=snake" },
1396       { "Star", "A \"twinkling stars\" effect",
1397         dmenuVarCheck, configSaver, NULL, "saver=star" },
1398       { "Timeout",      "Set the screen saver timeout interval",
1399         NULL, configSaverTimeout, NULL, NULL, ' ', ' ', ' ' },
1400       { NULL } },
1401 };
1402
1403 DMenu MenuSysconsScrnmap = {
1404     DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
1405     "System Console Screenmap",
1406     "Unless you load a specific font, most PC hardware defaults to\n"
1407     "displaying characters in the IBM 437 character set.  However,\n"
1408     "in the Unix world, this character set is very rarely used.  Most\n"
1409     "Western European countries, for example, prefer ISO 8859-1.\n"
1410     "American users won't notice the difference since the bottom half\n"
1411     "of all these character sets is ANSI anyway.\n"
1412     "If your hardware is capable of downloading a new display font,\n"
1413     "you should probably choose that option.  However, for hardware\n"
1414     "where this is not possible (e.g. monochrome adapters), a screen\n"
1415     "map will give you the best approximation that your hardware can\n"
1416     "display at all.",
1417     "Choose a screen map",
1418     NULL,
1419     { { "None",                 "No screenmap, use default font", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=NO" },
1420       { "KOI8-R to IBM866",     "Russian KOI8-R to IBM 866 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-r2cp866" },
1421       { "ISO 8859-1 to IBM437", "W-Europe ISO 8859-1 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-1_to_cp437" },
1422       { NULL } },
1423 };
1424
1425 DMenu MenuSysconsFont = {
1426     DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS,
1427     "System Console Font",
1428     "Most PC hardware defaults to displaying characters in the\n"
1429     "IBM 437 character set.  However, in the Unix world, this\n"
1430     "character set is very rarely used.  Most Western European\n"
1431     "countries, for example, prefer ISO 8859-1.\n"
1432     "American users won't notice the difference since the bottom half\n"
1433     "of all these charactersets is ANSI anyway.  However, they might\n"
1434     "want to load a font anyway to use the 30- or 50-line displays.\n"
1435     "If your hardware is capable of downloading a new display font,\n"
1436     "you can select the appropriate font below.",
1437     "Choose a font",
1438     NULL,
1439     { { "None", "Use default font",     dmenuVarCheck,  dmenuSetVariables, NULL,
1440         "font8x8=NO,font8x14=NO,font8x16=NO" },
1441       { "IBM 437", "English",   dmenuVarCheck,  dmenuSetVariables, NULL,
1442         "font8x8=cp437-8x8,font8x14=cp437-8x14,font8x16=cp437-8x16" },
1443       { "IBM 850", "Western Europe, IBM encoding",      dmenuVarCheck,  dmenuSetVariables, NULL,
1444         "font8x8=cp850-8x8,font8x14=cp850-8x14,font8x16=cp850-8x16" },
1445       { "IBM 865", "Norwegian, IBM encoding",   dmenuVarCheck,  dmenuSetVariables, NULL,
1446         "font8x8=cp865-8x8,font8x14=cp865-8x14,font8x16=cp865-8x16" },
1447       { "IBM 866", "Russian, IBM encoding",     dmenuVarCheck,  dmenuSetVariables, NULL,
1448         "font8x8=cp866-8x8,font8x14=cp866-8x14,font8x16=cp866-8x16" },
1449       { "ISO 8859-1", "Western Europe, ISO encoding",   dmenuVarCheck,  dmenuSetVariables, NULL,
1450         "font8x8=iso-8x8,font8x14=iso-8x14,font8x16=iso-8x16" },
1451       { "KOI8-R", "Russian, KOI8-R encoding",   dmenuVarCheck,  dmenuSetVariables, NULL,
1452         "font8x8=koi8-r-8x8,font8x14=koi8-r-8x14,font8x16=koi8-r-8x16" },
1453       { NULL } },
1454 };
1455
1456 DMenu MenuUsermgmt = {
1457     DMENU_NORMAL_TYPE,
1458     "User and group management",
1459     "The submenus here allow to manipulate user groups and\n"
1460     "login accounts.\n",
1461     "Configure your user groups and users",
1462     NULL,
1463     { { "Add user",     "Add a new user to the system.",        NULL, userAddUser },
1464       { "Add group",    "Add a new user group to the system.",  NULL, userAddGroup },
1465       { "Exit",         "Exit this menu (returning to previous)", NULL, dmenuExit },
1466       { NULL } },
1467 };
1468
1469 DMenu MenuFixit = {
1470     DMENU_NORMAL_TYPE,
1471     "Please choose a fixit option",
1472     "There are three ways of going into \"fixit\" mode:\n"
1473     "- you can use the 2nd FreeBSD CDROM, in which case there will be\n"
1474     "  full access to the complete set of FreeBSD commands and utilities,\n"
1475     "- you can use the more limited (but perhaps customized) fixit floppy,\n"
1476     "- or you can start an Emergency Holographic Shell now, which is\n"
1477     "  limited to the subset of commands that is already available right now.",
1478     "Press F1 for more detailed repair instructions",
1479     "fixit",
1480 { { "1 CDROM",  "Use the 2nd \"live\" CDROM from the distribution",     NULL, installFixitCDROM },
1481   { "2 Floppy", "Use a floppy generated from the fixit image",          NULL, installFixitFloppy },
1482   { "3 Shell",  "Start an Emergency Holographic Shell",                 NULL, installFixitHoloShell },
1483   { NULL } },
1484 };
1485