diff options
Diffstat (limited to 'recipes-containers/cgroup-lite/cgroup-lite_1.15.bb')
| -rw-r--r-- | recipes-containers/cgroup-lite/cgroup-lite_1.15.bb | 34 |
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 @@ | |||
| 1 | SECTION = "devel" | ||
| 2 | SUMMARY = "Light-weight package to set up cgroups at system boot." | ||
| 3 | DESCRIPTION = "Light-weight package to set up cgroups at system boot." | ||
| 4 | HOMEPAGE = "http://packages.ubuntu.com/source/artful/cgroup-lite" | ||
| 5 | LICENSE = "GPLv2" | ||
| 6 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=5d5da4e0867cf06014f87102154d0102" | ||
| 7 | SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+files/cgroup-lite_1.15.tar.xz" | ||
| 8 | SRC_URI += "file://cgroups-init" | ||
| 9 | SRC_URI[md5sum] = "1438c1f4a7227c0dedfce5f86f02591d" | ||
| 10 | SRC_URI[sha256sum] = "02f44c70ed3cf27b9e89e5266492fddf4b455336ab4e03abc85e92297537201f" | ||
| 11 | |||
| 12 | inherit allarch update-rc.d systemd | ||
| 13 | |||
| 14 | INITSCRIPT_NAME = "cgroups-init" | ||
| 15 | INITSCRIPT_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. | ||
| 19 | SYSTEMD_PACKAGES = "${PN}" | ||
| 20 | SYSTEMD_SERVICE_${PN} = "cgroups-init.service" | ||
| 21 | SYSTEMD_AUTO_ENABLE_${PN} = "mask" | ||
| 22 | |||
| 23 | |||
| 24 | do_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 | } | ||
