summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-09-07 16:05:52 +0000
committerjkh <jkh@FreeBSD.org>2000-09-07 16:05:52 +0000
commit48a226d4c835b83eafbfa399f61d7c6f2163a291 (patch)
tree545dd0d4361c901d3df747989f3c807a11cd9ca1 /usr.sbin/sade
parent5240cf8e358ee03ca9844377bddf6386d80e8f5d (diff)
downloadFreeBSD-src-48a226d4c835b83eafbfa399f61d7c6f2163a291.zip
FreeBSD-src-48a226d4c835b83eafbfa399f61d7c6f2163a291.tar.gz
MFS: sync with -stable by removing the now-vestigal X_AS_PKG stuff.
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/Makefile3
-rw-r--r--usr.sbin/sade/install.c17
-rw-r--r--usr.sbin/sade/menus.c4
3 files changed, 0 insertions, 24 deletions
diff --git a/usr.sbin/sade/Makefile b/usr.sbin/sade/Makefile
index f30ef54..c65464a 100644
--- a/usr.sbin/sade/Makefile
+++ b/usr.sbin/sade/Makefile
@@ -21,9 +21,6 @@ CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif
-.if ${MACHINE_ARCH} != "i386" || defined(X_AS_PKG)
-CFLAGS+= -DX_AS_PKG
-.endif
DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
LDADD= -ldialog -lncurses -lmytinfo -lutil -ldisk -lftpio
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 888151f..67399ca 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -817,21 +817,6 @@ 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)
@@ -843,14 +828,12 @@ 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 f06d5bd..eee9959 100644
--- a/usr.sbin/sade/menus.c
+++ b/usr.sbin/sade/menus.c
@@ -867,11 +867,7 @@ DMenu MenuSubDistributions = {
{ " local", "Local additions collection",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
{ " XFree86", "The XFree86 3.3.6 distribution",
-#ifdef X_AS_PKG
- dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_XF86 },
-#else
x11FlagCheck, distSetXF86 },
-#endif
{ NULL } },
};
OpenPOWER on IntegriCloud