Hi Dave, On Wednesday 16 June 2010 11:38:48 am Dave Plater wrote:
On 06/16/2010 10:26 AM, Jean Delvare wrote:
"install" indeed doesn't seem to handle recursive copies, so I fear you have to do it on your own, using cp -r for the copy, followed by chown -R and chmod -R on the destination tree.
Doesn't cp -pr also preserve permissions? From man cp: -p same as --preserve=mode,ownership,timestamps --preserve[=ATTR_LIST] preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes: context, links, xattr, all Regards
This is indeed an option, however it assumes that the original files do have proper permissions. Given the upstream packages I've seen in the past with all files set as executable, it may not be a safe assumption. It is probably a good idea to use it anyway, at least for preserving the timestamps, but you may still want to enforce specific permissions with chmod -R and/or chown -R afterward. -- Jean Delvare Suse L3 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org