Bugzilla – Bug 548
pkgadd -R /a -d TMCsudo.pkg -a noask TCMsudo fails
Last modified: 2012-03-13 17:36:56 MDT
It looks like the Solaris pkg file was generated without relative path names so it doesn't allow for pkgadd -R to function correctly. The postinstall script doesn't account for the alternate root so when it does the cp -p /etc/sudoers.dist /etc/sudoers - it fails. Modify the postinstall file so that the line sudoers=/etc becomse sudoers=${PKG_INSTALL_ROOT}/etc That will fix the postinstall.
I used pkgtrans to extract the package, and fixed the postinstall, then re-rolled it and it works.
Thanks, I've fixed the postinstall script and re-rolled the 1.8.4p4 packages.