No need to set obj to NULL it will be set automatically later, this fix a gcc 47 warning
Fix warning from gcc 4.7
Remove unused variable
Autodetect if bundled libelf is necessary
pkg_fetch_file now takes a mkstemp(3) pattern

while here fix pkg_fetch_file_to_fd when a repo is not set
this fixed pkg audit -F when a previously interrupted fetch has happened
Show the port version and not the version in pkg -v

While here properly align the "version :" string
Fix loading of manifest with permission set in attributes for files
Workaround warning spotted by gcc 4.7
Fix build with gcc.

  This patch "force" gcc not to complain, but the warnings are
  legitimate. Comments suggest that we should refactore where needed.
Style fix
Allow to use a string for the "enabled" key in repo configuration but warn about it
Fix build with bundled libelf
Use short version of git hash and concat it to the version
Actually we are in 2013
Only propose the necessary in pkg -vv output

Reported by:	ohauer
Fixes: #648
Quote every string in pkg -vv suggested output
Fix pkg rquery alwas print index like output
The -P and -R options were swapped round.  Sheesh...
Merge branch 'master' into docco