Match both the standard ports-mgm/pkg port and the upcoming
ports-mgm/pkg-devel port.  The SQL JOIN condition at line 2611 of
pkgdb.c means that only an origin matching what is already installed
should be selected in that case.
Ewwwww.... REGEXP uses the obsolete basic RE syntax, which doesn't
have a ? operator (use \{0,1\} instead) and needs characters to be
back-slashed to make them special.  Horrid.
C-strings need more escaping.
Nuke basic regex support, as it's obsolete according to re_format(7)
Remove the '-X' option from most commands: '-x' still means 'match
using regexes' but the syntax is now the modern style with '?' and '+'
operators and without excessive backslashing of special characters.

Eg.

```
% pkg info -x '(git|subversion)'
git-1.7.11.5
p5-subversion-1.7.6
subversion-1.7.6
```

Similarly the REGEXP operator in SQL will now use the modern syntax.
Remove the portmaster patch to ensure people are using the latest port version.
Add -l option to pkg(8) to list available commands.  This is mostly
for the benefit of people writing shell tab-completion scripts.
Small grammar fix reported by Andrew Clarke
Fixes #382.  Allow multi-part version numbers for shlibs.  Technically
this is *wrong*.  The ABI version should be a simple integer or not
present at all.  However cluelessness abounds and eg. the mail/elm+ME
port gets it wrong.
Issue #382: In DEVELOPER_MODE, warn about ELF objects that link
against shlibs that don't follow the correct naming convention.
Trivial style(9) fix
All the cool kids are using hash tables rather than STAILQ nowadays.
gcc needs __DECONST()
pkg-create: Fix -m incorrectly requiring an argument
pkg-create: Use proper logic to not require an excess argument with -m
pkg-create: Document +DESC support
osversion is no longer valid
Update the FAQ about /usr/lib/libpkg.so, now the message is about pkg_init where
it used to be able pkg_event_register
When deleting dirs, don't emit errors if unable to remove a mounted dir.

rmdir() returns EBUSY only if the directory is mounted. If a user
has a directory mounted that appears in a plist, they will need
manual intervention to clean it up. This potentially could be
/usr or /var if packaging base, so just avoid the warning.
Add new pkg_plugin_{errno,error,info} to emit information from the plugins
thought the event interface
Add a PKG_PLUGIN_HOOK_EVENT to receive all the event through a plugin