Add %install* macro actions
It might make sense to add %installdir
, %installfile
and %installexe
macros with default permissions, as it can help distinguish intent and ensure less typos related to permissions and lowering cognitive load.
It will also have the additional benefit of being both shorter than an actual install -dm00755
invocation while still allowing the packager to override the default permission while preserving intent.
$ install -dm00755 -dm00775 /tmp/testdir
$ ls -ld /tmp/testdir/
drwxrwxr-x 2 ermo ermo 40 Nov 24 14:31 /tmp/testdir/
Looks like it might fit in well with https://gitlab.com/serpent-os/core/boulder/-/blob/main/data/macros/actions/misc.yml ?
Edited by Rune Morling