summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/info
Commit message (Collapse)AuthorAgeFilesLines
* - Add the 'b' option which causes BLOCKSIZE to be hornored whenmdodd2003-03-254-8/+29
| | | | | the 'q' or 'Q' options are present. - Document BLOCKSIZE.
* Implement the 'Q' option which is like 'q' (quiet output) exceptmdodd2003-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
* Back out rev 1.33; getbsize(3)'s original interface has been restored.mike2002-12-301-1/+1
| | | | Approved by: markm
* getbsize() now takes a pointer to a size_t as its first arg. A pointergallatin2002-10-241-1/+1
| | | | to an int no longer works on an LP64 platform...
* Introduce notion of the package tools revision and allow to wrap all toolssobomax2002-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
* 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
* Reorder libraries to fix static linking (libssl depends on libcrypto, sodes2002-06-121-2/+2
| | | | | | it must come before libcrypto in LDADD) Reviewed by: bde
* libfetch now depends on libcrypto and libssl.ru2002-06-061-0/+5
|
* - 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
* replace __FUNCTION__ with standardized __func__.alfred2002-05-111-1/+1
| | | | Requested by: jhb
* fix build:alfred2002-05-111-1/+2
| | | | | | | | you may not use string concatination with __FUNCTION__, replace all occurances of: __FUNCTION__ ": error string" with: "%s: error string"
* New feature: allow origins of all dependencies be recorded into package listsobomax2002-05-051-1/+6
| | | | | | | | | | | | | | | | | | using new `@comment DEPORIGIN:...' directive. This would allow us to make many neat things including: - easier binary upgrades; - source upgrades without using external tools by simply extending bsd.port.mk and pkg_install tools; - mixed-mode upgrades (source + binary); - depreciate and deorbit silly +REQUIRED_BY files in the near future. This feature is no-op until appropriate bsd.port.mk patch is committed, and even when it is already committed packages generated will remain 100% compatible with old set of pkg_install tools (module all those neat features, of course). MFC after: 6 days
* 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
* Update usage() and manpage to match reality (add -O into usage and adjustsobomax2002-05-052-4/+10
| | | | | | both to make clear that -W and -O are stand-alone options). MFC after: 6 days
* Handle PLIST_ORIGIN properly.sobomax2002-05-051-0/+5
| | | | | | Poked by: kris Pointy hat grabbed by: sobomax MFC after: 6 days
* Add ability to query installed packages based on origin.sobomax2002-05-045-8/+78
|
* 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
* Make `-g' working for symlinks.sobomax2002-05-021-3/+20
| | | | | | PR: 33857 Submitted by: darren <igla@batterybackups.net> MFC after: 1 week
* Fix SCM ID's.obrien2002-04-013-15/+9
|
* 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-105-3/+22
| | | | | | | | | | | | | | | | | | 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-105-28/+31
| | | | | 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
* Recognise @option directives instead of falling through to the defaultkris2001-08-061-0/+6
| | | | | | "unknown command" clause. PR: 29262
* 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
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-4/+4
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove whitespace at EOL.dd2001-07-151-9/+9
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* 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-235-10/+200
| | | | | | | | | - 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-272-149/+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
* Add two missed modifiers into usage message (`-G' and `-x').sobomax2001-02-241-1/+1
|
* Use the more logical author syntax from pkg_version and quotejkh2001-02-201-5/+2
| | | | email addresses properly.
* mdoc(7) police: cosmetics.ru2001-02-091-8/+9
|
* - By default treat supplied arguments as a shell globs to be matched againstsobomax2001-02-084-41/+191
| | | | | | | | | | | | | | | | | | | 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
* mdoc(7) police: Change -filled displays (which just happenru2001-02-071-1/+1
| | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
* -pedantic mode:sobomax2001-02-052-1/+3
| | | | | - Add a missed prototype for the recently added show_cksum() function; - put in "explicit braces to avoid ambitious else" suggested by gcc(1).
* Add a -g flag for verifying an installed package against its recordedjkh2001-02-035-2/+41
| | | | | | | | 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>
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-271-1/+3
|
* Alphabetically reorder options in `.Op Fl' macro to be consistent with thesobomax2000-12-051-1/+1
| | | | rest of the code.
* - Add missed `-s' option into usage printout;sobomax2000-12-051-1/+1
| | | | - sort options alphabetically.
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Use Fx macro wherever possible.ru2000-11-141-1/+2
|
* Add "-o" option to pkg_create(1) and pkg_info(1). This option intended to recordsobomax2000-10-235-3/+33
| | | | | | | | 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-222-2/+2
| | | | | | | | | 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>
OpenPOWER on IntegriCloud