summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/add/perform.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* -Wall fixes. Ambigious if/elses, uninitialized values, missing headers,billf1999-08-111-5/+5
| | | | missing prototypes, and empty format strings.
* Make it possible to have separate install scripts as well as havejkh1998-12-161-11/+37
| | | | | | an on-delete script. Submitted by: Rajesh Vaidheeswarran <rv@fore.com>
* correct usage of cleanup() everywhere - this became bogus when the warnx/errxjkh1998-09-111-6/+7
| | | | | stuff was added and nobody seems to have noticed. :) Noticed by: Josh MacDonald <jmacd@paris.CS.Berkeley.EDU>
* Fail as documented when a dependency cannot be foundjkh1998-09-081-1/+7
| | | | | PR: 7318 Submitted by: djv@bedford.net
* Fix recursive package add problem (for on-disk package files) I introducedjkh1998-08-271-3/+6
| | | | | with the change in semantics to make_playpen(). Now package dependencies more than 2 levels deep should work again. Pass the hat.
* Avoid race-conditions on playpen delete.eivind1998-07-171-2/+5
|
* Eliminate the idea of nested "playpens" entirely - it just obfuscatedjkh1998-02-161-8/+13
| | | | the code and, in at least one case, made it more dangerous to no gain.
* I must have been smoking crack when I made this change. Using sh -cjkh1998-01-211-4/+4
| | | | | in a vsystem() call is just a ludicrous way of calling sh -c "sh -c ..." Whoops! I don't know my own bloody code here!
* MF22: fix to install script handling.jkh1998-01-171-4/+4
|
* Don't assume install script is directly runnable - use sh -c.jkh1998-01-081-4/+4
|
* - do string-magic on the right variable when tryingjkh1997-10-181-2/+2
| | | | | | | | | | to find dependent packages on the local disk (i.e. package given as filename, not URL) - document $PKG_PATH - use -v on pkg_add for dependent packages Submitted by: hubertf@NetBSD.ORG Obtained from: NetBSD
* Don't return from cleanup() - if it's removed the playpen then veryjkh1997-10-131-1/+2
| | | | | bad things will happen if we return to unsuspecting code. Noted to my great dismay by: Tim Vanderhoek <hoek@hwcn.org>
* Use err(3). Cosmetics in usage string and man page.charnier1997-10-081-36/+50
|
* Add support for @option preserve - moves existing files out of the wayjkh1997-06-291-6/+1
| | | | | | before replacing them (using pkgname to make this hopefully unique). Delete also moves them back, if they exist, resulting in a package which can be "backed out" with reasonable safety.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Fix a bogon with playpen size calculation for pkg of "-". It's amazingjkh1997-02-151-1/+3
| | | | this ever worked, actually.
* 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.
* Correct a problem which broke +DISPLAY file handling.jkh1997-01-131-3/+4
|
* Fix PR#1557 - chained package dependencies using URLs didn't work.jkh1996-10-141-31/+32
|
* Make -force work for pkg_add.jkh1996-07-311-2/+2
|
* Make pkg_install understand and use libftpio instead of its ownjkh1996-06-201-9/+5
| | | | | copies of the ftp support routines. Also some cosmetic and minor bug fixes I've been meaning to incorporate for awhile.
* fix PR#599jkh1996-06-031-1/+4
| | | | Submitted-By: jdp
* Fix a couple of miscellaneous bugs and make pkg_add also support readingjkh1996-03-121-9/+15
| | | | from stdin.
* Bring my pkg_install improvements forward from 2.1.jkh1995-11-121-25/+16
|
* Fix the `pkg_add relative to .' bug. Thank you, Ville!jkh1995-10-311-3/+5
| | | | Submitted by: Ville Eerola <ville@vlsi.fi>
* Bring forward my changes from 2.1jkh1995-10-251-183/+176
|
* Some fixes to make this "TMPDIR agile".jkh1995-08-171-6/+6
| | | | Submitted by: jmacd + some of my own fixes.
* Make "out of space in ${PKG_TMPDIR}" handling a bit more robust.jkh1995-08-061-6/+4
| | | | Print the right thing, do the right thing. Back to you, Satoshi!
* o Fix PR# bin/643 - always set "where_to" properly.jkh1995-07-301-2/+3
| | | | o Nuke dependence on libftp - it's about to die!
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-9/+8
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Use mtree -U instead of -u and put back error check. Thanks Rod!jkh1995-04-281-5/+7
|
* Don't bother checking the return status of the mtree command - it returnsjkh1995-04-271-9/+4
| | | | non-zero stats when it changes things, too.
* Further work on making all this more robust in the face of failure.jkh1995-04-261-36/+67
| | | | | | | Also allow URL specification for a package. This works for things the package may depend on, too. Allow PKG_PATH to be used anywhere a package is being searched for.
* Check dependencies BEFORE doing final extraction of package.jkh1995-04-261-62/+76
| | | | | Fix a bug where direct-extract mode would have still invoked the packing list reordering commands.
* My handling of the missing dependency but !Verbose was wrong. Makejkh1995-04-261-2/+7
| | | | the right message come out.
* Second round:jkh1995-04-221-44/+115
| | | | | | | 1. Make paths work correctly. 2. Make pkg_add generally more robust in the face of failure. 3. Make the depend messages come out on stderr or stdout, but not both interspersed! :-)
* 1. Add an new @option directive. You'll understand it better in a moment.jkh1995-04-221-3/+7
| | | | | | 2. Fix a long-standing bug in pkg_add where the failure of one package in a multipackage installation (pkg_add *.tgz) would blow you right out of the water. Ick.
* Greatly simplify the calling of mtree - the error handling wasn't workingjkh1995-04-191-37/+4
| | | | | anyway, at least not with FreeBSD's mtree, and the arguments were being built incorrectly.
* Add support for the ${PKG_DBDIR} environment variable. /var/db/pkg is thejkh1995-04-191-7/+11
| | | | | default, and probably not something you'd ever change, but now it's possible to do so for local/custom installations.
* Neither of these tools really told you what you needed to know neatlyjkh1995-04-101-5/+11
| | | | | and succinctly in verbose mode. I hope people find this more to their liking.
* Add true support for dependency lists.jkh1995-04-091-7/+22
| | | | | | | | | | | | | | | | | | | | | | 1. pkg_create now has a -P argument for specifying dependencies on the command line. 2. pkg_add will honor dependencies and chain-load them automatically if it finds the required package(s) in the same directory as the package that is being loaded. For best results, install packages from a directory containing all the packages you'll possibly need (like /usr/ports/packages/all). 2 remaining flaws: 1. pkg_add looks in one place (where you were when you loaded the primary pkg) for depended packages. If you can come up with a search path scheme that's not a total hack - be my guest! 2. Recursive dependency expansion can result in the name of a dep being listed more than once. This doesn't bother pkg_add since it checks for package existance with pkg_info and will skip already-loaded packages. I don't know how/if pkg_delete handles this yet, however. I need to look into it.
* Many of John T. Kohl's patches from NetBSD. Thanks, John!jkh1994-12-061-8/+121
| | | | Submitted by: jkohl
* Protect against old packages with bogus @name fields. Use basename_of()jkh1994-11-171-2/+3
| | | | | on the name before recording it in /var/db/pkg. Sorry, Kaleb, you were right after all! It was my fault! :)
* Whoops - variable was in wrong scope. Correct.jkh1994-10-141-3/+2
|
* Fix bug in home directory calculation that I introduced with the free spacejkh1994-10-141-5/+9
| | | | | checking code. Fix the free space checking code, while I'm at it! ;) Thanks to Garrett for spotting the home dir problem.
* Add the ability to verify that a package won't extract in the spacejkh1994-10-041-4/+14
| | | | available. Thanks to Michael Elbel for pushing me in the right direction.
* The environment variable PKG_PREFIX is set to the first @cwd commandasami1994-05-251-4/+3
| | | | | | | in the packing list, or the argument to -p if it is specified, before the requirements/installation/deinstallation scripts are called. This enables the scripts to be written to work on the final installation destination, even if the user uses -p to override the package's default.
* Remove find_name(), replace with more generic find_plist() function.jkh1994-05-251-16/+3
|
OpenPOWER on IntegriCloud