1 |
commit: 3faadaff44e4a25f13c271c323c51365f3109bee |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 23 00:55:25 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 23 00:55:42 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3faadaff |
7 |
|
8 |
app-portage/grs: check kernel config for CGROUPS |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
app-portage/grs/grs-9999.ebuild | 10 +++++++++- |
13 |
1 file changed, 9 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/app-portage/grs/grs-9999.ebuild b/app-portage/grs/grs-9999.ebuild |
16 |
index 7eb8426..9f02750 100644 |
17 |
--- a/app-portage/grs/grs-9999.ebuild |
18 |
+++ b/app-portage/grs/grs-9999.ebuild |
19 |
@@ -1,9 +1,11 @@ |
20 |
-# Copyright 1999-2015 Gentoo Foundation |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Id$ |
24 |
|
25 |
EAPI="5" |
26 |
|
27 |
+inherit linux-info |
28 |
+ |
29 |
PYTHON_COMPAT=( python3_4 ) |
30 |
|
31 |
inherit distutils-r1 |
32 |
@@ -38,6 +40,12 @@ RDEPEND=" |
33 |
sys-kernel/genkernel-next |
34 |
)" |
35 |
|
36 |
+pkg_setup() { |
37 |
+ linux-info_pkg_setup |
38 |
+ CONFIG_CHECK="~CGROUPS" |
39 |
+ ERROR_CGROUPS="WARNING: grsrun requires CONFIG_CGROUPS enabled in the kernel." |
40 |
+} |
41 |
+ |
42 |
src_install() { |
43 |
distutils-r1_src_install |
44 |
echo "CONFIG_PROTECT=\"/etc/grs/systems.conf\"" > "${T}"/20grs |