The problem here is that the postinstall script must be supplied to pkgbuild --scripts
Then supply that package to productbuild
Topic:
App & System Services
SubTopic:
Core OS
Tags: