summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/install.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/install.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/install.c')
-rw-r--r--usr.sbin/sysinstall/install.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c
index ec508e1..5f187b7 100644
--- a/usr.sbin/sysinstall/install.c
+++ b/usr.sbin/sysinstall/install.c
@@ -797,6 +797,21 @@ installFixupBin(dialogMenuItem *self)
return DITEM_SUCCESS | DITEM_RESTORE;
}
+#ifdef X_AS_PKG
+int
+installX11package(dialogMenuItem *self)
+{
+ WINDOW *w = savescr();
+ int i;
+
+ dialog_clear_norefresh();
+ msgNotify("Installing XFree86 package...");
+ i = package_add("XFree86");
+ restorescr(w);
+ return i;
+}
+#endif
+
/* Fix side-effects from the the XFree86 installation */
int
installFixupXFree(dialogMenuItem *self)
@@ -808,12 +823,14 @@ installFixupXFree(dialogMenuItem *self)
vsystem("chmod -R a+r /usr/X11R6");
vsystem("find /usr/X11R6 -type d | xargs chmod a+x");
+#ifndef X_AS_PKG
/* Also do bogus minimal package registration so ports don't whine */
if (file_readable("/usr/X11R6/lib/X11/pkgreg.tar.gz")) {
dialog_clear_norefresh();
msgNotify("Installing package metainfo..");
vsystem("tar xpzf /usr/X11R6/lib/X11/pkgreg.tar.gz -C / && rm /usr/X11R6/lib/X11/pkgreg.tar.gz");
}
+#endif
}
return DITEM_SUCCESS | DITEM_RESTORE;
}
OpenPOWER on IntegriCloud