summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/files/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-03-09pkg_install-20090309:joerg1-2/+2
Fix a double free. Reported by seb.
2009-03-08pkg_install-20090307:joerg4-40/+24
Simplify archive handling by depending on archive_read_finish and the close callback where needed. Fixes a file descriptor leak as side effect as reported by wiz.
2009-03-06Avoid sign comparision issues.joerg1-4/+3
2009-03-02pkg_install-20090302:joerg1-2/+2
Add new option -r to pkg_info, which works like -R, but expands it recursively.
2009-03-02pkg_install-20090301:joerg4-8/+15
Plug a number of file descriptor leaks.
2009-02-28regenwiz1-1/+1
2009-02-28Fix typo.wiz1-2/+2
2009-02-28pkg_install-20090228:joerg9-278/+118
Integrate the PKG_PATH logic for tightly with the find_archive logic: - remember initial current working directory from the time PKG_PATH is processed, it will be used as reference for all relative entries - remove now redundant fchdir dance in pkg_add - pass down to find_archive if this is a top-level package (e.g. requested on the command line) or not; the location of top-level packages is searched for packages first and for URLs or path names the PKG_PATH itself is not processed (e.g. pkg_add foo/bar not look into PKG_PATH for bar). This addresses PR 33884 in a different way. - document the rules for finding packages more explicitly - allow specifying PKG_PATH in pkg_install.conf as well; environment takes precendence. - remove PKG_PATH related logic in pkg_info(1), it doesn't deal with PKG_PATH anyway - remove PKG_PATH, PKG_TMPDIR and TMPDIR description in pkg_info(1), they are no longer used
2009-02-26pkg_install-20090226:joerg1-2/+2
Always try to preserve the +PRESERVE file from the old package, even when the new one has one as well. This fixes the update case for the special case of pkg_install itself as reported by tron@.
2009-02-25pkg_install-20090225:joerg1-2/+2
Rewrite pkg_delete to expand the list of packages to delete first and reorder it if necessary. It will bail out if it knows in advance that it can't remove a package. It will also fail for errors while removing one package, unless forced. Add an option to remove automatically installed packages that are no longer used. The pkgviews support is kept, but untested. The error handling for pkgviews most of all is as weak as before. Basic review from hubertf@, man page changes by bad@.
2009-02-25Fix markup. From Tim Zingelman.joerg2-3/+5
2009-02-19Make sure that SYSCONFDIR is expanded in pkg_install.conf(5).joerg2-1/+1
2009-02-16Improve support for ancient OpenSSL releases.joerg1-4/+13
2009-02-14Tag as pkg_install-20090214 in preparation for updating NetBSD current.joerg1-2/+2
2009-02-13Non-matching signature file name is not an hard error, so return 1.joerg1-3/+3
2009-02-13Close the archive on fatal errors during signature validation. This canjoerg2-13/+29
happen e.g. if pkg_add finds a directory with that name. Remove a bunch of HAVE_SSL conditionals that no longer apply as GPG support is back in.
2009-02-13pkg_install-20090213:joerg3-17/+21
Fix pkg_delete -d: - ignore @dirrm commands, directories are removed already on demand - use local copy of dir before changing it, the caller expects it unmodified for the call to pkgdb_remove
2009-02-12Don't check for tgetent or curses, it is never used.joerg1-3/+0
2009-02-11pkg_install-20090212:joerg1-2/+2
Print the error about missing build information even when the +BUILD_INFO file is missing instead of segfaulting. The problem is from PR 30276, a solution in the form of just installing it will not be implemented.
2009-02-09Fix !OpenSSL build/bootstrap.joerg2-5/+13
2009-02-08regen.wiz2-6/+6
2009-02-08Spelling fixes.wiz1-2/+2
2009-02-08Use more markup.wiz1-3/+5
2009-02-05pkg_install-20090205:joerg1-2/+2
- Restrict audit related commands to the documented set and/or fix the documention. - Add support for conditional fetch-pkg-vulnerabilities via -u option.
2009-02-03Remove the remaining trails of HAVE_DBLIB.joerg1-22/+2
2009-02-03Fix PR 40456: Mac OS X can't deal well with BSS in static libraries.joerg1-3/+3
2009-02-03If no db.h or variant exists, use the one from nbcompat.joerg1-2/+4
For PR 40544.
2009-02-02Merge pkg_install-20090201 from pkg_install-renovation branch.joerg33-2477/+2653
- DB support is always included from libnbcompat if needed - pkg_view and linkfarm are not installed any more; they are not moved into the attic yet, so they can easily be installed as separte package - common configuration file to customise the behavior of various components; this supersedes the old audit-packages.conf - support for PKSC7 signatures (using X509 certs) and GPG signatures for packages in a secure way. See pkg_admin(8) for how to create them and pkg_install.conf(5) for the options to use them - audit-packages and download-vulnerability-list are wrapper scripts around pkg_admin. They try to mimic the classic options if used sanely. "pkg_admin audit" is now an order of magnitude faster than before - pkg_add uses libarchive and libfetch instead of external ftp and tar: - progress bar is currently missing for downloads - "pkg_add -" is no longer supported - no adhoc check for conficts between dependencies and already installed packages - "pkg_add -s" has been replaced with an option in pkg_install.conf, verification of plain detached GPG signatures is no longer supported - optional check for vulnerabilities before adding a package - if /var and /usr/pkg are on different fileystems it is twice as fast now - conflicts due to overlapping plists are checked before installation - pkg_add no longer plays with the process limits - pkg_add and pkg_delete have a new destdir option; scripts have to either be modified to use PKG_DESTDIR or should be disabled - pkg_add -u for now can't be used to update to the exact same version - internal "rm -rf" and "mkdir_p" code - all memory allocation failures are not explicitly fatal - if a file is not removed due to a failed checksum, still remove the entry from pkgdb
2008-12-14An int is not guaranteed to be 64bit and in fact isn't on mostrillig1-2/+2
platforms.
2008-10-13Fix strip_txz() so it actually works even when the extension found isn'terh2-5/+5
going to be returned. This fixes some issues with automatic installation of dependencies.
2008-10-02pkg_install-20081002:joerg1-2/+2
Explicitly cast time_t values to long and print them as such. Reported by bjs@.
2008-09-17pkg_install-20080916:joerg4-8/+16
Merge from changes for read_plist from pkg_install-renovation to always initialize the plist and add append_plist for the one case where this is not desired. Fixes PR 39276.
2008-09-1620080915:joerg3-11/+10
Merge a number of bugfixes from the pkg_install-renovation branch: - explicit include of nbcompat/md5.h - use errx when dealing with libfetch as it doesn't set errno - avoid optind = 0 as GNUish getopt will reset itself otherwise
2008-05-082-clause my license.wiz2-15/+3
2008-04-29Drop clauses 3 and 4 from TNF licensesmartin3-26/+5
2008-04-26Revert last change, it was not intended to go into HEAD.joerg10-191/+2155
2008-04-26Add a clean pkg_add implementation on top of libarchive and libfetch.joerg10-2155/+191
Known regressions: - "pkg_add -" (aka reading from stdin) is currently not supported - "pkg_add -s" is not supported either - no progress reports for the downloads - binary packages with hardlinks created by pkg_create before pkg_install-20080422 will not extract correctly (libarchive issue) - no adhoc check for potential conflicts between dependencies and already installed packages Features: - Twice as fast for the typical case of /var/tmp and /usr/pkg on different filesystems - Standalone - implicit conflict detection before actual installation.
2008-04-23pkg_install-20080423:joerg1-2/+2
Make the linkresolver code more robust.
2008-04-22pkg_install-20080422:joerg1-2/+2
Make use of the linkresolver from libarchive and thereby fix the permissions of hardlinks in archives. This wasn't a problem so far as nbpax is (incorrectly) ignoring the permissions of the other entries.
2008-04-18Move get_dash_string to pkg_create as only user.joerg2-25/+3
Remove str_lowercase.
2008-04-18Nuke unused macros.joerg1-10/+1
2008-04-16pkg_install-20080415:joerg1-2/+2
Add audit-history subcommand for pkg_admin, that lists all known vulnerabilities for a given base package name. E.g. if you run a web server, don't run "pkg_admin audit-history php" before going to bed.
2008-04-07pkg_install-20080407:joerg1-2/+2
Add command to print effective value of configuration variables. Remove FETCH_CMD variable from pkg_admin, it is not used.
2008-04-06Don't build pkg_io.c during bootstrap.joerg1-2/+4
2008-04-04pkg_install-20080404:joerg4-5/+152
Switch pkg_info to use libfetch for remote access.
2008-03-31Use a workaround to prevent a linker error on Mac OS X Leopard.tron1-2/+6
Reviewed by Joerg Sonnenberger and approved by Dieter Baron.
2008-03-13pkg_install-20080313:joerg1-2/+2
Audit functionality for pkg_admin. This uses the backend in libpkg_install and will be extended to check for vulnerabilities at pkg_add time later.
2008-03-11pkg_install-20080311:joerg2-3/+9
If the package db directory doesn't exist, handle it like an empty pkgdb and just return.
2008-03-10Add datarootdir to shut up configure.wiz1-1/+2
2008-03-09Don't print errno for missing GPG setting.joerg1-2/+2