Added pkg-install to set config/localstate file perms. Added in post-install: the function to set the perms.