aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/info
Commit message (Collapse)AuthorAgeFilesLines
* After around 20 years of duty it is time for pkg_install to retireBaptiste Daroussin2013-10-316-1574/+0
| | | | Notes: svn path=/head/; revision=257444
* Provide an option to users to shoot themselves in the foot.Eitan Adler2012-11-261-1/+9
| | | | | | | | | Reviewed by: bapt Approved by: cperciva MFC after: 1 month Notes: svn path=/head/; revision=243554
* Warn users when using pkg tools if it looks like theyEitan Adler2012-10-221-0/+1
| | | | | | | | | | | | be be pkgng users. Reviewed by: bapt (earlier version) Reviewed by: kwm Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241830
* if a file in plist starts with / then do not prefix it with "prefix" [1]Baptiste Daroussin2012-09-183-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=240682
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-304-4/+4
| | | | Notes: svn path=/head/; revision=228990
* Staticify elide_root() for now to fix build.Xin LI2011-10-241-1/+1
| | | | Notes: svn path=/head/; revision=226708
* Avoid printing // for packages that install to /Ed Maste2011-10-241-3/+11
| | | | | | | | | I have some packages that install to / (for whatever reason). Right now we print entries of the form //path/to/file when listing files (pkg_info -L, pkg_info -g etc.) This change avoids printing the redundant / . Notes: svn path=/head/; revision=226697
* Backout libinstall.a -> libpkg commit.Florent Thoumie2011-05-175-36/+27
| | | | | | | 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-235-27/+36
| | | | | | | | | | | | | | - 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
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | Notes: svn path=/head/; revision=201390
* Add missing `void' keywords.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201226
* When running pkg_add -r, check & install our dependencies for eachBrian Somers2009-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 Notes: svn path=/head/; revision=194497
* Fix segfault when giving invalid long option to pkg_info.Jilles Tjoelker2009-06-011-0/+1
| | | | | | | | | | PR: bin/133473 Submitted by: Rafal Grodzinski Approved by: ed (mentor) MFC after: 1 week Notes: svn path=/head/; revision=193273
* - Add long options to pkg_install.Florent Thoumie2008-05-302-20/+40
| | | | | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530. Notes: svn path=/head/; revision=179433
* Fix pkg_info when specifying a remote package.Florent Thoumie2008-04-162-18/+23
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=178246
* Backout previous commit, since it's done without maintainersKirill Ponomarev2007-12-091-1/+0
| | | | | | | | | | approval. These changes were approved by adding it as port to ports/ tree, but not for src/. I talked to PR submitter and miwi@ some days ago and explained the reasons for it, the both were agree to add it to ports/ only. Notes: svn path=/head/; revision=174475
* Add the 'pkg_search' script.David E. O'Brien2007-12-091-0/+1
| | | | | | | | | This makes it easier to figure what packages you want to install. Submitted by: Matthias Schmidt <schmidtm @ mathematik . uni-marburg . de> Notes: svn path=/head/; revision=174472
* Cleanup of userland __P useKevin Lo2007-11-071-1/+1
| | | | Notes: svn path=/head/; revision=173412
* The use of predefined strings such as \*[Ge] can be harmful here,Ruslan Ermilov2007-03-041-3/+3
| | | | | | | | as some fonts (e.g., KOI8-R) have special symbols for displaying them, and we want symbols ">=" literally here. Notes: svn path=/head/; revision=167202
* Fix markup and clean up some of the wording.Ruslan Ermilov2007-03-041-23/+32
| | | | | | | | | (This English was hard to translate as it uses a language that is far from a pure technical. It would definitely benefit from a revision.) Notes: svn path=/head/; revision=167201
* Clarify the meaning information printed by the -o option.Greg Lehey2007-03-031-4/+3
| | | | | | | Clean up grammar, adding articles. Notes: svn path=/head/; revision=167182
* Fix a bug in 1.40 - it missed three occurences in pkg_info which leads toPav Lucistnik2007-02-071-5/+23
| | | | | | | | | (null)/file output. MFC after: 1 week Notes: svn path=/head/; revision=166552
* Markup fixes.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162806
* Allow variable amounts of verbosity.David E. O'Brien2006-06-121-1/+1
| | | | Notes: svn path=/head/; revision=159554
* Add -K option to pkg_add and pkg_info.Florent Thoumie2006-01-094-5/+17
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=154145
* When using @cwd %%FOO%%, we must ensure to return in the originalKirill Ponomarev2006-01-071-1/+4
| | | | | | | | | | | | | | | | | | prefix later, but doing so with @cwd %%OLDPREFIX%% (having PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing list. That's not really a problem when dealing with ports but that's a problem with packages since pkg_add -p option only overrides the first @cwd occurrence. This patch allow us to use @cwd without any argument. If no directory argument is given, it will set current working directory to the first prefix given by the @cwd command. PR: bin/77212 Submitted by: flz Notes: svn path=/head/; revision=154102
* Document PKG_PATH enviroment variable.Kirill Ponomarev2005-11-231-1/+4
| | | | | | | | Prodded by: Mark Andrews <Mark_Andrews AT isc DOT org> MFC after: 2 days Notes: svn path=/head/; revision=152711
* Fix pkg_info(1) and pkg_delete(1) to handle properly packages whichKirill Ponomarev2005-10-101-1/+1
| | | | | | | | | | | names start with a digit. PR: bin/76858 Submitted by: Matthew D. Fuller <fullermd@over-yonder dot net> MFC after: 3 days Notes: svn path=/head/; revision=151188
* Remove '\n' since it's redundant in case if file doesn't exist whileKirill Ponomarev2005-09-241-1/+1
| | | | | | | | | | | running 'pkg_info -g' Based on PR: bin/42609 Submitted by: Jeff King <peff-freebsd at peff dot net> MFC after: 3 days Notes: svn path=/head/; revision=150522
* Implement @noinst field which has at the moment the same meaning andKirill Ponomarev2005-06-141-0/+4
| | | | | | | | | | | function as @comment has. But will be valid only for files and not for md5 sums, rcsid's and comments in the future. Submitted by: flz Approved by: re@ (scottl) Notes: svn path=/head/; revision=147381
* Expand *n't contractions.Ruslan Ermilov2005-02-131-3/+3
| | | | Notes: svn path=/head/; revision=141846
* Add a -q flag to pkg_version. It suppresses the output of <,=,>.David E. O'Brien2004-10-182-2/+0
| | | | | | | This makes it possible to "portupgrade `pkg_version -q -l '<'`". Notes: svn path=/head/; revision=136643
* Don't put DEBUG to CFLAGS, we have the standard DEBUG_FLAGS for this.Ruslan Ermilov2004-08-121-1/+1
| | | | Notes: svn path=/head/; revision=133596
* Eliminated double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131531
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-12/+24
| | | | Notes: svn path=/head/; revision=131500
* - pkg_add spawns itself as argv[0] when installing dependent packages, toOliver Eikemeier2004-06-291-1/+2
| | | | | | | | | | | | | | | | | | | | | 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
* - pkg_info: flag -r: (show packages this packages depends on (documentation ↵Oliver Eikemeier2004-06-293-26/+24
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=131280
* - match package version numbers with relational operatorsOliver Eikemeier2004-06-294-6/+64
| | | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=131275
* Synopsis fixes:Colin Percival2004-03-302-12/+8
| | | | | | | | | | | | | * `pkg_info -flags' needs either `-a' or a package name. [1] * Add -Q option to manual page. * Update `usage:' to match the manual page. PR: misc/64786 [1] Reviewed by: ru MFC after: 3 days Notes: svn path=/head/; revision=127641
* - Properly build both crypto and non-crypto versions of theRuslan Ermilov2004-01-171-5/+0
| | | | | | | | | | package management tools. - Drop redundant dependency of pkg_create(1) and pkg_delete(1) on crypto libraries now that they do not link with libfetch. Notes: svn path=/head/; revision=124633
* Add a trailing '\n' character if none is found in the informationMario Sergio Fujikawa Ferreira2003-05-261-10/+19
| | | | | | | | | | | | | | | | | | obtained from a package. Patch show_file() [1] and show_index() [2] functions. PR: 52097 Reviewed by: bento, kris, portmgr, re, Michael Nottebrock <michaelnottebrock@gmx.net>, Martin Horcicka <horcicka@FreeBSD.cz> Approved by: re (scottl) Obtained from: NetBSD [1], OpenBSD [2] MFC after: 1 week Notes: svn path=/head/; revision=115324
* Retire the useless NOSECURE knob.Dag-Erling Smørgrav2003-05-191-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115157
* Fixed troff(1) and mdoc(7) warnings.Ruslan Ermilov2003-05-181-1/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115143
* * Add explicit conflict-checking to the package tools. Packages canKris Kennaway2003-04-171-0/+4
| | | | | | | | | | | | | | | | | | register a list of other packages with which they conflict (via the -C option to pkg_create), and they will refuse to install (unless -f is specified) if one of the listed packages is already present. * Update documentation for the new feature as well as fleshing out some existing documentation. * Bump PKG_INSTALL_VERSION so this feature can be tested for. Submitted by: Sergey Matveychuk <sem@ciam.ru> PR: bin/47145 MFC after: 2 weeks Notes: svn path=/head/; revision=113594
* - Add the 'b' option which causes BLOCKSIZE to be hornored whenMatthew N. Dodd2003-03-254-8/+29
| | | | | | | | the 'q' or 'Q' options are present. - Document BLOCKSIZE. Notes: svn path=/head/; revision=112579
* Implement the 'Q' option which is like 'q' (quiet output) exceptMatthew N. Dodd2003-03-254-2/+17
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=112572
* Back out rev 1.33; getbsize(3)'s original interface has been restored.Mike Barcroft2002-12-301-1/+1
| | | | | | | Approved by: markm Notes: svn path=/head/; revision=108455
* getbsize() now takes a pointer to a size_t as its first arg. A pointerAndrew Gallatin2002-10-241-1/+1
| | | | | | | to an int no longer works on an LP64 platform... Notes: svn path=/head/; revision=105882
* Introduce notion of the package tools revision and allow to wrap all toolsMaxim Sobolev2002-09-093-18/+32
| | | | | | | | | | | | | | | | | | | | | included into pkg_install according to the content of /var/db/pkg_install.conf file, which specifies version and alternative location of the tools. Format of the said file is very simple: one line which specifies revision of the alternative version of the tools and their location separated by space, i.e.: 20030102 /usr/local/sbin This would allow bsd.port.mk to install and use up to date version of tools on older system from ports. Also add new `-P' flag to pkg_info, which causes it to report currently installed version of package tools. Discussed with: will Notes: svn path=/head/; revision=103149
* Use --fast-read mode to extract metadata from package file. Since metadataMaxim Sobolev2002-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 Notes: svn path=/head/; revision=103116