[cmake-developers] [PATCH] Setting default user, group and permissions for CPackRPM
Domen Vrankar
domen.vrankar at gmail.com
Tue Jan 13 01:55:04 EST 2015
Hi all,
I wrote a patch for http://www.cmake.org/Bug/view.php?id=14714 which
add support for defining RPM package default user, group, file
permissions and directory permissions (default file and dir
permissions accept the same values that are defined for install
command PERMISSIONS without SETUID and SETGID).
This patch is somewhat related to
http://public.kitware.com/pipermail/cmake/2014-December/059460.html
(bug report: http://www.cmake.org/Bug/view.php?id=3602) as it defines
user and group that should be used for RPM content but on a per RPM
scale since it is not possible to define it in install command.
My question is if such functionality would be useful for other CPack
packagers as well?
If yes for default user and group I would suggest adding the following
variables to CPack and the attached patch:
CPACK_DEFAULT_USER and CPACK_<compName>_DEFAULT_USER for default user setting
CPACK_DEFAULT_GROUP and CPACK_<compName>_DEFAULT_GROUP for default group setting
and if there would also be interest in default permissions also:
CPACK_DEFAULT_FILE_PERMISSIONS and
CPACK_<compName>_DEFAULT_FILE_PERMISSIONS for default file permissions
and
CPACK_DEFAULT_DIR_PERMISSIONS and
CPACK_<compName>_DEFAULT_DIR_PERMISSIONS for default directory permissions
Regards,
Domen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cpack-rpm-setting-of-defattr.patch
Type: text/x-diff
Size: 10219 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150113/7a24a953/attachment-0001.patch>
More information about the cmake-developers
mailing list