Calculate the content of symlink passed.
Fix symlinks checking against checksums.
Add debug message for repo upgrade sql.
Fix repo upgrade sql.

Reported by:	az
Avoid endless recursion on circular dependencies.
Remove AUTODEPS it is not needed anymore with the new solver
pkg-add: Add error when pkg_parse_manifest() fails
Implement transactional repo update.
Completionism: add --debug as a synonym for -d -- this is the only
short option without a long equivalent.
Document the long-format options used by pkg-register, including --old
(Temporary for compat with old pkg_register) and --relocate (New,
experimental)
Long options
autoremove -- long options

audit -- lets sort the options too
Long options

-- convert to the normal getopt_long() style of options processing.
Long options
Long options
Long options

Stylize
Long options
Add a new function: pkg_create_from_manifest()

This is a simplified version of pkg_create_staged() which only reads a
manifest file (named as an argument) to find all of the required pkg
metadata.  None of the legacy bits inherited from pkg_tools (plist
+DESC, +DISPLAY, +MTREE_DIRS, PKG_DESC).

You need a pretty much complete manifest eg. as derived from 'pkg info
-R' -- you don't need to supply file checksums as those will be
recomputed, and you don't need to supply provided/required shlibs as
those will be autodiscovered too.
Add -M manifest option -- specify just the manifest file and build a
package out of that alone.
Long options