diff options
| author | Mihai Prica <prica.mihai@gmail.com> | 2013-06-11 14:25:30 +0300 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:41:56 -0400 |
| commit | 14d719dc08ffada0629194ae871dbb0e0a9d3026 (patch) | |
| tree | e3c2700009536f7eea79712f2235d9e4f8decb8a /meta-openstack/recipes-devtools/python/python-glance_2013.1.bb | |
| parent | 461b1f2cc764f7e2fcf6669de3a59493de41333a (diff) | |
| download | meta-cloud-services-14d719dc08ffada0629194ae871dbb0e0a9d3026.tar.gz | |
python-nova: Added initscript
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_2013.1.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-glance_2013.1.bb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb index b574468..99d1577 100644 --- a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb +++ b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb | |||
| @@ -11,6 +11,7 @@ SRC_URI = "https://launchpad.net/glance/grizzly/${PV}/+download/${SRCNAME}-${PV} | |||
| 11 | file://glance-api.conf \ | 11 | file://glance-api.conf \ |
| 12 | file://glance-cache.conf \ | 12 | file://glance-cache.conf \ |
| 13 | file://glance-registry.conf \ | 13 | file://glance-registry.conf \ |
| 14 | file://glance.init \ | ||
| 14 | " | 15 | " |
| 15 | 16 | ||
| 16 | SRC_URI[md5sum] = "cd813098ca807bed67440bb1646d0647" | 17 | SRC_URI[md5sum] = "cd813098ca807bed67440bb1646d0647" |
| @@ -18,7 +19,7 @@ SRC_URI[sha256sum] = "f4deee125ee6729daee5315c6aacd9e265c3015692a62ae6aefeadbd3f | |||
| 18 | 19 | ||
| 19 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 20 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 20 | 21 | ||
| 21 | inherit setuptools | 22 | inherit setuptools update-rc.d |
| 22 | 23 | ||
| 23 | do_install_append() { | 24 | do_install_append() { |
| 24 | 25 | ||
| @@ -41,6 +42,15 @@ do_install_append() { | |||
| 41 | 42 | ||
| 42 | # Create the sqlite database | 43 | # Create the sqlite database |
| 43 | touch ${GLANCE_CONF_DIR}/glance.db | 44 | touch ${GLANCE_CONF_DIR}/glance.db |
| 45 | |||
| 46 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
| 47 | install -d ${D}${sysconfdir}/init.d | ||
| 48 | sed 's:@suffix@:api:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-api.init.sh | ||
| 49 | install -m 0755 ${WORKDIR}/glance-api.init.sh ${D}${sysconfdir}/init.d/glance-api | ||
| 50 | sed 's:@suffix@:registry:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-registry.init.sh | ||
| 51 | install -m 0755 ${WORKDIR}/glance-registry.init.sh ${D}${sysconfdir}/init.d/glance-registry | ||
| 52 | fi | ||
| 53 | |||
| 44 | } | 54 | } |
| 45 | 55 | ||
| 46 | pkg_postinst_${SRCNAME} () { | 56 | pkg_postinst_${SRCNAME} () { |
| @@ -98,3 +108,6 @@ RDEPENDS_${SRCNAME} = "${PN} \ | |||
| 98 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}" | 108 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}" |
| 99 | RDEPENDS_${SRCNAME}-registry = "${SRCNAME}" | 109 | RDEPENDS_${SRCNAME}-registry = "${SRCNAME}" |
| 100 | 110 | ||
| 111 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" | ||
| 112 | INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" | ||
| 113 | INITSCRIPT_NAME_${SRCNAME}-registry = "glance-registry" | ||
