summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
AgeCommit message (Collapse)AuthorFilesLines
2006-07-11Merged from src:rillig1-2/+2
> In header files, there shall be no variable definitions, only > declarations. Found by MIPSpro.
2006-07-01Pull across from source:dillo2-5/+5
Fix pkg_info -Q on binary packages; noted by rillig. Bump version to 20060701. Okayed during freeze by wiz.
2006-06-27Update usage() - sync with manpage, add missing options, etc.hubertf4-21/+23
2006-06-13This package overrides the "update" target (is that wise?) and runsjlam1-2/+2
its own set of commands. One of these invoked "deinstall" with UPDATE_RUNNING set to "YES"; however, UPDATE_RUNNING was made into a pkgsrc private variable a little while ago. Fix "update" by setting _UPDATE_RUNNING instead. This fixes PR pkg/33716.
2006-06-09Add a new variable CHECK_FILES_SUPPORTED which is a package-settablejlam1-1/+9
variable to show whether the package supports running the check-files target. Set CHECK_FILES_SUPPORTED to "no" in pkgtools/pkg_install in the case where the PREFIX does not match ${LOCALBASE} it's likely the tools are being installed in some place that's completely outside pkgsrc control, and check-files fails horribly in that case.
2006-05-10Make pkg_install build on platforms that don't define the PRIu64 integerjlam2-4/+6
format modifier. We include "defs.h" in the files that use PRIu64 as that is the header that contains stand-in definition.
2006-04-25Sync with src: HOMEPAGE is optinal, noted by wiz.dillo2-25/+30
Regen catman page.
2006-04-24Sync with usr.sbin/pkg_install/lib/pkg_summary.5 v1.2: Sort.wiz1-3/+3
2006-04-24Sync with src, version 20060424:dillo15-49/+402
Add support for creating summary file containing all information about a package repository needed by package managing software. This allows better use of remote binary package repositories. Discussed on tech-pkg.
2006-04-18Sync with NetBSD's src/usr.sbin/pkg_install Version 20060418,hubertf2-7/+7
mostly for the timeout fix in ftpio.c.
2006-04-08Sync with src/usr.sbin v1.63:wiz1-2/+2
Formatting nits.
2006-04-06Welcome to version 20060405.reed5-18/+27
pkg_add also check for USE_ABI_DEPENDS. Check if USE_ABI_DEPENDS or IGNORE_RECOMMENDED was set when this package was built. IGNORE_RECOMMENDED is now historical. For the cat man page, I manually made it say "pkgsrc" instead of "NetBSD". I committed to NetBSD's src/usr.sbin/pkg_install/ first :)
2006-04-05Sync with src/usr.sbin v1.70:wiz1-2/+4
http_expand_URL(): fclose() the fdopen()'ed filedescriptor before leaving the function (for all cases). Actual fix and sanity checking by Dillo & Wiz Coverity CID 2340
2006-04-05Sync with src/usr.sbin v1.62:wiz1-2/+3
When recognizing a broken package version/name, make sure to error out really, don't just print a warning and the run into further problems. Coverity CID 2739.
2006-04-04Bump date, so that version in src and pkgsrc have the samewiz1-2/+2
version _and_ the same code.
2006-04-04Pull over v1.4 from src/usr.sbin:wiz1-2/+5
revision 1.4 date: 2006/03/17 01:10:53; author: hubertf; state: Exp; lines: +5 -2 Fix filedescriptor leak Coverity CID 1625
2006-04-04Pull over v1.59-v1.61 from src/usr.sbin:wiz1-9/+17
revision 1.61 date: 2006/03/17 17:46:44; author: hubertf; state: Exp; lines: +4 -3 Put check if "best" is empty back into the right place, messed up in previous commit. Noted by yamt@ ---------------------------- revision 1.60 date: 2006/03/17 02:20:46; author: hubertf; state: Exp; lines: +10 -4 findbestmatchingname_fn(): catch possible problems if best (vp) contains some strange name (shouldn't happen, but ...) Coverity CID 869 ---------------------------- revision 1.59 date: 2006/03/17 02:10:55; author: hubertf; state: Exp; lines: +8 -7 findbestmatchingname_fn(): only do something sensible if the pointer handed in is actually usable (not NULL) Fixes Coverity ID 870
2006-04-04Pull over v1.36 from src/usr.sbin:wiz1-3/+11
revision 1.36 date: 2006/03/17 01:58:25; author: hubertf; state: Exp; lines: +11 -3 We can't sprintf() into a NULL pointer - catch that properly for ALL cases. Coverity CID 861
2006-04-04Sync with src/usr.sbin: whitespace diffs only.wiz1-4/+4
2006-04-04Pull over v1.77 from src/usr.sbin:wiz1-3/+3
revision 1.77 date: 2006/03/26 18:11:22; author: christos; state: Exp; lines: +3 -3 PR/33123: Murray Armfield: standards compliance & glob.h Certain fields in glob.h need to be size_t; fix this and version glob(3). http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-04-04Pull over v1.5 and v1.6 from src/usr.sbin:wiz1-13/+21
revision 1.6 date: 2005/11/13 20:37:23; author: agc; state: Exp; lines: +1 -10 Get rid of cvs merge botch in previous. ---------------------------- revision 1.5 date: 2005/11/13 20:07:41; author: agc; state: Exp; lines: +25 -8 The Dewey number comparison routines were added by myself in 2002 in revision 1.32 of pkg_install/lib/str.c, and have absolutely nothing to do with the original FreeBSD utilities. Place the appropriate (3 clause) copyright on this file.
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-14Modify the pkginstall framework so that it manages all aspects ofjlam1-2/+2
INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
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-03-10Use pkginstall to generate the INSTALL script instead.jlam1-18/+7
2006-03-04Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where nojlam1-2/+2
developer is officially maintaining the package. The rationale for changing this from "tech-pkg" to "pkgsrc-users" is that it implies that any user can try to maintain the package (by submitting patches to the mailing list). Since the folks most likely to care about the package are the folks that want to use it or are already using it, this would leverage the energy of users who aren't developers.
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-06Fixed pkglint warnings about incorrect quoting and unsorted PLIST.rillig2-19/+19
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-17Fix for part of PR#32092: add SKIP_AUDIT_PACKAGES=yes so pkg_install canerh1-1/+2
be updated even if audit-packages is out of date. The audit-packages package already has this.
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-07Use the hard-coded ${PKG_TOOLS_BIN} variable as the correct location ofjlam2-3/+5
the pkg_admin binary.