Add new MAX_MEMORY and TMPFS_LIMIT to allow limiting memory
Show (-C) when used when deleting existing packages
For install,deinstall,package,extract limit execution time to 1 hour to avoid endless loops like devel/meta-cvs in r337304
Remove extra bogus line

Reported by:	antoine
Allow BUILDNAME to be overridden in poudriere.conf

Requested by:	mat
Fix some typos
Fix blacklist

Submitted by:	mat
Add PREPARE_PARALLEL_JOBS and -J n:p

Submitted by:	mat (based on)
Fix sanity checks not properly recursively deleting packages

This was manifest as missing dependencies during package building
due to out-of-order builds caused by the queue not having
the proper dependency list because of not rebuilding some
packages when their dependencies were deleted.

This was mostly due to using || on commands which disabled the
set -e handling. By properly recording return statuses and returning
and checking on them sanity_check_pkgs again works.

This was a regression from [3540bd46d9]

Reported by:	antoine, mat, bdrewery
With help from:	antoine
Remove extra -J description

Submitted by:mat
Reuse _wait by allowing it to take multiple pids
Fix hang sometimes in parallel_run/sanity check when reap_children
returns early.
Fix race between next_in_queue and balance_pool

  mv: rename /poudriere/data/build/91amd64-pkgng/ref/poudriere/pool/unbalanced/p5-Role-Tiny-1.003.002 to /poudriere/data/build/91amd64-pkgng/ref/poudriere/building/p5-Role-Tiny-1.003.002

Reported by:	mat
Fix race between queue_empty and balance_pool.

This may have been resulting in stuck queue crashes.

Reported by:	many
Fix PARALLEL_JOBS being always set to number of cpus during prepare phase (common.sh sets it)
Use mtime of pkg in cache to ensure they are never out of sync
Fix usage of cpdup -X/-x.

-X only accepts 1 file containing a list of files/dirs to ignore.
Use -x with .cpignore in each subdir to properly only exclude
/usr/src and /poudriere.

Note that this does not change any behavior as it worked by
accident before. /usr/src was ignore since it was null-mounted
and /poudriere was ignored since it was listed 2nd as -X
which is ignored itself.

Reported by:	John Hein
bulk: Avoid doing a rollbackfs on first builds on a fresh mount
Remove bogus * from [fa8e9d27d1]
Add kill_and_wait().

This will gracefully kill all pids passed in and wait
the specified time before force killing them with
SIGKILL.