Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -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" |
| 7 | LICENSE = "LGPL-2.1-only" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=4d794c5d710e5b3547a6cc6a6609a641" |
| 9 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 10 | inherit autotools pkgconfig github-releases |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 11 | |
| 12 | DEPENDS = "bison-native flex-native" |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 13 | DEPENDS:append:libc-musl = " fts" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 14 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 15 | SRC_URI = "${GITHUB_BASE_URI}/download/v3.0/${BP}.tar.gz \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 16 | file://0001-api-Use-GNU-strerror_r-when-available.patch \ |
| 17 | " |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 18 | UPSTREAM_CHECK_URI = "https://github.com/libcgroup/libcgroup/tags" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 19 | |
| 20 | SRC_URI[sha256sum] = "8d284d896fca1c981b55850e92acd3ad9648a69227c028dda7ae3402af878edd" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 21 | |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 22 | PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |
| 23 | PACKAGECONFIG[pam] = "--enable-pam-module-dir=${base_libdir}/security --enable-pam=yes,--enable-pam=no,libpam" |
| 24 | |
| 25 | PACKAGES =+ "cgroups-pam-plugin" |
| 26 | FILES:cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*" |
| 27 | FILES:${PN}-dev += "${base_libdir}/security/*.la" |
| 28 | FILES:${PN}-staticdev += "${base_libdir}/security/pam_cgroup.a" |
| 29 | |
| 30 | do_install:append() { |
| 31 | # Until we ship the test suite, this library isn't useful |
| 32 | rm -f ${D}${libdir}/libcgroupfortesting.* |
| 33 | } |