aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib/pen.c
Commit message (Collapse)AuthorAgeFilesLines
* After around 20 years of duty it is time for pkg_install to retireBaptiste Daroussin2013-10-311-186/+0
| | | | Notes: svn path=/head/; revision=257444
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228990
* Backout libinstall.a -> libpkg commit.Florent Thoumie2011-05-171-0/+186
| | | | | | | Discussed with: erwin, brooks, bapt Notes: svn path=/head/; revision=222035
* - Take libinstall.a out of pkg_install and make it a proper shared library.Florent Thoumie2010-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. Notes: svn path=/head/; revision=207113
* Various fixes.Florent Thoumie2010-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] Notes: svn path=/head/; revision=206043
* When running pkg_add -r, check & install our dependencies for eachBrian Somers2009-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 Notes: svn path=/head/; revision=194497
* Use humanize_number to report pen-sizes so people don't have to countPoul-Henning Kamp2008-08-071-4/+15
| | | | | | | the digits when trying to install openoffice. Notes: svn path=/head/; revision=181376
* Use the length modifier 'll' instead of 'q' to print long longs.Stefan Farfeleder2004-07-281-1/+1
| | | | Notes: svn path=/head/; revision=132799
* - pkg_add spawns itself as argv[0] when installing dependent packages, toOliver Eikemeier2004-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 Notes: svn path=/head/; revision=131285
* replace __FUNCTION__ with standardized __func__.Alfred Perlstein2002-05-111-7/+7
| | | | | | | Requested by: jhb Notes: svn path=/head/; revision=96392
* fix build:Alfred Perlstein2002-05-111-10/+10
| | | | | | | | | | | you may not use string concatination with __FUNCTION__, replace all occurances of: __FUNCTION__ ": error string" with: "%s: error string" Notes: svn path=/head/; revision=96388
* Fix SCM ID's.David E. O'Brien2002-04-011-5/+3
| | | | Notes: svn path=/head/; revision=93520
* Choose more paranoid modes for the temporary directory so the user can'tJordan K. Hubbard2001-11-221-1/+1
| | | | | | | | | easily browse its contents. Noted by: Antoine Notes: svn path=/head/; revision=86757
* Improve recently committed fix for -t bug.Maxim Sobolev2001-11-151-1/+1
| | | | | | | | Submitted by: "Andrew L. Neporada" <andr@dgap.mipt.ru> MFC after: 3 days Notes: svn path=/head/; revision=86402
* Make `-t' flag in pkg_*(1) tools actually working.Maxim Sobolev2001-10-111-1/+2
| | | | | | | | | PR: 30843 Submitted by: Vladimir B. Grebenschikov <vova@express.ru> MFC after: 2 weeks Notes: svn path=/head/; revision=84795
* WARNS=2 cleanup.Maxim Sobolev2001-10-101-7/+7
| | | | | | | | Tested on: i386, alpha MFC after: 2 weeks Notes: svn path=/head/; revision=84745
* - Add which(1)-like functionality into pkg_info;Maxim Sobolev2001-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 Notes: svn path=/head/; revision=74699
* Cause fatal error messages to be a little more helpful to the programmerJordan K. Hubbard2000-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> Notes: svn path=/head/; revision=67429
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* correct usage of cleanup() everywhere - this became bogus when the warnx/errxJordan K. Hubbard1998-09-111-5/+9
| | | | | | | | stuff was added and nobody seems to have noticed. :) Noticed by: Josh MacDonald <jmacd@paris.CS.Berkeley.EDU> Notes: svn path=/head/; revision=39068
* 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
* 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-161-16/+14
| | | | | | | 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
* Use err(3). Cosmetics in usage string and man page.Philippe Charnier1997-10-081-15/+19
| | | | Notes: svn path=/head/; revision=30221
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Make pkg_install understand and use libftpio instead of its ownJordan K. Hubbard1996-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. 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-081-4/+4
| | | | Notes: svn path=/head/; revision=16179
* 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 forward my changes from 2.1Jordan K. Hubbard1995-10-251-57/+67
| | | | 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-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> 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
* Check dependencies BEFORE doing final extraction of package.Jordan K. Hubbard1995-04-261-1/+7
| | | | | | | | Fix a bug where direct-extract mode would have still invoked the packing list reordering commands. Notes: svn path=/head/; revision=8075
* Export the min_free() function.Jordan K. Hubbard1995-04-221-4/+5
| | | | Notes: svn path=/head/; revision=7999
* Correct a bogusly formatted printf().Jordan K. Hubbard1995-04-211-2/+2
| | | | Notes: svn path=/head/; revision=7972
* Use a more nicely formatted message when we run out of space.Jordan K. Hubbard1995-04-181-2/+2
| | | | Notes: svn path=/head/; revision=7926
* Rename TMPDIR to PKG_TMPDIR, just to make Jeff happy.. :-)Jordan K. Hubbard1995-02-161-3/+3
| | | | Notes: svn path=/head/; revision=6501
* Make pkg_install use /var/tmp instead of /tmpJordan K. Hubbard1995-02-151-2/+2
| | | | | | | Suggested by: hsu Notes: svn path=/head/; revision=6418
* Print a better verbose message when creating packages.Jordan K. Hubbard1994-10-141-3/+7
| | | | Notes: svn path=/head/; revision=3578
* Fix bug in home directory calculation that I introduced with the free spaceJordan K. Hubbard1994-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. Notes: svn path=/head/; revision=3575
* Be optionally verbose about free-space checking. I need this to ascertianJordan K. Hubbard1994-10-081-1/+3
| | | | | | | whether or not this always works. Notes: svn path=/head/; revision=3445
* Add the ability to verify that a package won't extract in the spaceJordan K. Hubbard1994-10-041-5/+30
| | | | | | | available. Thanks to Michael Elbel for pushing me in the right direction. Notes: svn path=/head/; revision=3364
* Made staging area configurable rather than assuming /tmp (-t)Jordan K. Hubbard1993-09-051-2/+13
| | | | Notes: svn path=/head/; revision=383
* Lots of misc tweaks, support for arbitrary separators in pkg_info, moreJordan K. Hubbard1993-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). Notes: svn path=/head/; revision=379
* The release version of my package install suite. Please see man pagesJordan K. Hubbard1993-08-261-0/+63
for info. Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=327