Deleted Added
full compact
menus.c (93919) menus.c (95327)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * Copyright (c) 1995
8 * Jordan Hubbard. All rights reserved.

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 */
34
35#ifndef lint
36static const char rcsid[] =
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * Copyright (c) 1995
8 * Jordan Hubbard. All rights reserved.

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 */
34
35#ifndef lint
36static const char rcsid[] =
37 "$FreeBSD: head/usr.sbin/sysinstall/menus.c 93919 2002-04-06 02:42:27Z murray $";
37 "$FreeBSD: head/usr.sbin/sysinstall/menus.c 95327 2002-04-23 22:16:41Z obrien $";
38#endif
39
40#include "sysinstall.h"
41
42/* Miscellaneous work routines for menus */
43static int
44setSrc(dialogMenuItem *self)
45{

--- 105 unchanged lines hidden (view full) ---

151checkDistXUser(dialogMenuItem *self)
152{
153 return IS_USER(Dists, DIST_XF86);
154}
155
156static int
157checkDistMinimum(dialogMenuItem *self)
158{
38#endif
39
40#include "sysinstall.h"
41
42/* Miscellaneous work routines for menus */
43static int
44setSrc(dialogMenuItem *self)
45{

--- 105 unchanged lines hidden (view full) ---

151checkDistXUser(dialogMenuItem *self)
152{
153 return IS_USER(Dists, DIST_XF86);
154}
155
156static int
157checkDistMinimum(dialogMenuItem *self)
158{
159 return Dists == (DIST_BIN | DIST_CRYPTO);
159 return Dists == (DIST_BASE | DIST_CRYPTO);
160}
161
162static int
163checkDistEverything(dialogMenuItem *self)
164{
165 return Dists == DIST_ALL && CRYPTODists == DIST_CRYPTO_ALL && \
166 _IS_SET(SrcDists, DIST_SRC_ALL) && \
167 _IS_SET(XF86Dists, DIST_XF86_ALL) && \

--- 603 unchanged lines hidden (view full) ---

771 NULL, dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
772 { NULL } },
773};
774
775DMenu MenuSubDistributions = {
776 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
777 "Select the distributions you wish to install.",
778 "Please check off the distributions you wish to install. At the\n"
160}
161
162static int
163checkDistEverything(dialogMenuItem *self)
164{
165 return Dists == DIST_ALL && CRYPTODists == DIST_CRYPTO_ALL && \
166 _IS_SET(SrcDists, DIST_SRC_ALL) && \
167 _IS_SET(XF86Dists, DIST_XF86_ALL) && \

--- 603 unchanged lines hidden (view full) ---

771 NULL, dmenuSubmenu, NULL, &MenuSubDistributions, '>', '>', '>' },
772 { NULL } },
773};
774
775DMenu MenuSubDistributions = {
776 DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
777 "Select the distributions you wish to install.",
778 "Please check off the distributions you wish to install. At the\n"
779 "very minimum, this should be \"bin\".",
779 "very minimum, this should be \"base\".",
780 NULL,
781 NULL,
782 { { "X Exit", "Exit this menu (returning to previous)",
783 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
784 { "All", "All system sources, binaries and X Window System",
785 NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
786 { "Reset", "Reset all of the below",
787 NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
780 NULL,
781 NULL,
782 { { "X Exit", "Exit this menu (returning to previous)",
783 checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' },
784 { "All", "All system sources, binaries and X Window System",
785 NULL, distSetEverything, NULL, NULL, ' ', ' ', ' ' },
786 { "Reset", "Reset all of the below",
787 NULL, distReset, NULL, NULL, ' ', ' ', ' ' },
788 { " bin", "Binary base distribution (required)",
789 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BIN },
788 { " base", "Binary base distribution (required)",
789 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_BASE },
790#ifdef __i386__
791 { " compat1x", "FreeBSD 1.x binary compatibility",
792 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT1X },
793 { " compat20", "FreeBSD 2.0 binary compatibility",
794 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT20 },
795 { " compat21", "FreeBSD 2.1 binary compatibility",
796 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT21 },
797 { " compat22", "FreeBSD 2.2.x and 3.0 a.out binary compatibility",

--- 1332 unchanged lines hidden ---
790#ifdef __i386__
791 { " compat1x", "FreeBSD 1.x binary compatibility",
792 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT1X },
793 { " compat20", "FreeBSD 2.0 binary compatibility",
794 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT20 },
795 { " compat21", "FreeBSD 2.1 binary compatibility",
796 dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_COMPAT21 },
797 { " compat22", "FreeBSD 2.2.x and 3.0 a.out binary compatibility",

--- 1332 unchanged lines hidden ---