1*5082cc7fSAndrew GeisslerSUMMARY = "Linux control group abstraction library" 2*5082cc7fSAndrew GeisslerHOMEPAGE = "http://libcg.sourceforge.net/" 3*5082cc7fSAndrew GeisslerDESCRIPTION = "libcgroup is a library that abstracts the control group file system \ 4*5082cc7fSAndrew Geisslerin Linux. Control groups allow you to limit, account and isolate resource usage \ 5*5082cc7fSAndrew Geissler(CPU, memory, disk I/O, etc.) of groups of processes." 6*5082cc7fSAndrew GeisslerSECTION = "libs" 7*5082cc7fSAndrew GeisslerLICENSE = "LGPL-2.1-only" 8*5082cc7fSAndrew GeisslerLIC_FILES_CHKSUM = "file://COPYING;md5=4d794c5d710e5b3547a6cc6a6609a641" 9*5082cc7fSAndrew Geissler 10*5082cc7fSAndrew Geisslerinherit autotools pkgconfig github-releases 11*5082cc7fSAndrew Geissler 12*5082cc7fSAndrew GeisslerDEPENDS = "bison-native flex-native" 13*5082cc7fSAndrew GeisslerDEPENDS:append:libc-musl = " fts" 14*5082cc7fSAndrew Geissler 15*5082cc7fSAndrew GeisslerSRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz \ 16*5082cc7fSAndrew Geissler" 17*5082cc7fSAndrew GeisslerUPSTREAM_CHECK_URI = "https://github.com/libcgroup/libcgroup/tags" 18*5082cc7fSAndrew Geissler 19*5082cc7fSAndrew GeisslerSRC_URI[sha256sum] = "976ec4b1e03c0498308cfd28f1b256b40858f636abc8d1f9db24f0a7ea9e1258" 20*5082cc7fSAndrew Geissler 21*5082cc7fSAndrew GeisslerPACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" 22*5082cc7fSAndrew GeisslerPACKAGECONFIG[pam] = "--enable-pam-module-dir=${base_libdir}/security --enable-pam=yes,--enable-pam=no,libpam" 23*5082cc7fSAndrew GeisslerPACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" 24*5082cc7fSAndrew Geissler 25*5082cc7fSAndrew GeisslerPACKAGES =+ "cgroups-pam-plugin" 26*5082cc7fSAndrew GeisslerFILES:cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*" 27*5082cc7fSAndrew GeisslerFILES:${PN}-dev += "${base_libdir}/security/*.la" 28*5082cc7fSAndrew GeisslerFILES:${PN}-staticdev += "${base_libdir}/security/pam_cgroup.a" 29*5082cc7fSAndrew Geissler 30*5082cc7fSAndrew Geisslerdo_install:append() { 31*5082cc7fSAndrew Geissler # Until we ship the test suite, this library isn't useful 32*5082cc7fSAndrew Geissler rm -f ${D}${libdir}/libcgroupfortesting.* 33*5082cc7fSAndrew Geissler} 34