diff options
| -rw-r--r-- | recipes-extended/libvirt/libvirt_1.3.5.bb | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb b/recipes-extended/libvirt/libvirt_1.3.5.bb index 7b55ead4..a8e6f3f8 100644 --- a/recipes-extended/libvirt/libvirt_1.3.5.bb +++ b/recipes-extended/libvirt/libvirt_1.3.5.bb | |||
| @@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
| 7 | SECTION = "console/tools" | 7 | SECTION = "console/tools" |
| 8 | 8 | ||
| 9 | DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \ | 9 | DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \ |
| 10 | iptables dnsmasq readline libtasn1 libxslt-native acl" | 10 | iptables dnsmasq readline libtasn1 libxslt-native acl \ |
| 11 | ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'shadow-native', '', d)}" | ||
| 11 | 12 | ||
| 12 | # libvirt-guests.sh needs gettext.sh | 13 | # libvirt-guests.sh needs gettext.sh |
| 13 | # | 14 | # |
| @@ -22,8 +23,6 @@ RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode" | |||
| 22 | #connman blocks the 53 port and libvirtd can't start its DNS service | 23 | #connman blocks the 53 port and libvirtd can't start its DNS service |
| 23 | RCONFLICTS_${PN}_libvirtd = "connman" | 24 | RCONFLICTS_${PN}_libvirtd = "connman" |
| 24 | 25 | ||
| 25 | DIRFILES = "" | ||
| 26 | |||
| 27 | SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \ | 26 | SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \ |
| 28 | file://tools-add-libvirt-net-rpc-to-virt-host-validate-when.patch \ | 27 | file://tools-add-libvirt-net-rpc-to-virt-host-validate-when.patch \ |
| 29 | file://libvirtd.sh \ | 28 | file://libvirtd.sh \ |
| @@ -120,7 +119,8 @@ FILES_${PN}-libvirtd = " \ | |||
| 120 | FILES_${PN}-virsh = "${bindir}/virsh" | 119 | FILES_${PN}-virsh = "${bindir}/virsh" |
| 121 | FILES_${PN} += "${libdir}/libvirt/connection-driver \ | 120 | FILES_${PN} += "${libdir}/libvirt/connection-driver \ |
| 122 | ${datadir}/augeas \ | 121 | ${datadir}/augeas \ |
| 123 | ${datadir}/polkit-1" | 122 | ${@bb.utils.contains('PACKAGECONFIG', 'polkit', '${datadir}/polkit-1', '', d)} \ |
| 123 | " | ||
| 124 | 124 | ||
| 125 | FILES_${PN}-dbg += "${libdir}/libvirt/connection-driver/.debug ${libdir}/libvirt/lock-driver/.debug" | 125 | FILES_${PN}-dbg += "${libdir}/libvirt/connection-driver/.debug ${libdir}/libvirt/lock-driver/.debug" |
| 126 | FILES_${PN}-staticdev += "${libdir}/*.a ${libdir}/libvirt/connection-driver/*.a ${libdir}/libvirt/lock-driver/*.a" | 126 | FILES_${PN}-staticdev += "${libdir}/*.a ${libdir}/libvirt/connection-driver/*.a ${libdir}/libvirt/lock-driver/*.a" |
| @@ -254,6 +254,15 @@ do_install_append() { | |||
| 254 | echo "d root root 0755 ${localstatedir}/run/libvirt/qemu none" \ | 254 | echo "d root root 0755 ${localstatedir}/run/libvirt/qemu none" \ |
| 255 | >> ${D}${sysconfdir}/default/volatiles/99_libvirt | 255 | >> ${D}${sysconfdir}/default/volatiles/99_libvirt |
| 256 | 256 | ||
| 257 | # Manually set permissions and ownership to match polkit recipe | ||
| 258 | if ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'true', 'false', d)}; then | ||
| 259 | install -d -m 0700 ${D}/${datadir}/polkit-1/rules.d | ||
| 260 | chown polkitd ${D}/${datadir}/polkit-1/rules.d | ||
| 261 | chgrp root ${D}/${datadir}/polkit-1/rules.d | ||
| 262 | else | ||
| 263 | rm -rf ${D}/${datadir}/polkit-1 | ||
| 264 | fi | ||
| 265 | |||
| 257 | # Add hook support for libvirt | 266 | # Add hook support for libvirt |
| 258 | mkdir -p ${D}/etc/libvirt/hooks | 267 | mkdir -p ${D}/etc/libvirt/hooks |
| 259 | 268 | ||
