diff options
Diffstat (limited to 'meta/recipes-core/libcgroup/libcgroup_0.41.bb')
-rw-r--r-- | meta/recipes-core/libcgroup/libcgroup_0.41.bb | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/meta/recipes-core/libcgroup/libcgroup_0.41.bb b/meta/recipes-core/libcgroup/libcgroup_0.41.bb deleted file mode 100644 index 92d7261b0d..0000000000 --- a/meta/recipes-core/libcgroup/libcgroup_0.41.bb +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
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 = "LGPLv2.1" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
9 | |||
10 | inherit autotools pkgconfig | ||
11 | |||
12 | DEPENDS = "bison-native flex-native" | ||
13 | |||
14 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/libcg/${BPN}/v0.41/${BPN}-${PV}.tar.bz2 \ | ||
15 | file://CVE-2018-14348.patch" | ||
16 | SRC_URI_append_libc-musl = " file://musl-decls-compat.patch" | ||
17 | |||
18 | SRC_URI[md5sum] = "3dea9d50b8a5b73ff0bf1cdcb210f63f" | ||
19 | SRC_URI[sha256sum] = "e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51" | ||
20 | |||
21 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libcg/files/libcgroup/" | ||
22 | |||
23 | DEPENDS_append_libc-musl = " fts " | ||
24 | EXTRA_OEMAKE_append_libc-musl = " LIBS=-lfts" | ||
25 | |||
26 | PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" | ||
27 | PACKAGECONFIG[pam] = "--enable-pam-module-dir=${base_libdir}/security --enable-pam=yes,--enable-pam=no,libpam" | ||
28 | |||
29 | PACKAGES =+ "cgroups-pam-plugin" | ||
30 | FILES_cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*" | ||
31 | FILES_${PN}-dev += "${base_libdir}/security/*.la" | ||
32 | |||
33 | do_install_append() { | ||
34 | # Moving libcgroup to base_libdir | ||
35 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
36 | mkdir -p ${D}/${base_libdir}/ | ||
37 | mv -f ${D}${libdir}/libcgroup.so.* ${D}${base_libdir}/ | ||
38 | rm -f ${D}${libdir}/libcgroup.so | ||
39 | lnr ${D}${base_libdir}/libcgroup.so.1 ${D}${libdir}/libcgroup.so | ||
40 | fi | ||
41 | # pam modules in ${base_libdir}/security/ should be binary .so files, not symlinks. | ||
42 | if [ -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ]; then | ||
43 | mv -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ${D}${base_libdir}/security/pam_cgroup.so | ||
44 | rm -f ${D}${base_libdir}/security/pam_cgroup.so.* | ||
45 | fi | ||
46 | } | ||