1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Sync with 2.2.

This commit is contained in:
Jordan K. Hubbard 1997-03-10 21:11:57 +00:00
parent 930bb1a4da
commit 628febdfb7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23629
11 changed files with 101 additions and 38 deletions

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: dispatch.c,v 1.10 1997/02/22 14:11:26 peter Exp $
* $Id: dispatch.c,v 1.11 1997/03/09 22:25:43 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -86,6 +86,7 @@ static struct _word {
{ "mediaSetCPIOVerbosity", mediaSetCPIOVerbosity },
{ "mediaGetType", mediaGetType },
{ "optionsEditor", optionsEditor },
{ "register", configRegister }, /* Alias */
{ "addGroup", userAddGroup },
{ "addUser", userAddUser },
{ "shutdown", _shutdown },

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: dist.c,v 1.99 1997/02/22 14:11:31 peter Exp $
* $Id: dist.c,v 1.100 1997/03/08 12:57:41 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -175,6 +175,7 @@ static Distribution XF86FontDistTable[] = {
};
static int distMaybeSetDES(dialogMenuItem *self);
static int distMaybeSetPorts(dialogMenuItem *self);
int
distReset(dialogMenuItem *self)
@ -194,7 +195,7 @@ distSetDeveloper(dialogMenuItem *self)
distReset(NULL);
Dists = _DIST_DEVELOPER;
SrcDists = DIST_SRC_ALL;
return distMaybeSetDES(self);
return distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -206,7 +207,7 @@ distSetXDeveloper(dialogMenuItem *self)
XF86Dists = DIST_XF86_BIN | DIST_COMPAT21 | DIST_XF86_SET | DIST_XF86_CFG | DIST_XF86_LIB | DIST_XF86_PROG | DIST_XF86_MAN | DIST_XF86_SERVER | DIST_XF86_FONTS;
XF86ServerDists = DIST_XF86_SERVER_SVGA | DIST_XF86_SERVER_VGA16;
XF86FontDists = DIST_XF86_FONTS_MISC;
return distSetXF86(NULL) | distMaybeSetDES(self);
return distSetXF86(NULL) | distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -215,7 +216,7 @@ distSetKernDeveloper(dialogMenuItem *self)
distReset(NULL);
Dists = _DIST_DEVELOPER;
SrcDists = DIST_SRC_SYS;
return distMaybeSetDES(self);
return distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -223,7 +224,7 @@ distSetUser(dialogMenuItem *self)
{
distReset(NULL);
Dists = _DIST_USER;
return distMaybeSetDES(self);
return distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -234,7 +235,7 @@ distSetXUser(dialogMenuItem *self)
XF86Dists = DIST_XF86_BIN | DIST_COMPAT21 | DIST_XF86_SET | DIST_XF86_CFG | DIST_XF86_LIB | DIST_XF86_MAN | DIST_XF86_SERVER | DIST_XF86_FONTS;
XF86ServerDists = DIST_XF86_SERVER_SVGA | DIST_XF86_SERVER_VGA16;
XF86FontDists = DIST_XF86_FONTS_MISC;
return distSetXF86(NULL) | distMaybeSetDES(self);
return distSetXF86(NULL) | distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -253,7 +254,7 @@ distSetEverything(dialogMenuItem *self)
XF86Dists = DIST_XF86_ALL;
XF86ServerDists = DIST_XF86_SERVER_ALL;
XF86FontDists = DIST_XF86_FONTS_ALL;
return distMaybeSetDES(self);
return distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -305,6 +306,26 @@ distMaybeSetDES(dialogMenuItem *self)
return i | DITEM_RECREATE;
}
static int
distMaybeSetPorts(dialogMenuItem *self)
{
dialog_clear_norefresh();
if (!msgYesNo("Would you like to install the FreeBSD ports collection?\n\n"
"This will give you ready access to over 800 ported software\n"
"packages, though at the cost of around 35MB of space when \"clean\"\n"
"and possibly much more than that if a lot of the distribution tarballs\n"
"are loaded (unless you have the 2nd CD from a FreeBSD CDROM distribution\n"
"available and can mount it on /cdrom, of course, in which case this is far\n"
"less of a problem).\n\n"
"The ports collection is a very valuable resource and, if you have at least\n"
"100MB to spare in your /usr partition, well worth having around.\n\n"
"For more information on the ports collection, see http://www.freebsd.org/ports\n"))
Dists |= DIST_PORTS;
else
Dists &= ~DIST_PORTS;
return DITEM_SUCCESS | DITEM_RESTORE;
}
int
distSetSrc(dialogMenuItem *self)
{

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: install.c,v 1.175 1997/03/08 16:17:46 jkh Exp $
* $Id: install.c,v 1.176 1997/03/09 22:25:44 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -595,12 +595,16 @@ installNovice(dialogMenuItem *self)
dialog_clear_norefresh();
if (!msgYesNo("Would you like to register your FreeBSD system at this time?\n\n"
"PLEASE take just 5 minutes to do this - if we're ever to get any\n"
"PLEASE, take just 5 minutes to do this. If we're ever to get any\n"
"significant base of commercial software for FreeBSD, we need to\n"
"be able to provide more information about the size of our user base.\n"
"be able to provide more information about the size of our user community.\n"
"This is where your registration can really help us, and you can also\n"
"sign up for the new FreeBSD newsletter (its free!) at the same time."))
"sign up for the new FreeBSD newsletter (its free!) at the same time.\n"))
configRegister(NULL);
else
msgConfirm("OK, but if you should change your mind then you always can register\n"
"later by typing ``/stand/sysinstall register'' or by simply visiting our\n"
"web site at http://www.freebsd.org/register.html");
/* XXX Put whatever other nice configuration questions you'd like to ask the user here XXX */

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: menus.c,v 1.121 1997/03/09 22:25:46 jkh Exp $
* $Id: menus.c,v 1.122 1997/03/10 19:38:14 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -122,8 +122,10 @@ clearX11Fonts(dialogMenuItem *self)
return DITEM_SUCCESS | DITEM_REDRAW;
}
#define IS_DEVELOPER(dist, extra) (((dist) == (_DIST_DEVELOPER | (extra))) || ((dist) == (_DIST_DEVELOPER | DIST_DES | (extra))))
#define IS_USER(dist, extra) (((dist) == (_DIST_USER | (extra))) || ((dist) == (_DIST_USER | DIST_DES | (extra))))
#define IS_DEVELOPER(dist, extra) ((((dist) & (_DIST_DEVELOPER | (extra))) == (_DIST_DEVELOPER | (extra))) || \
(((dist) & (_DIST_DEVELOPER | DIST_DES | (extra))) == (_DIST_DEVELOPER | DIST_DES | (extra))))
#define IS_USER(dist, extra) ((((dist) & (_DIST_USER | (extra))) == (_DIST_USER | (extra))) || \
(((dist) & (_DIST_USER | DIST_DES | (extra))) == (_DIST_USER | DIST_DES | (extra))))
static int
checkDistDeveloper(dialogMenuItem *self)

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: dispatch.c,v 1.10 1997/02/22 14:11:26 peter Exp $
* $Id: dispatch.c,v 1.11 1997/03/09 22:25:43 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -86,6 +86,7 @@ static struct _word {
{ "mediaSetCPIOVerbosity", mediaSetCPIOVerbosity },
{ "mediaGetType", mediaGetType },
{ "optionsEditor", optionsEditor },
{ "register", configRegister }, /* Alias */
{ "addGroup", userAddGroup },
{ "addUser", userAddUser },
{ "shutdown", _shutdown },

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: install.c,v 1.175 1997/03/08 16:17:46 jkh Exp $
* $Id: install.c,v 1.176 1997/03/09 22:25:44 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -595,12 +595,16 @@ installNovice(dialogMenuItem *self)
dialog_clear_norefresh();
if (!msgYesNo("Would you like to register your FreeBSD system at this time?\n\n"
"PLEASE take just 5 minutes to do this - if we're ever to get any\n"
"PLEASE, take just 5 minutes to do this. If we're ever to get any\n"
"significant base of commercial software for FreeBSD, we need to\n"
"be able to provide more information about the size of our user base.\n"
"be able to provide more information about the size of our user community.\n"
"This is where your registration can really help us, and you can also\n"
"sign up for the new FreeBSD newsletter (its free!) at the same time."))
"sign up for the new FreeBSD newsletter (its free!) at the same time.\n"))
configRegister(NULL);
else
msgConfirm("OK, but if you should change your mind then you always can register\n"
"later by typing ``/stand/sysinstall register'' or by simply visiting our\n"
"web site at http://www.freebsd.org/register.html");
/* XXX Put whatever other nice configuration questions you'd like to ask the user here XXX */

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: menus.c,v 1.121 1997/03/09 22:25:46 jkh Exp $
* $Id: menus.c,v 1.122 1997/03/10 19:38:14 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -122,8 +122,10 @@ clearX11Fonts(dialogMenuItem *self)
return DITEM_SUCCESS | DITEM_REDRAW;
}
#define IS_DEVELOPER(dist, extra) (((dist) == (_DIST_DEVELOPER | (extra))) || ((dist) == (_DIST_DEVELOPER | DIST_DES | (extra))))
#define IS_USER(dist, extra) (((dist) == (_DIST_USER | (extra))) || ((dist) == (_DIST_USER | DIST_DES | (extra))))
#define IS_DEVELOPER(dist, extra) ((((dist) & (_DIST_DEVELOPER | (extra))) == (_DIST_DEVELOPER | (extra))) || \
(((dist) & (_DIST_DEVELOPER | DIST_DES | (extra))) == (_DIST_DEVELOPER | DIST_DES | (extra))))
#define IS_USER(dist, extra) ((((dist) & (_DIST_USER | (extra))) == (_DIST_USER | (extra))) || \
(((dist) & (_DIST_USER | DIST_DES | (extra))) == (_DIST_USER | DIST_DES | (extra))))
static int
checkDistDeveloper(dialogMenuItem *self)

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: dispatch.c,v 1.10 1997/02/22 14:11:26 peter Exp $
* $Id: dispatch.c,v 1.11 1997/03/09 22:25:43 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -86,6 +86,7 @@ static struct _word {
{ "mediaSetCPIOVerbosity", mediaSetCPIOVerbosity },
{ "mediaGetType", mediaGetType },
{ "optionsEditor", optionsEditor },
{ "register", configRegister }, /* Alias */
{ "addGroup", userAddGroup },
{ "addUser", userAddUser },
{ "shutdown", _shutdown },

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: dist.c,v 1.99 1997/02/22 14:11:31 peter Exp $
* $Id: dist.c,v 1.100 1997/03/08 12:57:41 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -175,6 +175,7 @@ static Distribution XF86FontDistTable[] = {
};
static int distMaybeSetDES(dialogMenuItem *self);
static int distMaybeSetPorts(dialogMenuItem *self);
int
distReset(dialogMenuItem *self)
@ -194,7 +195,7 @@ distSetDeveloper(dialogMenuItem *self)
distReset(NULL);
Dists = _DIST_DEVELOPER;
SrcDists = DIST_SRC_ALL;
return distMaybeSetDES(self);
return distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -206,7 +207,7 @@ distSetXDeveloper(dialogMenuItem *self)
XF86Dists = DIST_XF86_BIN | DIST_COMPAT21 | DIST_XF86_SET | DIST_XF86_CFG | DIST_XF86_LIB | DIST_XF86_PROG | DIST_XF86_MAN | DIST_XF86_SERVER | DIST_XF86_FONTS;
XF86ServerDists = DIST_XF86_SERVER_SVGA | DIST_XF86_SERVER_VGA16;
XF86FontDists = DIST_XF86_FONTS_MISC;
return distSetXF86(NULL) | distMaybeSetDES(self);
return distSetXF86(NULL) | distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -215,7 +216,7 @@ distSetKernDeveloper(dialogMenuItem *self)
distReset(NULL);
Dists = _DIST_DEVELOPER;
SrcDists = DIST_SRC_SYS;
return distMaybeSetDES(self);
return distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -223,7 +224,7 @@ distSetUser(dialogMenuItem *self)
{
distReset(NULL);
Dists = _DIST_USER;
return distMaybeSetDES(self);
return distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -234,7 +235,7 @@ distSetXUser(dialogMenuItem *self)
XF86Dists = DIST_XF86_BIN | DIST_COMPAT21 | DIST_XF86_SET | DIST_XF86_CFG | DIST_XF86_LIB | DIST_XF86_MAN | DIST_XF86_SERVER | DIST_XF86_FONTS;
XF86ServerDists = DIST_XF86_SERVER_SVGA | DIST_XF86_SERVER_VGA16;
XF86FontDists = DIST_XF86_FONTS_MISC;
return distSetXF86(NULL) | distMaybeSetDES(self);
return distSetXF86(NULL) | distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -253,7 +254,7 @@ distSetEverything(dialogMenuItem *self)
XF86Dists = DIST_XF86_ALL;
XF86ServerDists = DIST_XF86_SERVER_ALL;
XF86FontDists = DIST_XF86_FONTS_ALL;
return distMaybeSetDES(self);
return distMaybeSetDES(self) | distMaybeSetPorts(self);
}
int
@ -305,6 +306,26 @@ distMaybeSetDES(dialogMenuItem *self)
return i | DITEM_RECREATE;
}
static int
distMaybeSetPorts(dialogMenuItem *self)
{
dialog_clear_norefresh();
if (!msgYesNo("Would you like to install the FreeBSD ports collection?\n\n"
"This will give you ready access to over 800 ported software\n"
"packages, though at the cost of around 35MB of space when \"clean\"\n"
"and possibly much more than that if a lot of the distribution tarballs\n"
"are loaded (unless you have the 2nd CD from a FreeBSD CDROM distribution\n"
"available and can mount it on /cdrom, of course, in which case this is far\n"
"less of a problem).\n\n"
"The ports collection is a very valuable resource and, if you have at least\n"
"100MB to spare in your /usr partition, well worth having around.\n\n"
"For more information on the ports collection, see http://www.freebsd.org/ports\n"))
Dists |= DIST_PORTS;
else
Dists &= ~DIST_PORTS;
return DITEM_SUCCESS | DITEM_RESTORE;
}
int
distSetSrc(dialogMenuItem *self)
{

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: install.c,v 1.175 1997/03/08 16:17:46 jkh Exp $
* $Id: install.c,v 1.176 1997/03/09 22:25:44 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -595,12 +595,16 @@ installNovice(dialogMenuItem *self)
dialog_clear_norefresh();
if (!msgYesNo("Would you like to register your FreeBSD system at this time?\n\n"
"PLEASE take just 5 minutes to do this - if we're ever to get any\n"
"PLEASE, take just 5 minutes to do this. If we're ever to get any\n"
"significant base of commercial software for FreeBSD, we need to\n"
"be able to provide more information about the size of our user base.\n"
"be able to provide more information about the size of our user community.\n"
"This is where your registration can really help us, and you can also\n"
"sign up for the new FreeBSD newsletter (its free!) at the same time."))
"sign up for the new FreeBSD newsletter (its free!) at the same time.\n"))
configRegister(NULL);
else
msgConfirm("OK, but if you should change your mind then you always can register\n"
"later by typing ``/stand/sysinstall register'' or by simply visiting our\n"
"web site at http://www.freebsd.org/register.html");
/* XXX Put whatever other nice configuration questions you'd like to ask the user here XXX */

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: menus.c,v 1.121 1997/03/09 22:25:46 jkh Exp $
* $Id: menus.c,v 1.122 1997/03/10 19:38:14 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -122,8 +122,10 @@ clearX11Fonts(dialogMenuItem *self)
return DITEM_SUCCESS | DITEM_REDRAW;
}
#define IS_DEVELOPER(dist, extra) (((dist) == (_DIST_DEVELOPER | (extra))) || ((dist) == (_DIST_DEVELOPER | DIST_DES | (extra))))
#define IS_USER(dist, extra) (((dist) == (_DIST_USER | (extra))) || ((dist) == (_DIST_USER | DIST_DES | (extra))))
#define IS_DEVELOPER(dist, extra) ((((dist) & (_DIST_DEVELOPER | (extra))) == (_DIST_DEVELOPER | (extra))) || \
(((dist) & (_DIST_DEVELOPER | DIST_DES | (extra))) == (_DIST_DEVELOPER | DIST_DES | (extra))))
#define IS_USER(dist, extra) ((((dist) & (_DIST_USER | (extra))) == (_DIST_USER | (extra))) || \
(((dist) & (_DIST_USER | DIST_DES | (extra))) == (_DIST_USER | DIST_DES | (extra))))
static int
checkDistDeveloper(dialogMenuItem *self)