From e3fd5715e39115c00fea4d17adce180e7f2b2ff7 Mon Sep 17 00:00:00 2001 From: Lei Yang Date: Wed, 29 May 2013 14:55:13 +0800 Subject: libvirt: Enable selinux if selinux is available Enable selinux when "DISTRO_FEATURES" contains selinux Signed-off-by: Lei Yang Signed-off-by: Bruce Ashfield --- recipes-extended/libvirt/libvirt_1.0.3.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-extended/libvirt/libvirt_1.0.3.bb b/recipes-extended/libvirt/libvirt_1.0.3.bb index 989b8b12..b0a4e0aa 100644 --- a/recipes-extended/libvirt/libvirt_1.0.3.bb +++ b/recipes-extended/libvirt/libvirt_1.0.3.bb @@ -112,7 +112,7 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72" # full config PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx \ - polkit lxc test remote macvtap libvirtd netcf udev python" + polkit lxc test remote macvtap libvirtd netcf udev python ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}" PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu" PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl" @@ -136,7 +136,7 @@ PACKAGECONFIG[libvirtd] = "--with-libvirtd,--without-libvirtd" PACKAGECONFIG[netcf] = "--with-netcf,--without-netcf,netcf,netcf" PACKAGECONFIG[dtrace] = "--with-dtrace,--without-dtrace,," PACKAGECONFIG[udev] = "--with-udev --with-pciaccess,--without-udev,udev libpciaccess," - +PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" # Enable the Python tool support require libvirt-python.inc -- cgit v1.2.3-54-g00ecf