Fix a regression is plist parser

last_file cannot be anymore a pointer given that previous line is not kept in memory anymore
Use a throwaway copy of local.sqlite for testing purposes.  Need to
populate this with dummy packages.  Hmmm....
Revamp pkg register

- Make plist optional

- Add testing_mode, which turns off pkg_analyze_files() and
  pkg_copy_tree(), ie. don't require package files to be present on
  disk.  Needless to say, this can really fubar your package database
  if used intemperately.

- Add -M option to read *only* from the named metadata file, instead
  of all the legacy +FILES used by pkg_tools

- Remove several pointless uses of strdup().
Update the pkg-register man page to match changes in the previous commit.
Fix usage_register() message and tidy up some comments.
D'Oh!  After all that effort to read the manifest file name, perhaps
we should use it to read the manifest from.
Use a dummy $PKG_DBDIR/local.sqlite populated with data for two
arbitrarily selected packages.  Uses some manifest files created by
'pkg info -R pkgname'

Use INSTALL_AS_USER=yes so tests don't need special privileges to run.
Hook up the regression tests to the top-level makefile, now the tests
are starting to do something useful.

Time to start filling in the test cases.
Fix ordering for make release
Make failure of the regression test fatal to the release process
Revert "Make failure of the regression test fatal to the release process"

This reverts commit 39f7b72d71f3978b80bc81113b9b794745de92c8.

atf-run doesn't seem to alter exist status based on tests passed or failed.
Order the targets in a more logical way
New Release 1.1.a3
Revert "New Release 1.1.a3"

This reverts commit 3aebcb5f97965900619d40453af19014fe8fdc1b.

Testing the 'make release' process
Use the freshly compled pkg(8) and libpkg(3) in the source tree for
testing.