Custom actions for patching pkgdef files.