Update -L:
Do not reset the logfile at the start of each package. Also
try to make the 'tail' of the logfile in the event of an
error more useful.
Implement -l:
List the filename for all binary packages (including the
exact dependencies against which each package was built)
based on pkgchk.conf. Will abort if a binary package is
missing. This can be used (in conjunction with -U and -D)
to determine what packages would need to be copied to a
remote machine to ensure it was completely up to date.
Work around a deficiency in the 1.6 pkg_add - cd to the directory
containing a binary package before running pkg_add, to ensure it can
pick up dependencies.
'Makefile' is back in BUILD_VERSION, so add it back in here.
Implement '-f' based on patches from norm@sandbox.org.uk - perform a
fetch for all missing/mismatched packages before any building. Can be
used with -c or -i to just fetch missing/mismatched packages.
Handle updated format of +BUILD_VERSION - sometimes patches are recorded
with paths, sometimes not. Ideally we would have a show-build-version
target in bsd.pkg.mk which could be sued by us, but that doesn't help
checking against existing installations where nothing has changed except
the way +BUILD_VERSION is formatted.
Handle -r and -a on the same line (remove mismatched packages, then add)
In the -B case avoid an extra 'make' invocation - reduces time taken on
my system by 45%
Changes from Stoned Elipot to permit setting additional tags in mk.conf
or similar, plus handling and tags (eg: 'x11/acroread x11+i386').
Also expand the manpage slightly and give some examples.
Speed optimisations:
Reduce number of calls to 'make'
If a package is checked in the '-u' check, skip it in the '-a' check
Features:
Output after the checking phase is now suitable for use as an sh script
Implement '-r' which will recursively delete mismatched packages
Fixes:
Change pkgchk references to pkg_chk
Check during install if packages have already been installed.
Avoids reinstalling a package if it had already been installed as
a depends on a previous package.
- Add Solaris portability fixes supplied by Stoned Elipot in PR pkg/13434.
- Rename binary to "pkg_chk" which matches the naming of our package tools
and avoids confusion with Solaris's "pkgchk" command.