libpkg
libpkg is a library provided by pkg
Goal: reorganize common functionality among pkg_* tools into a single library. Provide the pkg_* tools similarly to the way fetch/libfetch exist?
Some thoughts from WesleyShields:
- move the shared code of pkg_* into a library
- make pkg_* use said library
- optimize the internals of the library
- at this point you should have a good understanding of pkg internals and what's good and bad about them
- possibly re-write pkg_* and libpkg to remove the ugly parts or make them better
Related link: http://www.freebsd.org/projects/ideas/#p-ports-pkgtools
Interesting design choices from OpenBSD pkg_add:
Marc EspiƩ's conference slides at EuroBSDCon 2010 http://www.openbsd.org/papers/eurobsdcon_2010_pkg_add/mgp00001.html