Commit Graph

37 Commits

Author SHA1 Message Date
joerg
12490ea439 Import pkg_install-20090817:
Add a new command for pkg_admin: findbest. It takes one or more patterns
and searches for the best match in PKG_PATH, just like pkg_add would.
It prints the URLs of the best match for each pattern to stdout.

Rewrite the config file parser to read the file only once.

Fix a bug in pkg_add's -P handling. For dependencies the pkgdb path was
computed incorrectly and included destdir more than once.

Fix the ACTIVE_FTP option to actually set the "a" flag and not the old
"p" flag.
2009-08-21 15:18:57 +00:00
joerg
b9b5f22385 Use WARNS=4. 2009-08-06 16:57:20 +00:00
joerg
0590ec0a66 Import pkg_install-20090806:
- pkg_add: add support to check license conditions before installation
- pkg_delete: add -k option to skip over preserve packages.
- WARNS=4 clean, fix some potential uses of uninitialized variables
2009-08-06 16:55:16 +00:00
joerg
fdc1dac9e9 Import pkg_install-20070724:
- license handling: accept upper case letters. Keep license checks
  case-sensitive as done in the older pkgsrc logic. Document this.
  OK dillo@, schmonz@, wiz@
- pkg_info:
  - fix handling of non-packages, that are valid archives
  - invert order of pkg_info -r to better match the expectations of
    make update.
2009-07-26 22:59:33 +00:00
joerg
e4b9854077 Update to pkg_install-20090610:
Improve diagnostic of the license code.
2009-06-14 23:30:57 +00:00
joerg
93b14ea890 Import pkg_install-20090528:
Reenable extraction of ownership from tarballs.
2009-05-28 09:00:54 +00:00
joerg
cef902d2d0 Import pkg_install-200927:
- pkg_info -r provides topological sorting
- sync license list with pkgsrc/mk/licenses.mk
2009-05-27 22:41:35 +00:00
joerg
0334ae0007 Merge for pkg_install-20090513. 2009-05-17 21:31:59 +00:00
joerg
52b3fbfec5 Import pkg_install-20090513:
- Make compression type selection in pkg_create optionally explicit.
- PREV_PKGPATH / SUPERSEDES
2009-05-17 21:21:07 +00:00
joerg
bfdba539cb Update build system for pkg_install-20090425. 2009-04-26 14:18:44 +00:00
joerg
51e2fd09ed Import pkg_install-20090425:
Add logic to evaluate license conditions. As frontend for pkgsrc,
pkg_admin gets two new commands (check-license and
check-single-license), which can be used to evaluate a given condition.
pkg_add will be changed to honour licenses at a later point.
2009-04-25 21:38:18 +00:00
joerg
0ec643dcd9 Import pkg_install-20090424:
Make pkg_delete -d the default behavior, remove the option.
Remove pkg_create -R support (reorder @dirrm entries).
Introduce new plist command @pkgdir, which makes pkg_add add
this directory if it doesn't exist already and pkg_delete remove it
only if no other package has a @pkgdir entry for it. Otherwise
directories are pruned when the last file or directory in them is
removed. @dirrm is now a pure hint, if the directory doesn't exist, it
will be silently skipped.
2009-04-24 14:16:52 +00:00
joerg
94109f5e3c Import pkg_install-20090424:
Make pkg_delete -d the default behavior, remove the option.
Remove pkg_create -R support (reorder @dirrm entries).
Introduce new plist command @pkgdir, which makes pkg_add add
this directory if it doesn't exist already and pkg_delete remove it
only if no other package has a @pkgdir entry for it. Otherwise
directories are pruned when the last file or directory in them is
removed. @dirrm is now a pure hint, if the directory doesn't exist, it
will be silently skipped.
2009-04-24 14:16:43 +00:00
joerg
d595a1c226 Import pkg_install-20090406:
Remove premature return that broke dependency tracking for pkg_add -u.
Fixes PR 41143.
2009-04-06 18:49:08 +00:00
joerg
0c588b7da9 Import pkg_install-20090309:
Fix double free in pkg_info.
2009-03-10 00:48:40 +00:00
joerg
1b46f9c5df Merge pkg_install-20090307. 2009-03-08 14:53:16 +00:00
joerg
908e85af04 Import pkg_install-20090307: Fix a file descriptor leak in pkg_add. 2009-03-08 14:51:34 +00:00
joerg
08d9a1067c Avoid sign comparision issues. 2009-03-06 15:17:56 +00:00
joerg
bae4fdf17e Import pkg_install-20090302:
- plug some file descriptor leaks
- add pkg_info -r
2009-03-02 22:31:13 +00:00
joerg
60d9c2168a Update build glue for pkg_install-20090228. 2009-02-28 19:36:32 +00:00
joerg
847d5ab660 Merge changes for pkg_install-20090228. 2009-02-28 19:36:23 +00:00
joerg
e50ad3d100 Import pkg_install-20090228:
- pkg_add:
  - more consistent PKG_PATH processing
  - support setting PKG_PATH in pkg_install.conf(5)
  - don't crash when installing package with conflicts
  - fix updating packages with explicit +PRESERVE
  - document the rules for finding packages more clearly
- pkg_info:
  - don't complain about PKG_PATH, it is not used
  - sync documentation with reality
2009-02-28 19:33:34 +00:00
joerg
8ef7bd4c41 Merge. 2009-02-26 19:40:24 +00:00
joerg
4d694e83af Remove pkg_install.conf.5 on make clean. 2009-02-26 18:35:13 +00:00
joerg
e0c851f773 Update build glue for pkg_install-20090225. 2009-02-25 21:23:17 +00:00
joerg
3018e10272 Import pkg_install-20090225:
- improve diagnostic for audit-packages wrapper
- new pkg_delete code:
  - topologocial ordering of packages
  - bails out before removing anything if it knows that it will run into
    problems later
  - new option -A: remove automatic installed packages that are no
    longer used (e.g. pkg_add foo; pkg_delete -A foo should not alter
    the list of installed packages)
- less chatty pkg_info for -Q
2009-02-25 21:21:40 +00:00
joerg
6a4d107f7d Install pkg_install.conf(5). 2009-02-15 18:24:49 +00:00
joerg
b8b994aea2 Import pkg_install-20090214:
- pkg_add:
  - doesn't crash on missing +BUILD_INFO
  - for -u skip the package it will update when l oking for conflicts
  - don't fail in libarchive when trying to use directories as packages
- pkg_admin:
  - stricter argument checking for audit family of commands
  - fetch-pkg-vulnerabilities -u will only update if the remove file
    is newer
- pkg_delete:
  - fix PKG_METADATA_DIR passed to deinstall script
  - when using -d, ignore @dirrm
  - fix -d code to unregister the correct pkgdb entry
- pkg_info:
  - fix crashes on incomplete packages
2009-02-14 17:18:56 +00:00
joerg
560d13285f Retire. 2009-02-05 19:58:17 +00:00
wiz
ba273597f5 New sentence, new line. Use more markup. 2009-02-03 05:16:08 +00:00
joerg
bb314659c8 Merge pkg_install-20090201 and update build system. 2009-02-02 20:47:19 +00:00
joerg
d66ee6c3fd Import pkg_install-20090201. From the branch merge in pkgsrc:
- 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
2009-02-02 20:44:00 +00:00
joerg
7efce18adf Drop non-applicable part of the original version in libarchive. 2008-11-07 15:24:44 +00:00
joerg
21150ac7ce pkg_install-20081002:
Explicitly cast time_t values to long before printing them.
Reported by bjs.
2008-10-02 20:49:40 +00:00
joerg
a3ad79d9ac Add missing RCS ID. 2008-10-01 07:53:27 +00:00
joerg
1e58602315 Add build glue for pkg_install. 2008-09-30 19:19:56 +00:00
joerg
af21abb57f Import pkg_install-20080916. Major changes include:
- vulnerability check backend moved into lib for reuse in pkg_add
- add pkg_install.conf parsing for common configuration of the various
  pkg_install components
- fix crashes related to uninitialised PLIST structures
- check explicitly if the required files in pkgdb are present, fixing
  issues with ~empty left-over directories
- improve hardlink handling in pkg_create using the libarchive link
  resolver
- pkg_delete with -P overwrite now updates the pkgdb correctly
- silence warning about empty /var/db/pkg, it provides no value
- pkg_info uses libfetch for remote locations and works without
  temporary files, speeding up operation a lot
2008-09-30 19:00:25 +00:00