summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/dist.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-01-18 15:50:23 +0000
committerobrien <obrien@FreeBSD.org>2000-01-18 15:50:23 +0000
commit3005c00a64df52d1c5d631814a99d0c94d7cfee6 (patch)
tree18769371737ce8d99b03509c9081fd93dee80203 /usr.sbin/sysinstall/dist.c
parentb6aa8ae2646523b92baa2172c59b27169a90a146 (diff)
downloadFreeBSD-src-3005c00a64df52d1c5d631814a99d0c94d7cfee6.zip
FreeBSD-src-3005c00a64df52d1c5d631814a99d0c94d7cfee6.tar.gz
* add SVR4 and OSF/1 enabling in the Start Up config menu
* deals with X11 install when all we have is the Port (such as on the Alpha) Ok'ed by: JKH
Diffstat (limited to 'usr.sbin/sysinstall/dist.c')
-rw-r--r--usr.sbin/sysinstall/dist.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index f8639e7..6e4abe2 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -271,7 +271,10 @@ distSetX(void)
XF86Dists = DIST_XF86_BIN | DIST_XF86_SET | DIST_XF86_CFG | DIST_XF86_LIB | DIST_XF86_PROG | DIST_XF86_MAN | DIST_XF86_SERVER | DIST_XF86_FONTS;
XF86ServerDists = DIST_XF86_SERVER_SVGA | DIST_XF86_SERVER_VGA16;
XF86FontDists = DIST_XF86_FONTS_MISC;
+#ifndef X_AS_PKG
return distSetXF86(NULL);
+#endif
+ return DITEM_SUCCESS;
}
int
@@ -850,7 +853,7 @@ printSelected(char *buf, int selected, Distribution *me, int *col)
int
distExtractAll(dialogMenuItem *self)
{
- int old_dists, retries = 0, status = DITEM_SUCCESS;
+ int old_dists, retries = 0, status = DITEM_SUCCESS, want_x_package = 0;
char buf[512];
WINDOW *w;
@@ -869,11 +872,24 @@ distExtractAll(dialogMenuItem *self)
dialog_clear_norefresh();
w = savescr();
msgNotify("Attempting to install all selected distributions..");
+
+#ifdef X_AS_PKG
+ /* Clear any XFree86 dist flags, but remember they were present. */
+ if(Dists & DIST_XF86)
+ want_x_package = 1;
+ Dists &= ~DIST_XF86;
+ /*Dists &= ~(DIST_XF86 | XF86Dists | XF86ServerDists | XF86FontDists);*/
+#endif
/* Try for 3 times around the loop, then give up. */
while (Dists && ++retries < 3)
distExtract(NULL, DistTable);
+#ifdef X_AS_PKG
+ if (want_x_package)
+ status |= installX11package(NULL);
+#endif
+
dialog_clear_norefresh();
/* Only do bin fixup if bin dist was successfully extracted */
if ((old_dists & DIST_BIN) && !(Dists & DIST_BIN))
OpenPOWER on IntegriCloud