Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
eclass/fcaps: Support EAPI 5
Browse files Browse the repository at this point in the history
  • Loading branch information
krnowak committed Nov 23, 2021
1 parent 0718809 commit ca212b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions eclass/fcaps.eclass
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Flatcar: Support also EAPI 5.

# @ECLASS: fcaps.eclass
# @MAINTAINER:
# [email protected]
# @SUPPORTED_EAPIS: 6 7 8
# @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: function to set POSIX file-based capabilities
# @DESCRIPTION:
# This eclass provides a function to set file-based capabilities on binaries.
Expand All @@ -30,7 +32,7 @@
# @CODE

case ${EAPI} in
6|7|8) ;;
5|6|7|8) ;;
*) die "EAPI ${EAPI:-0} is unsupported" ;;
esac

Expand All @@ -42,7 +44,7 @@ IUSE="+filecaps"
# Since it is needed in pkg_postinst() it must be in IDEPEND
case ${EAPI} in
7) BDEPEND="filecaps? ( sys-libs/libcap )" ;& # fallthrough
6) RDEPEND="filecaps? ( sys-libs/libcap )" ;;
5|6) RDEPEND="filecaps? ( sys-libs/libcap )" ;;
*) IDEPEND="filecaps? ( sys-libs/libcap )" ;;
esac

Expand Down

0 comments on commit ca212b2

Please sign in to comment.