summaryrefslogtreecommitdiffstats
path: root/recipes-containers/cgroup-lite/cgroup-lite_1.15.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/cgroup-lite/cgroup-lite_1.15.bb')
-rw-r--r--recipes-containers/cgroup-lite/cgroup-lite_1.15.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-containers/cgroup-lite/cgroup-lite_1.15.bb b/recipes-containers/cgroup-lite/cgroup-lite_1.15.bb
new file mode 100644
index 00000000..7b48c3ac
--- /dev/null
+++ b/recipes-containers/cgroup-lite/cgroup-lite_1.15.bb
@@ -0,0 +1,34 @@
1SECTION = "devel"
2SUMMARY = "Light-weight package to set up cgroups at system boot."
3DESCRIPTION = "Light-weight package to set up cgroups at system boot."
4HOMEPAGE = "http://packages.ubuntu.com/source/artful/cgroup-lite"
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://debian/copyright;md5=5d5da4e0867cf06014f87102154d0102"
7SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+files/cgroup-lite_1.15.tar.xz"
8SRC_URI += "file://cgroups-init"
9SRC_URI[md5sum] = "1438c1f4a7227c0dedfce5f86f02591d"
10SRC_URI[sha256sum] = "02f44c70ed3cf27b9e89e5266492fddf4b455336ab4e03abc85e92297537201f"
11
12inherit allarch update-rc.d systemd
13
14INITSCRIPT_NAME = "cgroups-init"
15INITSCRIPT_PARAMS = "start 8 2 3 4 5 . stop 20 0 1 6 ."
16
17# Keeps the sysvinit scripts out of the image if building
18# where systemd is in use.
19SYSTEMD_PACKAGES = "${PN}"
20SYSTEMD_SERVICE_${PN} = "cgroups-init.service"
21SYSTEMD_AUTO_ENABLE_${PN} = "mask"
22
23
24do_install() {
25 install -d ${D}/bin
26 install -m 0755 ${S}/scripts/cgroups-mount ${D}/bin
27 install -m 0755 ${S}/scripts/cgroups-umount ${D}/bin
28
29 install -d ${D}${sysconfdir}/init.d
30 install -m 0755 ${WORKDIR}/cgroups-init ${D}${sysconfdir}/init.d/cgroups-init
31
32 install -d ${D}${systemd_unitdir}/system
33 ln -sf /dev/null ${D}${systemd_unitdir}/system/cgroups-init.service
34}