Update to new repository location
Fix crash when installing netbeans

pkg: elf_getdata(note) for /usr/local/netbeans-7.3/profiler/lib/deployed/jdk15/hpux-pa_risc2.0w/libprofilerinterface.sl failed: Invalid data buffer descriptor

Reported by:	swills
Add links to new scanbuild location

Reported by:	Marin Atanasov Nikolov <dnaeon@gmail.com>
Fix misuage of pkg_emit_errorno
Fix registering shlibs with a stage directory
Continue initializing pkg even if pkg.conf is not existing
Implement a function for resetting the pkgdb_it iterator

* This would allow to re-iterate over a pkgdb_it iterator
fix: pkg_addfile_attr called with bogus path parameter
Try to create the tmp directory if it doesn't exists that helps
bootstrapping base from pkgng
Fix added indexes to remote repositories
Attempt to make the search.sh tests more self contained.  Previously
it would try and contact one of the default pkg repos, but we can't
assume that any build environment will have network access.
Eg. Jenkins certainly doesn't.