summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/lxc_1.0.1.bb
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:07 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:07 +0200
commitee97d3d279164f8b44fb8afc997e4ae953d17106 (patch)
treebff0bd4240f00bbb21624c1df55583f61abaea25 /recipes-containers/lxc/lxc_1.0.1.bb
downloadmeta-virtualization-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'recipes-containers/lxc/lxc_1.0.1.bb')
-rw-r--r--recipes-containers/lxc/lxc_1.0.1.bb78
1 files changed, 78 insertions, 0 deletions
diff --git a/recipes-containers/lxc/lxc_1.0.1.bb b/recipes-containers/lxc/lxc_1.0.1.bb
new file mode 100644
index 00000000..b366116d
--- /dev/null
+++ b/recipes-containers/lxc/lxc_1.0.1.bb
@@ -0,0 +1,78 @@
1DESCRIPTION = "lxc aims to use these new functionnalities to provide an userspace container object"
2SECTION = "console/utils"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5PRIORITY = "optional"
6PR = "r4"
7DEPENDS = "libxml2 libcap"
8RDEPENDS_${PN} = " \
9 rsync \
10 gzip \
11 libcap-bin \
12 bridge-utils \
13 dnsmasq \
14 perl-module-strict \
15 perl-module-getopt-long \
16 perl-module-vars \
17 perl-module-warnings-register \
18 perl-module-exporter \
19 perl-module-constant \
20 perl-module-overload \
21 perl-module-exporter-heavy \
22"
23RDEPENDS_${PN}-ptest += "file make"
24
25SRC_URI = "http://linuxcontainers.org/downloads/${BPN}-${PV}.tar.gz \
26 file://lxc-1.0.0-disable-udhcp-from-busybox-template.patch \
27 file://config_network_type-set-macvlan-default-mode-to-priv.patch \
28 file://lxc-busybox-follow-symlinks-when-inspecting-busybox-.patch \
29 file://network.c-Add-missing-LXC_NET_NONE-option-refactor.patch \
30 file://runtest.patch \
31 file://run-ptest \
32 "
33SRC_URI[md5sum] = "3c7379891e45713817ec873a167070b0"
34SRC_URI[sha256sum] = "17d8e5b575207b4fb57da0b8ba2d13f3e5ee20ce8ccd1259d6eae4bd5ca575b1"
35
36S = "${WORKDIR}/${BPN}-${PV}"
37
38# Let's not configure for the host distro.
39#
40PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}"
41EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}"
42
43PACKAGECONFIG ??= ""
44PACKAGECONFIG[doc] = "--enable-doc,--disable-doc,,"
45PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath,,"
46PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor"
47
48inherit autotools pkgconfig ptest
49
50FILES_${PN}-doc = "${mandir} ${infodir}"
51# For LXC the docdir only contains example configuration files and should be included in the lxc package
52FILES_${PN} += "${docdir}"
53FILES_${PN}-dbg += "${libexecdir}/lxc/.debug"
54
55PRIVATE_LIBS_${PN}-ptest = "liblxc.so.1"
56
57do_install_append() {
58 # The /var/cache/lxc directory created by the Makefile
59 # is wiped out in volatile, we need to create this at boot.
60 rm -rf ${D}${localstatedir}/cache
61 install -d ${D}${sysconfdir}/default/volatiles
62 echo "d root root 0755 ${localstatedir}/cache/lxc none" \
63 > ${D}${sysconfdir}/default/volatiles/99_lxc
64
65}
66
67EXTRA_OEMAKE += "TEST_DIR=${D}${PTEST_PATH}/src/tests"
68
69do_install_ptest() {
70 oe_runmake -C src/tests install-ptest
71}
72
73pkg_postinst_${PN}() {
74 if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
75 /etc/init.d/populate-volatile.sh update
76 fi
77}
78