aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-12-03 19:42:30 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-12-03 19:42:30 +0000
commit6478fb73c53a885abc5ec33544dda8d2b5702833 (patch)
tree2330b2e820293e92250cbdf9424205027bcf9bf9 /usr.sbin/sysinstall
parent544cd270718f99cd8ace270283bee201401acc10 (diff)
Notes
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r--usr.sbin/sysinstall/dist.c10
-rw-r--r--usr.sbin/sysinstall/dist.h5
-rw-r--r--usr.sbin/sysinstall/menus.c2
3 files changed, 14 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index 3e58408c8ddb5..ed761b1f0dc24 100644
--- a/usr.sbin/sysinstall/dist.c
+++ b/usr.sbin/sysinstall/dist.c
@@ -907,6 +907,7 @@ distExtractAll(dialogMenuItem *self)
int old_dists, retries = 0, status = DITEM_SUCCESS;
char buf[512];
WINDOW *w;
+ int want_perl_package = 0;
#ifdef X_AS_PKG
int want_x_package = 0;
#endif
@@ -927,6 +928,11 @@ distExtractAll(dialogMenuItem *self)
w = savescr();
msgNotify("Attempting to install all selected distributions..");
+ /* Clear perl dist flag, but remember it was present. */
+ if (Dists & DIST_PERL) {
+ want_perl_package = 1;
+ Dists &= ~DIST_PERL;
+ }
#ifdef X_AS_PKG
/* Clear any XFree86 dist flags, but remember they were present. */
if(Dists & DIST_XF86)
@@ -938,9 +944,11 @@ distExtractAll(dialogMenuItem *self)
while (Dists && ++retries < 3)
distExtract(NULL, DistTable);
+ if (want_perl_package)
+ status |= installPackage(NULL, "Perl", "perl");
#ifdef X_AS_PKG
if (want_x_package)
- status |= installX11package(NULL);
+ status |= installPackage(NULL, "XFree86", "XFree86-4");
#endif
dialog_clear_norefresh();
diff --git a/usr.sbin/sysinstall/dist.h b/usr.sbin/sysinstall/dist.h
index 4847977e1d0c7..b63ffa65d1633 100644
--- a/usr.sbin/sysinstall/dist.h
+++ b/usr.sbin/sysinstall/dist.h
@@ -27,7 +27,8 @@
#define DIST_CATPAGES 0x10000
#define DIST_PORTS 0x20000
#define DIST_LOCAL 0x40000
-#define DIST_ALL 0x7FFFF
+#define DIST_PERL 0x80000
+#define DIST_ALL 0xFFFFF
/* Subtypes for CRYPTO distribution */
#define DIST_CRYPTO_CRYPTO 0x0001
@@ -124,7 +125,7 @@
/* Canned distribution sets */
#define _DIST_USER \
- ( DIST_BASE | DIST_DOC | DIST_MANPAGES | DIST_DICT | DIST_CRYPTO )
+ ( DIST_BASE | DIST_DOC | DIST_MANPAGES | DIST_DICT | DIST_CRYPTO | DIST_PERL )
#define _DIST_DEVELOPER \
( _DIST_USER | DIST_PROFLIBS | DIST_INFO | DIST_SRC )
diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c
index 1af79d1f433bf..b8aef0f84a09a 100644
--- a/usr.sbin/sysinstall/menus.c
+++ b/usr.sbin/sysinstall/menus.c
@@ -999,6 +999,8 @@ DMenu MenuSubDistributions = {
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PORTS },
{ " local", "Local additions collection",
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_LOCAL},
+ { " perl", "Perl",
+ dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_PERL },
{ " XFree86", "The XFree86 distribution",
#ifdef X_AS_PKG
dmenuFlagCheck, dmenuSetFlag, NULL, &Dists, '[', 'X', ']', DIST_XF86 },