aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/3.3.0_cvscvs2svn1999-09-168-8/+8
| | | | | | | 'RELENG_3_3_0_RELEASE'. This commit was manufactured to restore the state of the 3.3-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* $Id$ -> $FreeBSD$Peter Wemm1999-08-298-8/+8
| | | | Notes: svn path=/stable/3/; revision=50581
* MFC: use uname(3) to find out hardware platform, add braces and other minor ↵Michael Haro1999-08-233-4/+6
| | | | | | | cleanup Notes: svn path=/stable/3/; revision=50202
* MFC: revive PKG_ADD_BASEJordan K. Hubbard1999-05-121-1/+2
| | | | Notes: svn path=/stable/3/; revision=47040
* Make it possible to have separate install scripts as well as haveJordan K. Hubbard1998-12-161-1/+3
| | | | | | | | | an on-delete script. Submitted by: Rajesh Vaidheeswarran <rv@fore.com> Notes: svn path=/head/; revision=41866
* Fix support for uncompressed (".tar") package types. It's not completelySatoshi Asami1998-12-051-3/+3
| | | | | | | | fixed (chained dependency checking for pkg_add is broken, for one thing) but at least you can now create one package and use it. Notes: svn path=/head/; revision=41530
* Revert 1.33; lstat() is indeed the wrong thing to do here. I'llJordan K. Hubbard1998-10-141-2/+2
| | | | | | | revisit this after release. Notes: svn path=/head/; revision=40354
* Use lstat() rather than stat in determining whether a file exists,Jordan K. Hubbard1998-10-091-2/+2
| | | | | | | | otherwise we'll miss the "symlink exists but points nowhere" case. Submitted by: asami and/or possibly <ru@ucb.crimea.ua> Notes: svn path=/head/; revision=40085
* correct usage of cleanup() everywhere - this became bogus when the warnx/errxJordan K. Hubbard1998-09-114-33/+56
| | | | | | | | stuff was added and nobody seems to have noticed. :) Noticed by: Josh MacDonald <jmacd@paris.CS.Berkeley.EDU> Notes: svn path=/head/; revision=39068
* o Set paths internally for pkg_add for tools we might want to invoke.Jordan K. Hubbard1998-09-081-5/+5
| | | | | | | | | | | o Fix bogus suffix handling. o Tell user when an FTP url is being xferred rather than being silent. This sort of violates "the unix way" but it stops people from whacking ^C when they think it's hung, too. Sometimes visual indication of success is important. Doesn't spit out anything if not on a TTY. Notes: svn path=/head/; revision=38942
* Silence potentially bogus warning.Jordan K. Hubbard1998-09-011-2/+2
| | | | Notes: svn path=/head/; revision=38723
* Paranoia: use mkdtemp instead of mktempJacques Vidrine1998-07-281-4/+3
| | | | | | | | PR: bin/3212 Reviewed by: jkh@FreeBSD.ORG Notes: svn path=/head/; revision=37900
* Clarify "Cannot delete file as directory" errmessage.Tim Vanderhoek1998-07-181-3/+3
| | | | | | | PR: bin/1985 Notes: svn path=/head/; revision=37744
* Fix dependent-package loading when pkg_adding with an FTP URL. I brokeJordan K. Hubbard1998-04-121-9/+40
| | | | | | | | | this when I changed the playpen code to disallow recursion. I know this fixes a PR someplace but I can't seem to find it with the GNATs search tool. Notes: svn path=/head/; revision=35160
* Eliminate the idea of nested "playpens" entirely - it just obfuscatedJordan K. Hubbard1998-02-162-18/+16
| | | | | | | the code and, in at least one case, made it more dangerous to no gain. Notes: svn path=/head/; revision=33427
* MF22: Additional paranoia in cleanup.Jordan K. Hubbard1998-01-091-2/+2
| | | | Notes: svn path=/head/; revision=32371
* - do string-magic on the right variable when tryingJordan K. Hubbard1997-10-181-3/+4
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=30533
* Don't return from cleanup() - if it's removed the playpen then veryJordan K. Hubbard1997-10-131-4/+5
| | | | | | | | bad things will happen if we return to unsuspecting code. Noted to my great dismay by: Tim Vanderhoek <hoek@hwcn.org> Notes: svn path=/head/; revision=30387
* Use err(3). Cosmetics in usage string and man page.Philippe Charnier1997-10-088-79/+69
| | | | Notes: svn path=/head/; revision=30221
* Eliminate an annoying message.Jordan K. Hubbard1997-09-021-4/+2
| | | | Notes: svn path=/head/; revision=29032
* Change the naming conventions for preserve'd files and also documentJordan K. Hubbard1997-07-012-12/+43
| | | | | | | | | | | | the option in pkg_create. Now preserved files start with a . and are named .<filename>.<pkgname>.backup so that their purpose is more clear. Note that just using the preserve option without proper pkg_deps is also foolish since packages being deleted in the incorrect order with preserve on can generate some odd results. Notes: svn path=/head/; revision=27137
* YAMF22 - deletes and preserve option fixes.Jordan K. Hubbard1997-06-301-21/+25
| | | | Notes: svn path=/head/; revision=27092
* Add support for @option preserve - moves existing files out of the wayJordan K. Hubbard1997-06-291-4/+25
| | | | | | | | | 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. Notes: svn path=/head/; revision=27056
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-227-7/+7
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-147-7/+7
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Use new ftpGetURL interface, as result, report FTP errorAndrey A. Chernov1996-11-141-4/+7
| | | | | | | via ftpErrString or net error via hstrerror(h_errno) Notes: svn path=/head/; revision=19733
* Fix PR#1557 - chained package dependencies using URLs didn't work.Jordan K. Hubbard1996-10-141-2/+3
| | | | Notes: svn path=/head/; revision=18929
* Put verbosity in the right place.Jordan K. Hubbard1996-08-011-3/+3
| | | | Notes: svn path=/head/; revision=17378
* Add MD5 checksums to packing list for all files during pkg_create and useJordan K. Hubbard1996-07-303-42/+78
| | | | | | | | | | | | later at pkg_delete time to verify that you're deleting what you added. This, of course, does NOT cover the case where a file you still need hasn't changed! That's a tougher problem to solve, and this provides only the minimal amount of safety belt. MD5 checksums are stored in comment fields, so packages produced with these tools are backwards compatible with the older ones. Notes: svn path=/head/; revision=17338
* Make pkg_install understand and use libftpio instead of its ownJordan K. Hubbard1996-06-207-498/+30
| | | | | | | | copies of the ftp support routines. Also some cosmetic and minor bug fixes I've been meaning to incorporate for awhile. Notes: svn path=/head/; revision=16549
* Change min_free to return free space as an off_t instead of a size_t.Alexander Langer1996-06-082-6/+6
| | | | Notes: svn path=/head/; revision=16179
* Fix a couple of miscellaneous bugs and make pkg_add also support readingJordan K. Hubbard1996-03-121-7/+11
| | | | | | | from stdin. Notes: svn path=/head/; revision=14582
* Initialize the argument list in the unpack() routine to zero.Mike Pritchard1996-02-191-1/+2
| | | | | | | | This prevents a core dump due to the stack being trashed if pkg_add is asked to process something that really isn't a package file. Notes: svn path=/head/; revision=14155
* Fix to catch a stupid oversight on my part which allowed this thingJordan K. Hubbard1996-02-091-2/+2
| | | | | | | | to remove the current directory under certain circumstances. Submitted by: Richard J Kuhns <rjk@watson.grauel.com> Notes: svn path=/head/; revision=13994
* Bring my pkg_install improvements forward from 2.1.Jordan K. Hubbard1995-11-122-61/+54
| | | | Notes: svn path=/head/; revision=12219
* Fix the `pkg_add relative to .' bug. Thank you, Ville!Jordan K. Hubbard1995-10-311-2/+2
| | | | | | | Submitted by: Ville Eerola <ville@vlsi.fi> Notes: svn path=/head/; revision=11971
* Bring forward my changes from 2.1Jordan K. Hubbard1995-10-254-93/+188
| | | | Notes: svn path=/head/; revision=11780
* Don't be needlessly verbose in the pkg_create.Jordan K. Hubbard1995-08-281-4/+2
| | | | Notes: svn path=/head/; revision=10388
* Make the play-pen searching routine even more agile in tryingJordan K. Hubbard1995-08-261-1/+3
| | | | | | | to create a /usr/tmp dir if it makes sense to do so. Notes: svn path=/head/; revision=10339
* Use size_t properly in all fs size ops. This kills a bugJordan K. Hubbard1995-08-263-7/+5
| | | | | | | | | encountered by someone who had his /tmp on a partition with 3.7GB of free space! Spotted by: Francisco Rosich Viana <rosich@power.ci.uv.es> Notes: svn path=/head/; revision=10309
* Some fixes to make this "TMPDIR agile".Jordan K. Hubbard1995-08-171-14/+32
| | | | | | | Submitted by: jmacd + some of my own fixes. Notes: svn path=/head/; revision=10085
* Make "out of space in ${PKG_TMPDIR}" handling a bit more robust.Jordan K. Hubbard1995-08-061-1/+4
| | | | | | | Print the right thing, do the right thing. Back to you, Satoshi! Notes: svn path=/head/; revision=9953
* Round this out. Now seems to transfer packages properly over ftpJordan K. Hubbard1995-08-011-14/+18
| | | | | | | | as it was supposed to. PKG_PATH more sorely needed than ever now.. Hmmmm. Notes: svn path=/head/; revision=9838
* Argh! I hate my life! I can't seem to do anything right here today.Jordan K. Hubbard1995-08-012-9/+6
| | | | | | | This should restore functionality to the pkg_install suite. Notes: svn path=/head/; revision=9837
* Sync this up with ftp.c.Satoshi Asami1995-07-311-3/+0
| | | | Notes: svn path=/head/; revision=9808
* Remove dependency on sysinstall.Jordan K. Hubbard1995-07-311-14/+1
| | | | Notes: svn path=/head/; revision=9807
* Add ftp.c to makefile - that might make it work better. Sheesh!Jordan K. Hubbard1995-07-311-1/+1
| | | | Notes: svn path=/head/; revision=9806
* Change the environment variable this looks for from FTP_PASSIVE toJordan K. Hubbard1995-07-301-3/+2
| | | | | | | | | | FTP_PASSIVE_MODE. It would be really nice if we could standardise on this name so that all tools (like ncftp) that offer passive/active ftp selection would work seamlessly with one user environment variable setting. Notes: svn path=/head/; revision=9789
* Totally eliminate the dependency on libftp (which will be removed from theJordan K. Hubbard1995-07-303-50/+505
| | | | | | | | FreeBSD source tree) and switch to the internal ftp routines developed by Poul-Henning and used in sysinstall. Notes: svn path=/head/; revision=9787
* You can run pkg_info everywhere expect /var/db/pkg directory :-)Andrey A. Chernov1995-07-302-4/+14
| | | | | | | | | Running there you got any kind of strange errors from tar caused by treating directories as tar files! Fix it by adding new isfile(name) (check for reg. files) to simple fexists(name) calls. Notes: svn path=/head/; revision=9782