summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/menus.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-03-09 15:01:02 +0000
committerjkh <jkh@FreeBSD.org>1998-03-09 15:01:02 +0000
commitd285a03de7f6cc65a54adb9f5fbcbd7a6695565c (patch)
tree79177c890e12bff501d463d32ffd96971ea9f403 /usr.sbin/sysinstall/menus.c
parent94b4481b7476c53c86385f7947d9457639c14cea (diff)
downloadFreeBSD-src-d285a03de7f6cc65a54adb9f5fbcbd7a6695565c.zip
FreeBSD-src-d285a03de7f6cc65a54adb9f5fbcbd7a6695565c.tar.gz
Remove deprecated XIG support - that project never
happened.
Diffstat (limited to 'usr.sbin/sysinstall/menus.c')
-rw-r--r--usr.sbin/sysinstall/menus.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c
index d69c4bf..94f6232 100644
--- a/usr.sbin/sysinstall/menus.c
+++ b/usr.sbin/sysinstall/menus.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: menus.c,v 1.155 1998/03/07 08:59:27 jkh Exp $
+ * $Id: menus.c,v 1.156 1998/03/09 14:24:21 ache Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -53,7 +53,6 @@ clearSrc(dialogMenuItem *self)
return DITEM_SUCCESS | DITEM_REDRAW;
}
-#ifndef USE_XIG_ENVIRONMENT
static int
setX11All(dialogMenuItem *self)
{
@@ -122,7 +121,6 @@ clearX11Fonts(dialogMenuItem *self)
XF86FontDists = 0;
return DITEM_SUCCESS | DITEM_REDRAW;
}
-#endif /* !USE_XIG_ENVIRONMENT */
#define IS_DEVELOPER(dist, extra) ((((dist) & (_DIST_DEVELOPER | (extra))) == (_DIST_DEVELOPER | (extra))) || \
(((dist) & (_DIST_DEVELOPER | DIST_DES | (extra))) == (_DIST_DEVELOPER | DIST_DES | (extra))))
@@ -168,12 +166,8 @@ checkDistMinimum(dialogMenuItem *self)
static int
checkDistEverything(dialogMenuItem *self)
{
-#ifdef USE_XIG_ENVIRONMENT
- return (Dists == DIST_ALL && SrcDists == DIST_SRC_ALL);
-#else
return (Dists == DIST_ALL && SrcDists == DIST_SRC_ALL && XF86Dists == DIST_XF86_ALL &&
XF86ServerDists == DIST_XF86_SERVER_ALL && XF86FontDists == DIST_XF86_FONTS_ALL);
-#endif
}
static int
@@ -188,13 +182,11 @@ srcFlagCheck(dialogMenuItem *item)
return SrcDists;
}
-#ifndef USE_XIG_ENVIRONMENT
static int
x11FlagCheck(dialogMenuItem *item)
{
return XF86Dists;
}
-#endif
static int
checkTrue(dialogMenuItem *item)
@@ -233,9 +225,7 @@ DMenu MenuIndex = {
{ "Dists, User", "Select average user distribution.", checkDistUser, distSetUser },
{ "Dists, X User", "Select average X user distribution.", checkDistXUser, distSetXUser },
{ "Distributions, Adding", "Installing additional distribution sets", NULL, distExtractAll },
-#ifndef USE_XIG_ENVIRONMENT
{ "Distributions, XFree86","XFree86 distribution menu.", NULL, distSetXF86 },
-#endif
{ "Documentation", "Installation instructions, README, etc.", NULL, dmenuSubmenu, NULL, &MenuDocumentation },
{ "Doc, README", "The distribution README file.", NULL, dmenuDisplayFile, NULL, "readme" },
{ "Doc, Hardware", "The distribution hardware guide.", NULL, dmenuDisplayFile, NULL, "hardware" },
@@ -284,11 +274,9 @@ DMenu MenuIndex = {
{ "Upgrade", "Upgrade an existing system.", NULL, installUpgrade },
{ "Usage", "Quick start - How to use this menu system.", NULL, dmenuDisplayFile, NULL, "usage" },
{ "User Management", "Add user and group information.", NULL, dmenuSubmenu, NULL, &MenuUsermgmt },
-#ifndef USE_XIG_ENVIRONMENT
{ "XFree86, Fonts", "XFree86 Font selection menu.", NULL, dmenuSubmenu, NULL, &MenuXF86SelectFonts },
{ "XFree86, Server", "XFree86 Server selection menu.", NULL, dmenuSubmenu, NULL, &MenuXF86SelectServer },
{ "XFree86, PC98 Server", "XFree86 PC98 Server selection menu.", NULL, dmenuSubmenu, NULL, &MenuXF86SelectPC98Server },
-#endif
{ NULL } },
};
@@ -438,7 +426,6 @@ DMenu MenuMouse = {
{ NULL } },
};
-#ifndef USE_XIG_ENVIRONMENT
DMenu MenuXF86Config = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Please select the XFree86 configuration tool you want to use.",
@@ -457,7 +444,6 @@ DMenu MenuXF86Config = {
NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
{ NULL } },
};
-#endif
DMenu MenuMediaCDROM = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
@@ -778,13 +764,8 @@ DMenu MenuSubDistributions = {
srcFlagCheck, distSetSrc },
{ "ports", "The FreeBSD Ports collection",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
-#ifdef USE_XIG_ENVIRONMENT
- { "Xaccel", "The XiG AcceleratedX 3.1 distribution",
- dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_XIG_SERVER },
-#else
{ "XFree86", "The XFree86 3.3.1 distribution",
x11FlagCheck, distSetXF86 },
-#endif
{ "All", "All sources, binaries and X Window System binaries",
NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
{ "Clear", "Reset all of the above",
@@ -868,7 +849,6 @@ DMenu MenuSrcDistributions = {
{ NULL } },
};
-#ifndef USE_XIG_ENVIRONMENT
DMenu MenuXF86Select = {
DMENU_NORMAL_TYPE,
"XFree86 3.3.1 Distribution",
@@ -902,22 +882,18 @@ DMenu MenuXF86SelectCore = {
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_HTML },
{ "lib", "Data files needed at runtime",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LIB },
-#ifndef USE_XIG_ENVIRONMENT
{ "lk98", "Server link kit for PC98 machines",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT98 },
{ "lkit", "Server link kit for all other machines",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_LKIT },
-#endif
{ "man", "Manual pages",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_MAN },
{ "prog", "Programmer's header and library files",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_PROG },
{ "ps", "Postscript documentation",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_PS },
-#ifndef USE_XIG_ENVIRONMENT
{ "set", "XFree86 Setup Utility",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_SET },
-#endif
{ "sources", "XFree86 3.3.1 standard sources",
dmenuFlagCheck, dmenuSetFlag, NULL, &XF86Dists, '[', 'X', ']', DIST_XF86_SRC },
{ "csources", "XFree86 3.3.1 contrib sources",
@@ -1048,7 +1024,6 @@ Mono servers are particularly well-suited to most LCD displays).",
checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
{ NULL } }
};
-#endif /* !USE_XIG_ENVIRONMENT */
DMenu MenuDiskDevices = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
@@ -1155,11 +1130,7 @@ DMenu MenuConfigure = {
NULL, dmenuSystemCommand, NULL, "passwd root" },
{ "B HTML Docs", "Go to the HTML documentation menu (post-install)",
NULL, docBrowser },
-#ifdef USE_XIG_ENVIRONMENT
- { "X X + CDE", "Configure X Window system & CDE environment",
-#else
{ "X XFree86", "Configure XFree86",
-#endif
NULL, configXEnvironment },
{ "D Distributions", "Install additional distribution sets",
NULL, distExtractAll },
OpenPOWER on IntegriCloud