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