Basic support in the pkg_install tools for package views.
Merge from the HEAD into the pkgviews branch for src/usr.sbin/pkg_install.
Make -R and --restow do the same thing as intended.
Look at all of the arguments, or else "linkfarm -V" won't work properly.
First pass at a man page for linkfarm(1).
Use "$sortprog" instead of "sort" in the same spirit as why they other
programs are invoked via "*prog" variables -- easier to customize.
Correct the program name in the usage statement.
Supply a default value (/var/db/pkg) for the location of the packages
database instead of relying on PKG_DBDIR to be properly set in the
environment.
Until pkgviews has been integrated into pkgsrc, only support the default
view in ${LOCALBASE}.
Specify a full path to linkfarm so we always use the correct linkfarm
script.
If we add a package to the standard view, make the +CONTENTS file contents
a bit prettier by not putting a trailing slash on the @cwd.
Give more descriptive error messages if we are using the standard view.
Allow specifying a stowdir that is not under the prefix directory.  This
allows adding depoted packages outside of ${LOCALBASE} into the default
view in ${LOCALBASE}.
Add a rough pkg_view(1) manual page.
Output the version number if -V is specified on the command line, and
allow "pkg_view -V" to work with no further arguments.
Document that -V causes the version string to be outputted.
Match the version string to the other pkg_* utilities'.
Ignore the metadata files when we remove a package from a view so we don't
complain about missing files in /usr/pkg.  Also fix the grep expression so
that it really works.
PLIST_IGNORE_FILES is simply the default value for "ignorefiles".  When we
actually need to ignore files when adding or deleting files from a view, we
want to use pass ${ignorefiles}, which contains the true list of files to
ignore, through to the linkfarm script.
One sentence was out of order.