Deleted Added
full compact
menus.c (161059) menus.c (161060)
1/*
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,

--- 14 unchanged lines hidden (view full) ---

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
36static const char rcsid[] =
2 * Copyright (c) 1995
3 * Jordan Hubbard. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer,

--- 14 unchanged lines hidden (view full) ---

24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 */
29
30#ifndef lint
31static const char rcsid[] =
37 "$FreeBSD: head/usr.sbin/sade/menus.c 157759 2006-04-14 18:18:43Z jkim $";
32 "$FreeBSD: head/usr.sbin/sade/menus.c 161060 2006-08-07 23:35:49Z netchild $";
38#endif
39
33#endif
34
40#include "sysinstall.h"
35#include "sade.h"
41
42/* Miscellaneous work routines for menus */
36
37/* Miscellaneous work routines for menus */
43static int
44setSrc(dialogMenuItem *self)
45{
46 Dists |= DIST_SRC;
47 SrcDists = DIST_SRC_ALL;
48 return DITEM_SUCCESS | DITEM_REDRAW;
49}
50
51static int
38
39static int
52clearSrc(dialogMenuItem *self)
53{
54 Dists &= ~DIST_SRC;
55 SrcDists = 0;
56 return DITEM_SUCCESS | DITEM_REDRAW;
57}
58
59static int
60setKernel(dialogMenuItem *self)
61{
62 Dists |= DIST_KERNEL;
63 KernelDists = DIST_KERNEL_ALL;
64 return DITEM_SUCCESS | DITEM_REDRAW;
65}
66
67static int
68clearKernel(dialogMenuItem *self)
69{
70 Dists &= ~DIST_KERNEL;
71 KernelDists = 0;
72 return DITEM_SUCCESS | DITEM_REDRAW;
73}
74
75static int
76setX11Misc(dialogMenuItem *self)
77{
78 XOrgDists |= DIST_XORG_MISC_ALL;
79 Dists |= DIST_XORG;
80 return DITEM_SUCCESS | DITEM_REDRAW;
81}
82
83static int
84clearX11Misc(dialogMenuItem *self)
85{
86 XOrgDists &= ~DIST_XORG_MISC_ALL;
87 if (!XOrgDists)
88 Dists &= ~DIST_XORG;
89 return DITEM_SUCCESS | DITEM_REDRAW;
90}
91
92static int
93setX11Servers(dialogMenuItem *self)
94{
95 XOrgDists |= DIST_XORG_SERVER_ALL;
96 return DITEM_SUCCESS | DITEM_REDRAW;
97}
98
99static int
100clearX11Servers(dialogMenuItem *self)
101{
102 XOrgDists &= ~DIST_XORG_SERVER_ALL;
103 if (!XOrgDists)
104 Dists &= ~DIST_XORG;
105 return DITEM_SUCCESS | DITEM_REDRAW;
106}
107
108static int
109setX11Fonts(dialogMenuItem *self)
110{
111 XOrgDists |= DIST_XORG_FONTS_ALL;
112 return DITEM_SUCCESS | DITEM_REDRAW;
113}
114
115static int
116clearX11Fonts(dialogMenuItem *self)
117{
118 XOrgDists &= ~DIST_XORG_FONTS_ALL;
119 if (!XOrgDists)
120 Dists &= ~DIST_XORG;
121 return DITEM_SUCCESS | DITEM_REDRAW;
122}
123
124#define _IS_SET(dist, set) (((dist) & (set)) == (set))
125
126#define IS_DEVELOPER(dist, extra) (_IS_SET(dist, _DIST_DEVELOPER | extra) || \
127 _IS_SET(dist, _DIST_DEVELOPER | extra))
128
129#define IS_USER(dist, extra) (_IS_SET(dist, _DIST_USER | extra) || \
130 _IS_SET(dist, _DIST_USER | extra))
131
132static int
133checkDistDeveloper(dialogMenuItem *self)
134{
135 return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_ALL);
136}
137
138static int
139checkDistXDeveloper(dialogMenuItem *self)
140{
141 return IS_DEVELOPER(Dists, DIST_XORG) && _IS_SET(SrcDists, DIST_SRC_ALL);
142}
143
144static int
145checkDistKernDeveloper(dialogMenuItem *self)
146{
147 return IS_DEVELOPER(Dists, 0) && _IS_SET(SrcDists, DIST_SRC_SYS);
148}
149
150static int
151checkDistXKernDeveloper(dialogMenuItem *self)
152{
153 return IS_DEVELOPER(Dists, DIST_XORG) && _IS_SET(SrcDists, DIST_SRC_SYS);
154}
155
156static int
157checkDistUser(dialogMenuItem *self)
158{
159 return IS_USER(Dists, 0);
160}
161
162static int
163checkDistXUser(dialogMenuItem *self)
164{
165 return IS_USER(Dists, DIST_XORG);
166}
167
168static int
169checkDistMinimum(dialogMenuItem *self)
170{
171 return Dists == (DIST_BASE | DIST_KERNEL);
172}
173
174static int
175checkDistEverything(dialogMenuItem *self)
176{
177 return Dists == DIST_ALL &&
178 _IS_SET(SrcDists, DIST_SRC_ALL) &&
179 _IS_SET(XOrgDists, DIST_XORG_ALL) &&
180 _IS_SET(KernelDists, DIST_KERNEL_ALL);
181}
182
183static int
184srcFlagCheck(dialogMenuItem *item)
185{
186 return SrcDists;
187}
188
189static int
190x11FlagCheck(dialogMenuItem *item)
191{
192 if (XOrgDists != 0)
193 Dists |= DIST_XORG;
194 else
195 Dists &= ~DIST_XORG;
196
197 return Dists & DIST_XORG;
198}
199
200static int
201kernelFlagCheck(dialogMenuItem *item)
202{
203 return KernelDists;
204}
205
206static int
207checkTrue(dialogMenuItem *item)
208{
209 return TRUE;
210}
211
212/* All the system menus go here.
213 *
214 * Hardcoded things like version number strings will disappear from
215 * these menus just as soon as I add the code for doing inline variable
216 * expansion.
217 */
218
40checkTrue(dialogMenuItem *item)
41{
42 return TRUE;
43}
44
45/* All the system menus go here.
46 *
47 * Hardcoded things like version number strings will disappear from
48 * these menus just as soon as I add the code for doing inline variable
49 * expansion.
50 */
51
219DMenu MenuIndex = {
220 DMENU_NORMAL_TYPE,
221 "Glossary of functions",
222 "This menu contains an alphabetized index of the top level functions in\n"
223 "this program (sysinstall). Invoke an option by pressing [SPACE] or\n"
224 "[ENTER]. To exit, use [TAB] to move to the Cancel button.",
225 "Use PageUp or PageDown to move through this menu faster!",
226 NULL,
227 { { " Anon FTP", "Configure anonymous FTP logins.", dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
228 { " Commit", "Commit any pending actions (dangerous!)", NULL, installCustomCommit },
229 { " Country", "Set the system's country", NULL, configCountry },
230#ifdef WITH_SYSCONS
231 { " Console settings", "Customize system console behavior.", NULL, dmenuSubmenu, NULL, &MenuSyscons },
232#endif
233 { " Configure", "The system configuration menu.", NULL, dmenuSubmenu, NULL, &MenuConfigure },
234 { " Defaults, Load", "Load default settings.", NULL, dispatch_load_floppy },
235#ifdef WITH_MICE
236 { " Device, Mouse", "The mouse configuration menu.", NULL, dmenuSubmenu, NULL, &MenuMouse },
237#endif
238 { " Disklabel", "The disk Label editor", NULL, diskLabelEditor },
239 { " Dists, All", "Root of the distribution tree.", NULL, dmenuSubmenu, NULL, &MenuDistributions },
240 { " Dists, Basic", "Basic FreeBSD distribution menu.", NULL, dmenuSubmenu, NULL, &MenuSubDistributions },
241 { " Dists, Developer", "Select developer's distribution.", checkDistDeveloper, distSetDeveloper },
242 { " Dists, Src", "Src distribution menu.", NULL, dmenuSubmenu, NULL, &MenuSrcDistributions },
243 { " Dists, X Developer", "Select X developer's distribution.", checkDistXDeveloper, distSetXDeveloper },
244 { " Dists, Kern Developer", "Select kernel developer's distribution.", checkDistKernDeveloper, distSetKernDeveloper },
245 { " Dists, User", "Select average user distribution.", checkDistUser, distSetUser },
246 { " Dists, X User", "Select average X user distribution.", checkDistXUser, distSetXUser },
247 { " Distributions, Adding", "Installing additional distribution sets", NULL, distExtractAll },
248 { " Distributions, X.Org","X.Org distribution menu.", NULL, distSetXOrg },
249 { " Documentation", "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
250 { " Doc, README", "The distribution README file.", NULL, dmenuDisplayFile, NULL, "README" },
251 { " Doc, Errata", "The distribution errata.", NULL, dmenuDisplayFile, NULL, "ERRATA" },
252 { " Doc, Hardware", "The distribution hardware guide.", NULL, dmenuDisplayFile, NULL, "HARDWARE" },
253 { " Doc, Install", "The distribution installation guide.", NULL, dmenuDisplayFile, NULL, "INSTALL" },
254 { " Doc, Copyright", "The distribution copyright notices.", NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
255 { " Doc, Release", "The distribution release notes.", NULL, dmenuDisplayFile, NULL, "RELNOTES" },
256 { " Doc, HTML", "The HTML documentation menu.", NULL, docBrowser },
257 { " Dump Vars", "(debugging) dump out internal variables.", NULL, dump_variables },
258 { " Emergency shell", "Start an Emergency Holographic shell.", NULL, installFixitHoloShell },
259#ifdef WITH_SLICES
260 { " Fdisk", "The disk Partition Editor", NULL, diskPartitionEditor },
261#endif
262 { " Fixit", "Repair mode with CDROM or fixit floppy.", NULL, dmenuSubmenu, NULL, &MenuFixit },
263 { " FTP sites", "The FTP mirror site listing.", NULL, dmenuSubmenu, NULL, &MenuMediaFTP },
264 { " Gateway", "Set flag to route packets between interfaces.", dmenuVarCheck, dmenuToggleVariable, NULL, "gateway=YES" },
265 { " HTML Docs", "The HTML documentation menu", NULL, docBrowser },
266 { " inetd Configuration", "Configure inetd and simple internet services.", dmenuVarCheck, configInetd, NULL, "inetd_enable=YES" },
267 { " Install, Standard", "A standard system installation.", NULL, installStandard },
268 { " Install, Express", "An express system installation.", NULL, installExpress },
269 { " Install, Custom", "The custom installation menu", NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
270 { " Label", "The disk Label editor", NULL, diskLabelEditor },
271 { " Media", "Top level media selection menu.", NULL, dmenuSubmenu, NULL, &MenuMedia },
272 { " Media, Tape", "Select tape installation media.", NULL, mediaSetTape },
273 { " Media, NFS", "Select NFS installation media.", NULL, mediaSetNFS },
274 { " Media, Floppy", "Select floppy installation media.", NULL, mediaSetFloppy },
275 { " Media, CDROM/DVD", "Select CDROM/DVD installation media.", NULL, mediaSetCDROM },
276 { " Media, DOS", "Select DOS installation media.", NULL, mediaSetDOS },
277 { " Media, UFS", "Select UFS installation media.", NULL, mediaSetUFS },
278 { " Media, FTP", "Select FTP installation media.", NULL, mediaSetFTP },
279 { " Media, FTP Passive", "Select passive FTP installation media.", NULL, mediaSetFTPPassive },
280 { " Media, HTTP", "Select FTP via HTTP proxy installation media.", NULL, mediaSetHTTP },
281 { " Network Interfaces", "Configure network interfaces", NULL, tcpMenuSelect },
282 { " Networking Services", "The network services menu.", NULL, dmenuSubmenu, NULL, &MenuNetworking },
283 { " NFS, client", "Set NFS client flag.", dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
284 { " NFS, server", "Set NFS server flag.", dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
285 { " NTP Menu", "The NTP configuration menu.", NULL, dmenuSubmenu, NULL, &MenuNTP },
286 { " Options", "The options editor.", NULL, optionsEditor },
287 { " Packages", "The packages collection", NULL, configPackages },
288#ifdef WITH_SLICES
289 { " Partition", "The disk Slice (PC-style partition) Editor", NULL, diskPartitionEditor },
290#endif
291 { " PCNFSD", "Run authentication server for PC-NFS.", dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
292 { " Root Password", "Set the system manager's password.", NULL, dmenuSystemCommand, NULL, "passwd root" },
293 { " Router", "Select routing daemon (default: routed)", NULL, configRouter, NULL, "router_enable" },
294 { " Security", "Configure system security options", NULL, dmenuSubmenu, NULL, &MenuSecurity },
295#ifdef WITH_SYSCONS
296 { " Syscons", "The system console configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSyscons },
297#ifndef PC98
298 { " Syscons, Font", "The console screen font.", NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
299#endif
300 { " Syscons, Keymap", "The console keymap configuration menu.", NULL, keymapMenuSelect },
301 { " Syscons, Keyrate", "The console key rate configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
302 { " Syscons, Saver", "The console screen saver configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
303#ifndef PC98
304 { " Syscons, Screenmap", "The console screenmap configuration menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
305 { " Syscons, Ttys", "The console terminal type menu.", NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
306#endif
307#endif /* WITH_SYSCONS */
308 { " Time Zone", "Set the system's time zone.", NULL, dmenuSystemCommand, NULL, "tzsetup" },
309 { " TTYs", "Configure system ttys.", NULL, configEtcTtys, NULL, "ttys" },
310 { " Upgrade", "Upgrade an existing system.", NULL, installUpgrade },
311 { " Usage", "Quick start - How to use this menu system.", NULL, dmenuDisplayFile, NULL, "usage" },
312 { " User Management", "Add user and group information.", NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
313 { " X.Org, Fonts", "X.Org Font selection menu.", NULL, dmenuSubmenu, NULL, &MenuXOrgSelectFonts },
314 { " X.Org, Server", "X.Org Server selection menu.", NULL, dmenuSubmenu, NULL, &MenuXOrgSelectServer },
315 { NULL } },
316};
317
318/* The country menu */
319#include "countries.h"
320
321/* The initial installation menu */
322DMenu MenuInitial = {
323 DMENU_NORMAL_TYPE,
324 "sysinstall Main Menu", /* title */
325 "Welcome to the FreeBSD installation and configuration tool. Please\n" /* prompt */
326 "select one of the options below by using the arrow keys or typing the\n"
327 "first character of the option name you're interested in. Invoke an\n"
328 "option with [SPACE] or [ENTER]. To exit, use [TAB] to move to Exit.",
329 "Press F1 for Installation Guide", /* help line */
330 "INSTALL", /* help file */
331 { { " Select " },
332 { "X Exit Install", NULL, NULL, dmenuExit },
333 { " Usage", "Quick start - How to use this menu system", NULL, dmenuDisplayFile, NULL, "usage" },
334 { "Standard", "Begin a standard installation (recommended)", NULL, installStandard },
335 { "Express", "Begin a quick installation (for experts)", NULL, installExpress },
336 { " Custom", "Begin a custom installation (for experts)", NULL, dmenuSubmenu, NULL, &MenuInstallCustom },
337 { "Configure", "Do post-install configuration of FreeBSD", NULL, dmenuSubmenu, NULL, &MenuConfigure },
338 { "Doc", "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
339#ifdef WITH_SYSCONS
340 { "Keymap", "Select keyboard type", NULL, keymapMenuSelect },
341#endif
342 { "Options", "View/Set various installation options", NULL, optionsEditor },
343 { "Fixit", "Repair mode with CDROM/DVD/floppy or start shell", NULL, dmenuSubmenu, NULL, &MenuFixit },
344 { "Upgrade", "Upgrade an existing system", NULL, installUpgrade },
345 { "Load Config","Load default install configuration", NULL, dispatch_load_floppy },
346 { "Index", "Glossary of functions", NULL, dmenuSubmenu, NULL, &MenuIndex },
347 { NULL } },
348};
349
350/* The main documentation menu */
351DMenu MenuDocumentation = {
352 DMENU_NORMAL_TYPE,
353 "FreeBSD Documentation Menu",
354 "If you are at all unsure about the configuration of your hardware\n"
355 "or are looking to build a system specifically for FreeBSD, read the\n"
356 "Hardware guide! New users should also read the Install document for\n"
357 "a step-by-step tutorial on installing FreeBSD. For general information,\n"
358 "consult the README file.",
359 "Confused? Press F1 for help.",
360 "usage",
361 { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
362 { "1 README", "A general description of FreeBSD. Read this!", NULL, dmenuDisplayFile, NULL, "README" },
363 { "2 Errata", "Late-breaking, post-release news.", NULL, dmenuDisplayFile, NULL, "ERRATA" },
364 { "3 Hardware", "The FreeBSD survival guide for PC hardware.", NULL, dmenuDisplayFile, NULL, "HARDWARE" },
365 { "4 Install", "A step-by-step guide to installing FreeBSD.", NULL, dmenuDisplayFile, NULL, "INSTALL" },
366 { "5 Copyright", "The FreeBSD Copyright notices.", NULL, dmenuDisplayFile, NULL, "COPYRIGHT" },
367 { "6 Release" ,"The release notes for this version of FreeBSD.", NULL, dmenuDisplayFile, NULL, "RELNOTES" },
368 { "7 Shortcuts", "Creating shortcuts to sysinstall.", NULL, dmenuDisplayFile, NULL, "shortcuts" },
369 { "8 HTML Docs", "Go to the HTML documentation menu (post-install).", NULL, docBrowser },
370 { NULL } },
371};
372
373#ifdef WITH_MICE
374DMenu MenuMouseType = {
375 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
376#ifdef PC98
377 "Select a protocol type for your mouse",
378 "If your mouse is attached to the bus mouse port, you should always choose\n"
379 "\"Auto\", regardless of the model and the brand of the mouse. All other\n"
380 "protocol types are for serial mice and should not be used with the bus\n"
381 "mouse. If you have a serial mouse and are not sure about its protocol,\n"
382 "you should also try \"Auto\". It may not work for the serial mouse if the\n"
383 "mouse does not support the PnP standard. But, it won't hurt. Many\n"
384 "2-button serial mice are compatible with \"Microsoft\" or \"MouseMan\".\n"
385 "3-button serial mice may be compatible with \"MouseSystems\" or \"MouseMan\".\n"
386 "If the serial mouse has a wheel, it may be compatible with \"IntelliMouse\".",
387 NULL,
388 NULL,
389 { { "1 Auto", "Bus mouse or PnP serial mouse",
390 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=auto" },
391#else
392 "Select a protocol type for your mouse",
393 "If your mouse is attached to the PS/2 mouse port or the bus mouse port,\n"
394 "you should always choose \"Auto\", regardless of the model and the brand\n"
395 "of the mouse. All other protocol types are for serial mice and should\n"
396 "not be used with the PS/2 port mouse or the bus mouse. If you have\n"
397 "a serial mouse and are not sure about its protocol, you should also try\n"
398 "\"Auto\". It may not work for the serial mouse if the mouse does not\n"
399 "support the PnP standard. But, it won't hurt. Many 2-button serial mice\n"
400 "are compatible with \"Microsoft\" or \"MouseMan\". 3-button serial mice\n"
401 "may be compatible with \"MouseSystems\" or \"MouseMan\". If the serial\n"
402 "mouse has a wheel, it may be compatible with \"IntelliMouse\".",
403 NULL,
404 NULL,
405 { { "1 Auto", "Bus mouse, PS/2 style mouse or PnP serial mouse",
406 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=auto" },
407#endif /* PC98 */
408 { "2 GlidePoint", "ALPS GlidePoint pad (serial)",
409 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=glidepoint" },
410 { "3 Hitachi","Hitachi tablet (serial)",
411 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmhittab" },
412 { "4 IntelliMouse", "Microsoft IntelliMouse (serial)",
413 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=intellimouse" },
414 { "5 Logitech", "Logitech protocol (old models) (serial)",
415 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=logitech" },
416 { "6 Microsoft", "Microsoft protocol (serial)",
417 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=microsoft" },
418 { "7 MM Series","MM Series protocol (serial)",
419 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mmseries" },
420 { "8 MouseMan", "Logitech MouseMan/TrackMan models (serial)",
421 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mouseman" },
422 { "9 MouseSystems", "MouseSystems protocol (serial)",
423 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=mousesystems" },
424 { "A ThinkingMouse","Kensington ThinkingMouse (serial)",
425 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_TYPE "=thinkingmouse" },
426 { NULL } },
427};
428
429#ifdef PC98
430DMenu MenuMousePort = {
431 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
432 "Select your mouse port from the following menu",
433 "The built-in pointing device of laptop/notebook computers is usually\n"
434 "a BusMouse style device.",
435 NULL,
436 NULL,
437 {
438 { "1 BusMouse", "PC-98x1 bus mouse (/dev/mse0)",
439 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" },
440 { "2 COM1", "Serial mouse on COM1 (/dev/cuad0)",
441 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad0" },
442 { "3 COM2", "Serial mouse on COM2 (/dev/cuad1)",
443 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad1" },
444 { NULL } },
445};
446#else
447DMenu MenuMousePort = {
448 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
449 "Select your mouse port from the following menu",
450 "The built-in pointing device of laptop/notebook computers is usually\n"
451 "a PS/2 style device.",
452 NULL,
453 NULL,
454 { { "1 PS/2", "PS/2 style mouse (/dev/psm0)",
455 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" },
456 { "2 COM1", "Serial mouse on COM1 (/dev/cuad0)",
457 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad0" },
458 { "3 COM2", "Serial mouse on COM2 (/dev/cuad1)",
459 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad1" },
460 { "4 COM3", "Serial mouse on COM3 (/dev/cuad2)",
461 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad2" },
462 { "5 COM4", "Serial mouse on COM4 (/dev/cuad3)",
463 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuad3" },
464 { "6 BusMouse", "Logitech, ATI or MS bus mouse (/dev/mse0)",
465 dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" },
466 { NULL } },
467};
468#endif /* PC98 */
469
470DMenu MenuMouse = {
471 DMENU_NORMAL_TYPE,
472 "Please configure your mouse",
473 "You can cut and paste text in the text console by running the mouse\n"
474 "daemon. Specify a port and a protocol type of your mouse and enable\n"
475 "the mouse daemon. If you don't want this feature, select 6 to disable\n"
476 "the daemon.\n"
477 "Once you've enabled the mouse daemon, you can specify \"/dev/sysmouse\"\n"
478 "as your mouse device and \"SysMouse\" or \"MouseSystems\" as mouse\n"
479 "protocol when running the X configuration utility (see Configuration\n"
480 "menu).",
481 NULL,
482 NULL,
483 { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
484 { "2 Enable", "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL },
485 { "3 Type", "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType },
486 { "4 Port", "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort },
487 { "5 Flags", "Set additional flags", dmenuVarCheck, setMouseFlags,
488 NULL, VAR_MOUSED_FLAGS "=" },
489 { "6 Disable", "Disable the mouse daemon", NULL, mousedDisable, NULL, NULL },
490 { NULL } },
491};
492#endif /* WITH_MICE */
493
494DMenu MenuMediaCDROM = {
495 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
496 "Choose a CD/DVD type",
497 "FreeBSD can be installed directly from a CD/DVD containing a valid\n"
498 "FreeBSD distribution. If you are seeing this menu it is because\n"
499 "more than one CD/DVD drive was found on your system. Please select one\n"
500 "of the following CD/DVD drives as your installation drive.",
501 "Press F1 to read the installation guide",
502 "INSTALL",
503 { { NULL } },
504};
505
506DMenu MenuMediaFloppy = {
507 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
508 "Choose a Floppy drive",
509 "You have more than one floppy drive. Please choose which drive\n"
510 "you would like to use.",
511 NULL,
512 NULL,
513 { { NULL } },
514};
515
516DMenu MenuMediaDOS = {
517 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
518 "Choose a DOS partition",
519 "FreeBSD can be installed directly from a DOS partition\n"
520 "assuming, of course, that you have copied the relevant\n"
521 "distributions into your DOS partition before starting this\n"
522 "installation. If this is not the case then you should reboot\n"
523 "DOS at this time and copy the distributions you wish to install\n"
524 "into a \"FREEBSD\" subdirectory on one of your DOS partitions.\n"
525 "Otherwise, please select the DOS partition containing the FreeBSD\n"
526 "distribution files.",
527 "Press F1 to read the installation guide",
528 "INSTALL",
529 { { NULL } },
530};
531
532DMenu MenuMediaFTP = {
533 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
534 "Please select a FreeBSD FTP distribution site",
535 "Please select the site closest to you or \"other\" if you'd like to\n"
536 "specify a different choice. Also note that not every site listed here\n"
537 "carries more than the base distribution kits. Only Primary sites are\n"
538 "guaranteed to carry the full range of possible distributions.",
539 "Select a site that's close!",
540 "INSTALL",
541 { { "Main Site", "ftp.freebsd.org", NULL, dmenuSetVariable, NULL,
542 VAR_FTP_PATH "=ftp://ftp.freebsd.org" },
543 { "URL", "Specify some other ftp site by URL", NULL, dmenuSetVariable, NULL,
544 VAR_FTP_PATH "=other" },
545 { "Snapshots Server Japan", "snapshots.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
546 VAR_FTP_PATH "=ftp://snapshots.jp.freebsd.org" },
547 { "Snapshots Server Sweden", "snapshots.se.freebsd.org", NULL, dmenuSetVariable, NULL,
548 VAR_FTP_PATH "=ftp://snapshots.se.freebsd.org" },
549
550 { "IPv6 Ireland", "ftp3.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
551 VAR_FTP_PATH "=ftp://ftp3.ie.freebsd.org" },
552 { " IPv6 Japan", "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
553 VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
554 { " IPv6 USA", "ftp4.us.freebsd.org", NULL, dmenuSetVariable, NULL,
555 VAR_FTP_PATH "=ftp://ftp4.us.freebsd.org" },
556
557 { "Primary", "ftp1.freebsd.org", NULL, dmenuSetVariable, NULL,
558 VAR_FTP_PATH "=ftp://ftp1.freebsd.org" },
559 { " Primary #2", "ftp2.freebsd.org", NULL, dmenuSetVariable, NULL,
560 VAR_FTP_PATH "=ftp://ftp2.freebsd.org" },
561 { " Primary #3", "ftp3.freebsd.org", NULL, dmenuSetVariable, NULL,
562 VAR_FTP_PATH "=ftp://ftp3.freebsd.org" },
563 { " Primary #4", "ftp4.freebsd.org", NULL, dmenuSetVariable, NULL,
564 VAR_FTP_PATH "=ftp://ftp4.freebsd.org" },
565 { " Primary #5", "ftp5.freebsd.org", NULL, dmenuSetVariable, NULL,
566 VAR_FTP_PATH "=ftp://ftp5.freebsd.org" },
567 { " Primary #6", "ftp6.freebsd.org", NULL, dmenuSetVariable, NULL,
568 VAR_FTP_PATH "=ftp://ftp6.freebsd.org" },
569 { " Primary #7", "ftp7.freebsd.org", NULL, dmenuSetVariable, NULL,
570 VAR_FTP_PATH "=ftp://ftp7.freebsd.org" },
571 { " Primary #8", "ftp8.freebsd.org", NULL, dmenuSetVariable, NULL,
572 VAR_FTP_PATH "=ftp://ftp8.freebsd.org" },
573 { " Primary #9", "ftp9.freebsd.org", NULL, dmenuSetVariable, NULL,
574 VAR_FTP_PATH "=ftp://ftp9.freebsd.org" },
575 { " Primary #10", "ftp10.freebsd.org", NULL, dmenuSetVariable, NULL,
576 VAR_FTP_PATH "=ftp://ftp10.freebsd.org" },
577 { " Primary #11", "ftp11.freebsd.org", NULL, dmenuSetVariable, NULL,
578 VAR_FTP_PATH "=ftp://ftp11.freebsd.org" },
579 { " Primary #12", "ftp12.freebsd.org", NULL, dmenuSetVariable, NULL,
580 VAR_FTP_PATH "=ftp://ftp12.freebsd.org" },
581 { " Primary #13", "ftp13.freebsd.org", NULL, dmenuSetVariable, NULL,
582 VAR_FTP_PATH "=ftp://ftp13.freebsd.org" },
583 { " Primary #14", "ftp14.freebsd.org", NULL, dmenuSetVariable, NULL,
584 VAR_FTP_PATH "=ftp://ftp14.freebsd.org" },
585
586 { "Argentina", "ftp.ar.freebsd.org", NULL, dmenuSetVariable, NULL,
587 VAR_FTP_PATH "=ftp://ftp.ar.freebsd.org" },
588
589 { "Australia", "ftp.au.freebsd.org", NULL, dmenuSetVariable, NULL,
590 VAR_FTP_PATH "=ftp://ftp.au.freebsd.org" },
591 { " Australia #2","ftp2.au.freebsd.org", NULL, dmenuSetVariable, NULL,
592 VAR_FTP_PATH "=ftp://ftp2.au.freebsd.org" },
593 { " Australia #3","ftp3.au.freebsd.org", NULL, dmenuSetVariable, NULL,
594 VAR_FTP_PATH "=ftp://ftp3.au.freebsd.org" },
595
596 { "Austria","ftp.at.freebsd.org", NULL, dmenuSetVariable, NULL,
597 VAR_FTP_PATH "=ftp://ftp.at.freebsd.org" },
598 { " Austria #2","ftp2.at.freebsd.org", NULL, dmenuSetVariable, NULL,
599 VAR_FTP_PATH "=ftp://ftp2.at.freebsd.org" },
600
601 { "Brazil", "ftp.br.freebsd.org", NULL, dmenuSetVariable, NULL,
602 VAR_FTP_PATH "=ftp://ftp.br.freebsd.org" },
603 { " Brazil #2", "ftp2.br.freebsd.org", NULL, dmenuSetVariable, NULL,
604 VAR_FTP_PATH "=ftp://ftp2.br.freebsd.org" },
605 { " Brazil #3", "ftp3.br.freebsd.org", NULL, dmenuSetVariable, NULL,
606 VAR_FTP_PATH "=ftp://ftp3.br.freebsd.org" },
607 { " Brazil #4", "ftp4.br.freebsd.org", NULL, dmenuSetVariable, NULL,
608 VAR_FTP_PATH "=ftp://ftp4.br.freebsd.org" },
609 { " Brazil #5", "ftp5.br.freebsd.org", NULL, dmenuSetVariable, NULL,
610 VAR_FTP_PATH "=ftp://ftp5.br.freebsd.org" },
611 { " Brazil #6", "ftp6.br.freebsd.org", NULL, dmenuSetVariable, NULL,
612 VAR_FTP_PATH "=ftp://ftp6.br.freebsd.org" },
613 { " Brazil #7", "ftp7.br.freebsd.org", NULL, dmenuSetVariable, NULL,
614 VAR_FTP_PATH "=ftp://ftp7.br.freebsd.org" },
615
616 { "Canada", "ftp.ca.freebsd.org", NULL, dmenuSetVariable, NULL,
617 VAR_FTP_PATH "=ftp://ftp.ca.freebsd.org" },
618
619 { "China", "ftp.cn.freebsd.org", NULL, dmenuSetVariable, NULL,
620 VAR_FTP_PATH "=ftp://ftp.cn.freebsd.org" },
621 { " China #2", "ftp2.cn.freebsd.org", NULL, dmenuSetVariable, NULL,
622 VAR_FTP_PATH "=ftp://ftp2.cn.freebsd.org" },
623
624 { "Croatia", "ftp.hr.freebsd.org", NULL, dmenuSetVariable, NULL,
625 VAR_FTP_PATH "=ftp://ftp.hr.freebsd.org" },
626
627 { "Czech Republic", "ftp.cz.freebsd.org", NULL, dmenuSetVariable, NULL,
628 VAR_FTP_PATH "=ftp://ftp.cz.freebsd.org" },
629
630 { "Denmark", "ftp.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
631 VAR_FTP_PATH "=ftp://ftp.dk.freebsd.org" },
632 { " Denmark #2", "ftp2.dk.freebsd.org", NULL, dmenuSetVariable, NULL,
633 VAR_FTP_PATH "=ftp://ftp2.dk.freebsd.org" },
634
635 { "Estonia", "ftp.ee.freebsd.org", NULL, dmenuSetVariable, NULL,
636 VAR_FTP_PATH "=ftp://ftp.ee.freebsd.org" },
637
638 { "Finland", "ftp.fi.freebsd.org", NULL, dmenuSetVariable, NULL,
639 VAR_FTP_PATH "=ftp://ftp.fi.freebsd.org" },
640
641 { "France", "ftp.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
642 VAR_FTP_PATH "=ftp://ftp.fr.freebsd.org" },
643 { " France #2", "ftp2.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
644 VAR_FTP_PATH "=ftp://ftp2.fr.freebsd.org" },
645 { " France #3", "ftp3.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
646 VAR_FTP_PATH "=ftp://ftp3.fr.freebsd.org" },
647 { " France #5", "ftp5.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
648 VAR_FTP_PATH "=ftp://ftp5.fr.freebsd.org" },
649 { " France #6", "ftp6.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
650 VAR_FTP_PATH "=ftp://ftp6.fr.freebsd.org" },
651 { " France #8", "ftp8.fr.freebsd.org", NULL, dmenuSetVariable, NULL,
652 VAR_FTP_PATH "=ftp://ftp8.fr.freebsd.org" },
653
654 { "Germany", "ftp.de.freebsd.org", NULL, dmenuSetVariable, NULL,
655 VAR_FTP_PATH "=ftp://ftp.de.freebsd.org" },
656 { " Germany #2", "ftp2.de.freebsd.org", NULL, dmenuSetVariable, NULL,
657 VAR_FTP_PATH "=ftp://ftp2.de.freebsd.org" },
658 { " Germany #3", "ftp3.de.freebsd.org", NULL, dmenuSetVariable, NULL,
659 VAR_FTP_PATH "=ftp://ftp3.de.freebsd.org" },
660 { " Germany #4", "ftp4.de.freebsd.org", NULL, dmenuSetVariable, NULL,
661 VAR_FTP_PATH "=ftp://ftp4.de.freebsd.org" },
662 { " Germany #5", "ftp5.de.freebsd.org", NULL, dmenuSetVariable, NULL,
663 VAR_FTP_PATH "=ftp://ftp5.de.freebsd.org" },
664 { " Germany #6", "ftp6.de.freebsd.org", NULL, dmenuSetVariable, NULL,
665 VAR_FTP_PATH "=ftp://ftp6.de.freebsd.org" },
666 { " Germany #7", "ftp7.de.freebsd.org", NULL, dmenuSetVariable, NULL,
667 VAR_FTP_PATH "=ftp://ftp7.de.freebsd.org" },
668 { " Germany #8", "ftp8.de.freebsd.org", NULL, dmenuSetVariable, NULL,
669 VAR_FTP_PATH "=ftp://ftp8.de.freebsd.org" },
670
671 { "Greece", "ftp.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
672 VAR_FTP_PATH "=ftp://ftp.gr.freebsd.org" },
673 { " Greece #2", "ftp2.gr.freebsd.org", NULL, dmenuSetVariable, NULL,
674 VAR_FTP_PATH "=ftp://ftp2.gr.freebsd.org" },
675
676 { "Hong Kong", "ftp.hk.super.net", NULL, dmenuSetVariable, NULL,
677 VAR_FTP_PATH "=ftp://ftp.hk.super.net" },
678
679 { "Hungary", "ftp.hu.freebsd.org", NULL, dmenuSetVariable, NULL,
680 VAR_FTP_PATH "=ftp://ftp.hu.freebsd.org" },
681
682 { "Iceland", "ftp.is.freebsd.org", NULL, dmenuSetVariable, NULL,
683 VAR_FTP_PATH "=ftp://ftp.is.freebsd.org" },
684
685 { "Ireland", "ftp.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
686 VAR_FTP_PATH "=ftp://ftp.ie.freebsd.org" },
687 { " Ireland #2", "ftp2.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
688 VAR_FTP_PATH "=ftp://ftp2.ie.freebsd.org" },
689 { " Ireland #3", "ftp3.ie.freebsd.org", NULL, dmenuSetVariable, NULL,
690 VAR_FTP_PATH "=ftp://ftp3.ie.freebsd.org" },
691
692 { "Italy", "ftp.it.freebsd.org", NULL, dmenuSetVariable, NULL,
693 VAR_FTP_PATH "=ftp://ftp.it.freebsd.org" },
694
695 { "Japan", "ftp.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
696 VAR_FTP_PATH "=ftp://ftp.jp.freebsd.org" },
697 { " Japan #2", "ftp2.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
698 VAR_FTP_PATH "=ftp://ftp2.jp.freebsd.org" },
699 { " Japan #3", "ftp3.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
700 VAR_FTP_PATH "=ftp://ftp3.jp.freebsd.org" },
701 { " Japan #4", "ftp4.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
702 VAR_FTP_PATH "=ftp://ftp4.jp.freebsd.org" },
703 { " Japan #5", "ftp5.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
704 VAR_FTP_PATH "=ftp://ftp5.jp.freebsd.org" },
705 { " Japan #6", "ftp6.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
706 VAR_FTP_PATH "=ftp://ftp6.jp.freebsd.org" },
707 { " Japan #7", "ftp7.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
708 VAR_FTP_PATH "=ftp://ftp7.jp.freebsd.org" },
709 { " Japan #8", "ftp8.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
710 VAR_FTP_PATH "=ftp://ftp8.jp.freebsd.org" },
711 { " Japan #9", "ftp9.jp.freebsd.org", NULL, dmenuSetVariable, NULL,
712 VAR_FTP_PATH "=ftp://ftp9.jp.freebsd.org" },
713
714 { "Korea", "ftp.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
715 VAR_FTP_PATH "=ftp://ftp.kr.freebsd.org" },
716 { " Korea #2", "ftp2.kr.freebsd.org", NULL, dmenuSetVariable, NULL,
717 VAR_FTP_PATH "=ftp://ftp2.kr.freebsd.org" },
718
719 { "Lithuania", "ftp.lt.freebsd.org", NULL, dmenuSetVariable, NULL,
720 VAR_FTP_PATH "=ftp://ftp.lt.freebsd.org" },
721
722 { "Netherlands", "ftp.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
723 VAR_FTP_PATH "=ftp://ftp.nl.freebsd.org" },
724 { " Netherlands #2", "ftp2.nl.freebsd.org", NULL, dmenuSetVariable, NULL,
725 VAR_FTP_PATH "=ftp://ftp2.nl.freebsd.org" },
726
727 { "Norway", "ftp.no.freebsd.org", NULL, dmenuSetVariable, NULL,
728 VAR_FTP_PATH "=ftp://ftp.no.freebsd.org" },
729 { " Norway #3", "ftp3.no.freebsd.org", NULL, dmenuSetVariable, NULL,
730 VAR_FTP_PATH "=ftp://ftp3.no.freebsd.org" },
731
732 { "Poland", "ftp.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
733 VAR_FTP_PATH "=ftp://ftp.pl.freebsd.org" },
734 { " Poland #2", "ftp2.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
735 VAR_FTP_PATH "=ftp://ftp2.pl.freebsd.org" },
736 { " Poland #5", "ftp5.pl.freebsd.org", NULL, dmenuSetVariable, NULL,
737 VAR_FTP_PATH "=ftp://ftp5.pl.freebsd.org" },
738
739 { "Portugal", "ftp.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
740 VAR_FTP_PATH "=ftp://ftp.pt.freebsd.org" },
741 { " Portugal #2", "ftp2.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
742 VAR_FTP_PATH "=ftp://ftp2.pt.freebsd.org" },
743 { " Portugal #4", "ftp4.pt.freebsd.org", NULL, dmenuSetVariable, NULL,
744 VAR_FTP_PATH "=ftp://ftp4.pt.freebsd.org" },
745
746 { "Romania", "ftp.ro.freebsd.org", NULL, dmenuSetVariable, NULL,
747 VAR_FTP_PATH "=ftp://ftp.ro.freebsd.org" },
748
749 { "Russia", "ftp.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
750 VAR_FTP_PATH "=ftp://ftp.ru.freebsd.org" },
751 { " Russia #2", "ftp2.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
752 VAR_FTP_PATH "=ftp://ftp2.ru.freebsd.org" },
753 { " Russia #3", "ftp3.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
754 VAR_FTP_PATH "=ftp://ftp3.ru.freebsd.org" },
755 { " Russia #4", "ftp4.ru.freebsd.org", NULL, dmenuSetVariable, NULL,
756 VAR_FTP_PATH "=ftp://ftp4.ru.freebsd.org" },
757
758 { "Singapore", "ftp.sg.freebsd.org", NULL, dmenuSetVariable, NULL,
759 VAR_FTP_PATH "=ftp://ftp.sg.freebsd.org" },
760
761 { "Slovak Republic", "ftp.sk.freebsd.org", NULL, dmenuSetVariable, NULL,
762 VAR_FTP_PATH "=ftp://ftp.sk.freebsd.org" },
763
764 { "Slovenia", "ftp.si.freebsd.org", NULL, dmenuSetVariable, NULL,
765 VAR_FTP_PATH "=ftp://ftp.si.freebsd.org" },
766 { " Slovenia #2", "ftp2.si.freebsd.org", NULL, dmenuSetVariable, NULL,
767 VAR_FTP_PATH "=ftp://ftp2.si.freebsd.org" },
768
769 { "South Africa", "ftp.za.freebsd.org", NULL, dmenuSetVariable, NULL,
770 VAR_FTP_PATH "=ftp://ftp.za.freebsd.org" },
771 { " South Africa #2", "ftp2.za.freebsd.org", NULL, dmenuSetVariable, NULL,
772 VAR_FTP_PATH "=ftp://ftp2.za.freebsd.org" },
773 { " South Africa #3", "ftp3.za.freebsd.org", NULL, dmenuSetVariable, NULL,
774 VAR_FTP_PATH "=ftp://ftp3.za.freebsd.org" },
775 { " South Africa #4", "ftp4.za.freebsd.org", NULL, dmenuSetVariable, NULL,
776 VAR_FTP_PATH "=ftp://ftp4.za.freebsd.org" },
777
778 { "Spain", "ftp.es.freebsd.org", NULL, dmenuSetVariable, NULL,
779 VAR_FTP_PATH "=ftp://ftp.es.freebsd.org" },
780 { " Spain #2", "ftp2.es.freebsd.org", NULL, dmenuSetVariable, NULL,
781 VAR_FTP_PATH "=ftp://ftp2.es.freebsd.org" },
782 { " Spain #3", "ftp3.es.freebsd.org", NULL, dmenuSetVariable, NULL,
783 VAR_FTP_PATH "=ftp://ftp3.es.freebsd.org" },
784
785 { "Sweden", "ftp.se.freebsd.org", NULL, dmenuSetVariable, NULL,
786 VAR_FTP_PATH "=ftp://ftp.se.freebsd.org" },
787 { " Sweden #2", "ftp2.se.freebsd.org", NULL, dmenuSetVariable, NULL,
788 VAR_FTP_PATH "=ftp://ftp2.se.freebsd.org" },
789 { " Sweden #3", "ftp3.se.freebsd.org", NULL, dmenuSetVariable, NULL,
790 VAR_FTP_PATH "=ftp://ftp3.se.freebsd.org" },
791 { " Sweden #5", "ftp5.se.freebsd.org", NULL, dmenuSetVariable, NULL,
792 VAR_FTP_PATH "=ftp://ftp5.se.freebsd.org" },
793
794 { "Switzerland", "ftp.ch.freebsd.org", NULL, dmenuSetVariable, NULL,
795 VAR_FTP_PATH "=ftp://ftp.ch.freebsd.org" },
796 { " Switzerland #2", "ftp2.ch.freebsd.org", NULL, dmenuSetVariable, NULL,
797 VAR_FTP_PATH "=ftp://ftp2.ch.freebsd.org" },
798
799 { "Taiwan", "ftp.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
800 VAR_FTP_PATH "=ftp://ftp.tw.freebsd.org" },
801 { " Taiwan #2", "ftp2.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
802 VAR_FTP_PATH "=ftp://ftp2.tw.freebsd.org" },
803 { " Taiwan #3", "ftp3.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
804 VAR_FTP_PATH "=ftp://ftp3.tw.freebsd.org" },
805 { " Taiwan #4", "ftp4.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
806 VAR_FTP_PATH "=ftp://ftp4.tw.freebsd.org" },
807 { " Taiwan #6", "ftp6.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
808 VAR_FTP_PATH "=ftp://ftp6.tw.freebsd.org" },
809 { " Taiwan #11", "ftp11.tw.freebsd.org", NULL, dmenuSetVariable, NULL,
810 VAR_FTP_PATH "=ftp://ftp11.tw.freebsd.org" },
811
812 { "Turkey", "ftp.tr.freebsd.org", NULL, dmenuSetVariable, NULL,
813 VAR_FTP_PATH "=ftp://ftp.tr.freebsd.org" },
814
815 { "UK", "ftp.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
816 VAR_FTP_PATH "=ftp://ftp.uk.freebsd.org" },
817 { " UK #2", "ftp2.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
818 VAR_FTP_PATH "=ftp://ftp2.uk.freebsd.org" },
819 { " UK #3", "ftp3.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
820 VAR_FTP_PATH "=ftp://ftp3.uk.freebsd.org" },
821 { " UK #4", "ftp4.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
822 VAR_FTP_PATH "=ftp://ftp4.uk.freebsd.org" },
823 { " UK #5", "ftp5.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
824 VAR_FTP_PATH "=ftp://ftp5.uk.freebsd.org" },
825 { " UK #6", "ftp6.uk.freebsd.org", NULL, dmenuSetVariable, NULL,
826 VAR_FTP_PATH "=ftp://ftp6.uk.freebsd.org" },
827
828 { "Ukraine", "ftp.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
829 VAR_FTP_PATH "=ftp://ftp.ua.freebsd.org" },
830 { " Ukraine #2", "ftp2.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
831 VAR_FTP_PATH "=ftp://ftp2.ua.freebsd.org" },
832 { " Ukraine #5", "ftp5.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
833 VAR_FTP_PATH "=ftp://ftp5.ua.freebsd.org" },
834 { " Ukraine #6", "ftp6.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
835 VAR_FTP_PATH "=ftp://ftp6.ua.freebsd.org" },
836 { " Ukraine #7", "ftp7.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
837 VAR_FTP_PATH "=ftp://ftp7.ua.freebsd.org" },
838 { " Ukraine #8", "ftp8.ua.freebsd.org", NULL, dmenuSetVariable, NULL,
839 VAR_FTP_PATH "=ftp://ftp8.ua.freebsd.org" },
840
841 { "USA #1", "ftp1.us.freebsd.org", NULL, dmenuSetVariable, NULL,
842 VAR_FTP_PATH "=ftp://ftp1.us.freebsd.org" },
843 { " USA #2", "ftp2.us.freebsd.org", NULL, dmenuSetVariable, NULL,
844 VAR_FTP_PATH "=ftp://ftp2.us.freebsd.org" },
845 { " USA #3", "ftp3.us.freebsd.org", NULL, dmenuSetVariable, NULL,
846 VAR_FTP_PATH "=ftp://ftp3.us.freebsd.org" },
847 { " USA #4", "ftp4.us.freebsd.org", NULL, dmenuSetVariable, NULL,
848 VAR_FTP_PATH "=ftp://ftp4.us.freebsd.org" },
849 { " USA #5", "ftp5.us.freebsd.org", NULL, dmenuSetVariable, NULL,
850 VAR_FTP_PATH "=ftp://ftp5.us.freebsd.org" },
851 { " USA #6", "ftp6.us.freebsd.org", NULL, dmenuSetVariable, NULL,
852 VAR_FTP_PATH "=ftp://ftp6.us.freebsd.org" },
853 { " USA #7", "ftp7.us.freebsd.org", NULL, dmenuSetVariable, NULL,
854 VAR_FTP_PATH "=ftp://ftp7.us.freebsd.org" },
855 { " USA #8", "ftp8.us.freebsd.org", NULL, dmenuSetVariable, NULL,
856 VAR_FTP_PATH "=ftp://ftp8.us.freebsd.org" },
857 { " USA #9", "ftp9.us.freebsd.org", NULL, dmenuSetVariable, NULL,
858 VAR_FTP_PATH "=ftp://ftp9.us.freebsd.org" },
859 { " USA #10", "ftp10.us.freebsd.org", NULL, dmenuSetVariable, NULL,
860 VAR_FTP_PATH "=ftp://ftp10.us.freebsd.org" },
861 { " USA #11", "ftp11.us.freebsd.org", NULL, dmenuSetVariable, NULL,
862 VAR_FTP_PATH "=ftp://ftp11.us.freebsd.org" },
863 { " USA #12", "ftp12.us.freebsd.org", NULL, dmenuSetVariable, NULL,
864 VAR_FTP_PATH "=ftp://ftp12.us.freebsd.org" },
865 { " USA #13", "ftp13.us.freebsd.org", NULL, dmenuSetVariable, NULL,
866 VAR_FTP_PATH "=ftp://ftp13.us.freebsd.org" },
867 { " USA #14", "ftp14.us.freebsd.org", NULL, dmenuSetVariable, NULL,
868 VAR_FTP_PATH "=ftp://ftp14.us.freebsd.org" },
869 { " USA #15", "ftp15.us.freebsd.org", NULL, dmenuSetVariable, NULL,
870 VAR_FTP_PATH "=ftp://ftp15.us.freebsd.org" },
871
872 { NULL } }
873};
874
875DMenu MenuMediaTape = {
876 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
877 "Choose a tape drive type",
878 "FreeBSD can be installed from tape drive, though this installation\n"
879 "method requires a certain amount of temporary storage in addition\n"
880 "to the space required by the distribution itself (tape drives make\n"
881 "poor random-access devices, so we extract _everything_ on the tape\n"
882 "in one pass). If you have sufficient space for this, then you should\n"
883 "select one of the following tape devices detected on your system.",
884 "Press F1 to read the installation guide",
885 "INSTALL",
886 { { NULL } },
887};
888
889DMenu MenuNetworkDevice = {
890 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
891 "Network interface information required",
892 "If you are using PPP over a serial device, as opposed to a direct\n"
893 "ethernet connection, then you may first need to dial your Internet\n"
894 "Service Provider using the ppp utility we provide for that purpose.\n"
895 "If you're using SLIP over a serial device then the expectation is\n"
896 "that you have a HARDWIRED connection.\n\n"
897 "You can also install over a parallel port using a special \"laplink\"\n"
898 "cable to another machine running FreeBSD.",
899 "Press F1 to read network configuration manual",
900 "network_device",
901 { { NULL } },
902};
903
904/* Prototype KLD load menu */
905DMenu MenuKLD = {
906 DMENU_NORMAL_TYPE,
907 "KLD Menu",
908 "Load a KLD from a floppy\n",
909 NULL,
910 NULL,
911 { { NULL } },
912};
913
914/* The media selection menu */
915DMenu MenuMedia = {
916 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
917 "Choose Installation Media",
918 "FreeBSD can be installed from a variety of different installation\n"
919 "media, ranging from floppies to an Internet FTP server. If you're\n"
920 "installing FreeBSD from a supported CD/DVD drive then this is generally\n"
921 "the best media to use if you have no overriding reason for using other\n"
922 "media.",
923 "Press F1 for more information on the various media types",
924 "media",
925 { { "1 CD/DVD", "Install from a FreeBSD CD/DVD", NULL, mediaSetCDROM },
926 { "2 FTP", "Install from an FTP server", NULL, mediaSetFTPActive },
927 { "3 FTP Passive", "Install from an FTP server through a firewall", NULL, mediaSetFTPPassive },
928 { "4 HTTP", "Install from an FTP server through a http proxy", NULL, mediaSetHTTP },
929 { "5 DOS", "Install from a DOS partition", NULL, mediaSetDOS },
930 { "6 NFS", "Install over NFS", NULL, mediaSetNFS },
931 { "7 File System", "Install from an existing filesystem", NULL, mediaSetUFS },
932 { "8 Floppy", "Install from a floppy disk set", NULL, mediaSetFloppy },
933 { "9 Tape", "Install from SCSI or QIC tape", NULL, mediaSetTape },
934 { "X Options", "Go to the Options screen", NULL, optionsEditor },
935 { NULL } },
936};
937
938/* The distributions menu */
939DMenu MenuDistributions = {
940 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
941 "Choose Distributions",
942 "As a convenience, we provide several \"canned\" distribution sets.\n"
943 "These select what we consider to be the most reasonable defaults for the\n"
944 "type of system in question. If you would prefer to pick and choose the\n"
945 "list of distributions yourself, simply select \"Custom\". You can also\n"
946 "pick a canned distribution set and then fine-tune it with the Custom item.\n\n"
947 "Choose an item by pressing [SPACE] or [ENTER]. When finished, choose the\n"
948 "Exit item or move to the OK button with [TAB].",
949 "Press F1 for more information on these options.",
950 "distributions",
951 { { "X Exit", "Exit this menu (returning to previous)",
952 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
953 { "All", "All system sources, binaries and X Window System",
954 checkDistEverything, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
955 { "Reset", "Reset selected distribution list to nothing",
956 NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
957 { "4 Developer", "Full sources, binaries and doc but no games",
958 checkDistDeveloper, distSetDeveloper },
959 { "5 X-Developer", "Same as above + X Window System",
960 checkDistXDeveloper, distSetXDeveloper },
961 { "6 Kern-Developer", "Full binaries and doc, kernel sources only",
962 checkDistKernDeveloper, distSetKernDeveloper },
963 { "7 X-Kern-Developer", "Same as above + X Window System",
964 checkDistXKernDeveloper, distSetXKernDeveloper },
965 { "8 User", "Average user - binaries and doc only",
966 checkDistUser, distSetUser },
967 { "9 X-User", "Same as above + X Window System",
968 checkDistXUser, distSetXUser },
969 { "A Minimal", "The smallest configuration possible",
970 checkDistMinimum, distSetMinimum },
971 { "B Custom", "Specify your own distribution set",
972 NULL, dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
973 { NULL } },
974};
975
976DMenu MenuSubDistributions = {
977 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
978 "Select the distributions you wish to install.",
979 "Please check off the distributions you wish to install. At the\n"
980 "very minimum, this should be \"base\".",
981 NULL,
982 NULL,
983 { { "X Exit", "Exit this menu (returning to previous)",
984 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
985 { "All", "All system sources, binaries and X Window System",
986 NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
987 { "Reset", "Reset all of the below",
988 NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
989 { " base", "Binary base distribution (required)",
990 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BASE },
991 { " kernels", "Binary kernel distributions (required)",
992 kernelFlagCheck,distSetKernel },
993 { " dict", "Spelling checker dictionary files",
994 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DICT },
995 { " doc", "Miscellaneous FreeBSD online docs",
996 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_DOC },
997 { " games", "Games (non-commercial)",
998 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_GAMES },
999 { " info", "GNU info files",
1000 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_INFO },
1001#ifdef __amd64__
1002 { " lib32", "32-bit runtime compatibility libraries",
1003 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LIB32 },
1004#endif
1005 { " man", "System manual pages - recommended",
1006 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_MANPAGES },
1007 { " catman", "Preformatted system manual pages",
1008 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_CATPAGES },
1009 { " proflibs", "Profiled versions of the libraries",
1010 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PROFLIBS },
1011 { " src", "Sources for everything",
1012 srcFlagCheck, distSetSrc },
1013 { " ports", "The FreeBSD Ports collection",
1014 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
1015 { " local", "Local additions collection",
1016 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
1017 { " X.Org", "The X.Org distribution",
1018 x11FlagCheck, distSetXOrg },
1019 { NULL } },
1020};
1021
1022DMenu MenuKernelDistributions = {
1023 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1024 "Select the operating system kernels you wish to install.",
1025 "Please check off those kernels you wish to install.\n",
1026 NULL,
1027 NULL,
1028 { { "X Exit", "Exit this menu (returning to previous)",
1029 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1030 { "All", "Select all of the below",
1031 NULL, setKernel, NULL, NULL, ' ', ' ', ' ' },
1032 { "Reset", "Reset all of the below",
1033 NULL, clearKernel, NULL, NULL, ' ', ' ', ' ' },
1034 { " GENERIC", "GENERIC kernel configuration",
1035 dmenuFlagCheck, dmenuSetFlag, NULL, &KernelDists, '[', 'X', ']', DIST_KERNEL_GENERIC },
1036#ifdef WITH_SMP
1037 { " SMP", "GENERIC symmetric multiprocessor kernel configuration",
1038 dmenuFlagCheck, dmenuSetFlag, NULL, &KernelDists, '[', 'X', ']', DIST_KERNEL_SMP },
1039#endif
1040 { NULL } },
1041};
1042
1043DMenu MenuSrcDistributions = {
1044 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1045 "Select the sub-components of src you wish to install.",
1046 "Please check off those portions of the FreeBSD source tree\n"
1047 "you wish to install.",
1048 NULL,
1049 NULL,
1050 { { "X Exit", "Exit this menu (returning to previous)",
1051 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1052 { "All", "Select all of the below",
1053 NULL, setSrc, NULL, NULL, ' ', ' ', ' ' },
1054 { "Reset", "Reset all of the below",
1055 NULL, clearSrc, NULL, NULL, ' ', ' ', ' ' },
1056 { " base", "top-level files in /usr/src",
1057 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BASE },
1058 { " contrib", "/usr/src/contrib (contributed software)",
1059 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CONTRIB },
1060 { " crypto", "/usr/src/crypto (contrib encryption sources)",
1061 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SCRYPTO },
1062 { " gnu", "/usr/src/gnu (software from the GNU Project)",
1063 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GNU },
1064 { " etc", "/usr/src/etc (miscellaneous system files)",
1065 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_ETC },
1066 { " games", "/usr/src/games (the obvious!)",
1067 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_GAMES },
1068 { " include", "/usr/src/include (header files)",
1069 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_INCLUDE },
1070 { " krb5", "/usr/src/kerberos5 (sources for Kerberos5)",
1071 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SKERBEROS5 },
1072 { " lib", "/usr/src/lib (system libraries)",
1073 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIB },
1074 { " libexec", "/usr/src/libexec (system programs)",
1075 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_LIBEXEC },
1076 { " release", "/usr/src/release (release-generation tools)",
1077 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RELEASE },
1078 { " rescue", "/usr/src/rescue (static rescue tools)",
1079 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_RESCUE },
1080 { " bin", "/usr/src/bin (system binaries)",
1081 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BIN },
1082 { " sbin", "/usr/src/sbin (system binaries)",
1083 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SBIN },
1084 { " secure", "/usr/src/secure (BSD encryption sources)",
1085 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SSECURE },
1086 { " share", "/usr/src/share (documents and shared files)",
1087 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SHARE },
1088 { " sys", "/usr/src/sys (FreeBSD kernel)",
1089 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_SYS },
1090 { " tools", "/usr/src/tools (miscellaneous tools)",
1091 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_TOOLS },
1092 { " ubin", "/usr/src/usr.bin (user binaries)",
1093 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_UBIN },
1094 { " usbin", "/usr/src/usr.sbin (aux system binaries)",
1095 dmenuFlagCheck, dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_USBIN },
1096 { NULL } },
1097};
1098
1099DMenu MenuXOrgConfig = {
1100 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1101 "Please select the X.Org configuration tool you want to use.",
1102 "The first option, xorgcfg, is fully graphical.\n"
1103 "The second option provides a menu-based interface similar to\n"
1104 "what you are currently using. "
1105 "The third option, xorgconfig, is\n"
1106 "a more simplistic shell-script based tool and less friendly to\n"
1107 "new users, but it may work in situations where the other options\n"
1108 "do not.",
1109 NULL,
1110 NULL,
1111 { { "X Exit", "Exit this menu (returning to previous)",
1112 NULL, dmenuExit },
1113 { "2 xorgcfg", "Fully graphical X.Org configuration tool.",
1114 NULL, dmenuSetVariable, NULL, VAR_XORG_CONFIG "=xorgcfg" },
1115 { "3 xorgcfg -textmode", "ncurses-based X.Org configuration tool.",
1116 NULL, dmenuSetVariable, NULL, VAR_XORG_CONFIG "=xorgcfg -textmode" },
1117 { "4 xorgconfig", "Shell-script based X.Org configuration tool.",
1118 NULL, dmenuSetVariable, NULL, VAR_XORG_CONFIG "=xorgconfig" },
1119 { "D XDesktop", "X already set up, just do desktop configuration.",
1120 NULL, dmenuSubmenu, NULL, &MenuXDesktops },
1121 { NULL } },
1122};
1123
1124DMenu MenuXDesktops = {
1125 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1126 "Please select the default X desktop to use.",
1127 "By default, X.Org comes with a fairly vanilla desktop which\n"
1128 "is based around the twm(1) window manager and does not offer\n"
1129 "much in the way of features. It does have the advantage of\n"
1130 "being a standard part of X so you don't need to load anything\n"
1131 "extra in order to use it. If, however, you have access to a\n"
1132 "reasonably full packages collection on your installation media,\n"
1133 "you can choose any one of the following desktops as alternatives.",
1134 NULL,
1135 NULL,
1136 { { "X Exit", "Exit this menu (returning to previous)",
1137 NULL, dmenuExit },
1138 { "2 KDE", "The K Desktop Environment (Lite Edition)",
1139 NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=kde" },
1140 { "3 GNOME 2", "The GNOME 2 Desktop Environment (Lite Edition)",
1141 NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=gnome2" },
1142 { "4 Afterstep", "The Afterstep window manager",
1143 NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=afterstep" },
1144 { "5 Windowmaker", "The Windowmaker window manager",
1145 NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=windowmaker" },
1146 { "6 fvwm", "The fvwm window manager",
1147 NULL, dmenuSetVariable, NULL, VAR_DESKSTYLE "=fvwm2" },
1148 { NULL } },
1149};
1150
1151DMenu MenuXOrgSelect = {
1152 DMENU_NORMAL_TYPE,
1153 "X.Org Distribution",
1154 "Please select the components you need from the X.Org\n"
1155 "distribution sets.",
1156 NULL,
1157 NULL,
1158 { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
1159 { "Basic", "Basic component menu (required)", NULL, dmenuSubmenu, NULL, &MenuXOrgSelectCore },
1160 { "Server", "X server menu", NULL, dmenuSubmenu, NULL, &MenuXOrgSelectServer },
1161 { "Fonts", "Font set menu", NULL, dmenuSubmenu, NULL, &MenuXOrgSelectFonts },
1162 { NULL } },
1163};
1164
1165DMenu MenuXOrgSelectCore = {
1166 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1167 "X.Org base distribution types",
1168 "Please check off the basic X.Org components you wish to install.\n"
1169 "Bin, lib, and set are recommended for a minimum installaion.",
1170 NULL,
1171 NULL,
1172 { { "X Exit", "Exit this menu (returning to previous)",
1173 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1174 { "All", "Select all below",
1175 NULL, setX11Misc, NULL, NULL, ' ', ' ', ' ' },
1176 { "Reset", "Reset all below",
1177 NULL, clearX11Misc, NULL, NULL, ' ', ' ', ' ' },
1178 { " lib", "Shared libraries and data files needed at runtime",
1179 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_LIB },
1180 { " bin", "Client applications",
1181 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_CLIENTS },
1182 { " man", "Manual pages",
1183 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_MAN },
1184 { " doc", "Documentation",
1185 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_DOC },
1186 { " prog", "Programming tools",
1187 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_IMAKE },
1188 { NULL } },
1189};
1190
1191DMenu MenuXOrgSelectFonts = {
1192 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1193 "X.Org Font distribution selection.",
1194 "Please check off the individual font distributions you wish to\n\
1195install. At the minimum, you should install the standard\n\
119675 DPI and misc fonts if you're also installing an X server\n\
1197(these are selected by default). The TrueType set is also \n\
1198highly recommended. The font server is unnecessary in most\n\
1199configurations.",
1200 NULL,
1201 NULL,
1202 { { "X Exit", "Exit this menu (returning to previous)",
1203 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1204 { "All", "All fonts",
1205 NULL, setX11Fonts, NULL, NULL, ' ', ' ', ' ' },
1206 { "Reset", "Reset font selections",
1207 NULL, clearX11Fonts, NULL, NULL, ' ', ' ', ' ' },
1208 { " fmsc", "Standard miscellaneous fonts",
1209 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_FONTS_MISC },
1210 { " f75", "75 DPI fonts",
1211 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_FONTS_75 },
1212 { " f100", "100 DPI fonts",
1213 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_FONTS_100 },
1214 { " fcyr", "Cyrillic Fonts",
1215 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_FONTS_CYR },
1216 { " ft1", "Type1 scalable fonts",
1217 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_FONTS_T1 },
1218 { " ftt", "TrueType scalable fonts",
1219 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_FONTS_TT },
1220 { " fs", "Font server",
1221 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_FONTSERVER },
1222 { NULL } },
1223};
1224
1225DMenu MenuXOrgSelectServer = {
1226 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1227 "X.Org X Server selection.",
1228 "Please check off the types of X servers you wish to install.\n",
1229 NULL,
1230 NULL,
1231 { { "X Exit", "Exit this menu (returning to previous)",
1232 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1233 { "All", "Select all of the above",
1234 NULL, setX11Servers, NULL, NULL, ' ', ' ', ' ' },
1235 { "Reset", "Reset all of the above",
1236 NULL, clearX11Servers, NULL, NULL, ' ', ' ', ' ' },
1237 { " srv", "Standard Graphics Framebuffer",
1238 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_SERVER },
1239 { " nest", "Nested X Server",
1240 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_NESTSERVER },
1241 { " prt", "X Print Server",
1242 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_PRINTSERVER },
1243 { " vfb", "Virtual Framebuffer",
1244 dmenuFlagCheck, dmenuSetFlag, NULL, &XOrgDists, '[', 'X', ']', DIST_XORG_VFBSERVER },
1245 { NULL } },
1246};
1247
1248DMenu MenuDiskDevices = {
1249 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1250 "Select Drive(s)",
1251 "Please select the drive, or drives, on which you wish to perform\n"
1252 "this operation. If you are attempting to install a boot partition\n"
1253 "on a drive other than the first one or have multiple operating\n"
1254 "systems on your machine, you will have the option to install a boot\n"
1255 "manager later. To select a drive, use the arrow keys to move to it\n"
1256 "and press [SPACE] or [ENTER]. To de-select it, press it again.\n\n"
1257 "Use [TAB] to get to the buttons and leave this menu.",
1258 "Press F1 for important information regarding disk geometry!",
1259 "drives",
1260 { { NULL } },
1261};
1262
52DMenu MenuDiskDevices = {
53 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
54 "Select Drive(s)",
55 "Please select the drive, or drives, on which you wish to perform\n"
56 "this operation. If you are attempting to install a boot partition\n"
57 "on a drive other than the first one or have multiple operating\n"
58 "systems on your machine, you will have the option to install a boot\n"
59 "manager later. To select a drive, use the arrow keys to move to it\n"
60 "and press [SPACE] or [ENTER]. To de-select it, press it again.\n\n"
61 "Use [TAB] to get to the buttons and leave this menu.",
62 "Press F1 for important information regarding disk geometry!",
63 "drives",
64 { { NULL } },
65};
66
1263DMenu MenuHTMLDoc = {
67DMenu MenuMain = {
1264 DMENU_NORMAL_TYPE,
68 DMENU_NORMAL_TYPE,
1265 "Select HTML Documentation pointer",
1266 "Please select the body of documentation you're interested in, the main\n"
1267 "ones right now being the FAQ and the Handbook. You can also choose \"other\"\n"
1268 "to enter an arbitrary URL for browsing.",
1269 "Press F1 for more help on what you see here.",
1270 "html",
1271 { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
1272 { "2 Handbook", "The FreeBSD Handbook.", NULL, docShowDocument },
1273 { "3 FAQ", "The Frequently Asked Questions guide.", NULL, docShowDocument },
1274 { "4 Home", "The Home Pages for the FreeBSD Project (requires net)", NULL, docShowDocument },
1275 { "5 Other", "Enter a URL.", NULL, docShowDocument },
69 "Disklabel and partitioning utility",
70 "This is a utility for partitioning and/or labelling your disks.",
71 "DISKUTIL",
72 "main",
73 {
74 { "1 Partition", "Managing disk partitions", NULL, diskPartitionEditor },
75 { "2 Label", "Label allocated disk partitions", NULL, diskLabelEditor },
1276 { NULL } },
1277};
1278
76 { NULL } },
77};
78
1279/* The main installation menu */
1280DMenu MenuInstallCustom = {
1281 DMENU_NORMAL_TYPE,
1282 "Choose Custom Installation Options",
1283 "This is the custom installation menu. You may use this menu to specify\n"
1284 "details on the type of distribution you wish to have, where you wish\n"
1285 "to install it from and how you wish to allocate disk storage to FreeBSD.",
1286 "Press F1 to read the installation guide",
1287 "INSTALL",
1288 { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
1289 { "2 Options", "View/Set various installation options", NULL, optionsEditor },
1290#ifndef WITH_SLICES
1291 { "3 Label", "Label disk partitions", NULL, diskLabelEditor },
1292 { "4 Distributions", "Select distribution(s) to extract", NULL, dmenuSubmenu, NULL, &MenuDistributions },
1293 { "5 Media", "Choose the installation media type", NULL, dmenuSubmenu, NULL, &MenuMedia },
1294 { "6 Commit", "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1295#else
1296 { "3 Partition", "Allocate disk space for FreeBSD", NULL, diskPartitionEditor },
1297 { "4 Label", "Label allocated disk partitions", NULL, diskLabelEditor },
1298 { "5 Distributions", "Select distribution(s) to extract", NULL, dmenuSubmenu, NULL, &MenuDistributions },
1299 { "6 Media", "Choose the installation media type", NULL, dmenuSubmenu, NULL, &MenuMedia },
1300 { "7 Commit", "Perform any pending Partition/Label/Extract actions", NULL, installCustomCommit },
1301#endif
1302 { NULL } },
1303};
1304
1305#if defined(__i386__) || defined(__amd64__)
1306#ifdef PC98
1307/* IPL type menu */
1308DMenu MenuIPLType = {
1309 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1310 "overwrite me", /* will be disk specific label */
1311 "If you want a FreeBSD Boot Manager, select \"BootMgr\". If you would\n"
1312 "prefer your Boot Manager to remain untouched then select \"None\".\n\n",

--- 27 unchanged lines hidden (view full) ---

1340 dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
1341 { "None", "Leave the Master Boot Record untouched",
1342 dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
1343 { NULL } },
1344};
1345#endif /* PC98 */
1346#endif /* __i386__ */
1347
79#if defined(__i386__) || defined(__amd64__)
80#ifdef PC98
81/* IPL type menu */
82DMenu MenuIPLType = {
83 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
84 "overwrite me", /* will be disk specific label */
85 "If you want a FreeBSD Boot Manager, select \"BootMgr\". If you would\n"
86 "prefer your Boot Manager to remain untouched then select \"None\".\n\n",

--- 27 unchanged lines hidden (view full) ---

114 dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
115 { "None", "Leave the Master Boot Record untouched",
116 dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
117 { NULL } },
118};
119#endif /* PC98 */
120#endif /* __i386__ */
121
1348/* Final configuration menu */
1349DMenu MenuConfigure = {
1350 DMENU_NORMAL_TYPE,
1351 "FreeBSD Configuration Menu", /* title */
1352 "If you've already installed FreeBSD, you may use this menu to customize\n"
1353 "it somewhat to suit your particular configuration. Most importantly,\n"
1354 "you can use the Packages utility to load extra \"3rd party\"\n"
1355 "software not provided in the base distributions.",
1356 "Press F1 for more information on these options",
1357 "configure",
1358 { { "X Exit", "Exit this menu (returning to previous)",
1359 NULL, dmenuExit },
1360 { " Distributions", "Install additional distribution sets",
1361 NULL, distExtractAll },
1362 { " Packages", "Install pre-packaged software for FreeBSD",
1363 NULL, configPackages },
1364 { " Root Password", "Set the system manager's password",
1365 NULL, dmenuSystemCommand, NULL, "passwd root" },
1366#ifdef WITH_SLICES
1367 { " Fdisk", "The disk Slice (PC-style partition) Editor",
1368 NULL, diskPartitionEditor },
1369#endif
1370 { " Label", "The disk Label editor",
1371 NULL, diskLabelEditor },
1372 { " User Management", "Add user and group information",
1373 NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
1374#ifdef WITH_SYSCONS
1375 { " Console", "Customize system console behavior",
1376 NULL, dmenuSubmenu, NULL, &MenuSyscons },
1377#endif
1378 { " Time Zone", "Set which time zone you're in",
1379 NULL, dmenuSystemCommand, NULL, "tzsetup" },
1380 { " Media", "Change the installation media type",
1381 NULL, dmenuSubmenu, NULL, &MenuMedia },
1382#ifdef WITH_MICE
1383 { " Mouse", "Configure your mouse",
1384 NULL, dmenuSubmenu, NULL, &MenuMouse },
1385#endif
1386 { " Networking", "Configure additional network services",
1387 NULL, dmenuSubmenu, NULL, &MenuNetworking },
1388 { " Security", "Configure system security options",
1389 NULL, dmenuSubmenu, NULL, &MenuSecurity },
1390 { " Startup", "Configure system startup options",
1391 NULL, dmenuSubmenu, NULL, &MenuStartup },
1392 { " TTYs", "Configure system ttys.",
1393 NULL, configEtcTtys, NULL, "ttys" },
1394 { " Options", "View/Set various installation options",
1395 NULL, optionsEditor },
1396 { " HTML Docs", "Go to the HTML documentation menu (post-install)",
1397 NULL, docBrowser },
1398 { " Load KLD", "Load a KLD from a floppy",
1399 NULL, kldBrowser },
1400 { NULL } },
1401};
1402
122
1403DMenu MenuStartup = {
1404 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1405 "Startup Services Menu",
1406 "This menu allows you to configure various aspects of your system's\n"
1407 "startup configuration. Use [SPACE] or [ENTER] to select items, and\n"
1408 "[TAB] to move to the buttons. Select Exit to leave this menu.",
1409 NULL,
1410 NULL,
1411 { { "X Exit", "Exit this menu (returning to previous)",
1412 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1413#ifdef __i386__
1414 { " APM", "Auto-power management services (typically laptops)",
1415 dmenuVarCheck, dmenuToggleVariable, NULL, "apm_enable=YES" },
1416#endif
1417#ifdef PCCARD_ARCH
1418 { " pccard", "Enable PCCARD (AKA PCMCIA) services (also laptops)",
1419 dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },
1420 { " pccard mem", "Set PCCARD memory address (if enabled)",
1421 dmenuVarCheck, dmenuISetVariable, NULL, "pccard_mem" },
1422 { " pccard ifconfig", "List of PCCARD ethernet devices to configure",
1423 dmenuVarCheck, dmenuISetVariable, NULL, "pccard_ifconfig" },
1424#endif
1425 { " ", " -- ", NULL, NULL, NULL, NULL, ' ', ' ', ' ' },
1426 { " Startup dirs", "Set the list of dirs to look for startup scripts",
1427 dmenuVarCheck, dmenuISetVariable, NULL, "local_startup" },
1428 { " named", "Run a local name server on this host",
1429 dmenuVarCheck, dmenuToggleVariable, NULL, "named_enable=YES" },
1430 { " named flags", "Set default flags to named (if enabled)",
1431 dmenuVarCheck, dmenuISetVariable, NULL, "named_flags" },
1432 { " NIS client", "This host wishes to be an NIS client.",
1433 dmenuVarCheck, configRpcBind, NULL, "nis_client_enable=YES" },
1434 { " NIS domainname", "Set NIS domainname (if enabled)",
1435 dmenuVarCheck, dmenuISetVariable, NULL, "nisdomainname" },
1436 { " NIS server", "This host wishes to be an NIS server.",
1437 dmenuVarCheck, configRpcBind, NULL, "nis_server_enable=YES" },
1438 { " ", " -- ", NULL, NULL, NULL, NULL, ' ', ' ', ' ' },
1439 { " Accounting", "This host wishes to run process accounting.",
1440 dmenuVarCheck, dmenuToggleVariable, NULL, "accounting_enable=YES" },
1441 { " lpd", "This host has a printer and wants to run lpd.",
1442 dmenuVarCheck, dmenuToggleVariable, NULL, "lpd_enable=YES" },
1443#ifdef WITH_LINUX
1444 { " Linux", "This host wants to be able to run Linux binaries.",
1445 dmenuVarCheck, configLinux, NULL, VAR_LINUX_ENABLE "=YES" },
1446#endif
1447#ifdef __i386__
1448 { " SCO", "This host wants to be able to run IBCS2 binaries.",
1449 dmenuVarCheck, dmenuToggleVariable, NULL, "ibcs2_enable=YES" },
1450 { " SVR4", "This host wants to be able to run SVR4 binaries.",
1451 dmenuVarCheck, dmenuToggleVariable, NULL, "svr4_enable=YES" },
1452#endif
1453#ifdef __alpha__
1454 { " OSF/1", "This host wants to be able to run DEC OSF/1 binaries.",
1455 dmenuVarCheck, configOSF1, NULL, VAR_OSF1_ENABLE "=YES" },
1456#endif
1457 { " quotas", "This host wishes to check quotas on startup.",
1458 dmenuVarCheck, dmenuToggleVariable, NULL, "check_quotas=YES" },
1459 { NULL } },
1460};
1461
1462DMenu MenuNetworking = {
1463 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
1464 "Network Services Menu",
1465 "You may have already configured one network device (and the other\n"
1466 "various hostname/gateway/name server parameters) in the process\n"
1467 "of installing FreeBSD. This menu allows you to configure other\n"
1468 "aspects of your system's network configuration.",
1469 NULL,
1470 NULL,
1471 { { "X Exit", "Exit this menu (returning to previous)",
1472 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1473 { " Interfaces", "Configure additional network interfaces",
1474 NULL, tcpMenuSelect },
1475 { " AMD", "This machine wants to run the auto-mounter service",
1476 dmenuVarCheck, configRpcBind, NULL, "amd_enable=YES" },
1477 { " AMD Flags", "Set flags to AMD service (if enabled)",
1478 dmenuVarCheck, dmenuISetVariable, NULL, "amd_flags" },
1479 { " Anon FTP", "This machine wishes to allow anonymous FTP.",
1480 dmenuVarCheck, configAnonFTP, NULL, "anon_ftp" },
1481 { " Gateway", "This machine will route packets between interfaces",
1482 dmenuVarCheck, dmenuToggleVariable, NULL, "gateway_enable=YES" },
1483 { " inetd", "This machine wants to run the inet daemon",
1484 dmenuVarCheck, configInetd, NULL, "inetd_enable=YES" },
1485 { " Mail", "This machine wants to run a Mail Transfer Agent",
1486 NULL, dmenuSubmenu, NULL, &MenuMTA },
1487 { " NFS client", "This machine will be an NFS client",
1488 dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_client_enable=YES" },
1489 { " NFS server", "This machine will be an NFS server",
1490 dmenuVarCheck, configNFSServer, NULL, "nfs_server_enable=YES" },
1491 { " Ntpdate", "Select a clock-synchronization server",
1492 dmenuVarCheck, dmenuSubmenu, NULL, &MenuNTP, '[', 'X', ']',
1493 (uintptr_t)"ntpdate_enable=YES" },
1494 { " PCNFSD", "Run authentication server for clients with PC-NFS.",
1495 dmenuVarCheck, configPCNFSD, NULL, "pcnfsd" },
1496 { " rpcbind", "RPC port mapping daemon (formerly portmapper)",
1497 dmenuVarCheck, dmenuToggleVariable, NULL, "rpcbind_enable=YES" },
1498 { " rpc.statd", "NFS status monitoring daemon",
1499 dmenuVarCheck, configRpcBind, NULL, "rpc_statd_enable=YES" },
1500 { " rpc.lockd", "NFS file locking daemon",
1501 dmenuVarCheck, configRpcBind, NULL, "rpc_lockd_enable=YES" },
1502 { " Routed", "Select routing daemon (default: routed)",
1503 dmenuVarCheck, configRouter, NULL, "router_enable=YES" },
1504 { " Rwhod", "This machine wants to run the rwho daemon",
1505 dmenuVarCheck, dmenuToggleVariable, NULL, "rwhod_enable=YES" },
1506 { " sshd", "This machine wants to run the SSH daemon",
1507 dmenuVarCheck, dmenuToggleVariable, NULL, "sshd_enable=YES" },
1508 { " TCP Extensions", "Allow RFC1323 and RFC1644 TCP extensions?",
1509 dmenuVarCheck, dmenuToggleVariable, NULL, "tcp_extensions=YES" },
1510 { NULL } },
1511};
1512
1513DMenu MenuMTA = {
1514 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1515 "Mail Transfer Agent Selection",
1516 "You can choose which Mail Transfer Agent (MTA) you wish to install and run.\n"
1517 "Selecting Sendmail local disables sendmail's network socket for\n"
1518 "incoming mail, but still enables sendmail for local and outbound mail.\n"
1519 "The Postfix option will install the Postfix MTA from the ports\n"
1520 "collection. The Exim option will install the Exim MTA from the ports\n"
1521 "collection. To return to the previous menu, select Exit.",
1522 NULL,
1523 NULL,
1524 {
1525 { "Sendmail", "Use sendmail",
1526 dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=YES" },
1527 { "Sendmail local", "Use sendmail, but do not listen on the network",
1528 dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NO" },
1529 { "Postfix", "Use the Postfix MTA",
1530 NULL, configMTAPostfix, NULL, NULL },
1531 { "Exim", "Use the Exim MTA",
1532 NULL, configMTAExim, NULL, NULL },
1533 { "None", "Do not install an MTA",
1534 dmenuVarCheck, dmenuSetVariable, NULL, "sendmail_enable=NONE" },
1535 { "X Exit", "Exit this menu (returning to previous)",
1536 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
1537 { NULL } },
1538};
1539
1540DMenu MenuNTP = {
1541 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
1542 "NTPDATE Server Selection",
1543 "There are a number of time synchronization servers available\n"
1544 "for public use around the Internet. Please select one reasonably\n"
1545 "close to you to have your system time synchronized accordingly.",
1546 "These are the primary open-access NTP servers",
1547 NULL,
1548 { { "None", "No NTP server",
1549 dmenuVarsCheck, dmenuSetVariables, NULL,
1550 "ntpdate_enable=NO,ntpdate_flags=none" },
1551 { "Other", "Select a site not on this list",
1552 dmenuVarsCheck, configNTP, NULL, NULL },
1553 { "Worldwide", "pool.ntp.org",
1554 dmenuVarsCheck, dmenuSetVariables, NULL,
1555 "ntpdate_enable=YES,ntpdate_flags=pool.ntp.org" },
1556 { "Asia", "asia.pool.ntp.org",
1557 dmenuVarsCheck, dmenuSetVariables, NULL,
1558 "ntpdate_enable=YES,ntpdate_flags=asia.pool.ntp.org" },
1559 { "Europe", "europe.pool.ntp.org",
1560 dmenuVarsCheck, dmenuSetVariables, NULL,
1561 "ntpdate_enable=YES,ntpdate_flags=europe.pool.ntp.org" },
1562 { "Oceania", "oceania.pool.ntp.org",
1563 dmenuVarsCheck, dmenuSetVariables, NULL,
1564 "ntpdate_enable=YES,ntpdate_flags=oceania.pool.ntp.org" },
1565 { "North America", "north-america.pool.ntp.org",
1566 dmenuVarsCheck, dmenuSetVariables, NULL,
1567 "ntpdate_enable=YES,ntpdate_flags=north-america.pool.ntp.org" },
1568 { "Argentina", "tick.nap.com.ar",
1569 dmenuVarsCheck, dmenuSetVariables, NULL,
1570 "ntpdate_enable=YES,ntpdate_flags=tick.nap.com.ar" },
1571 { "Argentina #2", "time.sinectis.com.ar",
1572 dmenuVarsCheck, dmenuSetVariables, NULL,
1573 "ntpdate_enable=YES,ntpdate_flags=time.sinectis.com.ar" },
1574 { "Argentina #3", "tock.nap.com.ar",
1575 dmenuVarsCheck, dmenuSetVariables, NULL,
1576 "ntpdate_enable=YES,ntpdate_flags=tock.nap.com.ar" },
1577 { "Australia", "au.pool.ntp.org",
1578 dmenuVarsCheck, dmenuSetVariables, NULL,
1579 "ntpdate_enable=YES,ntpdate_flags=au.pool.ntp.org" },
1580 { "Australia #2", "augean.eleceng.adelaide.edu.au",
1581 dmenuVarsCheck, dmenuSetVariables, NULL,
1582 "ntpdate_enable=YES,ntpdate_flags=augean.eleceng.adelaide.edu.au" },
1583 { "Australia #3", "ntp.adelaide.edu.au",
1584 dmenuVarsCheck, dmenuSetVariables, NULL,
1585 "ntpdate_enable=YES,ntpdate_flags=ntp.adelaide.edu.au" },
1586 { "Australia #4", "ntp.saard.net",
1587 dmenuVarsCheck, dmenuSetVariables, NULL,
1588 "ntpdate_enable=YES,ntpdate_flags=ntp.saard.net" },
1589 { "Australia #5", "time.deakin.edu.au",
1590 dmenuVarsCheck, dmenuSetVariables, NULL,
1591 "ntpdate_enable=YES,ntpdate_flags=time.deakin.edu.au" },
1592 { "Belgium", "ntp1.belbone.be",
1593 dmenuVarsCheck, dmenuSetVariables, NULL,
1594 "ntpdate_enable=YES,ntpdate_flags=ntp1.belbone.be" },
1595 { "Belgium #2", "ntp2.belbone.be",
1596 dmenuVarsCheck, dmenuSetVariables, NULL,
1597 "ntpdate_enable=YES,ntpdate_flags=ntp2.belbone.be" },
1598 { "Brazil", "ntp.cais.rnp.br",
1599 dmenuVarsCheck, dmenuSetVariables, NULL,
1600 "ntpdate_enable=YES,ntpdate_flags=ntp.cais.rnp.br" },
1601 { "Brazil #2", "ntp.pop-df.rnp.br",
1602 dmenuVarsCheck, dmenuSetVariables, NULL,
1603 "ntpdate_enable=YES,ntpdate_flags=ntp.pop-df.rnp.br" },
1604 { "Brazil #3", "ntp.ufes.br",
1605 dmenuVarsCheck, dmenuSetVariables, NULL,
1606 "ntpdate_enable=YES,ntpdate_flags=ntp.ufes.br" },
1607 { "Brazil #4", "ntp1.pucpr.br",
1608 dmenuVarsCheck, dmenuSetVariables, NULL,
1609 "ntpdate_enable=YES,ntpdate_flags=ntp1.pucpr.br" },
1610 { "Canada", "ca.pool.ntp.org",
1611 dmenuVarsCheck, dmenuSetVariables, NULL,
1612 "ntpdate_enable=YES,ntpdate_flags=ca.pool.ntp.org" },
1613 { "Canada #2", "ntp.cpsc.ucalgary.ca",
1614 dmenuVarsCheck, dmenuSetVariables, NULL,
1615 "ntpdate_enable=YES,ntpdate_flags=ntp.cpsc.ucalgary.ca" },
1616 { "Canada #3", "ntp1.cmc.ec.gc.ca",
1617 dmenuVarsCheck, dmenuSetVariables, NULL,
1618 "ntpdate_enable=YES,ntpdate_flags=ntp1.cmc.ec.gc.ca" },
1619 { "Canada #4", "ntp2.cmc.ec.gc.ca",
1620 dmenuVarsCheck, dmenuSetVariables, NULL,
1621 "ntpdate_enable=YES,ntpdate_flags=ntp2.cmc.ec.gc.ca" },
1622 { "Canada #5", "tick.utoronto.ca",
1623 dmenuVarsCheck, dmenuSetVariables, NULL,
1624 "ntpdate_enable=YES,ntpdate_flags=tick.utoronto.ca" },
1625 { "Canada #6", "time.chu.nrc.ca",
1626 dmenuVarsCheck, dmenuSetVariables, NULL,
1627 "ntpdate_enable=YES,ntpdate_flags=time.chu.nrc.ca" },
1628 { "Canada #7", "time.nrc.ca",
1629 dmenuVarsCheck, dmenuSetVariables, NULL,
1630 "ntpdate_enable=YES,ntpdate_flags=time.nrc.ca" },
1631 { "Canada #8", "timelord.uregina.ca",
1632 dmenuVarsCheck, dmenuSetVariables, NULL,
1633 "ntpdate_enable=YES,ntpdate_flags=timelord.uregina.ca" },
1634 { "Canada #9", "tock.utoronto.ca",
1635 dmenuVarsCheck, dmenuSetVariables, NULL,
1636 "ntpdate_enable=YES,ntpdate_flags=tock.utoronto.ca" },
1637 { "Czech", "ntp.karpo.cz",
1638 dmenuVarsCheck, dmenuSetVariables, NULL,
1639 "ntpdate_enable=YES,ntpdate_flags=ntp.karpo.cz" },
1640 { "Czech #2", "ntp.cgi.cz",
1641 dmenuVarsCheck, dmenuSetVariables, NULL,
1642 "ntpdate_enable=YES,ntpdate_flags=ntp.cgi.cz" },
1643 { "Denmark", "clock.netcetera.dk",
1644 dmenuVarsCheck, dmenuSetVariables, NULL,
1645 "ntpdate_enable=YES,ntpdate_flags=clock.netcetera.dk" },
1646 { "Denmark", "clock2.netcetera.dk",
1647 dmenuVarsCheck, dmenuSetVariables, NULL,
1648 "ntpdate_enable=YES,ntpdate_flags=clock2.netcetera.dk" },
1649 { "Spain", "slug.ctv.es",
1650 dmenuVarsCheck, dmenuSetVariables, NULL,
1651 "ntpdate_enable=YES,ntpdate_flags=slug.ctv.es" },
1652 { "Finland", "tick.keso.fi",
1653 dmenuVarsCheck, dmenuSetVariables, NULL,
1654 "ntpdate_enable=YES,ntpdate_flags=tick.keso.fi" },
1655 { "Finland #2", "tock.keso.fi",
1656 dmenuVarsCheck, dmenuSetVariables, NULL,
1657 "ntpdate_enable=YES,ntpdate_flags=tock.keso.fi" },
1658 { "France", "ntp.obspm.fr",
1659 dmenuVarsCheck, dmenuSetVariables, NULL,
1660 "ntpdate_enable=YES,ntpdate_flags=ntp.obspm.fr" },
1661 { "France #2", "ntp.univ-lyon1.fr",
1662 dmenuVarsCheck, dmenuSetVariables, NULL,
1663 "ntpdate_enable=YES,ntpdate_flags=ntp.univ-lyon1.fr" },
1664 { "France #3", "ntp.via.ecp.fr",
1665 dmenuVarsCheck, dmenuSetVariables, NULL,
1666 "ntpdate_enable=YES,ntpdate_flags=ntp.via.ecp.fr" },
1667 { "Croatia", "zg1.ntp.carnet.hr",
1668 dmenuVarsCheck, dmenuSetVariables, NULL,
1669 "ntpdate_enable=YES,ntpdate_flags=zg1.ntp.carnet.hr" },
1670 { "Croatia #2", "zg2.ntp.carnet.hr",
1671 dmenuVarsCheck, dmenuSetVariables, NULL,
1672 "ntpdate_enable=YES,ntpdate_flags=zg2.ntp.carnet.hr" },
1673 { "Croatia #3", "st.ntp.carnet.hr",
1674 dmenuVarsCheck, dmenuSetVariables, NULL,
1675 "ntpdate_enable=YES,ntpdate_flags=st.ntp.carnet.hr" },
1676 { "Croatia #4", "ri.ntp.carnet.hr",
1677 dmenuVarsCheck, dmenuSetVariables, NULL,
1678 "ntpdate_enable=YES,ntpdate_flags=ri.ntp.carnet.hr" },
1679 { "Croatia #5", "os.ntp.carnet.hr",
1680 dmenuVarsCheck, dmenuSetVariables, NULL,
1681 "ntpdate_enable=YES,ntpdate_flags=os.ntp.carnet.hr" },
1682 { "Hungary", "time.kfki.hu",
1683 dmenuVarsCheck, dmenuSetVariables, NULL,
1684 "ntpdate_enable=YES,ntpdate_flags=time.kfki.hu" },
1685 { "Indonesia", "ntp.kim.lipi.go.id",
1686 dmenuVarsCheck, dmenuSetVariables, NULL,
1687 "ntpdate_enable=YES,ntpdate_flags=ntp.kim.lipi.go.id" },
1688 { "Ireland", "ntp.maths.tcd.ie",
1689 dmenuVarsCheck, dmenuSetVariables, NULL,
1690 "ntpdate_enable=YES,ntpdate_flags=ntp.maths.tcd.ie" },
1691 { "Italy", "it.pool.ntp.org",
1692 dmenuVarsCheck, dmenuSetVariables, NULL,
1693 "ntpdate_enable=YES,ntpdate_flags=it.pool.ntp.org" },
1694 { "Japan", "ntp.jst.mfeed.ad.jp",
1695 dmenuVarsCheck, dmenuSetVariables, NULL,
1696 "ntpdate_enable=YES,ntpdate_flags=ntp.jst.mfeed.ad.jp" },
1697 { "Japan IPv6", "ntp1.v6.mfeed.ad.jp",
1698 dmenuVarsCheck, dmenuSetVariables, NULL,
1699 "ntpdate_enable=YES,ntpdate_flags=ntp1.v6.mfeed.ad.jp" },
1700 { "Korea", "time.nuri.net",
1701 dmenuVarsCheck, dmenuSetVariables, NULL,
1702 "ntpdate_enable=YES,ntpdate_flags=time.nuri.net" },
1703 { "Mexico", "mx.pool.ntp.org",
1704 dmenuVarsCheck, dmenuSetVariables, NULL,
1705 "ntpdate_enable=YES,ntpdate_flags=mx.pool.ntp.org" },
1706 { "Netherlands", "ntp0.nl.net",
1707 dmenuVarsCheck, dmenuSetVariables, NULL,
1708 "ntpdate_enable=YES,ntpdate_flags=ntp0.nl.net" },
1709 { "Netherlands #2", "ntp1.nl.net",
1710 dmenuVarsCheck, dmenuSetVariables, NULL,
1711 "ntpdate_enable=YES,ntpdate_flags=ntp1.nl.net" },
1712 { "Netherlands #3", "ntp2.nl.net",
1713 dmenuVarsCheck, dmenuSetVariables, NULL,
1714 "ntpdate_enable=YES,ntpdate_flags=ntp2.nl.net" },
1715 { "Norway", "fartein.ifi.uio.no",
1716 dmenuVarsCheck, dmenuSetVariables, NULL,
1717 "ntpdate_enable=YES,ntpdate_flags=fartein.ifi.uio.no" },
1718 { "Norway #2", "time.alcanet.no",
1719 dmenuVarsCheck, dmenuSetVariables, NULL,
1720 "ntpdate_enable=YES,ntpdate_flags=time.alcanet.no" },
1721 { "New Zealand", "ntp.massey.ac.nz",
1722 dmenuVarsCheck, dmenuSetVariables, NULL,
1723 "ntpdate_enable=YES,ntpdate_flags=ntp.massey.ac.nz" },
1724 { "New Zealand #2", "ntp.public.otago.ac.nz",
1725 dmenuVarsCheck, dmenuSetVariables, NULL,
1726 "ntpdate_enable=YES,ntpdate_flags=ntp.public.otago.ac.nz" },
1727 { "New Zealand #3", "tk1.ihug.co.nz",
1728 dmenuVarsCheck, dmenuSetVariables, NULL,
1729 "ntpdate_enable=YES,ntpdate_flags=tk1.ihug.co.nz" },
1730 { "New Zealand #4", "ntp.waikato.ac.nz",
1731 dmenuVarsCheck, dmenuSetVariables, NULL,
1732 "ntpdate_enable=YES,ntpdate_flags=ntp.waikato.ac.nz" },
1733 { "Poland", "info.cyf-kr.edu.pl",
1734 dmenuVarsCheck, dmenuSetVariables, NULL,
1735 "ntpdate_enable=YES,ntpdate_flags=info.cyf-kr.edu.pl" },
1736 { "Romania", "ticks.roedu.net",
1737 dmenuVarsCheck, dmenuSetVariables, NULL,
1738 "ntpdate_enable=YES,ntpdate_flags=ticks.roedu.net" },
1739 { "Russia", "ru.pool.ntp.org",
1740 dmenuVarsCheck, dmenuSetVariables, NULL,
1741 "ntpdate_enable=YES,ntpdate_flags=ru.pool.ntp.org" },
1742 { "Russia #2", "ntp.psn.ru",
1743 dmenuVarsCheck, dmenuSetVariables, NULL,
1744 "ntpdate_enable=YES,ntpdate_flags=ntp.psn.ru" },
1745 { "Sweden", "se.pool.ntp.org",
1746 dmenuVarsCheck, dmenuSetVariables, NULL,
1747 "ntpdate_enable=YES,ntpdate_flags=se.pool.ntp.org" },
1748 { "Sweden #2", "ntp.lth.se",
1749 dmenuVarsCheck, dmenuSetVariables, NULL,
1750 "ntpdate_enable=YES,ntpdate_flags=ntp.lth.se" },
1751 { "Sweden #3", "ntp1.sp.se",
1752 dmenuVarsCheck, dmenuSetVariables, NULL,
1753 "ntpdate_enable=YES,ntpdate_flags=ntp1.sp.se" },
1754 { "Sweden #4", "ntp2.sp.se",
1755 dmenuVarsCheck, dmenuSetVariables, NULL,
1756 "ntpdate_enable=YES,ntpdate_flags=ntp2.sp.se" },
1757 { "Sweden #5", "ntp.kth.se",
1758 dmenuVarsCheck, dmenuSetVariables, NULL,
1759 "ntpdate_enable=YES,ntpdate_flags=ntp.kth.se" },
1760 { "Singapore", "sg.pool.ntp.org",
1761 dmenuVarsCheck, dmenuSetVariables, NULL,
1762 "ntpdate_enable=YES,ntpdate_flags=sg.pool.ntp.org" },
1763 { "Slovenia", "si.pool.ntp.org",
1764 dmenuVarsCheck, dmenuSetVariables, NULL,
1765 "ntpdate_enable=YES,ntpdate_flags=si.pool.ntp.org" },
1766 { "Slovenia #2", "sizif.mf.uni-lj.si",
1767 dmenuVarsCheck, dmenuSetVariables, NULL,
1768 "ntpdate_enable=YES,ntpdate_flags=sizif.mf.uni-lj.si" },
1769 { "Slovenia #3", "ntp1.arnes.si",
1770 dmenuVarsCheck, dmenuSetVariables, NULL,
1771 "ntpdate_enable=YES,ntpdate_flags=ntp1.arnes.si" },
1772 { "Slovenia #4", "ntp2.arnes.si",
1773 dmenuVarsCheck, dmenuSetVariables, NULL,
1774 "ntpdate_enable=YES,ntpdate_flags=ntp2.arnes.si" },
1775 { "Slovenia #5", "time.ijs.si",
1776 dmenuVarsCheck, dmenuSetVariables, NULL,
1777 "ntpdate_enable=YES,ntpdate_flags=time.ijs.si" },
1778 { "Scotland", "ntp.cs.strath.ac.uk",
1779 dmenuVarsCheck, dmenuSetVariables, NULL,
1780 "ntpdate_enable=YES,ntpdate_flags=ntp.cs.strath.ac.uk" },
1781 { "Taiwan", "time.stdtime.gov.tw",
1782 dmenuVarsCheck, dmenuSetVariables, NULL,
1783 "ntpdate_enable=YES,ntpdate_flags=time.stdtime.gov.tw" },
1784 { "Taiwan #2", "clock.stdtime.gov.tw",
1785 dmenuVarsCheck, dmenuSetVariables, NULL,
1786 "ntpdate_enable=YES,ntpdate_flags=clock.stdtime.gov.tw" },
1787 { "Taiwan #3", "tick.stdtime.gov.tw",
1788 dmenuVarsCheck, dmenuSetVariables, NULL,
1789 "ntpdate_enable=YES,ntpdate_flags=tick.stdtime.gov.tw" },
1790 { "Taiwan #4", "tock.stdtime.gov.tw",
1791 dmenuVarsCheck, dmenuSetVariables, NULL,
1792 "ntpdate_enable=YES,ntpdate_flags=tock.stdtime.gov.tw" },
1793 { "Taiwan #5", "watch.stdtime.gov.tw",
1794 dmenuVarsCheck, dmenuSetVariables, NULL,
1795 "ntpdate_enable=YES,ntpdate_flags=watch.stdtime.gov.tw" },
1796 { "United Kingdom", "uk.pool.ntp.org",
1797 dmenuVarsCheck, dmenuSetVariables, NULL,
1798 "ntpdate_enable=YES,ntpdate_flags=uk.pool.ntp.org" },
1799 { "United Kingdom #2", "ntp.exnet.com",
1800 dmenuVarsCheck, dmenuSetVariables, NULL,
1801 "ntpdate_enable=YES,ntpdate_flags=ntp.exnet.com" },
1802 { "United Kingdom #3", "ntp0.uk.uu.net",
1803 dmenuVarsCheck, dmenuSetVariables, NULL,
1804 "ntpdate_enable=YES,ntpdate_flags=ntp0.uk.uu.net" },
1805 { "United Kingdom #4", "ntp1.uk.uu.net",
1806 dmenuVarsCheck, dmenuSetVariables, NULL,
1807 "ntpdate_enable=YES,ntpdate_flags=ntp1.uk.uu.net" },
1808 { "United Kingdom #5", "ntp2.uk.uu.net",
1809 dmenuVarsCheck, dmenuSetVariables, NULL,
1810 "ntpdate_enable=YES,ntpdate_flags=ntp2.uk.uu.net" },
1811 { "United Kingdom #6", "ntp2a.mcc.ac.uk",
1812 dmenuVarsCheck, dmenuSetVariables, NULL,
1813 "ntpdate_enable=YES,ntpdate_flags=ntp2a.mcc.ac.uk" },
1814 { "United Kingdom #7", "ntp2b.mcc.ac.uk",
1815 dmenuVarsCheck, dmenuSetVariables, NULL,
1816 "ntpdate_enable=YES,ntpdate_flags=ntp2b.mcc.ac.uk" },
1817 { "United Kingdom #8", "ntp2c.mcc.ac.uk",
1818 dmenuVarsCheck, dmenuSetVariables, NULL,
1819 "ntpdate_enable=YES,ntpdate_flags=ntp2c.mcc.ac.uk" },
1820 { "United Kingdom #9", "ntp2d.mcc.ac.uk",
1821 dmenuVarsCheck, dmenuSetVariables, NULL,
1822 "ntpdate_enable=YES,ntpdate_flags=ntp2d.mcc.ac.uk" },
1823 { "U.S.", "us.pool.ntp.org",
1824 dmenuVarsCheck, dmenuSetVariables, NULL,
1825 "ntpdate_enable=YES,ntpdate_flags=us.pool.ntp.org" },
1826 { "U.S. AR", "sushi.lyon.edu",
1827 dmenuVarsCheck, dmenuSetVariables, NULL,
1828 "ntpdate_enable=YES,ntpdate_flags=sushi.compsci.lyon.edu" },
1829 { "U.S. AZ", "ntp.drydog.com",
1830 dmenuVarsCheck, dmenuSetVariables, NULL,
1831 "ntpdate_enable=YES,ntpdate_flags=ntp.drydog.com" },
1832 { "U.S. CA", "ntp.ucsd.edu",
1833 dmenuVarsCheck, dmenuSetVariables, NULL,
1834 "ntpdate_enable=YES,ntpdate_flags=ntp.ucsd.edu" },
1835 { "U.S. CA #2", "ntp1.mainecoon.com",
1836 dmenuVarsCheck, dmenuSetVariables, NULL,
1837 "ntpdate_enable=YES,ntpdate_flags=ntp1.mainecoon.com" },
1838 { "U.S. CA #3", "ntp2.mainecoon.com",
1839 dmenuVarsCheck, dmenuSetVariables, NULL,
1840 "ntpdate_enable=YES,ntpdate_flags=ntp2.mainecoon.com" },
1841 { "U.S. CA #4", "reloj.kjsl.com",
1842 dmenuVarsCheck, dmenuSetVariables, NULL,
1843 "ntpdate_enable=YES,ntpdate_flags=reloj.kjsl.com" },
1844 { "U.S. CA #5", "time.five-ten-sg.com",
1845 dmenuVarsCheck, dmenuSetVariables, NULL,
1846 "ntpdate_enable=YES,ntpdate_flags=time.five-ten-sg.com" },
1847 { "U.S. DE", "louie.udel.edu",
1848 dmenuVarsCheck, dmenuSetVariables, NULL,
1849 "ntpdate_enable=YES,ntpdate_flags=louie.udel.edu" },
1850 { "U.S. GA", "ntp.shorty.com",
1851 dmenuVarsCheck, dmenuSetVariables, NULL,
1852 "ntpdate_enable=YES,ntpdate_flags=ntp.shorty.com" },
1853 { "U.S. GA #2", "rolex.usg.edu",
1854 dmenuVarsCheck, dmenuSetVariables, NULL,
1855 "ntpdate_enable=YES,ntpdate_flags=rolex.usg.edu" },
1856 { "U.S. GA #3", "timex.usg.edu",
1857 dmenuVarsCheck, dmenuSetVariables, NULL,
1858 "ntpdate_enable=YES,ntpdate_flags=timex.usg.edu" },
1859 { "U.S. IL", "ntp-0.cso.uiuc.edu",
1860 dmenuVarsCheck, dmenuSetVariables, NULL,
1861 "ntpdate_enable=YES,ntpdate_flags=ntp-0.cso.uiuc.edu" },
1862 { "U.S. IL #2", "ntp-1.cso.uiuc.edu",
1863 dmenuVarsCheck, dmenuSetVariables, NULL,
1864 "ntpdate_enable=YES,ntpdate_flags=ntp-1.cso.uiuc.edu" },
1865 { "U.S. IL #3", "ntp-1.mcs.anl.gov",
1866 dmenuVarsCheck, dmenuSetVariables, NULL,
1867 "ntpdate_enable=YES,ntpdate_flags=ntp-1.mcs.anl.gov" },
1868 { "U.S. IL #4", "ntp-2.cso.uiuc.edu",
1869 dmenuVarsCheck, dmenuSetVariables, NULL,
1870 "ntpdate_enable=YES,ntpdate_flags=ntp-2.cso.uiuc.edu" },
1871 { "U.S. IL #5", "ntp-2.mcs.anl.gov",
1872 dmenuVarsCheck, dmenuSetVariables, NULL,
1873 "ntpdate_enable=YES,ntpdate_flags=ntp-2.mcs.anl.gov" },
1874 { "U.S. IN", "gilbreth.ecn.purdue.edu",
1875 dmenuVarsCheck, dmenuSetVariables, NULL,
1876 "ntpdate_enable=YES,ntpdate_flags=gilbreth.ecn.purdue.edu" },
1877 { "U.S. IN #2", "harbor.ecn.purdue.edu",
1878 dmenuVarsCheck, dmenuSetVariables, NULL,
1879 "ntpdate_enable=YES,ntpdate_flags=harbor.ecn.purdue.edu" },
1880 { "U.S. IN #3", "molecule.ecn.purdue.edu",
1881 dmenuVarsCheck, dmenuSetVariables, NULL,
1882 "ntpdate_enable=YES,ntpdate_flags=molecule.ecn.purdue.edu" },
1883 { "U.S. KS", "ntp1.kansas.net",
1884 dmenuVarsCheck, dmenuSetVariables, NULL,
1885 "ntpdate_enable=YES,ntpdate_flags=ntp1.kansas.net" },
1886 { "U.S. KS #2", "ntp2.kansas.net",
1887 dmenuVarsCheck, dmenuSetVariables, NULL,
1888 "ntpdate_enable=YES,ntpdate_flags=ntp2.kansas.net" },
1889 { "U.S. MA", "ntp.ourconcord.net",
1890 dmenuVarsCheck, dmenuSetVariables, NULL,
1891 "ntpdate_enable=YES,ntpdate_flags=ntp.ourconcord.net" },
1892 { "U.S. MA #2", "timeserver.cs.umb.edu",
1893 dmenuVarsCheck, dmenuSetVariables, NULL,
1894 "ntpdate_enable=YES,ntpdate_flags=timeserver.cs.umb.edu" },
1895 { "U.S. MN", "ns.nts.umn.edu",
1896 dmenuVarsCheck, dmenuSetVariables, NULL,
1897 "ntpdate_enable=YES,ntpdate_flags=ns.nts.umn.edu" },
1898 { "U.S. MN #2", "nss.nts.umn.edu",
1899 dmenuVarsCheck, dmenuSetVariables, NULL,
1900 "ntpdate_enable=YES,ntpdate_flags=nss.nts.umn.edu" },
1901 { "U.S. MO", "time-ext.missouri.edu",
1902 dmenuVarsCheck, dmenuSetVariables, NULL,
1903 "ntpdate_enable=YES,ntpdate_flags=time-ext.missouri.edu" },
1904 { "U.S. MT", "chronos1.umt.edu",
1905 dmenuVarsCheck, dmenuSetVariables, NULL,
1906 "ntpdate_enable=YES,ntpdate_flags=chronos1.umt.edu" },
1907 { "U.S. MT #2", "chronos2.umt.edu",
1908 dmenuVarsCheck, dmenuSetVariables, NULL,
1909 "ntpdate_enable=YES,ntpdate_flags=chronos2.umt.edu" },
1910 { "U.S. MT #3", "chronos3.umt.edu",
1911 dmenuVarsCheck, dmenuSetVariables, NULL,
1912 "ntpdate_enable=YES,ntpdate_flags=chronos3.umt.edu" },
1913 { "U.S. NC", "clock1.unc.edu",
1914 dmenuVarsCheck, dmenuSetVariables, NULL,
1915 "ntpdate_enable=YES,ntpdate_flags=clock1.unc.edu" },
1916 { "U.S. NV", "cuckoo.nevada.edu",
1917 dmenuVarsCheck, dmenuSetVariables, NULL,
1918 "ntpdate_enable=YES,ntpdate_flags=cuckoo.nevada.edu" },
1919 { "U.S. NV #2", "tick.cs.unlv.edu",
1920 dmenuVarsCheck, dmenuSetVariables, NULL,
1921 "ntpdate_enable=YES,ntpdate_flags=tick.cs.unlv.edu" },
1922 { "U.S. NV #3", "tock.cs.unlv.edu",
1923 dmenuVarsCheck, dmenuSetVariables, NULL,
1924 "ntpdate_enable=YES,ntpdate_flags=tock.cs.unlv.edu" },
1925 { "U.S. NY", "ntp0.cornell.edu",
1926 dmenuVarsCheck, dmenuSetVariables, NULL,
1927 "ntpdate_enable=YES,ntpdate_flags=ntp0.cornell.edu" },
1928 { "U.S. NY #2", "sundial.columbia.edu",
1929 dmenuVarsCheck, dmenuSetVariables, NULL,
1930 "ntpdate_enable=YES,ntpdate_flags=sundial.columbia.edu" },
1931 { "U.S. NY #3", "timex.cs.columbia.edu",
1932 dmenuVarsCheck, dmenuSetVariables, NULL,
1933 "ntpdate_enable=YES,ntpdate_flags=timex.cs.columbia.edu" },
1934 { "U.S. PA", "clock-1.cs.cmu.edu",
1935 dmenuVarsCheck, dmenuSetVariables, NULL,
1936 "ntpdate_enable=YES,ntpdate_flags=clock-1.cs.cmu.edu" },
1937 { "U.S. PA #2", "clock-2.cs.cmu.edu",
1938 dmenuVarsCheck, dmenuSetVariables, NULL,
1939 "ntpdate_enable=YES,ntpdate_flags=clock-2.cs.cmu.edu" },
1940 { "U.S. PA #3", "clock.psu.edu",
1941 dmenuVarsCheck, dmenuSetVariables, NULL,
1942 "ntpdate_enable=YES,ntpdate_flags=clock.psu.edu" },
1943 { "U.S. PA #4", "fuzz.psc.edu",
1944 dmenuVarsCheck, dmenuSetVariables, NULL,
1945 "ntpdate_enable=YES,ntpdate_flags=fuzz.psc.edu" },
1946 { "U.S. PA #5", "ntp-1.ece.cmu.edu",
1947 dmenuVarsCheck, dmenuSetVariables, NULL,
1948 "ntpdate_enable=YES,ntpdate_flags=ntp-1.ece.cmu.edu" },
1949 { "U.S. PA #6", "ntp-2.ece.cmu.edu",
1950 dmenuVarsCheck, dmenuSetVariables, NULL,
1951 "ntpdate_enable=YES,ntpdate_flags=ntp-2.ece.cmu.edu" },
1952 { "U.S. TX", "ntp.fnbhs.com",
1953 dmenuVarsCheck, dmenuSetVariables, NULL,
1954 "ntpdate_enable=YES,ntpdate_flags=ntp.fnbhs.com" },
1955 { "U.S. TX #2", "ntp.tmc.edu",
1956 dmenuVarsCheck, dmenuSetVariables, NULL,
1957 "ntpdate_enable=YES,ntpdate_flags=ntp.tmc.edu" },
1958 { "U.S. TX #3", "ntp5.tamu.edu",
1959 dmenuVarsCheck, dmenuSetVariables, NULL,
1960 "ntpdate_enable=YES,ntpdate_flags=ntp5.tamu.edu" },
1961 { "U.S. TX #4", "tick.greyware.com",
1962 dmenuVarsCheck, dmenuSetVariables, NULL,
1963 "ntpdate_enable=YES,ntpdate_flags=tick.greyware.com" },
1964 { "U.S. TX #5", "tock.greyware.com",
1965 dmenuVarsCheck, dmenuSetVariables, NULL,
1966 "ntpdate_enable=YES,ntpdate_flags=tock.greyware.com" },
1967 { "U.S. VA", "ntp-1.vt.edu",
1968 dmenuVarsCheck, dmenuSetVariables, NULL,
1969 "ntpdate_enable=YES,ntpdate_flags=ntp-1.vt.edu" },
1970 { "U.S. VA #2", "ntp-2.vt.edu",
1971 dmenuVarsCheck, dmenuSetVariables, NULL,
1972 "ntpdate_enable=YES,ntpdate_flags=ntp-2.vt.edu" },
1973 { "U.S. VA #3", "ntp.cmr.gov",
1974 dmenuVarsCheck, dmenuSetVariables, NULL,
1975 "ntpdate_enable=YES,ntpdate_flags=ntp.cmr.gov" },
1976 { "U.S. VT", "ntp0.state.vt.us",
1977 dmenuVarsCheck, dmenuSetVariables, NULL,
1978 "ntpdate_enable=YES,ntpdate_flags=ntp0.state.vt.us" },
1979 { "U.S. VT #2", "ntp1.state.vt.us",
1980 dmenuVarsCheck, dmenuSetVariables, NULL,
1981 "ntpdate_enable=YES,ntpdate_flags=ntp1.state.vt.us" },
1982 { "U.S. VT #3", "ntp2.state.vt.us",
1983 dmenuVarsCheck, dmenuSetVariables, NULL,
1984 "ntpdate_enable=YES,ntpdate_flags=ntp2.state.vt.us" },
1985 { "U.S. WA", "ntp.tcp-udp.net",
1986 dmenuVarsCheck, dmenuSetVariables, NULL,
1987 "ntpdate_enable=YES,ntpdate_flags=ntp.tcp-udp.net" },
1988 { "U.S. WI", "ntp1.cs.wisc.edu",
1989 dmenuVarsCheck, dmenuSetVariables, NULL,
1990 "ntpdate_enable=YES,ntpdate_flags=ntp1.cs.wisc.edu" },
1991 { "U.S. WI #2", "ntp3.cs.wisc.edu",
1992 dmenuVarsCheck, dmenuSetVariables, NULL,
1993 "ntpdate_enable=YES,ntpdate_flags=ntp3.cs.wisc.edu" },
1994 { "South Africa", "ntp.cs.unp.ac.za",
1995 dmenuVarsCheck, dmenuSetVariables, NULL,
1996 "ntpdate_enable=YES,ntpdate_flags=ntp.cs.unp.ac.za" },
1997 { NULL } },
1998};
1999
2000#ifdef WITH_SYSCONS
2001DMenu MenuSyscons = {
2002 DMENU_NORMAL_TYPE,
2003 "System Console Configuration",
2004 "The default system console driver for FreeBSD (syscons) has a\n"
2005 "number of configuration options which may be set according to\n"
2006 "your preference.\n\n"
2007 "When you are done setting configuration options, select Cancel.",
2008 "Configure your system console settings",
2009 NULL,
2010 { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
2011#ifdef PC98
2012 { "2 Keymap", "Choose an alternate keyboard map", NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
2013 { "3 Repeat", "Set the rate at which keys repeat", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
2014 { "4 Saver", "Configure the screen saver", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
2015#else
2016 { "2 Font", "Choose an alternate screen font", NULL, dmenuSubmenu, NULL, &MenuSysconsFont },
2017 { "3 Keymap", "Choose an alternate keyboard map", NULL, dmenuSubmenu, NULL, &MenuSysconsKeymap },
2018 { "4 Repeat", "Set the rate at which keys repeat", NULL, dmenuSubmenu, NULL, &MenuSysconsKeyrate },
2019 { "5 Saver", "Configure the screen saver", NULL, dmenuSubmenu, NULL, &MenuSysconsSaver },
2020 { "6 Screenmap", "Choose an alternate screenmap", NULL, dmenuSubmenu, NULL, &MenuSysconsScrnmap },
2021 { "7 Ttys", "Choose console terminal type", NULL, dmenuSubmenu, NULL, &MenuSysconsTtys },
2022#endif
2023 { NULL } },
2024};
2025
2026#ifdef PC98
2027DMenu MenuSysconsKeymap = {
2028 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2029 "System Console Keymap",
2030 "The default system console driver for FreeBSD (syscons) defaults\n"
2031 "to a standard \"PC-98x1\" keyboard map. Users may wish to choose\n"
2032 "one of the other keymaps below.\n"
2033 "Note that sysinstall itself only uses the part of the keyboard map\n"
2034 "which is required to generate the ANSI character subset, but your\n"
2035 "choice of keymap will also be saved for later (fuller) use.",
2036 "Choose a keyboard map",
2037 NULL,
2038 { { "Japanese PC-98x1", "Japanese PC-98x1 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98" },
2039 { " Japanese PC-98x1 (ISO)", "Japanese PC-98x1 (ISO) keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98.iso" },
2040 { NULL } },
2041};
2042#else
2043DMenu MenuSysconsKeymap = {
2044 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2045 "System Console Keymap",
2046 "The default system console driver for FreeBSD (syscons) defaults\n"
2047 "to a standard \"American\" keyboard map. Users in other countries\n"
2048 "(or with different keyboard preferences) may wish to choose one of\n"
2049 "the other keymaps below.\n"
2050 "Note that sysinstall itself only uses the part of the keyboard map\n"
2051 "which is required to generate the ANSI character subset, but your\n"
2052 "choice of keymap will also be saved for later (fuller) use.",
2053 "Choose a keyboard map",
2054 NULL,
2055 { { "Belgian", "Belgian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=be.iso" },
2056 { " Brazil CP850", "Brazil CP850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.cp850" },
2057 { " Brazil ISO (accent)", "Brazil ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso.acc" },
2058 { " Brazil ISO", "Brazil ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=br275.iso" },
2059 { " Bulgarian BDS", "Bulgarian BDS keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=bg.bds.ctrlcaps" },
2060 { " Bulgarian Phonetic", "Bulgarian Phonetic keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=bg.phonetic.ctrlcaps" },
2061 { "Central European ISO", "Central European ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ce.iso2" },
2062 { " Croatian ISO", "Croatian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hr.iso" },
2063 { " Czech ISO (accent)", "Czech ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=cs.latin2.qwertz" },
2064 { "Danish CP865", "Danish Code Page 865 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.cp865" },
2065 { " Danish ISO", "Danish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=danish.iso" },
2066 { "Estonian ISO", "Estonian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso" },
2067 { " Estonian ISO 15", "Estonian ISO 8859-15 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.iso15" },
2068 { " Estonian CP850", "Estonian Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=estonian.cp850" },
2069 { "Finnish CP850","Finnish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.cp850" },
2070 { " Finnish ISO", "Finnish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=finnish.iso" },
2071 { " French ISO (accent)", "French ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso.acc" },
2072 { " French ISO", "French ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=fr.iso" },
2073 { "German CP850", "German Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.cp850" },
2074 { " German ISO", "German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=german.iso" },
2075 { " Greek 101", "Greek ISO keymap (101 keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=gr.us101.acc" },
2076 { " Greek 104", "Greek ISO keymap (104 keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=el.iso07" },
2077 { " Greek ELOT", "Greek ISO keymap (ELOT 1000)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=gr.elot.acc" },
2078 { "Hungarian 101", "Hungarian ISO keymap (101 key)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.101keys" },
2079 { " Hungarian 102", "Hungarian ISO keymap (102 key)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=hu.iso2.102keys" },
2080 { "Icelandic (accent)", "Icelandic ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso.acc" },
2081 { " Icelandic", "Icelandic ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=icelandic.iso" },
2082 { " Italian", "Italian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=it.iso" },
2083 { "Japanese 106", "Japanese 106 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.106" },
2084 { "Latin American (accent)", "Latin American ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=latinamerican.iso.acc" },
2085 { " Latin American", "Latin American ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=latinamerican" },
2086 { "Norway ISO", "Norwegian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=norwegian.iso" },
2087 { "Polish ISO", "Polish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pl_PL.ISO8859-2" },
2088 { " Portuguese (accent)", "Portuguese ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso.acc" },
2089 { " Portuguese", "Portuguese ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=pt.iso" },
2090 { "Russia KOI8-R", "Russian KOI8-R keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ru.koi8-r" },
2091 { "Slovak", "Slovak ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=sk.iso2" },
2092 { "Slovenian", "Slovenian ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=si.iso" },
2093 { " Spanish (accent)", "Spanish ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso.acc" },
2094 { " Spanish", "Spanish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=spanish.iso" },
2095 { " Swedish CP850", "Swedish Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.cp850" },
2096 { " Swedish ISO", "Swedish ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swedish.iso" },
2097 { " Swiss French ISO (accent)", "Swiss French ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso.acc" },
2098 { " Swiss French ISO", "Swiss French ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.iso" },
2099 { " Swiss French CP850", "Swiss French Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissfrench.cp850" },
2100 { " Swiss German ISO (accent)", "Swiss German ISO keymap (accent keys)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso.acc" },
2101 { " Swiss German ISO", "Swiss German ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.iso" },
2102 { " Swiss German CP850", "Swiss German Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=swissgerman.cp850" },
2103 { "UK CP850", "UK Code Page 850 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.cp850" },
2104 { " UK ISO", "UK ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=uk.iso" },
2105 { " Ukrainian KOI8-U", "Ukrainian KOI8-U keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u" },
2106 { " Ukrainian KOI8-U+KOI8-R", "Ukrainian KOI8-U+KOI8-R keymap (alter)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=ua.koi8-u.shift.alt" },
2107 { " USA CapsLock->Ctrl", "US standard (Caps as L-Control)", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.pc-ctrl" },
2108 { " USA Dvorak", "US Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorak" },
2109 { " USA Dvorak (left)", "US left handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakl" },
2110 { " USA Dvorak (right)", "US right handed Dvorak keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.dvorakr" },
2111 { " USA Emacs", "US standard optimized for EMACS", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.emacs" },
2112 { " USA ISO", "US ISO keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.iso" },
2113 { " USA UNIX", "US traditional UNIX-workstation", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.unix" },
2114 { NULL } },
2115};
2116#endif /* PC98 */
2117
2118DMenu MenuSysconsKeyrate = {
2119 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2120 "System Console Keyboard Repeat Rate",
2121 "This menu allows you to set the speed at which keys repeat\n"
2122 "when held down.",
2123 "Choose a keyboard repeat rate",
2124 NULL,
2125 { { "Slow", "Slow keyboard repeat rate", dmenuVarCheck, dmenuSetVariable, NULL, "keyrate=slow" },
2126 { "Normal", "\"Normal\" keyboard repeat rate", dmenuVarCheck, dmenuSetVariable, NULL, "keyrate=normal" },
2127 { "Fast", "Fast keyboard repeat rate", dmenuVarCheck, dmenuSetVariable, NULL, "keyrate=fast" },
2128 { "Default", "Use default keyboard repeat rate", dmenuVarCheck, dmenuSetVariable, NULL, "keyrate=NO" },
2129 { NULL } },
2130};
2131
2132DMenu MenuSysconsSaver = {
2133 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2134 "System Console Screen Saver",
2135 "By default, the console driver will not attempt to do anything\n"
2136 "special with your screen when it's idle. If you expect to leave your\n"
2137 "monitor switched on and idle for long periods of time then you should\n"
2138 "probably enable one of these screen savers to prevent phosphor burn-in.",
2139 "Choose a nifty-looking screen saver",
2140 NULL,
2141 { { "1 Blank", "Simply blank the screen",
2142 dmenuVarCheck, configSaver, NULL, "saver=blank" },
2143 { "2 Daemon", "\"BSD Daemon\" animated screen saver (text)",
2144 dmenuVarCheck, configSaver, NULL, "saver=daemon" },
2145 { "3 Fade", "Fade out effect screen saver",
2146 dmenuVarCheck, configSaver, NULL, "saver=fade" },
2147 { "4 Fire", "Flames effect screen saver",
2148 dmenuVarCheck, configSaver, NULL, "saver=fire" },
2149 { "5 Green", "\"Green\" power saving mode (if supported by monitor)",
2150 dmenuVarCheck, configSaver, NULL, "saver=green" },
2151 { "6 Logo", "\"BSD Daemon\" animated screen saver (graphics)",
2152 dmenuVarCheck, configSaver, NULL, "saver=logo" },
2153 { "7 Rain", "Rain drops screen saver",
2154 dmenuVarCheck, configSaver, NULL, "saver=rain" },
2155 { "8 Snake", "Draw a FreeBSD \"snake\" on your screen",
2156 dmenuVarCheck, configSaver, NULL, "saver=snake" },
2157 { "9 Star", "A \"twinkling stars\" effect",
2158 dmenuVarCheck, configSaver, NULL, "saver=star" },
2159 { "Warp", "A \"stars warping\" effect",
2160 dmenuVarCheck, configSaver, NULL, "saver=warp" },
2161 { "Dragon", "Dragon screensaver (graphics)",
2162 dmenuVarCheck, configSaver, NULL, "saver=dragon" },
2163 { "Timeout", "Set the screen saver timeout interval",
2164 NULL, configSaverTimeout, NULL, NULL, ' ', ' ', ' ' },
2165 { NULL } },
2166};
2167
2168#ifndef PC98
2169DMenu MenuSysconsScrnmap = {
2170 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2171 "System Console Screenmap",
2172 "Unless you load a specific font, most PC hardware defaults to\n"
2173 "displaying characters in the IBM 437 character set. However,\n"
2174 "in the Unix world, this character set is very rarely used. Most\n"
2175 "Western European countries, for example, prefer ISO 8859-1.\n"
2176 "American users won't notice the difference since the bottom half\n"
2177 "of all these character sets is ANSI anyway.\n"
2178 "If your hardware is capable of downloading a new display font,\n"
2179 "you should probably choose that option. However, for hardware\n"
2180 "where this is not possible (e.g. monochrome adapters), a screen\n"
2181 "map will give you the best approximation that your hardware can\n"
2182 "display at all.",
2183 "Choose a screen map",
2184 NULL,
2185 { { "1 None", "No screenmap, don't touch font", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=NO" },
2186 { "2 ISO 8859-1 to IBM437", "W-Europe ISO 8859-1 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-1_to_cp437" },
2187 { "3 ISO 8859-7 to IBM437", "Greek ISO 8859-7 to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=iso-8859-7_to_cp437" },
2188 { "4 US-ASCII to IBM437", "US-ASCII to IBM 437 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=us-ascii_to_cp437" },
2189 { "5 KOI8-R to IBM866", "Russian KOI8-R to IBM 866 screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-r2cp866" },
2190 { "6 KOI8-U to IBM866u", "Ukrainian KOI8-U to IBM 866u screenmap", dmenuVarCheck, dmenuSetVariable, NULL, "scrnmap=koi8-u2cp866u" },
2191 { NULL } },
2192};
2193
2194DMenu MenuSysconsTtys = {
2195 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2196 "System Console Terminal Type",
2197 "For various console encodings, a corresponding terminal type\n"
2198 "must be chosen in /etc/ttys.\n\n"
2199 "WARNING: For compatibility reasons, only entries starting with\n"
2200 "ttyv and terminal types starting with cons[0-9] can be changed\n"
2201 "via this menu.\n",
2202 "Choose a terminal type",
2203 NULL,
2204 { { "1 None", "Don't touch anything", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=NO" },
2205 { "2 IBM437 (VGA default)", "cons25", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25" },
2206 { "3 ISO 8859-1", "cons25l1", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l1" },
2207 { "4 ISO 8859-2", "cons25l2", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l2" },
2208 { "5 ISO 8859-7", "cons25l7", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25l7" },
2209 { "6 KOI8-R", "cons25r", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25r" },
2210 { "7 KOI8-U", "cons25u", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25u" },
2211 { "8 US-ASCII", "cons25w", dmenuVarCheck, dmenuSetVariable, NULL, VAR_CONSTERM "=cons25w" },
2212 { NULL } },
2213};
2214
2215DMenu MenuSysconsFont = {
2216 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2217 "System Console Font",
2218 "Most PC hardware defaults to displaying characters in the\n"
2219 "IBM 437 character set. However, in the Unix world, this\n"
2220 "character set is very rarely used. Most Western European\n"
2221 "countries, for example, prefer ISO 8859-1.\n"
2222 "American users won't notice the difference since the bottom half\n"
2223 "of all these charactersets is ANSI anyway. However, they might\n"
2224 "want to load a font anyway to use the 30- or 50-line displays.\n"
2225 "If your hardware is capable of downloading a new display font,\n"
2226 "you can select the appropriate font below.",
2227 "Choose a font",
2228 NULL,
2229 { { "1 None", "Use hardware default font", dmenuVarCheck, dmenuSetVariables, NULL,
2230 "font8x8=NO,font8x14=NO,font8x16=NO" },
2231 { "2 IBM 437", "English and others, VGA default", dmenuVarCheck, dmenuSetVariables, NULL,
2232 "font8x8=cp437-8x8,font8x14=cp437-8x14,font8x16=cp437-8x16" },
2233 { "3 IBM 850", "Western Europe, IBM encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2234 "font8x8=cp850-8x8,font8x14=cp850-8x14,font8x16=cp850-8x16" },
2235 { "4 IBM 865", "Norwegian, IBM encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2236 "font8x8=cp865-8x8,font8x14=cp865-8x14,font8x16=cp865-8x16" },
2237 { "5 IBM 866", "Russian, IBM encoding (use with KOI8-R screenmap)", dmenuVarCheck, dmenuSetVariables, NULL,
2238 "font8x8=cp866-8x8,font8x14=cp866-8x14,font8x16=cp866b-8x16,mousechar_start=3" },
2239 { "6 IBM 866u", "Ukrainian, IBM encoding (use with KOI8-U screenmap)", dmenuVarCheck, dmenuSetVariables, NULL,
2240 "font8x8=cp866u-8x8,font8x14=cp866u-8x14,font8x16=cp866u-8x16,mousechar_start=3" },
2241 { "7 IBM 1251", "Cyrillic, MS Windows encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2242 "font8x8=cp1251-8x8,font8x14=cp1251-8x14,font8x16=cp1251-8x16,mousechar_start=3" },
2243 { "8 ISO 8859-1", "Western Europe, ISO encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2244 "font8x8=iso-8x8,font8x14=iso-8x14,font8x16=iso-8x16" },
2245 { "9 ISO 8859-2", "Eastern Europe, ISO encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2246 "font8x8=iso02-8x8,font8x14=iso02-8x14,font8x16=iso02-8x16" },
2247 { "a ISO 8859-4", "Baltic, ISO encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2248 "font8x8=iso04-8x8,font8x14=iso04-8x14,font8x16=iso04-8x16" },
2249 { "b ISO 8859-7", "Greek, ISO encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2250 "font8x8=iso07-8x8,font8x14=iso07-8x14,font8x16=iso07-8x16" },
2251 { "c ISO 8859-8", "Hebrew, ISO encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2252 "font8x8=iso08-8x8,font8x14=iso08-8x14,font8x16=iso08-8x16" },
2253 { "d ISO 8859-15", "Europe, ISO encoding", dmenuVarCheck, dmenuSetVariables, NULL,
2254 "font8x8=iso15-8x8,font8x14=iso15-8x14,font8x16=iso15-8x16" },
2255 { "e SWISS", "English, better resolution", dmenuVarCheck, dmenuSetVariables, NULL,
2256 "font8x8=swiss-8x8,font8x14=NO,font8x16=swiss-8x16" },
2257 { NULL } },
2258};
2259#endif /* PC98 */
2260#endif /* WITH_SYSCONS */
2261
2262DMenu MenuUsermgmt = {
2263 DMENU_NORMAL_TYPE,
2264 "User and group management",
2265 "The submenus here allow to manipulate user groups and\n"
2266 "login accounts.\n",
2267 "Configure your user groups and users",
2268 NULL,
2269 { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
2270 { "User", "Add a new user to the system.", NULL, userAddUser },
2271 { "Group", "Add a new user group to the system.", NULL, userAddGroup },
2272 { NULL } },
2273};
2274
2275DMenu MenuSecurity = {
2276 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
2277 "System Security Options Menu",
2278 "This menu allows you to configure aspects of the operating system security\n"
2279 "policy. Please read the system documentation carefully before modifying\n"
2280 "these settings, as they may cause service disruption if used improperly.\n"
2281 "\n"
2282 "Most settings will take affect only following a system reboot.",
2283 "Configure system security options",
2284 NULL,
2285 { { "X Exit", "Exit this menu (returning to previous)",
2286 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
2287 { " Securelevel", "Configure securelevels for the system",
2288 NULL, configSecurelevel },
2289#if 0
2290 { " LOMAC", "Use Low Watermark Mandatory Access Control at boot",
2291 dmenuVarCheck, dmenuToggleVariable, NULL, "lomac_enable=YES" },
2292#endif
2293 { " NFS port", "Require that the NFS clients use reserved ports",
2294 dmenuVarCheck, dmenuToggleVariable, NULL, "nfs_reserved_port_only=YES" },
2295 { NULL } },
2296};
2297
2298DMenu MenuSecurelevel = {
2299 DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
2300 "Securelevel Configuration Menu",
2301 "This menu allows you to select the securelevel your system runs with.\n"
2302 "When operating at a securelevel, certain root privileges are disabled,\n"
2303 "which may increase resistance to exploits and protect system integrity.\n"
2304 "In secure mode system flags may not be overriden by the root user,\n"
2305 "access to direct kernel memory is limited, and kernel modules may not\n"
2306 "be changed. In highly secure mode, mounted file systems may not be\n"
2307 "modified on-disk, tampering with the system clock is prohibited. In\n"
2308 "network secure mode configuration changes to firwalling are prohibited.\n",
2309 "Select a securelevel to operate at - F1 for help",
2310 "securelevel",
2311 { { "X Exit", "Exit this menu (returning to previous)",
2312 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
2313 { "Disabled", "Disable securelevels", NULL, configSecurelevelDisabled, },
2314 { "Secure", "Secure mode", NULL, configSecurelevelSecure },
2315 { "Highly Secure", "Highly secure mode", NULL, configSecurelevelHighlySecure },
2316 { "Network Secure", "Network secure mode", NULL, configSecurelevelNetworkSecure },
2317 { NULL } }
2318};
2319
2320DMenu MenuFixit = {
2321 DMENU_NORMAL_TYPE,
2322 "Please choose a fixit option",
2323 "There are three ways of going into \"fixit\" mode:\n"
2324 "- you can use the live filesystem CDROM/DVD, in which case there will be\n"
2325 " full access to the complete set of FreeBSD commands and utilities,\n"
2326 "- you can use the more limited (but perhaps customized) fixit floppy,\n"
2327 "- or you can start an Emergency Holographic Shell now, which is\n"
2328 " limited to the subset of commands that is already available right now.",
2329 "Press F1 for more detailed repair instructions",
2330 "fixit",
2331{ { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit },
2332 { "2 CDROM/DVD", "Use the \"live\" filesystem CDROM/DVD", NULL, installFixitCDROM },
2333 { "3 Floppy", "Use a floppy generated from the fixit image", NULL, installFixitFloppy },
2334 { "4 Shell", "Start an Emergency Holographic Shell", NULL, installFixitHoloShell },
2335 { NULL } },
2336};