summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/info/perform.c
Commit message (Collapse)AuthorAgeFilesLines
* if a file in plist starts with / then do not prefix it with "prefix" [1]bapt2012-09-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | pkg info -g returns 1 if a file mismatch [2] flush stdout in pkg info -g [3] clean up quiet mode (-q | --quiet) output of pkg_version(1) [4] fix missing error call in uname check added to pkg_version(1) [5] fix pkg_add(1) fails to install with -C from bad path [6] only resolve path from pkg_add(1) -p if the given prefix do not start with a '/' [7] PR: bin/13128 [1] bin/139015 [2] bin/113702 [3] bin/142570 [4] bin/146857 [5] bin/157543 [6] Submitted by: cy [1] Anton Yuzhaninov <citrin@citrin.ru> [2] Ighighi <ighighi@gmail.com> [3] "N.J. Mann" <njm@njm.me.uk> [4] gcooper [5] David Naylor <naylor.b.david@gmail.com> [6] netchild [7] MFC after: 2 weeks
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* Backout libinstall.a -> libpkg commit.flz2011-05-171-1/+1
| | | | Discussed with: erwin, brooks, bapt
* - Take libinstall.a out of pkg_install and make it a proper shared library.flz2010-04-231-1/+1
| | | | | | | | | | | - 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.
* When running pkg_add -r, check & install our dependencies for eachbrian2009-06-191-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix pkg_info when specifying a remote package.flz2008-04-161-17/+22
| | | | MFC after: 1 week
* Add -K option to pkg_add and pkg_info.flz2006-01-091-1/+1
| | | | | | | | | This option saves packages to PKGDIR (if defined or current directory by default) as they are downloaded. Silent a warning when -n is used and package has a +DISPLAY file. Approved by: krion MFC after: 1 week
* - pkg_info: flag -r: (show packages this packages depends on (documentation ↵eik2004-06-291-20/+12
| | | | | | | | | | | | | | | | change)) - pkg_info: new flag -j (show the requirements script) - pkg_info: fix verbose output when used on packages - better handling of corrupt entries in /var/db/pkg - differ between corrupt entires and packages not installed - various small fixes PR: 56989, 57016, 57029, 26468
* - match package version numbers with relational operatorseik2004-06-291-1/+29
| | | | | | | | | | | | | | - use glob patterns when matching packages by origin - csh-style {...} choices in glob matching - pkg_info: new flag -E (list matching package names only) - pkg_version: new flag -T (test if a given name matches a pattern) - new flag -X (interpret pattern as an extended regular expression) PR: 56961
* Implement the 'Q' option which is like 'q' (quiet output) exceptmdodd2003-03-251-0/+2
| | | | | | | | that it prefaces the output with the package name. This is useful for things like this: # pkg_info -Qsa | awk -F : '{print $2 "\t" $1}' | sort -rn | expand -t 10
* Use --fast-read mode to extract metadata from package file. Since metadatasobomax2002-09-091-2/+16
| | | | | | | | files are located at the very beginning of the package, this patch in conjuction with latest tar(1) --fast-mode fix greatly speeds up pkg_info(1) operation on package files. MFC after: 1 week
* - Make use of DEPOROGINs (if there are any) when installing package;sobomax2002-05-141-62/+18
| | | | | | | - fix few bogosities here and there; - move some common routines into the library. MFC after: 2 weeks
* In a origin lookup mode (-O) don't bail out when encountering empty packagesobomax2002-05-051-2/+8
| | | | | | | | directory, because this prevent this option from being used from the package-depends target of bsd.port.mk since it creates such empty dir during its normal operation. MFC after: 6 days
* Add ability to query installed packages based on origin.sobomax2002-05-041-0/+61
|
* Fix SCM ID's.obrien2002-04-011-5/+3
|
* - Introduce a notion of `packing list format version'. This allows makingsobomax2001-10-101-0/+2
| | | | | | | | | | | | | | | | | | non-backward compatible changes in the format of packing list and handle them gracefully; - fix a longstanding issue with symlinks handling. Instead of recording checksum for the file symlink points to, record checksum for the value returned by readlink(2). For backward compatibility increase packing list format minor version number and provide a fallback to a previous behaviour, if package in question was created with older version of pkg_* tools; Submitted by: Alec Wolman <wolman@cs.washington.edu>, sobomax - don't record MD5 checksum for device nodes, fifo's and other non-regular files. Submitted by: nbm MFC in: 2 weeks
* WARNS=2 cleanup.sobomax2001-10-101-8/+9
| | | | | Tested on: i386, alpha MFC after: 2 weeks
* Various fixes and improvements:sobomax2001-09-191-2/+0
| | | | | | | | | | | | - fix harmless compiler's warnings (unused variables and missed prototype); - before refusing to delete package because "there are packages installed that require this package" check that packages in question is actually installed; - add new `-r' option to pkg_delete(8), which instructs it to delete not only packages specified at command line, but all packages that depend on specified packages as well. MFC after: 2 weeks
* Cosmetics: replace dozen instances of "(tmp = getenv(PKG_DBDIR) ? tmp : ↵sobomax2001-08-021-5/+2
| | | | | | | | DEF_LOG_DIR)" with macro. MFC after: 1 month
* Usability tweak:sobomax2001-08-021-1/+1
| | | | | | | | | Use '' quotes instead of `' to delimit names of files and packages in warning and error messages, because it is easier to cut-n-paste name in question that way (single click) without confusing the shell. And yes, I know that it is less eye-candy... MFC after: 1 month
* Decapitalise first letter of warning message.sobomax2001-03-261-1/+1
|
* In which(1) mode resolve "/../", "/./" in arguments and PLIST contents. Thissobomax2001-03-261-40/+67
| | | | | | is done without realpath() to avoid symlinks resolving. Submitted by: sobomax, Garrett Rooney <rooneg@electricjellyfish.net>
* - Add which(1)-like functionality into pkg_info;sobomax2001-03-231-5/+155
| | | | | | | | | - 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
* Put back several lines that I erroneously deleted in my previous commit. Thissobomax2001-03-011-0/+3
| | | | | | should fix recent segfault of `pkg_info -e'. Submitted by: Garrett Rooney <rooneg@electricjellyfish.net>, knu
* - Merge recently added into pkg_info(1) regex/glob matching functionality intosobomax2001-02-271-143/+26
| | | | | | | | | pkg_delete(1) as well; - add a new `-a' option for pkg_delete(1) to delete all installed packages; - add a new `-i' option for pkg_delete(1) to request simple rm(1)-like interactive confirmation before attempting to delete each package. Silently approved by: jkh, -ports
* - By default treat supplied arguments as a shell globs to be matched againstsobomax2001-02-081-20/+135
| | | | | | | | | | | | | | | | | | | names of installed packages; - add new `-G' option to disable glob matching and revert to previous behaviour (I have no idea why this could be necessary, though); - add a new `-x' option, which instructs pkg_info(1) to treat supplied arguments as a regular expressions. For example: $ pkg_info foo\* - displays information about all packages whose names start from foo $ pkg_info -G foo\*-1.1 - displays information about package named "foo*-1.1" $ pkg_info -x ^foo.\* - displays information about all packages whose names start from foo Original idea submitted by: Edwin Groothuis <mavetju@chello.nl> (bin/24695) Reviewed by: jkh, roam Approved by: jkh
* Add a -g flag for verifying an installed package against its recordedjkh2001-02-031-0/+2
| | | | | | | | checksums (to see if it's been modified post-installation). Naturally, this mechanism is only as secure as the contents of /var/db/pkg if you're using it for auditing purposes. Submitted by: Roman Shterenzon <roman@xpert.com>
* Add "-o" option to pkg_create(1) and pkg_info(1). This option intended to recordsobomax2000-10-231-0/+2
| | | | | | | | a path of the port from which package has been created within FreeBSD Ports Collection and will be used to improve pkg_version(1) and similar tools. Reviewed by: ports@FreeBSD.org, jkh Approved by: jkh
* Make the ``-r'' option actually do something :)marko2000-09-251-0/+2
| | | | | | Also tidy up it's output. Approved by: jkh
* New option "-s" to query size of the installed package(s).sobomax2000-07-071-0/+2
| | | | | | | PR: 19445 Submitted by: sobomax Reviewed by: knu Approved by: silence
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* -Wall fixes. Ambigious if/elses, uninitialized values, missing headers,billf1999-08-111-1/+2
| | | | missing prototypes, and empty format strings.
* When listing the installed packages, do it in alphabetical order.jdp1999-07-301-9/+24
|
* Make it possible to have separate install scripts as well as havejkh1998-12-161-1/+5
| | | | | | 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-2/+3
| | | | | stuff was added and nobody seems to have noticed. :) Noticed by: Josh MacDonald <jmacd@paris.CS.Berkeley.EDU>
* Eliminate the idea of nested "playpens" entirely - it just obfuscatedjkh1998-02-161-3/+8
| | | | the code and, in at least one case, made it more dangerous to no gain.
* 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-6/+7
|
* 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 a small optimization which shaves about a second off the timejkh1996-06-161-28/+22
| | | | it takes to build the `All' menu in configPackages.
* Bring forward my changes from 2.1jkh1995-10-251-6/+8
|
* You can run pkg_info everywhere expect /var/db/pkg directory :-)ache1995-07-301-2/+2
| | | | | | 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.
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Fix a long-standing bug that broke pkg_info utterly and probably madejkh1995-05-101-5/+9
| | | | | pkg_add a little wiggy too. Document the fact that pkg_info can also take a URL.
* Whoops! One of my automatics was initialized to garbage. Fix it.jkh1995-04-281-2/+2
|
* Make pkg_info URL aware (and also make it use the PKG_PATH properly, likejkh1995-04-261-21/+40
| | | | | everyone else). Try this: pkg_info ftp://freebsd.org/pub/FreeBSD/packages/all/gmake-3.73.tgz
* Add support for the ${PKG_DBDIR} environment variable. /var/db/pkg is thejkh1995-04-191-4/+11
| | | | | default, and probably not something you'd ever change, but now it's possible to do so for local/custom installations.
* Added new function show_index() which does a 'smart' display of the index file.swallace1995-01-051-3/+3
| | | | | | | | | Index descriptions are limited to MAXINDEXSIZE (60) chars. Any description beyond that is truncated. Also, only the first line is displayed as well. This allows pkg_info -a -I to be formated in two columns with one line per package for easy reading. Reviewed by: jkh
* Many of John T. Kohl's patches from NetBSD. Thanks, John!jkh1994-12-061-2/+10
| | | | Submitted by: jkohl
OpenPOWER on IntegriCloud