Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [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=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.gz" |
| 15 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 16 | SRC_URI[sha256sum] = "8ef63b32e0aff619547dbb8a25e1f6bab152d7c4864795cf915571a5994d0cf8" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 17 | UPSTREAM_CHECK_URI = "https://github.com/libcgroup/libcgroup/releases/" |
| 18 | |
| 19 | DEPENDS:append:libc-musl = " fts " |
| 20 | EXTRA_OEMAKE:append:libc-musl = " LIBS=-lfts" |
| 21 | |
| 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 | } |