diff options
Diffstat (limited to 'meta/recipes-core/libcgroup/libcgroup_3.2.0.bb')
| -rw-r--r-- | meta/recipes-core/libcgroup/libcgroup_3.2.0.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/libcgroup/libcgroup_3.2.0.bb b/meta/recipes-core/libcgroup/libcgroup_3.2.0.bb new file mode 100644 index 0000000000..28562a5b37 --- /dev/null +++ b/meta/recipes-core/libcgroup/libcgroup_3.2.0.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "Linux control group abstraction library" | ||
| 2 | HOMEPAGE = "http://libcg.sourceforge.net/" | ||
| 3 | DESCRIPTION = "libcgroup is a library that abstracts the control group file system \ | ||
| 4 | in Linux. Control groups allow you to limit, account and isolate resource usage \ | ||
| 5 | (CPU, memory, disk I/O, etc.) of groups of processes." | ||
| 6 | SECTION = "libs" | ||
| 7 | LICENSE = "LGPL-2.1-only" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=4d794c5d710e5b3547a6cc6a6609a641" | ||
| 9 | |||
| 10 | inherit autotools pkgconfig github-releases | ||
| 11 | |||
| 12 | DEPENDS = "bison-native flex-native" | ||
| 13 | DEPENDS:append:libc-musl = " fts" | ||
| 14 | |||
| 15 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz" | ||
| 16 | UPSTREAM_CHECK_URI = "https://github.com/libcgroup/libcgroup/tags" | ||
| 17 | |||
| 18 | SRC_URI[sha256sum] = "9a0fc2d6c377215c3e0d849f9189ecd91fd075f1da0a24b73f56c8892e86bdfe" | ||
| 19 | |||
| 20 | PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" | ||
| 21 | PACKAGECONFIG[pam] = "--enable-pam-module-dir=${base_libdir}/security --enable-pam=yes,--enable-pam=no,libpam" | ||
| 22 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" | ||
| 23 | |||
| 24 | PACKAGES =+ "cgroups-pam-plugin" | ||
| 25 | FILES:cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*" | ||
| 26 | FILES:${PN}-dev += "${base_libdir}/security/*.la" | ||
| 27 | FILES:${PN}-staticdev += "${base_libdir}/security/pam_cgroup.a" | ||
| 28 | |||
| 29 | do_install:append() { | ||
| 30 | # Until we ship the test suite, this library isn't useful | ||
| 31 | rm -f ${D}${libdir}/libcgroupfortesting.* | ||
| 32 | } | ||
