summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/dist.c
Commit message (Collapse)AuthorAgeFilesLines
* - Rename installFixupBin to installFixupBase to finish up the 'bin' tojhb2003-01-171-430/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '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
* Move the realloc outside the inner loop. This reduces the number of timesobrien2003-01-151-1/+1
| | | | we do the realloc.
* Fix a typo: s/save_free/safe_free/.jhb2003-01-091-1/+1
|
* save_free the buf.obrien2003-01-091-0/+1
|
* Separate the uses of a buffer and make it dynamically sized.obrien2003-01-091-15/+16
| | | | | Approved by: scottl(re), jhb(re) Reviewed by: kuriyama
* Compare pointers to NULL rather than make it look like they are ints.obrien2003-01-061-2/+2
|
* - Convert the installation of the X package to using installPackage()jhb2002-12-031-1/+9
| | | | | | | | | | | rather than installX11package(). - Add a perl psuedo-dist that installs the perl package. The perl distribution is selected by default when a User distribution set is selected. It is not selected when a Minimal distribution set is selected. The perl distribution may be toggled manually in the custom menu just as other distributions. Approved by: re
* Enable the compat4x distribution on Alpha as well as i386.jhb2002-11-271-0/+2
| | | | Approved by: re
* Expand X_AS_PKG so that we don't declare distribution bitmasks or menusjhb2002-11-271-7/+34
| | | | | | | for the X distributions if X_AS_PKG is defined. Tested on: i386 Approved by: re
* Mount devfs with nmount(2) instead of mount(2). This error was maskedjhb2002-11-051-1/+12
| | | | | because errors from mount(2) were explicitly ignored. I didn't fix that bug.
* MFS: Update sysinstall text for the number and size or ports in the portsbmah2002-10-251-2/+2
| | | | | | collection. src/release/sysinstall/dist.c 1.175.2.29 -> 1.175.2.30
* The ports collection now contains over 7000 applications and consumesmurray2002-05-271-2/+2
| | | | | | about 165MB of space when first installed. Submitted by: rpratt
* Add the ability to use Bzip'ed packages.obrien2002-04-301-3/+4
| | | | | | | Also add the ability to use Bzip'ed distributions -- but this is exclusive of being able to use Gzip'ed distributions. Sponsored by: FreeBSD Mall, Inc.
* Change the name of the 'bin' distribution to 'base'.obrien2002-04-231-4/+4
| | | | | | | This is done since it contains much more than /bin, and also gets in the way when making a combined install+fixit CD. OK'ed by: jkh
* Switch to using XFree86 version 4. We do this thru installing the package,obrien2002-04-021-0/+20
| | | | | | | | so know we have proper PKG registration and dependency information. This is a WIP for 5.0 DP #1, so it is still rough around the edges and does not GC the old XFree86 3.3.6 handling stuff that should be GC'ed. Sponsored by: FreeBSD Mall, Inc.
* Update number of ports available.murray2002-03-111-1/+1
|
* Update the number of ports available.murray2002-01-261-1/+1
|
* Compilers are very picky about matching opeining and closing brackets.jhay2002-01-151-1/+0
|
* Unbreak installation for the CD-ROM and possiblhy other media types.green2002-01-141-1/+14
| | | | | Obtained from: LOMAC project Sponsored by: DARPA, NAI Labs
* An XFree86 install should not depend on any compat libs any longer.obrien2001-12-101-9/+0
| | | | | | (1) We don't need compat3x and compat4x as we build the bits on the proper release now (vs. getting them from the XFree people). (2) We handle the compat2x needs thru proper port dependancies now.
* We do have a compat4x dist for Alpha.obrien2001-12-101-1/+1
|
* Silence more warnings.murray2001-09-221-2/+2
|
* Increase disk space estimate for installing the ports collection frommurray2001-09-141-1/+1
| | | | | | 70MB to 100MB. Submitted by: rpratt
* 4000 -> 5800 ports. We really need to add some smarts to themurray2001-09-051-1/+1
| | | | | ports/INDEX creation script to update #defines in header files and entities in the doc/ tree.
* Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As thedd2001-07-021-10/+10
| | | | | | | | | names suggest, they perform methods on Device's. In addition, they check that the pointer passed to them is valid; if it isn't, they pretend that the action failed. This fixes some crashes due to NULL dereferences (e.g., PR 26509). Approved by: jkh (some time ago)
* Various changes to the messages so that they are now appropriate for bothnik2001-06-271-1/+1
| | | | CD and DVD releases of FreeBSD.
* Clarify that we're talking about KBytes per second vs kBits per second.jkh2001-04-091-1/+1
| | | | Reminded by: bde
* According with RFC 2330 ("Framework for IP Performance Metrics", fromjkh2001-04-081-1/+1
| | | | | | | Paxson et al, Status: Informational, May 1998), we should use "bits per second" and "k" as 1000 not 1024 for throughput measures. Submitted by: Eduardo Souza Machado da Silva <esms@acm.org>
* Include docs with "default X dist" so XF86Config won't complain about it.jkh2001-03-221-1/+1
|
* Don't install Kerberos stuff if user has selected minimal or "user"jkh2001-03-221-2/+2
| | | | modes.
* Teach sysinstall about the `compat4x' distribution.murray2001-02-091-0/+4
| | | | Approved by: jkh
* Finish the job of conditionalizing the PC98 stuff.jkh2000-11-221-3/+3
|
* Minimal distribution now gets cropto binaries.kuriyama2000-11-111-1/+3
| | | | | | This can avoid waring about "no sshd" at booting after installation. Approved by: jkh
* Update ports count to "over 4000"jkh2000-11-031-1/+1
|
* More explicitly set crypto bits.jkh2000-10-261-2/+3
| | | | Partially submitted by: Jeff Kletsky <jeff@spotlife.com>
* One whack at the idea of having "security profiles" which select thejkh2000-09-221-42/+8
| | | | | | | | appropriate(?) defaults for "low", "medium" and "high" security environments. Medium is basically what we currently have with a little seat-belt tightening where it made sense. Low is the same as medium but without the tightening. High is positively fascist with nothing turned on by default and an automatic call to 911 if it can find a modem.
* Enable crypto by default with "canned" distributions (it can stilljkh2000-09-161-0/+2
| | | | be deselected or simply not chosen in a custom install).
* MFS: sync with -stable by removing the now-vestigal X_AS_PKG stuff.jkh2000-09-071-18/+0
|
* Don't offer the PC98 link kit or setup on non-i386 installs.obrien2000-07-311-0/+4
|
* Don't give the DEC Alpha user the chance to install the X servers that areobrien2000-07-251-0/+6
| | | | non-existant on non-i386 platforms.
* Terminate, with extreme prejudice, the USAResident hack whichjkh2000-07-241-9/+2
| | | | | | does bad things to /etc/make.conf in certain situations. Also soften the "don't install crypto from the USA!" messages since, except for RSA (which is still noted), that's not so true anymore.
* - Clarify some of the text in sysinstall in regards to the cryto bits.jhb2000-07-201-10/+12
| | | | | | - Note that we are up to about 3600 ports now rather than about 3000 ports. Submitted by: kris
* Sigh, when the DIST_LOCAL thing was added, it unfortunately wasn't addedjkh2000-03-181-1/+1
| | | | | completely. Take out another gratuitous warning which is omitted when All is selected and local dist does not exist.
* Do the right thing with USA_RESIDENTjkh2000-03-101-4/+4
|
* Fix inexplicable crypto->des reversion.jkh2000-03-081-1/+1
|
* Revise this for the brave new world of "crypto"jkh2000-02-291-44/+37
| | | | | Submitted by: markm Approved by: me!
* If user says they're in the USA, record that fact in /etc/make.confjkh2000-02-191-0/+4
|
* add missing newline to previous cosmetic fixes.jkh2000-02-181-1/+1
|
* If no distribution file is found, abort the installation. Previousdcs2000-02-171-2/+4
| | | | | | | behavior silently ignored the problem. This affects installations from a filesystem, and possible other types of media. Approved by: jkh
* If the installation media disappears in the process of installingdcs2000-02-171-2/+4
| | | | | | | | | a distribution, recognize it and treat as fatal media error. This happens in the case of a timeout on FTP installations where the user chooses not to select another FTP site, and resulted in segmentation fault. Approved by: jkh
OpenPOWER on IntegriCloud