diff options
author | jhb <jhb@FreeBSD.org> | 2003-01-17 19:05:32 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-01-17 19:05:32 +0000 |
commit | dc23a6cc293c5c66de9b340f144e5ac526bba8ad (patch) | |
tree | 5693ab9d8e2cce0b997fefaa64f9d54c4151f882 /usr.sbin/sade/install.c | |
parent | e4bbc64e1d967c8a58f0c9dee351e26d463366b0 (diff) | |
download | FreeBSD-src-dc23a6cc293c5c66de9b340f144e5ac526bba8ad.zip FreeBSD-src-dc23a6cc293c5c66de9b340f144e5ac526bba8ad.tar.gz |
- Rename installFixupBin to installFixupBase to finish up the 'bin' to
'base' dist rename.
- Rework struct dist to allow for different types of dists. There are
currently three types of dists: DT_TARBALL, the traditonal gzipped and
split tar file; DT_PACKAGE, a package; and DT_SUBDIST, a meta-dist in
the tree that has its own array of dists as its contents. For example,
the 'base' dist is a DT_TARBALL dist, the 'perl' dist is a DT_PACKAGE
dist, and the 'src' dist is a DT_SUBDIST dist with its own dist table
that contains 'sbase', 'ssys', etc.
- Add helper macros for defining array entries for the different types of
dists to try and make the statically defined dist table in dist.c more
readable.
- Split the logic to deal with a DT_TARBALL dist out of distExtract()
and into its own distExtractTarball() function. distExtract() now
calls other functions to extract each dist.
- Tweak the percentage complete calculation in distExtractTarball() to
do the multiply prior to the divide so it doesn't have to use floating
point.
- Axe the installPackage() function along with the special handling for
the perl and XFree86 dists in distExtractAll() since distExtract()
handles package dists directly now.
- Add back in subdists for the X packages based on the split up packages
that XFree86-4 uses that as closely map to the X dists we used with
X 3.3.x.
- Lots of things like distSetX() and the X dist masks are no longer
#ifndef X_AS_PKG since we use them in both cases now.
- Make the entire installFixupXFree() function #ifndef X_AS_PKG, we only
call it in that case anyways, and it's not suitable for the X_AS_PKG
case.
- Add in X dist menus for the X_AS_PKG case.
Approved by: re
Diffstat (limited to 'usr.sbin/sade/install.c')
-rw-r--r-- | usr.sbin/sade/install.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index e1763ec..3590405 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -797,7 +797,7 @@ installConfigure(void) } int -installFixupBin(dialogMenuItem *self) +installFixupBase(dialogMenuItem *self) { Device **devs; char *cp; @@ -843,19 +843,7 @@ installFixupBin(dialogMenuItem *self) return DITEM_SUCCESS | DITEM_RESTORE; } -int -installPackage(dialogMenuItem *self, char *desc, char *package) -{ - WINDOW *w = savescr(); - int i; - - dialog_clear_norefresh(); - msgNotify("Installing %s package...", desc); - i = package_add(package); - restorescr(w); - return i; -} - +#ifndef X_AS_PKG /* Fix side-effects from the the XFree86 installation */ int installFixupXFree(dialogMenuItem *self) @@ -867,17 +855,16 @@ 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; } +#endif #define QUEUE_YES 1 #define QUEUE_NO 0 |