summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/package.c
Commit message (Collapse)AuthorAgeFilesLines
* 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... :)
* YAMF22jkh1997-03-081-6/+2
|
* Don't bogotify pkg_add's stderr.jkh1997-02-141-2/+2
|
* Revert some of the previous change - on second thought...jkh1997-02-141-6/+18
|
* o Try to be more aggressive about reading in old configuration datajkh1997-02-141-20/+11
| | | | | | | | | | | | | | | | | so that we're more useful in multi-user mode. This is still not 100%, but it pulls in a lot more than it used to. Some of the "composite" variables in /etc/sysconfig are going to take more work. o Always write /etc/resolv.conf and /etc/hosts if it makes sense to do so. o Reset media properly when reselecting. Longstanding bogon. o Pull SIGPIPE handling out of package.c; I'm actually hoping to handle this differently shortly. o Fix bug where cancel in TCP setup dialog still checked data fields. I think this closes a PR, but I will have to go look.
* It's easier to go forwards than backwards with this, and the RELENG_2_1_0jkh1997-02-071-1/+1
| | | | | sysinstall was already broken (I think there's a PR for this somewhere). This will require some additional changes elsewhere, like bringing in pw.
* Cosmetic tweaks.jkh1997-01-291-2/+2
| | | | Also redirect stderr to Debug when running multiuser.
* OK, I've got two ideas to file in the "really seemed like a good ideajkh1997-01-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | at the time, but on further reflection..." bucket with these changes. 1. Checking the media before frobbing the disks was a fine idea, and I wish it could have worked, but that leads to a rather difficult situation when you need to mount the media someplace and you're about to: a) Chroot away from your present root. b) Newfs the root to be. You're basically screwed since there's no place to stick the mount point where it will be found following the newfs/chroot (and eliminating the chroot in favor of just using the "root bias" feature would work great for the distributions but not the pkg_add calls done by the package installer). 2. Automatic timeout handling. I don't know why, but alarm() frequently returns no residual even when the alarm didn't go off, which defies the man page but hey, since when was that so unusual? Take out timeouts but retain the code which temporarily replaces the SIGINT handler in favor of a more media-specific handler. This way, at least, if it's hanging you can at least whap it. I think the timeout code would have been losing over *really slow* links anyway, so it's probably best that it go. This should fix NFS, tape & CDROM installs again (serves me right for getting complacent and using just the FTP installs in my testing).
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Do something I've wanted to do for quite some time - collapse all thejkh1997-01-031-5/+2
| | | | | common layout code into some work functions and make all the layout-using routine adopt them. Also reorganize includes and generally clean up.
OpenPOWER on IntegriCloud