On 20/07/13 10:00, Nathan Scott wrote:
FWIW, the top level GNUmakefile does this...
$(INSTALL) -m 775 -g $(PCP_GROUP) -d $(PCP_RUN_DIR)
As a result, I thought we were covered for all the other package systems
(but admittedly I didn't check anything beyond that level).
Thanks, saves me some hunting.
Adding dirs into the GNUmakefiles is definite goodness so they are owned
by the package ... but you can't set the non-root uid or gid there (nor
the mode in some extreme cases, like sticky or setuid or setgid, if I
recall correctly). Which is why we have this fixup stuff spread all
over the landscape like this ...
$ find * -type f -a \( -name "*pre*" -o -name "*post*" \) | xargs egrep
-l 'chown|chgrp|chmod'
build/mac/installer-resources/postinstall
build/mac/installer-resources/postupgrade
build/deb/pcp-3.8.2/build/mac/installer-resources/postinstall
build/deb/pcp-3.8.2/build/mac/installer-resources/postupgrade
build/deb/pcp-3.8.2/build/tar/postinstall
build/deb/pcp-3.8.2/build/tar/postinstall.tail
build/deb/pcp-3.8.2/build/sun/postinstall
build/deb/pcp-3.8.2/debian/pcp-testsuite.postinst
build/deb/pcp-3.8.2/debian/pcp.postinst.tail
build/deb/pcp-3.8.2/debian/pcp-testsuite/DEBIAN/postinst
build/deb/pcp-3.8.2/debian/pcp.postinst
build/deb/pcp-3.8.2/debian/pcp/DEBIAN/postinst
build/tar/postinstall.tail
build/sun/postinstall
debian/pcp-testsuite.postinst
debian/pcp.postinst.tail
debian/pcp.postinst
|