Assuming that it is necessary to have the permissions/ownership correct on the files that you're packaging up when creating an installp package, it seems that you have to perform installp packaging as root. Certainly mkinstallp is only executable by root, but you can bundle manually too, but I'm assuming that mkinstallp is executable only by root for a reason.

That being said, how do I create an installp bundle from a build script (makefile) without running the whole build as root? Am I missing something?

If anyone has any wisdom on integrating some form of installp package generation (whether lppbuild, mkinstallp etc) into an automatic build script I'd be grateful. I don't want to waste too much time on dead end methods (such as bypassing mkinstallp and building the package manually so as to set the permissions manually in the control files) if they are not going to work.

Thanks.