summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libcgroup/libcgroup_0.41.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/libcgroup/libcgroup_0.41.bb')
-rw-r--r--meta/recipes-core/libcgroup/libcgroup_0.41.bb41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-core/libcgroup/libcgroup_0.41.bb b/meta/recipes-core/libcgroup/libcgroup_0.41.bb
new file mode 100644
index 0000000..76b0b58
--- /dev/null
+++ b/meta/recipes-core/libcgroup/libcgroup_0.41.bb
@@ -0,0 +1,41 @@
1SUMMARY = "Linux control group abstraction library"
2DESCRIPTION = "libcgroup is a library that abstracts the control group file system \
3in Linux. Control groups allow you to limit, account and isolate resource usage \
4(CPU, memory, disk I/O, etc.) of groups of processes."
5SECTION = "libs"
6LICENSE = "LGPLv2.1"
7LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
8
9inherit autotools pkgconfig
10
11DEPENDS = "bison-native flex-native ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
12
13SRC_URI = "${SOURCEFORGE_MIRROR}/project/libcg/${BPN}/v0.41/${BPN}-${PV}.tar.bz2"
14
15SRC_URI[md5sum] = "3dea9d50b8a5b73ff0bf1cdcb210f63f"
16SRC_URI[sha256sum] = "e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51"
17
18EXTRA_OECONF = "${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam-module-dir=${base_libdir}/security --enable-pam=yes', '--enable-pam=no', d)}"
19
20# http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg21444.html
21PARALLEL_MAKE = ""
22
23PACKAGES =+ "cgroups-pam-plugin"
24FILES_cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*"
25FILES_${PN}-dbg += "${base_libdir}/security/.debug"
26FILES_${PN}-dev += "${base_libdir}/security/*.la"
27
28do_install_append() {
29 # Moving libcgroup to base_libdir
30 if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
31 mkdir -p ${D}/${base_libdir}/
32 mv -f ${D}${libdir}/libcgroup.so.* ${D}${base_libdir}/
33 rel_lib_prefix=`echo ${libdir} | sed 's,\(^/\|\)[^/][^/]*,..,g'`
34 ln -sf ${rel_lib_prefix}${base_libdir}/libcgroup.so.1 ${D}${libdir}/libcgroup.so
35 fi
36 # pam modules in ${base_libdir}/security/ should be binary .so files, not symlinks.
37 if [ -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ]; then
38 mv -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ${D}${base_libdir}/security/pam_cgroup.so
39 rm -f ${D}${base_libdir}/security/pam_cgroup.so.*
40 fi
41}