> Copying entire directory structures is the unusual case. It's always > preferrable that upstream provide some sort of sane build system that > gets all the permissioning correct. I would suggest using: > > cp -dr --no-preserve=ownership > > This way, fakeroot installs the files as root but preserves other > metadata.
In order to preserve mode and timestamps, the command has to be either: cp -dpr --no-preserve=ownership /sourcedir /targetdir or: cp -dr --preserve=mode,timestamp /sourcedir /targetdir Cheers, Christoph
