diff options
author | obrien <obrien@FreeBSD.org> | 2002-04-02 20:42:54 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-04-02 20:42:54 +0000 |
commit | 60f91e4cada4f9a237e8a2858a93c8beef63130d (patch) | |
tree | d43bab971b0e937a1970dc0705e09080ceb98367 /usr.sbin/sysinstall/dist.c | |
parent | 2c4739409a5f713a428487bdefbc90a4f835d93a (diff) | |
download | FreeBSD-src-60f91e4cada4f9a237e8a2858a93c8beef63130d.zip FreeBSD-src-60f91e4cada4f9a237e8a2858a93c8beef63130d.tar.gz |
Switch to using XFree86 version 4. We do this thru installing the package,
so know we have proper PKG registration and dependency information.
This is a WIP for 5.0 DP #1, so it is still rough around the edges and
does not GC the old XFree86 3.3.6 handling stuff that should be GC'ed.
Sponsored by: FreeBSD Mall, Inc.
Diffstat (limited to 'usr.sbin/sysinstall/dist.c')
-rw-r--r-- | usr.sbin/sysinstall/dist.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index 68e7986..7c94073 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -275,7 +275,9 @@ distSetX(void) XF86Dists = DIST_XF86_BIN | DIST_XF86_SET | DIST_XF86_CFG | DIST_XF86_LIB | DIST_XF86_PROG | DIST_XF86_MAN | DIST_XF86_DOC | 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; } @@ -863,6 +865,9 @@ distExtractAll(dialogMenuItem *self) int old_dists, retries = 0, status = DITEM_SUCCESS; char buf[512]; WINDOW *w; +#ifdef X_AS_PKG + int want_x_package = 0; +#endif /* paranoia */ if (!Dists) { @@ -880,16 +885,31 @@ distExtractAll(dialogMenuItem *self) 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)) status |= installFixupBin(self); +#ifndef X_AS_PKG if (old_dists & DIST_XF86) status |= installFixupXFree(self); +#endif /* Clear any local dist flags now */ Dists &= ~DIST_LOCAL; |