commit:     3faadaff44e4a25f13c271c323c51365f3109bee
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 23 00:55:25 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Feb 23 00:55:42 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3faadaff

app-portage/grs: check kernel config for CGROUPS

Package-Manager: portage-2.2.26

 app-portage/grs/grs-9999.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/app-portage/grs/grs-9999.ebuild b/app-portage/grs/grs-9999.ebuild
index 7eb8426..9f02750 100644
--- a/app-portage/grs/grs-9999.ebuild
+++ b/app-portage/grs/grs-9999.ebuild
@@ -1,9 +1,11 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI="5"
 
+inherit linux-info
+
 PYTHON_COMPAT=( python3_4 )
 
 inherit distutils-r1
@@ -38,6 +40,12 @@ RDEPEND="
                sys-kernel/genkernel-next
        )"
 
+pkg_setup() {
+       linux-info_pkg_setup
+       CONFIG_CHECK="~CGROUPS"
+       ERROR_CGROUPS="WARNING: grsrun requires CONFIG_CGROUPS enabled in the 
kernel."
+}
+
 src_install() {
        distutils-r1_src_install
        echo "CONFIG_PROTECT=\"/etc/grs/systems.conf\"" > "${T}"/20grs

Reply via email to