Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 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" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame^] | 7 | LICENSE = "LGPL-2.1-only" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1" |
| 9 | |
| 10 | inherit autotools pkgconfig |
| 11 | |
| 12 | DEPENDS = "bison-native flex-native" |
| 13 | |
| 14 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.bz2 \ |
| 15 | file://musl-decls-compat.patch \ |
| 16 | file://module.patch" |
| 17 | |
| 18 | SRC_URI[sha256sum] = "11a2fbf0e42f46089f406b8b0dca7fef04aec2f21600b70e402c5db3661305d7" |
| 19 | UPSTREAM_CHECK_URI = "https://github.com/libcgroup/libcgroup/releases/" |
| 20 | |
| 21 | DEPENDS:append:libc-musl = " fts " |
| 22 | EXTRA_OEMAKE:append:libc-musl = " LIBS=-lfts" |
| 23 | |
| 24 | PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |
| 25 | PACKAGECONFIG[pam] = "--enable-pam-module-dir=${base_libdir}/security --enable-pam=yes,--enable-pam=no,libpam" |
| 26 | |
| 27 | PACKAGES =+ "cgroups-pam-plugin" |
| 28 | FILES:cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*" |
| 29 | FILES:${PN}-dev += "${base_libdir}/security/*.la" |
| 30 | FILES:${PN}-staticdev += "${base_libdir}/security/pam_cgroup.a" |
| 31 | |
| 32 | do_install:append() { |
| 33 | # Until we ship the test suite, this library isn't useful |
| 34 | rm -f ${D}${libdir}/libcgroupfortesting.* |
| 35 | } |