summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/package.c
Commit message (Collapse)AuthorAgeFilesLines
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-031-270/+0
| | | | | | | | digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade).
* Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be ↵brucec2010-02-081-1/+1
| | | | | | | | configured when running ldconfig. PR: bin/138945 Approved by: rrs (mentor) MFC after: 3 days
* Turns out its not a good idea to assume the packages that might bekensmith2008-10-221-4/+11
| | | | | | | | | selected from the "dists" are all on the current volume. Looks like xorg won't fit on disc1 for 6.4-REL. Iterate through media volumes for packages that wind up being selected from the dists section in addition to the ones that get selected from the packages menu. MFC after: 2 days
* Package installation is handled by starting off with the list of packageskensmith2008-10-151-1/+1
| | | | | | | | | | | | | | | | | | the user selected and then recursively installing their dependencies, finally installing the ones the user selected after the recursion unwinds. Since users often select "high-level" packages that are on a higher numbered disc for the multi-volume release CDROMS this resulted in excessive disc swapping while installing things like kde, gnome, etc. Cut down on disc swapping by iterating through the disc volumes one at a time if we notice the package set is on multiple volumes. If a package is on a higher volume don't install it yet, but still "process it" so we get its dependencies installed. Because of the way the package sets for releases get assembled we're guaranteed dependencies will be on the same volume or lower. Reviewed by: jhb MFC after: 1 week
* Don't set PACKAGE_BUILDING while installing packages.flz2008-07-171-1/+0
| | | | | | Submitted by: erwin Discussed on: http://lists.freebsd.org/pipermail/freebsd-ports/2008-June/049074.html MFC after: 1 week
* Fix numerous warnings. Aside from menu items in system.c and menu.cjhb2006-02-281-1/+2
| | | | | | | | this now compiles on i386 with WARNS?= 3. Most of the fixes included adding missing 'static' keywords to internal functions, using fully-defined terminators in statically defined arrays of structs, and various signed vs unsigned mismatches. Also G/C'd unused configSecurity() function.
* s/package_exists/package_installed/g as that's much more descriptive ofobrien2004-01-021-1/+1
| | | | what the function does.
* I think we can stop doing 'ldconfig -aout' during the install now.obrien2004-01-021-2/+0
| | | | The base install doesn't have any a.out bits anymore and hasn't for years.
* s/package_exists/package_installed/g as that's much more descriptive ofobrien2004-01-021-3/+2
| | | | what the function does.
* Add the ability to use Bzip'ed packages.obrien2002-04-301-6/+14
| | | | | | | 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.
* Remove some last vestages of _interactiveHack.obrien2002-04-071-6/+1
| | | | | | Also tie stderr to something for the invocation of pkg_add. Sponsored by: FreeBSD Mall, Inc.
* Our persistent-state, large temporary file dir is /VAR/tmp, not /USR/tmp.obrien2002-04-011-1/+1
|
* Don't bogusly look for inexact matches because a package contains a '-'steve2002-01-251-3/+2
| | | | | | for packages like sawfish-gnome for instance. Reviewed by: murray, sobomax
* Fix the type of the NULL arg to execl()brian2001-07-091-2/+4
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As thedd2001-07-021-3/+3
| | | | | | | | | 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)
* Check for both hint files in /var/run (elf and aout) and eventually createolgeni2001-05-121-1/+3
| | | | | | | | | | | | | | | | | | | them. Sysinstall used to check /var/run/ld.so.hints (aout related) and create hints with the ldconfig command, but the ldconfig command alone will generate elf hints only. The correct behavior is: * If /var/run/ld-elf.so.hints does not exist, generate elf hints * If /var/run/ld.so.hints does not exist, generate aout hints (using ldconfig with the -aout option) This will help ports that check for aout libraries using ldconfig in their pkg-req scripts. Approved by: jkh MFC after: 1 weeks
* 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>
* Set BATCH and PACKAGE_BUILDING to environment before exec()ing pkg_addjkh2000-11-101-0/+5
| | | | | | in order to suppress onwonted package interaction. Submitted by: steve
* We still need a hack for rsaref package; add it. This doesn'tjkh2000-03-181-2/+6
| | | | affect CDs since they don't contain the rsaref package anyway.
* Remove PkgInteractive hack - it won't work like this.jkh2000-03-121-2/+1
|
* o Add support for loading the rsaref or rsaintl packages, dependingjkh2000-02-291-1/+2
| | | | | | | | | | on locale. o Allow use of "G" in label editor to stand for gigabytes. This is actually an unrelated patch which I meant to commit separately but what the heck, it's late. Partially submitted by: phk
* Whoops, this function is supposed to return a boolean status, notjkh1999-12-201-1/+1
| | | | flags.
* Bah, I got the MFC and this commit backwards. :)jkh1999-12-191-2/+1
|
* More cosmetic surgery and a nasty null pointer bug in index.c fixed.jkh1999-12-191-1/+3
|
* Yet more cosmetic fixes (I have a little time to kill while waiting forjkh1999-12-181-0/+1
| | | | | something else, so I might as well tweak 3.4's look-and-feel for the better while I'm at it - final release build should be sometime later on tonite).
* In retrospect, msgNotify() should leave its contents on the screenjkh1999-12-171-1/+1
| | | | | longer to give the user something to look at while things are happening. Change it to do so and insert the appropriate screen saves elsewhere.
* Completely rip-out and redesign sysinstall's refresh model as welljkh1999-12-141-5/+4
| | | | | | | | | | | | as redoing all the menus to have proper, or at least non-hallucinogenic, keyboard accelerators. This requires my recent update to libdialog to work properly and will probably also exhibit some other "interesting" behavior while the last few missing screen clears are found (which is why I'm not going to MFC immediately). At least now, however, sysinstall does not gratuitously redraw random screens at the drop of a hat and drive serial console installers out of their minds.
* Oh crud, did I ever screw the pooch! Rather than sync this with -stable,jkh1999-09-021-1/+6
| | | | | | | | | | I backed-out the changes in -current and didn't touch stable at all (I thought I had my patch order reversed, not what actually happened). AIEEE! I can't even blame the crack for this one since I broke my crack pipe a few weeks ago. I think sleep deprivation gets the blame for this one. Medal for noticing this one goes to: Jim Bloom <bloom@acm.org>
* MFC: Catch 3.2-stable sysinstall up to 4.0-current level functionality,jkh1999-09-011-6/+1
| | | | | | | bringing in DHCP support. The only thing I left out were Poul-Henning's newfs changes since I'm not sure if he's brought the rest of that support into -stable yet. If it turns out that this is the case, I'll MFC those changes too.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add an option for more fully enabling linux compatibility.jkh1999-07-061-2/+2
|
* Eliminate some varargs abuse.jkh1999-07-021-5/+13
|
* Do a clean-up pass on error/warning messages.jkh1999-05-271-13/+5
|
* deal with a.out ldconfig paths also.jkh1999-05-181-1/+2
|
* o Prevent alpha installs from grabbing x86 bits and vice-versa, at leastjkh1999-05-151-7/+12
| | | | | | | | | | | | | | on CDs and FTP sites. o Collapse some redundant code. o Fix typo'd menu. o Restrict searches properly to packages rather than categories. o Small tweaks to signal handling. All RELENG_3 candidates.
* DTRT for "Latest" search keywords.jkh1999-05-141-3/+4
|
* Be properly verbose.jkh1999-05-141-2/+5
|
* Correct return status logic a bit.jkh1999-05-141-9/+11
|
* Completely change the way package_add() does its work. Now wejkh1999-05-121-11/+19
| | | | | handle dependencies at a lower level and use package add for this. Also made index searches stricter.
* Erm, delete the package base hint again. Gotta lay off the crack!jkh1999-05-121-7/+3
| | | | | | I simply forgot that I'd already proven this to be a "really good idea that unfortunately didn't work at all" the *last* time I tried it. Now I remember. Hmmm. I WILL defeat this evil problem.
* Set PKG_ADD_BASE hint in a certain case.jkh1999-05-121-4/+9
|
* Don't install compat22 by default.jkh1999-05-071-1/+6
| | | | Add some more safety belts to package foo.
* o Make package matching for specific package loading use the Latest/jkh1999-04-271-2/+7
| | | | | | | | feature of packages now so that no version info is embedded. o Add a default X desktop menu offering afterstep, enlightenment, KDE, GNOME and Windowmaker desktops instead of the boring twm(1) based one if the user so chooses. This will require a little testing.
* Totally change the way variables are accounted for in sysinstall.jkh1999-02-051-2/+2
| | | | | | | | Now we know which variables are internal and which need to be backed to /etc/rc.conf.site. rc.conf is not touched now. Also kget kernel change information back properly and set up a loader.rc file to use it.
* Fix various bogons reported in this PR.jkh1997-10-151-4/+5
| | | | | PR: 4765 Submitted by: fdiv
* Put all variables in VAR_ #define's to force a single location for allpst1997-09-171-2/+2
| | | | | of these magic knobs. This is purely cosmetic and a documentation issue so we don't have to glop through the source code looking for gems.
* MF22: pst's changes.jkh1997-09-161-3/+6
| | | | Submitted by: pst
* YAMF22jkh1997-06-131-1/+16
|
* YAMF22jkh1997-03-221-8/+20
|
* Merge all my sysinstall changes over to the 2.1 branch.jkh1997-03-111-19/+7
| | | | I just have this feeling... :)
OpenPOWER on IntegriCloud