Fix libpkg locking arguments.
Update utilities for lock API.
Print what process holds the lock.
Merge branch 'pkg-lock-config'
First cut at reworking alias expansion so that it copes with quoted
strings in the alias arglists.  It's not exactly the same as the way
the shell breaks a command line into arguments, but similar.

This standard example now works:

ALIAS              : {
  ...
  leaf: query -e "%a == 0" "%n-%v",
  ...
}

by replacing the argv[0]:

leaf

inserting the following as argv[0] .. argv[3] and shifting any
remaining args down:

query
-e
%a == 0
%n-%v

A quoted argument extends to the next matching quote mark, or the end
of the alias string.  There's no check for balanced quote marks, nor
is any error message issued if quotes are not closed.  There's no
provision for escaping quote marks like so: \" (despite what pkg -vv
outputs).

You can use "double" or 'single' quotes interchangeably; the only
difference is that within a pair of "double quotes" a sigle quote "'"
loses it's special meaning and is copied verbatim into the expanded
argv.  And vice-versa for a double quote in a single-quoted argument.
Merge branch 'master' of github.com:freebsd/pkg
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