Hi Tyge,
Thanks for sharing your insights!
I've updated the pkgbuild:
db_name is now set to oacs-5-10 as default.
The post_install script should already set the permissions of /usr/lib/openacs to nsadmin:nsadmin:
oacs_dir=/usr/lib/openacs
oacs_user=nsadmin
oacs_group=nsadmin
chown -R ${oacs_user}:${oacs_group} ${oacs_dir}
There could be cases where the post_install script is not run, possibly after an upgrade. The assumption is that it was already called during the first install.