diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-03 22:56:57 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-03 22:56:57 -0400 |
| commit | 3b9fa62452c636c49cc1bd19436e37882c76b88c (patch) | |
| tree | 3fc5e422f733d9e037f387638a459eeaeecbab61 /meta-openstack/recipes-devtools/python/python-nova_git.bb | |
| parent | a8dbfb290b485d41da1bea5dd37907db684d86fc (diff) | |
| download | meta-cloud-services-3b9fa62452c636c49cc1bd19436e37882c76b88c.tar.gz | |
clients: add bash-completion support
Package and enable the bash completion suppor that comes with the
various client packages.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-nova_git.bb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb index 18e69aa..e88220a 100644 --- a/meta-openstack/recipes-devtools/python/python-nova_git.bb +++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb | |||
| @@ -114,6 +114,9 @@ do_install_append() { | |||
| 114 | fi | 114 | fi |
| 115 | 115 | ||
| 116 | cp run_tests.sh ${NOVA_CONF_DIR} | 116 | cp run_tests.sh ${NOVA_CONF_DIR} |
| 117 | |||
| 118 | install -d ${D}/${sysconfdir}/bash_completion.d | ||
| 119 | install -m 664 ${S}/tools/nova-manage.bash_completion ${D}/${sysconfdir}/bash_completion.d | ||
| 117 | } | 120 | } |
| 118 | 121 | ||
| 119 | pkg_postinst_${SRCNAME}-setup () { | 122 | pkg_postinst_${SRCNAME}-setup () { |
| @@ -139,9 +142,11 @@ pkg_postinst_${SRCNAME}-common () { | |||
| 139 | fi | 142 | fi |
| 140 | 143 | ||
| 141 | if [ -d /home/root ]; then | 144 | if [ -d /home/root ]; then |
| 142 | echo "source /etc/nova/openrc" > /home/root/.bashrc | 145 | echo "source /etc/nova/openrc" >> /home/root/.bashrc |
| 146 | echo "source /etc/nova/openrc" >> /home/root/.profile | ||
| 143 | else | 147 | else |
| 144 | echo "source /etc/nova/openrc" > /root/.bashrc | 148 | echo "source /etc/nova/openrc" >> /root/.bashrc |
| 149 | echo "source /etc/nova/openrc" >> /root/.profile | ||
| 145 | fi | 150 | fi |
| 146 | } | 151 | } |
| 147 | 152 | ||
| @@ -161,6 +166,13 @@ PACKAGES += " ${SRCNAME}-cert" | |||
| 161 | PACKAGES += " ${SRCNAME}-conductor" | 166 | PACKAGES += " ${SRCNAME}-conductor" |
| 162 | PACKAGES += " ${SRCNAME}-api" | 167 | PACKAGES += " ${SRCNAME}-api" |
| 163 | 168 | ||
| 169 | PACKAGECONFIG ?= "bash-completion" | ||
| 170 | PACKAGECONFIG[bash-completion] = ",,bash-completion,bash-completion python-nova-bash-completion" | ||
| 171 | |||
| 172 | PACKAGES =+ "${BPN}-bash-completion" | ||
| 173 | FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" | ||
| 174 | |||
| 175 | |||
| 164 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | 176 | ALLOW_EMPTY_${SRCNAME}-setup = "1" |
| 165 | 177 | ||
| 166 | FILES_${PN} = "${libdir}/*" | 178 | FILES_${PN} = "${libdir}/*" |
| @@ -215,6 +227,7 @@ RDEPENDS_${PN} = " libvirt \ | |||
| 215 | python-anyjson \ | 227 | python-anyjson \ |
| 216 | python-babel \ | 228 | python-babel \ |
| 217 | python-boto \ | 229 | python-boto \ |
| 230 | python-novaclient \ | ||
| 218 | python-cinderclient \ | 231 | python-cinderclient \ |
| 219 | python-cliff \ | 232 | python-cliff \ |
| 220 | python-cheetah \ | 233 | python-cheetah \ |
