forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cgmanager-0.36-r1.ebuild
41 lines (34 loc) · 1.06 KB
/
cgmanager-0.36-r1.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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
DESCRIPTION="Control Group manager daemon"
HOMEPAGE="https://linuxcontainers.org/cgmanager/introduction/"
SRC_URI="https://linuxcontainers.org/downloads/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
RDEPEND="
sys-libs/libnih[dbus]
sys-apps/dbus"
DEPEND="${RDEPEND}"
src_prepare() {
# systemd expects files in /sbin but we will have them in /usr/sbin
pushd config/init/systemd > /dev/null || die
sed -i -e "s@sbin@usr/&@" {${PN},cgproxy}.service || \
die "Failed to fix paths in systemd service files"
popd > /dev/null || die
}
src_configure() {
econf \
--with-distro=gentoo \
--with-init-script=systemd
}
src_install () {
default
# I see no reason to have the tests in the filesystem. Drop them
rm -r "${D}"/usr/share/${PN}/tests || die "Failed to remove ${PN} tests"
# FIXME: openRC init scripts are not well tested
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newinitd "${FILESDIR}"/cgproxy.initd cgproxy
}