From 48a226d4c835b83eafbfa399f61d7c6f2163a291 Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 7 Sep 2000 16:05:52 +0000 Subject: MFS: sync with -stable by removing the now-vestigal X_AS_PKG stuff. --- usr.sbin/sade/Makefile | 3 --- usr.sbin/sade/install.c | 17 ----------------- usr.sbin/sade/menus.c | 4 ---- 3 files changed, 24 deletions(-) (limited to 'usr.sbin/sade') 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 } }, }; -- cgit v1.1