diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2015-07-08 11:08:01 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2015-07-08 11:09:24 +0200 |
commit | ec64b2418ccef1e14c6e58b8ca81bb9162c1dfeb (patch) | |
tree | bff0bd4240f00bbb21624c1df55583f61abaea25 /recipes-containers/lxc/lxc_1.0.1.bb | |
download | meta-virtualization-daisy-enea.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-containers/lxc/lxc_1.0.1.bb')
-rw-r--r-- | recipes-containers/lxc/lxc_1.0.1.bb | 78 |
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 @@ | |||
1 | DESCRIPTION = "lxc aims to use these new functionnalities to provide an userspace container object" | ||
2 | SECTION = "console/utils" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
5 | PRIORITY = "optional" | ||
6 | PR = "r4" | ||
7 | DEPENDS = "libxml2 libcap" | ||
8 | RDEPENDS_${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 | " | ||
23 | RDEPENDS_${PN}-ptest += "file make" | ||
24 | |||
25 | SRC_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 | " | ||
33 | SRC_URI[md5sum] = "3c7379891e45713817ec873a167070b0" | ||
34 | SRC_URI[sha256sum] = "17d8e5b575207b4fb57da0b8ba2d13f3e5ee20ce8ccd1259d6eae4bd5ca575b1" | ||
35 | |||
36 | S = "${WORKDIR}/${BPN}-${PV}" | ||
37 | |||
38 | # Let's not configure for the host distro. | ||
39 | # | ||
40 | PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}" | ||
41 | EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}" | ||
42 | |||
43 | PACKAGECONFIG ??= "" | ||
44 | PACKAGECONFIG[doc] = "--enable-doc,--disable-doc,," | ||
45 | PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath,," | ||
46 | PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor" | ||
47 | |||
48 | inherit autotools pkgconfig ptest | ||
49 | |||
50 | FILES_${PN}-doc = "${mandir} ${infodir}" | ||
51 | # For LXC the docdir only contains example configuration files and should be included in the lxc package | ||
52 | FILES_${PN} += "${docdir}" | ||
53 | FILES_${PN}-dbg += "${libexecdir}/lxc/.debug" | ||
54 | |||
55 | PRIVATE_LIBS_${PN}-ptest = "liblxc.so.1" | ||
56 | |||
57 | do_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 | |||
67 | EXTRA_OEMAKE += "TEST_DIR=${D}${PTEST_PATH}/src/tests" | ||
68 | |||
69 | do_install_ptest() { | ||
70 | oe_runmake -C src/tests install-ptest | ||
71 | } | ||
72 | |||
73 | pkg_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 | |||