summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-02 20:42:54 +0000
committerobrien <obrien@FreeBSD.org>2002-04-02 20:42:54 +0000
commit60f91e4cada4f9a237e8a2858a93c8beef63130d (patch)
treed43bab971b0e937a1970dc0705e09080ceb98367 /usr.sbin/sade
parent2c4739409a5f713a428487bdefbc90a4f835d93a (diff)
downloadFreeBSD-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/sade')
-rw-r--r--usr.sbin/sade/Makefile1
-rw-r--r--usr.sbin/sade/dispatch.c2
-rw-r--r--usr.sbin/sade/install.c17
-rw-r--r--usr.sbin/sade/menus.c36
-rw-r--r--usr.sbin/sade/sade.892
5 files changed, 78 insertions, 70 deletions
diff --git a/usr.sbin/sade/Makefile b/usr.sbin/sade/Makefile
index 2320d95..96b976d 100644
--- a/usr.sbin/sade/Makefile
+++ b/usr.sbin/sade/Makefile
@@ -15,6 +15,7 @@ SRCS+= pccard.c
.endif
CFLAGS+= -I${.CURDIR}/../../gnu/lib/libdialog -I.
+CFLAGS+= -DX_AS_PKG
.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif
diff --git a/usr.sbin/sade/dispatch.c b/usr.sbin/sade/dispatch.c
index cc87f2b..04cd77c 100644
--- a/usr.sbin/sade/dispatch.c
+++ b/usr.sbin/sade/dispatch.c
@@ -84,7 +84,9 @@ static struct _word {
{ "installStandard", installStandard },
{ "installUpgrade", installUpgrade },
{ "installFixupBin", installFixupBin },
+#ifndef X_AS_PKG
{ "installFixupXFree", installFixupXFree },
+#endif
{ "installFixitHoloShell", installFixitHoloShell },
{ "installFixitCDROM", installFixitCDROM },
{ "installFixitFloppy", installFixitFloppy },
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 892f8fa..d54d7f6 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -870,6 +870,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-4");
+ restorescr(w);
+ return i;
+}
+#endif
+
/* Fix side-effects from the the XFree86 installation */
int
installFixupXFree(dialogMenuItem *self)
@@ -881,12 +896,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;
}
diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c
index 3a197b6..279fa4b 100644
--- a/usr.sbin/sade/menus.c
+++ b/usr.sbin/sade/menus.c
@@ -836,8 +836,12 @@ DMenu MenuSubDistributions = {
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
{ " local", "Local additions collection",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
- { " XFree86", "The XFree86 3.3.6 distribution",
+ { " XFree86", "The XFree86 distribution",
+#ifdef X_AS_PKG
+ dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_XF86 },
+#else
x11FlagCheck, distSetXF86 },
+#endif
{ NULL } },
};
@@ -900,35 +904,19 @@ DMenu MenuSrcDistributions = {
DMenu MenuXF86Config = {
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
"Please select the XFree86 configuration tool you want to use.",
-#ifdef __alpha__
- "Due to problems with the VGA16 server right now, only the\n"
- "text-mode configuration tool (xf86config) is currently supported.",
-#else
- "The first tool, XF86Setup, is fully graphical and requires the\n"
- "VGA16 server in order to work (should have been selected by\n"
- "default, but if you de-selected it then you won't be able to\n"
- "use this fancy setup tool). The second tool, xf86config, is\n"
+ "The first tool, xf86cfg, is fully graphical\n"
+ "The second tool, xf86config, is\n"
"a more simplistic shell-script based tool and less friendly to\n"
"new users, but it may work in situations where the fancier one\n"
"does not.",
-#endif
NULL,
NULL,
{ { "X Exit", "Exit this menu (returning to previous)",
NULL, dmenuExit },
-#ifdef __alpha__
- { "2 xf86config", "Shell-script based XFree86 configuration tool.",
- NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
-#else
- { "2 XF86Setup", "Fully graphical XFree86 configuration tool.",
- NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=XF86Setup" },
+ { "2 xf86cfg", "Fully graphical XFree86 configuration tool.",
+ NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86cfg" },
{ "3 xf86config", "Shell-script based XFree86 configuration tool.",
NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=xf86config" },
-#ifdef PC98
- { "4 XF98Setup", "Fully graphical XFree86 configuration tool (PC98).",
- NULL, dmenuSetVariable, NULL, VAR_XF86_CONFIG "=XF98Setup" },
-#endif
-#endif
{ "D XDesktop", "X already set up, just do desktop configuration.",
NULL, dmenuSubmenu, NULL, &MenuXDesktops },
{ NULL } },
@@ -965,8 +953,8 @@ DMenu MenuXDesktops = {
DMenu MenuXF86Select = {
DMENU_NORMAL_TYPE,
- "XFree86 3.3.6 Distribution",
- "Please select the components you need from the XFree86 3.3.6\n"
+ "XFree86 Distribution",
+ "Please select the components you need from the XFree86\n"
"distribution sets.",
NULL,
NULL,
@@ -979,7 +967,7 @@ DMenu MenuXF86Select = {
DMenu MenuXF86SelectCore = {
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
- "XFree86 3.3.6 base distribution types",
+ "XFree86 base distribution types",
"Please check off the basic XFree86 components you wish to install.\n"
"Bin, lib, and set are recommended for a minimum installaion.",
NULL,
diff --git a/usr.sbin/sade/sade.8 b/usr.sbin/sade/sade.8
index cfcad37..65348bb 100644
--- a/usr.sbin/sade/sade.8
+++ b/usr.sbin/sade/sade.8
@@ -475,101 +475,101 @@ XFree86 official sources.
.It Li XF86-co
XFree86 contributed sources.
.It Li Xbin
-XFree86 3.3.6 binaries.
+XFree86 binaries.
.It Li Xcfg
-XFree86 3.3.6 configuration files.
+XFree86 configuration files.
.It Li Xdoc
-XFree86 3.3.6 documentation.
+XFree86 documentation.
.It Li Xhtml
-XFree86 3.3.6 HTML documentation.
+XFree86 HTML documentation.
.It Li Xlib
-XFree86 3.3.6 libraries.
+XFree86 libraries.
.It Li Xlk98
-XFree86 3.3.6 server link-kit for PC98 machines.
+XFree86 server link-kit for PC98 machines.
.It Li Xlkit
-XFree86 3.3.6 server link-kit for standard machines.
+XFree86 server link-kit for standard machines.
.It Li Xman
-XFree86 3.3.6 manual pages.
+XFree86 manual pages.
.It Li Xprog
-XFree86 3.3.6 programmer's distribution.
+XFree86 programmer's distribution.
.It Li Xps
-XFree86 3.3.6 postscript documentation.
+XFree86 postscript documentation.
.It Li Xset
-XFree86 3.3.6 graphical setup tool.
+XFree86 graphical setup tool.
.It Li PC98-Servers/X9480
-XFree86 3.3.6 PC98 8-bit (256 color) PEGC-480 server.
+XFree86 PC98 8-bit (256 color) PEGC-480 server.
.It Li PC98-Servers/X9EGC
-XFree86 3.3.6 PC98 4-bit (16 color) EGC server.
+XFree86 PC98 4-bit (16 color) EGC server.
.It Li PC98-Servers/X9GA9
-XFree86 3.3.6 PC98 GA-968V4/PCI (S3 968) server.
+XFree86 PC98 GA-968V4/PCI (S3 968) server.
.It Li PC98-Servers/X9GAN
-XFree86 3.3.6 PC98 GANB-WAP (cirrus) server.
+XFree86 PC98 GANB-WAP (cirrus) server.
.It Li PC98-Servers/X9LPW
-XFree86 3.3.6 PC98 PowerWindowLB (S3) server.
+XFree86 PC98 PowerWindowLB (S3) server.
.It Li PC98-Servers/X9MGA
[DESCRIPTION MISSING]
.It Li PC98-Servers/X9NKV
-XFree86 3.3.6 PC98 NKV-NEC (cirrus) server.
+XFree86 PC98 NKV-NEC (cirrus) server.
.It Li PC98-Servers/X9NS3
-XFree86 3.3.6 PC98 NEC (S3) server.
+XFree86 PC98 NEC (S3) server.
.It Li PC98-Servers/X9SPW
-XFree86 3.3.6 PC98 SKB-PowerWindow (S3) server.
+XFree86 PC98 SKB-PowerWindow (S3) server.
.It Li PC98-Servers/X9SVG
[DESCRIPTION MISSING]
.It Li PC98-Servers/X9TGU
-XFree86 3.3.6 PC98 Cyber9320 and TGUI9680 server.
+XFree86 PC98 Cyber9320 and TGUI9680 server.
.It Li PC98-Servers/X9WEP
-XFree86 3.3.6 PC98 WAB-EP (cirrus) server.
+XFree86 PC98 WAB-EP (cirrus) server.
.It Li PC98-Servers/X9WS
-XFree86 3.3.6 PC98 WABS (cirrus) server.
+XFree86 PC98 WABS (cirrus) server.
.It Li PC98-Servers/X9WSN
-XFree86 3.3.6 PC98 WSN-A2F (cirrus) server.
+XFree86 PC98 WSN-A2F (cirrus) server.
.It Li Servers/X3DL
-XFree86 3.3.6 3D Labs server.
+XFree86 3D Labs server.
.It Li Servers/X8514
-XFree86 3.3.6 8514 server.
+XFree86 8514 server.
.It Li Servers/XAGX
-XFree86 3.3.6 8 bit AGX server.
+XFree86 8 bit AGX server.
.It Li Servers/XI128
-XFree86 3.3.6 #9 Imagine I128 server.
+XFree86 #9 Imagine I128 server.
.It Li Servers/XMa8
-XFree86 3.3.6 ATI Mach8 server.
+XFree86 ATI Mach8 server.
.It Li Servers/XMa32
-XFree86 3.3.6 ATI Mach32 server.
+XFree86 ATI Mach32 server.
.It Li Servers/XMa64
-XFree86 3.3.6 ATI Mach64 server.
+XFree86 ATI Mach64 server.
.It Li Servers/XMono
-XFree86 3.3.6 monochrome server.
+XFree86 monochrome server.
.It Li Servers/XP9K
-XFree86 3.3.6 P9000 server.
+XFree86 P9000 server.
.It Li Servers/XS3
-XFree86 3.3.6 S3 server.
+XFree86 S3 server.
.It Li Servers/XS3V
-XFree86 3.3.6 S3 Virge server.
+XFree86 S3 Virge server.
.It Li Servers/XSVGA
-XFree86 3.3.6 SVGA server.
+XFree86 SVGA server.
.It Li Servers/XVG16
-XFree86 3.3.6 VGA16 server.
+XFree86 VGA16 server.
.It Li Servers/XW32
-XFree86 3.3.6 ET4000/W32, /W32i and /W32p server.
+XFree86 ET4000/W32, /W32i and /W32p server.
.It Li Servers/XTGA
Server for TGA cards (alpha architecture only).
.It Li Servers/Xnest
-XFree86 3.3.6 nested X server.
+XFree86 nested X server.
.It Li Servers/Xvfb
-XFree86 3.3.6 virtual frame-buffer X server.
+XFree86 virtual frame-buffer X server.
.It Li Xfnts
-XFree86 3.3.6 base font set.
+XFree86 base font set.
.It Li Xf100
-XFree86 3.3.6 100DPI font set.
+XFree86 100DPI font set.
.It Li Xfcyr
-XFree86 3.3.6 Cyrillic font set.
+XFree86 Cyrillic font set.
.It Li Xfscl
-XFree86 3.3.6 scalable font set.
+XFree86 scalable font set.
.It Li Xfnon
-XFree86 3.3.6 non-english font set.
+XFree86 non-english font set.
.It Li Xfsrv
-XFree86 3.3.6 font server.
+XFree86 font server.
.El
.El
.It distSetDeveloper
@@ -618,7 +618,7 @@ Interactively select source subcomponents.
.Sy Variables :
None
.It distSetXF86
-Interactively select XFree86 3.3.6 subcomponents.
+Interactively select XFree86 subcomponents.
.Pp
.Sy Variables :
None
OpenPOWER on IntegriCloud