Behind the scenery Just like the original binpatch we work with an extracted OpenBSD install as well as extracted src Source is patched, rebuild according to the rules in the Makefile We iterate over the result, finding changed files Instead of simply tar'ing the result, we create a proper OpenBSD pkg Since pkg_create(1) has various sanity checks for file modes, I added some perl magic to hack-up the generated plist