Typo.
Add a lockfile to avoid 2 parallel running poudriere.
Of course we can remove the lockfile when everything goes right...
make bulk aware of pkgng
Bulk package on failure and continue on failure when used on a pkgng jail
Make NOPREFIX actually works.
Only rollback before building, skip detection is now faster
Enhance lock removal.

Setup a single lock removal when the script terminates instead of manual
deletion at random points.  This fixes the leftover of a lock file if
poudriere is run without argument.
Remove more locks deletions.
Add a createjail option for setting nameserver

Copying /etc/resolv.conf will not work if the host system runs a name
server (the file is usually empty or at least does not reference any
nameserver in that case).  Add an option to define a nameserver in the
jail before creating the snapshot, and warn the user when creating the
jail in case it is likely not to work as expected.
Do not list ports trees FS recursively.

We only need the 'root' directory of poudriere ports directories (the
ones containing the compat, ports and proc directories).
Add a fake flag for portstrees creation (-f).

This allows to build easily posrtstrees managed by portshaker, as
documented in the README file.
Create packages on failure.

Put the logic to create packages in a function. By the way, remove this pipe on
awk.
Use this function to package what is installed so far when an error is
reported. This is useful when the build fail while building a dep but we already
built 2 hours worth of deps (true story!)
style
Prevent lauching a jail already launched with no locks
Avoid log mashing.
New IP POOL:

IP= configuration option is deprecated
IPS="" is the new variable it support the following syntax:
A.B.C.D considered as a uniq IP
A.B.C.D/CIDR the network concerned is calculated and then all the IP address in
that network added to the pool
A.B.C.D/E.F.G.H: being IP/MASK same as above
A.B.C.D-E.F.G.H all the IPs contained in between the two adress are added to the
pool

to prevent as much mistake as possible all content that does not match this are
simply ignored

Remember this is POSIX shell script then to add multiple pattern:
IPS="patt1 patt2 patt3"
Remove debug echo
Reflect reality in example configuration file.

  * ports tree path is no more needed
doc: do not forget to create a defaults portstree.

    thx to nomad_fr for reporting it.