forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grs-0.5.ebuild
49 lines (41 loc) · 1.01 KB
/
grs-0.5.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python3_{4,5,6} )
inherit distutils-r1 linux-info
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/grss.git"
inherit git-r3
else
SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
KEYWORDS="amd64"
fi
DESCRIPTION="Suite to build Gentoo Reference Systems"
HOMEPAGE="https://dev.gentoo.org/~blueness/${PN}"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
DEPEND=""
RDEPEND="
app-arch/tar[xattr]
app-crypt/md5deep
dev-libs/libcgroup
dev-vcs/git
net-misc/rsync
sys-apps/portage
sys-fs/squashfs-tools
virtual/cdrtools
|| (
sys-kernel/genkernel
sys-kernel/genkernel-next
)"
pkg_setup() {
local CONFIG_CHECK="~CGROUPS"
local ERROR_CGROUPS="WARNING: grsrun requires CONFIG_CGROUPS enabled in the kernel."
linux-info_pkg_setup
}
src_install() {
distutils-r1_src_install
echo "CONFIG_PROTECT=\"/etc/grs/systems.conf\"" > "${T}"/20grs
doenvd "${T}"/20grs
}