Round the note size up correctly.

ELF notes are 4-byte aligned, this fixes the size, which may not be a
multiple of 4, to round them up correctly. This stops pkg crashing on
armeb.
Reduce the number of call to hashes by caching debug_level
Upgrade db to know the unique id is the package name now
Fix stupid bug
Remove debug printf
1.4.0.alpha1
Remove wrong comment
Remove more useless comments
Also fetch the vulxml db from http://vuxml.freebsd.org/freebsd/vuln.xml.bz2
Only files starting with lib* should be considered as provided
Simplify sha256_fd
Get the right size for the checksum buffer

Submitted by:	az
Update tests to reflect changes in default config
1.4.0.alpha2
pkg check -r should also compute checksum for symlinks
Fix registering the right arch/abi
1.4.0.a4
Reinstall when dep origin change as well
If pkg->uid is null when requested from pkg_get then generate it
Properly set uuid in case somewhere changes pkgname