chdir(2) to portsdir before attempting to run make(1) -- this avoids
problems if the current working directory has been deleted out from
underneath us.

Fixes #773
Set default manpage directory to $(prefix)/man
Add all the files generated by automake et all to .gitignore
Only for a child worker when not debugging.
Command line: pkg -d -- doesn't take an argument.  Fix for the
!HAVE_JAILS case.
Add new pkgdb_open_all() -- same as pkgdb_open(), but allows
specifying the pkg repository to use as the 'reponame' arg. If
'reponame' is NULL, is identical to pkgdb_open()

Similarly for pkgcli_update(), add a reponame argument which, if not
NULL, is the only repository whose catalogue will be updated.

Add '-r reponame' option to 'pkg update' allowing selective updating
of repositories.

Change the effect of '-r reponame' in 'pkg install', 'pkg upgrade',
'pkg search', 'pkg rquery' and 'pkg version' to use only the named
repository, and to use that repository even if it is marked active:no
in repo.conf.

Thus on a typically configured FreeBSD 10 box, 'pkg install -r FreeBSD pkg'
will upgrade pkg using only the package available from pkg.FreeBSd.org.

Fixes #738
Improve upgrade output.
Use more convenient output for jobs:

Issue:	#768
Reported by:	@larsengels
Improve output in `upgrade` and `install`.
Ignore slit-delete packages for displaying.
Use unified function to detect cached package name

Now cached file is defined by function `pkg_repo_cached_name` that gets
package and tries to find where in the cache it can be found.
Add workaround to not refetch all packages.
Implement pkg register --relocate

Convert pkg register to getopt_long,
add --relocate option to register somewhere else than in base
add -A for --automatic for consitency
keep -d for compatibility
Add an annotation for relocated packages delete files/dirs from the relocated place
Do not reset package added to the universe.

When a provide requests to add some requirement it is required to set pkg to NULL
to avoid it being freed by the `pkgdb_it_next`.
Properly set patch when creating package for a relocated package
more verbose pkg update
Merge remote-tracking branch 'upstream/master'