summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/files
AgeCommit message (Collapse)AuthorFilesLines
2006-04-04Pull over v1.68 from src/usr.sbin:wiz1-3/+4
revision 1.68 date: 2006/03/17 02:31:44; author: hubertf; state: Exp; lines: +4 -3 pkg_do(): only use cp2 if it's really set to something useful Coverity CID 1176
2006-04-04Pull over 1.36 from src/usr.sbin:wiz1-3/+3
revision 1.36 date: 2005/12/03 01:08:38; author: hubertf; state: Exp; lines: +3 -3 Only warn about running as non-root when -v is given (or when running in non-unprivilegedmode, but how to detect?)
2006-04-04Pull over v1.51 from src/usr.sbin:wiz1-4/+4
revision 1.51 date: 2006/03/06 20:00:10; author: reed; state: Exp; lines: +4 -4 Fix the "Cannot chdir" error message to actually show the problem directory name for lsbest and lsall. For example: # pkg_admin -d /usr/packages/DragonFly/1.4.0/i386/All lsbest 'gmake>0' pkg_admin: Cannot chdir to /var/db/pkg: No such file or directory Should show: pkg_admin: Cannot chdir to /usr/packages/DragonFly/1.4.0/i386/All: No such file or directory
2006-04-04Pull over 1.117 from src/usr.sbin:wiz1-2/+6
revision 1.117 date: 2006/03/17 02:37:31; author: hubertf; state: Exp; lines: +6 -2 Add sanity check if there's a @cwd in the +CONTENT file. If not abort, because we wouldn't know where to put the files. Coverity CID 1358
2006-03-13Fix -uu handling so recursive updates of already installed packages work,erh2-8/+8
even if the initial package to install isn't installed yet. Bump the version to 20060313.
2006-01-25Add conditional code to ignore the non-numeric part of an OS versionjoerg5-4/+36
for the sake of compatibility tests in pkg_add. E.g. DragonFly versions like 1.4.0-RELEASE are reduced to 1.4.0 This code is currently enabled for DragonFly only.
2006-01-08Sync with usr.sbin/pkg_install 1.58:wiz1-3/+3
Use MaxPathSize instead of PATH_MAX.
2006-01-04Handle newer versions of Berkeley DB. Our algorithm is:christos5-30/+172
- if you have > db1 the probably you have db_185.h which means that dbopen is really __db185_open, and we'll prefer that. - else if you have db1, then you have db1/db.h and dbopen - else if you have db.h, then this is either the one from db1 and it will work with -ldb having dbopen, or it will not. Note that the compatibility option on __db185_open() will actually not create or update db1.85/1.86 files, but it will use the current format of the db library. This compatibility layer is source code only.
2005-12-08sync with src (revision 1.115):dillo1-6/+6
(pkg_do) When marking already installed package as manually installed, only print message if we succeeded. Noted by wiz.
2005-12-06Specify the full path to tar when unpacking a package.ben4-15/+15
Modify pfcexec so the new process file name can be different from argv[0]. This fix is from Peter Postma, and it addresses PR#32228
2005-11-28Correct PAX_CMD to be pax.ben1-2/+2
2005-11-23Conditionally include header files, and include nbcompat.hben1-1/+17
Addresses PR#32149
2005-11-23Sync with src. Remove unused variable argc from apply_perms().ben1-3/+2
2005-11-23Remove unused variables, fix variable names to avoid shadowing globals,ben3-21/+23
and add PAX_CMD fallback macro.
2005-11-22Reduce the use of the system() function in pkg_install to avoid quotingben14-221/+425
problems. Instead, use exec*() functions. Replace PUSHOUT() macro and string buffers with a function that operates on data structures. If it is necessary to copy files into place from staging area, then use pax to copy them. Add functions in pexec.c to create a pipe for sending data to a child process. Replace pipe code in create/perform.c with these functions. Use these functions instead of command-line arguments when copying files into place from staging area. Three system() references remain: @exec, @unexec, and vsystem().
2005-11-14Sync with src/usr.sbin/pkg_install:dillo2-5/+5
Fix first part of PR 32068: pkg_info -Q broken for local binary packages Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR. Bump version.
2005-11-14Remove obsolete file from OBJS also.dillo1-2/+2
Fixes PR 32071 by HEO SeonMeyong.
2005-11-13Sync with basesrc: do not use errx in dewey.c; handle -1 return valuewiz2-6/+11
from dewey_match in pmatch.
2005-11-13Remove obsolete file.wiz1-76/+0
2005-11-08Sync with basesrc 1.3:wiz1-15/+3
Remove some unnecessary header includes.
2005-11-07Update to 20051107: Fix pkg_info -B against binary packages.dillo2-6/+4
2005-11-07Sync with basesrc:wiz1-3/+3
Replace wait(2) with equivalent waitpid(2); for Linux, reported by wulf@ on tech-pkg.
2005-11-07Aren't we forgetting something here?tv1-1/+18
(Insert config.h, nbcompat.h, and bracket the other includes with #if HAVE_<file>.)
2005-11-06Use config.h and add appropriate #if HAVE_FOO_H.wiz2-4/+36
2005-11-05Add new files.wiz1-3/+3
2005-11-05Not needed.wiz2-193/+0
2005-11-05Sync with base system as of Sat Nov 5 13:19:32 UTC 2005.wiz27-436/+1317
Welcome to 20051103! Now with "automatic" support.
2005-10-30Treat FTP error 450 like 550, otherwise pkg_add from a proftpd serverjoerg2-5/+5
can hang. Submitted-by: Eirik Nygaard
2005-07-25Pull over change from src/usr.sbin/pkg_install:hubertf1-4/+11
| Modified Files: | src/usr.sbin/pkg_install/add: perform.c | | Log Message: | cleanup: preserve errno. Needed so err() functions ran after running | cleanup(0) print the correct error message. | | | To generate a diff of this commit: | cvs rdiff -r1.109 -r1.110 src/usr.sbin/pkg_install/add/perform.c
2005-07-25Pull over this change from src/usr.sbin/pkg_install (-current):hubertf1-14/+18
| Modified Files: | src/usr.sbin/pkg_install/add: extract.c | | Log Message: | Fix 'pkg_add -R' handling - not registering really means not touching | the pkgdb too - useful for pkg_add as non-root! | | | To generate a diff of this commit: | cvs rdiff -r1.34 -r1.35 src/usr.sbin/pkg_install/add/extract.c
2005-07-18Sync over files from src/usr.sbin/pkg_install to fix PR pkg/30658:hubertf3-23/+9
Warn, but don't error out on pkgs that were built with IGNORE_RECOMMENDED. Bump version to 20050718.
2005-06-10add autoconf test for missing (like in openbsd-3.6) or broken (likedmcmahill5-15/+1429
in AIX-4.3.2) PRIu64. If it is missing or broken, provide one. Should address PR30375. Welcome to pkg_install-20050607
2005-06-02Include netdb.h for Solaris. From Neil Hoggarth in PR 30399.wiz1-2/+5
2005-05-30Sync with base 1.53: Comment out too noisy warning.wiz1-2/+6
2005-05-30Update to 20050530:wiz17-108/+167
Sync with base system: Ranges support and some other stuff that wasn't pulled over.
2005-05-29Sync with 20050529 in src/.minskim2-5/+5
If a pattern does not have any suffix, assume that it matches both ".tbz" and ".tgz". This allows to install binary package dependencies that are not exact matches, but satisfy requirements.
2005-05-28- pull in the changes from usr.sbin which prevent an over flowdmcmahill4-19/+25
of a 32 bit signed number when pkg_add-ing a binary package file larger than 512 Mb. - Bump PKGTOOLS_VERSION (NOT!!! PKGTOOLS_REQD) to 20050527
2005-05-10Output the error string when renaming a dependency file fails. This hasrillig1-3/+3
happened to me when I had a misnamed directory in the pkgdb directory.
2005-05-06Sync with usr.sbin/pkg_install/add/pkg_add.1 v1.59.wiz2-21/+65
2005-03-20Address PR pkg/24744 by Jarmo Jaakkola <jarmo.jaakkola@iki.fi>:hubertf2-6/+6
* ftp.fi.netbsd.org returns "257" in return to a "cd" command, accept that (in addition to 250 and 550). Seems to be allowed per RFC 959. * Make buffer for reply bigger (not too big, as it may hit performance). * Bump PKGTOOLS_VERSION (NOT!!! PKGTOOLS_REQD) to 20050318
2005-03-11Never access argv[i+1] before you know that argv[i] != NULL. Approvedrillig1-6/+6
by wiz.
2005-03-07Bring over the clearer mismatch warning message from src.agc1-3/+3
+ state that the message is just a warning + make it clearer what an OS mismatch is
2005-02-21sync with src:grant1-3/+3
initialise a variable before using it. pkg_info binpkg.tgz would pass garbage on the command line to tar(1).
2005-02-20sync with src:grant1-3/+3
cast return value of min_free() to uint64_t. fixes pkg_add <binarypkg> on Solaris 8.
2005-02-11regen from man page update. pointed out by jlam@ - thanks!grant1-6/+3
2005-02-10pull in binary pkg handling changes from src:grant5-31/+14
rework pkg_info(8) operating on binary packages, deprecating the `-.' argument as it is no longer required (but is retained as a no-op for backward compatibility). the behaviour is now what is expected and intended: - when the pkg argument is path (absolute or relative) to a binary pkg, pkg_info operates on it. - when no pkg argument is given, or the argument is not a binary pkg path, pkg_info operates on the installed packages. `pkg_info foo-1.0.tgz', `pkg_info /path/to/foo-1.0.tgz', etc. now work correctly when foo-1.0.tgz is in the cwd. bump PKGTOOLS_VERSION to 20050210.
2005-02-05Pull in documentation improvements and a minor change to allow buildingjlam4-17/+17
with WARNS=2 from src/usr.sbin/pkg_install. No functional change and no version bump.
2005-02-04Update pkgtools/pkg_install to 20050204 (latest release from the HEADjlam10-43/+163
branch of src). Changes from version 20050106: Teach pkg_add(1) and pkg_delete(1) to pass PKG_METADATA_DIR and PKG_REFCOUNT_DBDIR in the environment when running the +* scripts. PKG_METADATA_DIR is the location of the +* files after the package is registered. PKG_REFCOUNT_DBDIR is the location of the reference counts database directory. If PKG_REFCOUNT_DBDIR is left unset, then it defaults the the location of the package database directory with ".refcount" appended to the path, e.g. /var/db/pkg.refcount. pkgviews users should explicitly set PKG_REFCOUNT_DBDIR in the shell environment to ensure that all packages will use the same refcount database. These changes allow the +INSTALL and +DEINSTALL script to keep state in +* files within ${PKG_METADATA_DIR}, and to store reference counts in ${PKG_REFCOUNT_DBDIR} to handle usage of resources outside of ${LOCALBASE}.
2005-02-04Pull in documentation/whitespace fixes and improvements from the HEADjlam10-51/+85
revision of src/usr.sbin/pkg_install as of 20050204. I ran: cd pkgsrc/pkg_install/files ./pkg_install2nbcompat . Then I ran "cvs diff" and looked for portability-related changes that were removed as a result of the import and resurrected them from the repository.
2005-02-03s/pax/pkg_install/ in the usage message.jlam1-2/+2