summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/admin
AgeCommit message (Collapse)Author
2003-09-19Initialize cnt; from Greg A. Woods in PR 22862.wiz
2003-09-18Let pkg_admin(1) have a -S argument - some vendors' xargs(1) don't passagc
a null ("") argument properly (hi, Sun), so make -S a synonym for -s "". Don't dump core if no command is given to pkg_admin(1). Print usage message to stderr, not stdout, and use the program name by which it was invoked. Bump pkg_install version to 20030918.
2003-09-13Update pkg_install to version 20030912. Changes from 200230907 arejlam
adding two new options to pkg_admin(1) to simply using this utility to list the bare package names that match patterns when looking in PKG_DBDIR: -b Print only the basenames when matching package names for lsall and lsbest. -d lsdir Set lsdir as the path to the directory in which to find matching package names for lsall and lsbest.
2003-09-08Allow the package entries in the pkgdbdir to be either directories orjlam
symlinks to directories. This gives the user more rope, but lets those who know what they're doing to do what they want.
2003-09-08Sort options.wiz
2003-09-08Bump date for previous.wiz
2003-09-08Add new commands "add" and "delete" to pkg_admin(1):jlam
add pkg ... For each listed package, write the absolute pathnames of the files listed in its +CONTENTS file together with the package they belong to into the package database. This should be used only by pkg_view(1). delete pkg ... For each listed package, remove all file entries in the package database that belong to the package. This should be used only by pkg_view(1). These commands will be used by pkg_view(1) to keep the pkgdb.byfile.db files for each view consistent with what's stored in each view. Since we stole these names from the debug code, change the names of the debug commands to "addkey" and "delkey".
2003-09-02Merge src/usr.sbin/pkg_install on the pkgviews branch into the HEAD byjlam
running: cd src/usr.sbin/pkg_install cvs update -Pd -A cvs update -Pd -j pkgviews-base -j pkgviews
2003-06-05Set the program name via setprogname(3).agc
2003-04-17don't pass NULL as the 2nd arg to getcwd(), ala lib/path.c.grant
fixes 'pkg_admin lsall' and 'pkg_admin lsbest' on Solaris and probably other platforms where getcwd() doesn't allocate a buffer when the 2nd arg is NULL. ok'd by simonb@
2003-03-24Consistently check findmatchingname() return value for error condition.seb
Among other this fixes 'pkg_info -e whateverpkg' exit status when /var/db/pkg is missing: it is now 1 and not 0.
2003-03-15Introduce a pkgdb_dump() function, which dumps the cache file ofagc
(filename, package) pairs. Modify calling functions to use pkgdb_dump() directly, rather than sequences of pkgdb_open { pkgdb_iter, pkgdb_retrieve } pkgdb_close calls. Remove the now unnecessary pkgdb_iter function.
2003-01-10Add a pkgdb_remove_pkg() function and use it in pkg_delete(1).agc
Bump lib/version.h due to added functionality.
2003-01-05Add an enumerated type which is used in pkgdb_open() to specifyagc
read-only or read-write mode. Modify the return value of pkgdb_open() to have a more logical boolean value.
2003-01-05Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) andagc
errx(3). Plug a memory leak by modifying the signature of _pkgdb_getPKGDB_FILE() to take a buffer and its size, and fill in that buffer and return it.
2002-09-26Ispell. Begin new sentences on a new line.wiz
2002-09-25Fix date.wiz
2002-09-24Sprinkle .Xrs to packages(7).uebayasi
2002-08-04Add 'pmatch' keyword: pkg_admin pmatch pattern pkghubertf
Will return true if 'pkg' matches 'pattern', false else. Provides a command line interface to the pmatch() C function to be used from shell scripts etc.
2002-07-20sweep of errx/warnx, remove unnecessary trailing \ngrant
2002-07-19- remove handling of PKG_ADD_BASE.yamt
- don't search current directory if PKG_PATH is set. - don't prefer local directories. - constify and cleanup. discussed on tech-pkg.
2002-06-09- make last arg of findmatchingname void*.yamt
- move some duplicated functions into lib/.
2002-06-09- free memory allocated by findbestmatchingname.yamt
- use static buffer instead of "malloc and don't free" for dirname_of. - fix indent.
2002-03-05Add a new packing list directive, @blddep, which notes the exactagc
version of the pre-requisite package which was used to build the package. This is derived automatically from the list of pre-requisite packages which is provided to pkg_create(1) in the -P argument. Bump the version number to 20020305. Versions of the pkg_install tools prior to 20020305, when adding a binary package with embedded @blddep directives, will warn that the directive is not recognised, but will continue to add the binary package.
2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross
2002-02-02Improve markup, sort section, sort SEE ALSO.wiz
2001-06-05Uppercase Dt argument.wiz
2001-04-17Don't warn about @src being deprecated any longer - we add it per defaulthubertf
to each binary pkg again (via pkg_create -L) to assist DESTDIR builds. Noted by Dan McMahill in private mail.
2001-04-14Include lsall and lsbest in usage message.hubertf
2001-04-09Fix date, and improve markup.wiz
2001-03-05Add -V option to all pkgtools, which reports the version of the pkgtools.wiz
Document it. While there, fix the ordering of the option descriptions in some man pages. Set version to 20010305.
2001-02-21Make usage message match that of other pkg_* programs:hubertf
* user lowercase "usage" * do not use __progname/getprogname() to make this build on old systems (the pkg_install pkg is intended to run on 1.4 and maybe 1.3 too...)
2001-02-19convert to use getprogname()cgd
2001-01-10use getcwd() instead of getwd() - mainly to avoid link warning, thisjdolecek
particular usage is safe
2001-01-07Alphabetize options.hubertf
2000-12-13 * Accept ".tbz" as an alternative pkg suffix to ".tbz" for pkg_add andhubertf
pkg_info * In pkg_create, compress with bzip2 if a .tbz suffix is given * Fix pkg_info to work via ftp, either via URL specified on command line or via one made up from PKG_PATH (if set) XXX ALWAYS tacks on ".t[bg]z", NOT ".t[gb]z" !!!
2000-11-28Oops; the increment needs to be in check1pkg() for the case where the usermycroft
specifies a list.
2000-11-28pkgcnt was incremented twice during a `check'...mycroft
2000-11-12ispellwiz
2000-10-09Remove unneeded header <db.h>.hubertf
2000-07-05remove extra period in SEE ALL sectionmsaitoh
2000-05-08Add "lsall" and "lsbest" commands to pkg_admin, to find all/besthubertf
package matching a certain pattern. Examples: yui# cd /usr/pkgsrc/packages/i386ELF/All/ yui# ls unzip* unzip-5.40.tgz unzip-5.41.tgz yui# pkg_admin lsall 'unzip*' unzip-5.40.tgz unzip-5.41.tgz yui# pkg_admin lsall 'unzip>=5.40' unzip-5.40.tgz unzip-5.41.tgz yui# pkg_admin lsall 'unzip>=5.41' unzip-5.41.tgz yui# pkg_admin lsbest 'unzip>=5.40' unzip-5.41.tgz yui# pkg_admin lsall /usr/pkgsrc/packages/i386ELF/All/'{mit,unproven}-pthread*' /usr/pkgsrc/packages/i386ELF/All/mit-pthreads-1.60b6.tgz This adds a shell/user-interface to pkg-patterns, which are a superset of sh/csh patterns and can't be expanded by any shell.
2000-03-19 * in pkg_add, before the "install dependencies" loop, check ALLhubertf
dependencies if they _can_ be installed. I.e. if a package wants version X installed, but version Y is already installed, pkg_adding that required pkg will blow up later (probably some pkg_add recursions down, given what we keep in the depends list). Now, it stopps right away: noon# pkg_add /usr/pkgsrc/packages/i386ELF/All/xdaemon-1.0.tgz pkg_add: pkg `xteddy-1.*' required, but `xteddy-2.0.1' found installed. Please resolve this conflict! The idea of this is from Thomas Klausner, further inputs from Alistair Crooks. * allow pkg names without versions given to "pkg_admin check" * Use sizeof() instead of hardcoding the buffers' size in some places
2000-02-22adjust copyrighthubertf
1999-11-29Put support for @src back in.hubertf
For users who use private packages that use it. (Hi Bill!)
1999-11-29Add code to include the size of a package into both thehubertf
installed version and binary packages. The size can be queried then via pkg_info: xfeyrer @ noon% pkg_info -s xv Information for xv-3.10apl1: Size of this package in bytes: 4670692 xfeyrer @ noon% pkg_info -S xv Information for xv-3.10apl1: Size in bytes including required pkgs: 14610165 While doing work on the size code, support for the @src directive was removed (formerly enabled with the pkg_create -s switch, but unused in our pkg system). The new pkg_info -s and -S switches were tested on installed, local (file) and remote (ftp) packages. In bsd.pkg.mk, take special care for pkg_* versions that do not have the pkg_create -s and -S switches and do not record size information there.
1999-09-13Handle symlinks to directories correctly in "check" and "rebuild".hubertf
Problem reported by Matthias "tron" Scheler in private mail.
1999-08-24Bring closer to /usr/share/misc/style with the aid of indent(1).hubertf
1999-08-19Clean up minor nits in C code.agc
1999-05-30Remove support for absolutes pathnames completely. This can't work withtron
binary packages like we support them now.