From f51277f5f99ffe0d897628d058d9e011bba4d484 Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Tue, 11 Jun 2013 13:52:12 +0300 Subject: python-nova: Split package into multiple components Signed-off-by: Mihai Prica --- .../recipes-devtools/python/python-nova_2013.1.bb | 31 ++++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb b/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb index dcb35b9..d6b9ca1 100644 --- a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb +++ b/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb @@ -62,7 +62,7 @@ GROUPADD_PARAM_${PN} = "--system nova" USERADD_PARAM_${PN} = "--system --home /var/lib/nova -g nova \ --no-create-home --shell /bin/false nova" -pkg_postinst_${PN} () { +pkg_postinst_${SRCNAME}-controller () { if [ "x$D" != "x" ]; then exit 1 fi @@ -73,18 +73,24 @@ pkg_postinst_${PN} () { nova-manage db sync } +PACKAGES += "${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" +FILES_${PN} = "${libdir}/*" -FILES_${PN} += "${sysconfdir}/${SRCNAME}/* \ - ${sysconfdir}/sudoers.d " +FILES_${SRCNAME}-common = " ${bindir}/nova-manage \ + ${bindir}/nova-rootwrap \ + ${sysconfdir}/${SRCNAME}/* \ + ${sysconfdir}/sudoers.d" -RDEPENDS_${PN} = "openssl openssl-misc libxml2 libxslt iptables curl dnsmasq sudo procps\ - qemu libvirt libvirt-libvirtd libvirt-python libvirt-virsh \ - python-modules \ +FILES_${SRCNAME}-compute = "${bindir}/nova-compute \ + ${sysconfdir}/init.d/nova-compute" + +FILES_${SRCNAME}-controller = "${bindir}/* \ + ${sysconfdir}/init.d/nova-all" + +RDEPENDS_${PN} = " python-modules \ python-misc \ python-argparse \ - libvirt-python \ - libvirt-libvirtd \ python-amqplib \ python-anyjson \ python-babel \ @@ -117,3 +123,12 @@ RDEPENDS_${PN} = "openssl openssl-misc libxml2 libxslt iptables curl dnsmasq sud python-webob \ python-websockify \ " + +RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \ + iptables curl dnsmasq sudo procps" + +RDEPENDS_${SRCNAME}-compute = "${PN} nova-common \ + qemu libvirt libvirt-libvirtd libvirt-python libvirt-virsh" + +RDEPENDS_${SRCNAME}-controller = "${PN} nova-common \ + postgresql postgresql-client python-psycopg2" -- cgit v1.2.3-54-g00ecf