• [gentoo-dev] [PATCH 1/2] fcaps.eclass: introduce FCAPS_CAPS_MODE and FC

    From Mike Gilbert@21:1/5 to All on Sun Nov 10 23:00:01 2024
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    ---
    eclass/fcaps.eclass | 18 +++++++++++++++---
    1 file changed, 15 insertions(+), 3 deletions(-)

    diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass
    index 477e1e954ab8..bf05776ba760 100644
    --- a/eclass/fcaps.eclass
    +++ b/eclass/fcaps.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2023 Gentoo Authors
    +# Copyright 1999-2024 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: fcaps.eclass
    @@ -66,6 +66,18 @@ esac
    #
    # Note: If you override pkg_postinst, you must call fcaps_pkg_postinst yourself.

    +# @ECLASS_VARIABLE: FCAPS_CAPS_MODE
    +# @USER_VARIABLE
    +# @DESCRIPTION:
    +# Mode to use when capabilities are supported.
    +: ${FCAPS_CAPS_MODE:=0711}
    +
    +# @ECLASS_VARIABLE: FCAPS_NOCAPS_MODE
    +# @USER_VARIABLE
    +# @DESCRIPTION:
    +# Mode to use when capabilities are not supported.
    +: ${FCAPS_NOCAPS_MODE:=4711}
    +
    # @FUNCTION: fcaps
    # @USAGE: [-o <owner>] [-g <group>] [-m <mode>] [-M <caps mode>] <capabilities> <file[s]>
    # @DESCRIPTION:
    @@ -96,8 +10