summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib/pen.c
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* Backout libinstall.a -> libpkg commit.flz2011-05-171-0/+186
| | | | Discussed with: erwin, brooks, bapt
* - Take libinstall.a out of pkg_install and make it a proper shared library.flz2010-04-231-186/+0
| | | | | | | | | | | - Rework the wrapper support to check libpkg version as well as pkg_install version. - Add libfetch to _prebuild_libs. - There are no new features introduced. Notes: the API is not stable, so basically, do not use libpkg in your projects for now. Also there's no manpage for libpkg yet, because the API will change drastically. I repeat, do not use libpkg for now.
* Various fixes.flz2010-04-011-4/+0
| | | | | | | | | | | | | | | | - Replace hardcoded INDEX version. [1] - Fix a buffer overlap. [2] - Remove empty package when fetching fails and -K is used. [3] - Remove useless chmod2() after mkdtemp(3). [4] - Replace mkdir(1) call with mkdir(2). [5] - Get rid of some vsystem() calls. - Switch from lstat(2) to open(2) in fexists(). - Try rename(2) in move_file() first. - Bump PKG_INSTALL_VERSION to 20100401. PR: bin/145101 [1], bin/139492 [2], bin/144919 [3] bin/144920 [4], bin/144921 [5] Submitted by: gcooper [1,2,3,4,5]
* When running pkg_add -r, check & install our dependencies for eachbrian2009-06-191-20/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package rather than expecting our top level package to get all of the dependencies correct. Previously, the code depended on the top level package having all of the pkgdep lines in +CONTENTS correct and in the right order, but that doesn't always happen due to code such as this (in security/gnutls/Makefile): .if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO) LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 .... With such conditional dependencies, my 'sophox-packages' package won't install. The dependency tree looks like this: sophox-packages ... x11/gnome2 x11/gnome-applets net/libgweather devel/libsoup security/gnutls security/libgcrypt security/libgpg-error ... x11/gnome2 archivers/file-roller archivers/gtar archivers/lzop archivers/lzo2 ... gnutls doesn't depend on lzo2 initially, but lzo2 is dragged into the mix via other dependencies and is built by the initial 'make'. The subsequent package generation for gnutls adds a pkgdep line for lzo2 to gnutls' +CONTENTS but the pkgdeps in sophox-packages' +CONTENTS has gnutls *before* lzo2. As a result, sophox-packages cannot install; gnutls fails because lzo2 is missing, 82 more packages fail because gnutls is missing and the whole thing spirals into a super-confusing mess! MFC after: 3 weeks
* Use humanize_number to report pen-sizes so people don't have to countphk2008-08-071-4/+15
| | | | the digits when trying to install openoffice.
* Use the length modifier 'll' instead of 'q' to print long longs.stefanf2004-07-281-1/+1
|
* - pkg_add spawns itself as argv[0] when installing dependent packages, toeik2004-06-291-1/+1
| | | | | | | | | | | | | | | | | | enable the use as a port on older systems - use absolute paths in all calls to external programs, to account for strange PATH settings - use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on FreeBSD 4.x as a port. - conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the pkg_install tools can be kept in sync on 4.x and 5.x - Bump PKG_INSTALL_VERSION Reviewed by: portmgr (bento run) MFC after: 4 weeks
* replace __FUNCTION__ with standardized __func__.alfred2002-05-111-7/+7
| | | | Requested by: jhb
* fix build:alfred2002-05-111-10/+10
| | | | | | | | you may not use string concatination with __FUNCTION__, replace all occurances of: __FUNCTION__ ": error string" with: "%s: error string"
* Fix SCM ID's.obrien2002-04-011-5/+3
|
* Choose more paranoid modes for the temporary directory so the user can'tjkh2001-11-221-1/+1
| | | | | | easily browse its contents. Noted by: Antoine
* Improve recently committed fix for -t bug.sobomax2001-11-151-1/+1
| | | | | Submitted by: "Andrew L. Neporada" <andr@dgap.mipt.ru> MFC after: 3 days
* Make `-t' flag in pkg_*(1) tools actually working.sobomax2001-10-111-1/+2
| | | | | | PR: 30843 Submitted by: Vladimir B. Grebenschikov <vova@express.ru> MFC after: 2 weeks
* WARNS=2 cleanup.sobomax2001-10-101-7/+7
| | | | | Tested on: i386, alpha MFC after: 2 weeks
* - Add which(1)-like functionality into pkg_info;sobomax2001-03-231-1/+1
| | | | | | | | | - fix a harmless bug in match_installed() function introduced in my last commit; - uniformely reorder includes across files. Submitted by: Garrett Rooney <rooneg@electricjellyfish.net> Not objected by: jkh, -ports
* Cause fatal error messages to be a little more helpful to the programmerjkh2000-10-221-8/+8
| | | | | | | | | concerning where they're taking place. Switch from [r]index() to str[r]chr() functions, which are more ISO compliant. Prompted by: Edward Welbourne <eddy@vortigen.demon.co.uk>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* correct usage of cleanup() everywhere - this became bogus when the warnx/errxjkh1998-09-111-5/+9
| | | | | stuff was added and nobody seems to have noticed. :) Noticed by: Josh MacDonald <jmacd@paris.CS.Berkeley.EDU>
* Paranoia: use mkdtemp instead of mktempnectar1998-07-281-4/+3
| | | | | PR: bin/3212 Reviewed by: jkh@FreeBSD.ORG
* Fix dependent-package loading when pkg_adding with an FTP URL. I brokejkh1998-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.
* Eliminate the idea of nested "playpens" entirely - it just obfuscatedjkh1998-02-161-16/+14
| | | | the code and, in at least one case, made it more dangerous to no gain.
* MF22: Additional paranoia in cleanup.jkh1998-01-091-2/+2
|
* Use err(3). Cosmetics in usage string and man page.charnier1997-10-081-15/+19
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* 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.
* Make pkg_install understand and use libftpio instead of its ownjkh1996-06-201-3/+1
| | | | | copies of the ftp support routines. Also some cosmetic and minor bug fixes I've been meaning to incorporate for awhile.
* Change min_free to return free space as an off_t instead of a size_t.alex1996-06-081-4/+4
|
* Fix to catch a stupid oversight on my part which allowed this thingjkh1996-02-091-2/+2
| | | | | to remove the current directory under certain circumstances. Submitted by: Richard J Kuhns <rjk@watson.grauel.com>
* Bring forward my changes from 2.1jkh1995-10-251-57/+67
|
* Don't be needlessly verbose in the pkg_create.jkh1995-08-281-4/+2
|
* Make the play-pen searching routine even more agile in tryingjkh1995-08-261-1/+3
| | | | to create a /usr/tmp dir if it makes sense to do so.
* Use size_t properly in all fs size ops. This kills a bugjkh1995-08-261-2/+2
| | | | | | 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>
* Some fixes to make this "TMPDIR agile".jkh1995-08-171-14/+32
| | | | Submitted by: jmacd + some of my own fixes.
* Make "out of space in ${PKG_TMPDIR}" handling a bit more robust.jkh1995-08-061-1/+4
| | | | Print the right thing, do the right thing. Back to you, Satoshi!
* Check dependencies BEFORE doing final extraction of package.jkh1995-04-261-1/+7
| | | | | Fix a bug where direct-extract mode would have still invoked the packing list reordering commands.
* Export the min_free() function.jkh1995-04-221-4/+5
|
* Correct a bogusly formatted printf().jkh1995-04-211-2/+2
|
* Use a more nicely formatted message when we run out of space.jkh1995-04-181-2/+2
|
* Rename TMPDIR to PKG_TMPDIR, just to make Jeff happy.. :-)jkh1995-02-161-3/+3
|
* Make pkg_install use /var/tmp instead of /tmpjkh1995-02-151-2/+2
| | | | Suggested by: hsu
* Print a better verbose message when creating packages.jkh1994-10-141-3/+7
|
* Fix bug in home directory calculation that I introduced with the free spacejkh1994-10-141-2/+2
| | | | | checking code. Fix the free space checking code, while I'm at it! ;) Thanks to Garrett for spotting the home dir problem.
* Be optionally verbose about free-space checking. I need this to ascertianjkh1994-10-081-1/+3
| | | | whether or not this always works.
* Add the ability to verify that a package won't extract in the spacejkh1994-10-041-5/+30
| | | | available. Thanks to Michael Elbel for pushing me in the right direction.
* Made staging area configurable rather than assuming /tmp (-t)jkh1993-09-051-2/+13
|
* Lots of misc tweaks, support for arbitrary separators in pkg_info, morejkh1993-09-031-1/+1
| | | | | intelligent name handling in pkg_create. Most of these files are changed because of rcsid's being different in my cvs tree and freefall's (foo).
* The release version of my package install suite. Please see man pagesjkh1993-08-261-0/+63
for info.
OpenPOWER on IntegriCloud