This is an old revision of the document!
libpkg
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 links: http://www.freebsd.org/projects/ideas/#p-ports-db http://www.freebsd.org/projects/ideas/#p-ports-pkgtools