This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -30,7 +32,7 @@ | |
# @CODE | ||
|
||
case ${EAPI} in | ||
6|7|8) ;; | ||
5|6|7|8) ;; | ||
*) die "EAPI ${EAPI:-0} is unsupported" ;; | ||
esac | ||
|
||
|
@@ -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 | ||
|
||
|