summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/info/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Warn users when using pkg tools if it looks like theyeadler2012-10-221-0/+1
| | | | | | | | | be be pkgng users. Reviewed by: bapt (earlier version) Reviewed by: kwm Approved by: cperciva MFC after: 3 days
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* Backout libinstall.a -> libpkg commit.flz2011-05-171-12/+2
| | | | Discussed with: erwin, brooks, bapt
* - Take libinstall.a out of pkg_install and make it a proper shared library.flz2010-04-231-2/+12
| | | | | | | | | | | - 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.
* Add missing `void' keywords.ed2009-12-291-1/+1
|
* Fix segfault when giving invalid long option to pkg_info.jilles2009-06-011-0/+1
| | | | | | | PR: bin/133473 Submitted by: Rafal Grodzinski Approved by: ed (mentor) MFC after: 1 week
* - Add long options to pkg_install.flz2008-05-301-5/+23
| | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530.
* Fix pkg_info when specifying a remote package.flz2008-04-161-1/+1
| | | | MFC after: 1 week
* Cleanup of userland __P usekevlo2007-11-071-1/+1
|
* Allow variable amounts of verbosity.obrien2006-06-121-1/+1
|
* Add -K option to pkg_add and pkg_info.flz2006-01-091-2/+7
| | | | | | | | | 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
* Fix pkg_info(1) and pkg_delete(1) to handle properly packages whichkrion2005-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
* Add a -q flag to pkg_version. It suppresses the output of <,=,>.obrien2004-10-181-1/+0
| | | | This makes it possible to "portupgrade `pkg_version -q -l '<'`".
* - pkg_info: flag -r: (show packages this packages depends on (documentation ↵eik2004-06-291-3/+7
| | | | | | | | | | | | | | | | 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-3/+11
| | | | | | | | | | | | | | - 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
* Synopsis fixes:cperciva2004-03-301-5/+5
| | | | | | | | | | * `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
* - Add the 'b' option which causes BLOCKSIZE to be hornored whenmdodd2003-03-251-1/+6
| | | | | the 'q' or 'Q' options are present. - Document BLOCKSIZE.
* Implement the 'Q' option which is like 'q' (quiet output) exceptmdodd2003-03-251-1/+7
| | | | | | | | 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
* Introduce notion of the package tools revision and allow to wrap all toolssobomax2002-09-091-1/+12
| | | | | | | | | | | | | | | | | | 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
* Update usage() and manpage to match reality (add -O into usage and adjustsobomax2002-05-051-2/+4
| | | | | | both to make clear that -W and -O are stand-alone options). MFC after: 6 days
* Add ability to query installed packages based on origin.sobomax2002-05-041-2/+9
|
* Make pkg_info working again when argument is a file not in the currentsobomax2002-05-021-2/+5
| | | | | | | | directory. PR: 37571 Submitted by: Dirk Meyer <dirk.meyer@dinoex.sub.org> MFC after: 1 week
* Fix SCM ID's.obrien2002-04-011-5/+3
|
* Fix "off by 1" error introduced in the previous commit by replacing strncpy(3)sobomax2001-10-161-1/+1
| | | | | | with strlcpy(3). MFC after: 2 weeks
* Use strncpy(3) instead of strcpy(3) to copy optarg into a fixed-sized buffer.sobomax2001-10-151-1/+1
| | | | | Prompted by: dd MFC after: 2 weeks
* - Introduce a notion of `packing list format version'. This allows makingsobomax2001-10-101-2/+6
| | | | | | | | | | | | | | | | | | 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-1/+1
| | | | | Tested on: i386, alpha MFC after: 2 weeks
* - Add which(1)-like functionality into pkg_info;sobomax2001-03-231-4/+25
| | | | | | | | | - 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
* Add two missed modifiers into usage message (`-G' and `-x').sobomax2001-02-241-1/+1
|
* - By default treat supplied arguments as a shell globs to be matched againstsobomax2001-02-081-19/+31
| | | | | | | | | | | | | | | | | | | 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-1/+5
| | | | | | | | 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 missed `-s' option into usage printout;sobomax2000-12-051-1/+1
| | | | - sort options alphabetically.
* Add "-o" option to pkg_create(1) and pkg_info(1). This option intended to recordsobomax2000-10-231-2/+6
| | | | | | | | 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
* Cause fatal error messages to be a little more helpful to the programmerjkh2000-10-221-1/+1
| | | | | | | | | 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>
* New option "-s" to query size of the installed package(s).sobomax2000-07-071-1/+5
| | | | | | | PR: 19445 Submitted by: sobomax Reviewed by: knu Approved by: silence
* Avoid infinite loops when given a package name like 'm4-1.1/'.steve2000-05-141-24/+14
| | | | Approved by: jkh
* Fix a bug in previous commit where pkg_{delete,info} foo-1.0/ would segfault.dan2000-01-181-2/+4
| | | | Noticed first by: kris
* Teach pkg_delete and pkg_info how to deal with full pathnamesdan2000-01-151-1/+23
| | | | | | (/var/db/pkg/foo-1.0, instead of just foo-1.0). Submitted by: Matthew D. Fuller <fullermd@futuresouth.com>
* Include -f and -t options to SYNOPSYS section (manpage) and usage informationphantom2000-01-071-8/+8
| | | | | | | (main.c) PR: bin/5410 Submitted by: Frank Volf <volf@oasis.IAEhv.nl>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* '?' shouldn't be in the usage string. Unknown characters are alreadyimp1999-06-241-2/+2
| | | | converted to '?'.
* If we are going to have a case for '?' then we should define it in Options.billf1999-06-231-2/+2
| | | | Submitted by: Ben Olson <bseth@chc-chimes.com>
* If pkg_info is run with no args, default to "-aI".jkh1999-04-271-2/+7
|
* "This is the add^H^H^Hinfo module."hoek1997-12-261-2/+2
| | | | | | | Pedantic comment fix. PR: bin/5188 Submitted by: Alex [3]garbanzo@hooked.net
* Use err(3). Cosmetics in usage string and man page.charnier1997-10-081-35/+13
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-2/+2
| | | | posix standard on the topic.
* 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.
* Bring forward my changes from 2.1jkh1995-10-251-3/+3
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
OpenPOWER on IntegriCloud