From 10471bcbb44991b525bf78b62339cfbd86ded520 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 31 Oct 2013 00:26:37 -0400 Subject: glance: update to havana release version As part of the glance uprev to havana, we switch to a git based build. Signed-off-by: Bruce Ashfield --- .../python/python-glance_2013.1.3.bb | 123 --------------------- 1 file changed, 123 deletions(-) delete mode 100644 meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb (limited to 'meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb') diff --git a/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb deleted file mode 100644 index ff81a0c..0000000 --- a/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb +++ /dev/null @@ -1,123 +0,0 @@ -DESCRIPTION = "Services for discovering, registering and retrieving virtual machine images" -HOMEPAGE = "http://glance.openstack.org/" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -PR = "r0" -SRCNAME = "glance" - -SRC_URI = "https://launchpad.net/glance/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ - file://glance.init \ - " - -SRC_URI[md5sum] = "f9ba3865ff2cf98caa471bd54173fecd" -SRC_URI[sha256sum] = "642782416d790dfcb6d5bb85626dd5d48784ba8f3a53e7863ec13312e86cb209" - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools update-rc.d identity - -do_install_append() { - TEMPLATE_CONF_DIR=${S}${sysconfdir} - GLANCE_CONF_DIR=${D}${sysconfdir}/glance - - for file in api registry cache - do - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ - ${TEMPLATE_CONF_DIR}/glance-$file.conf > ${WORKDIR}/glance-$file.conf - sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/glance-$file.conf - sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ - -i ${WORKDIR}/glance-$file.conf - sed -e "s#^sql_conn.*#sql_connection = postgresql://${DB_USER}:${DB_PASSWORD}@localhost/glance#g" \ - -i ${WORKDIR}/glance-$file.conf - done - sed -e "s:^filesystem_store_datadir =.*:filesystem_store_datadir = ${sysconfdir}/${SRCNAME}/images/:g" \ - -i ${WORKDIR}/glance-api.conf - - install -d ${GLANCE_CONF_DIR} - install -m 600 ${WORKDIR}/glance-registry.conf ${GLANCE_CONF_DIR}/ - install -m 600 ${WORKDIR}/glance-api.conf ${GLANCE_CONF_DIR}/ - install -m 600 ${WORKDIR}/glance-cache.conf ${GLANCE_CONF_DIR}/ - - install -m 600 ${S}/etc/glance-registry-paste.ini ${GLANCE_CONF_DIR}/ - install -m 600 ${S}/etc/glance-api-paste.ini ${GLANCE_CONF_DIR}/ - install -m 600 ${S}/etc/policy.json ${GLANCE_CONF_DIR}/ - - install -d ${GLANCE_CONF_DIR}/images - install -d ${D}${localstatedir}/lib/glance/image_cache - - install -d ${D}${localstatedir}/log/${SRCNAME} - - if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/init.d - sed 's:@suffix@:api:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-api.init.sh - install -m 0755 ${WORKDIR}/glance-api.init.sh ${D}${sysconfdir}/init.d/glance-api - sed 's:@suffix@:registry:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-registry.init.sh - install -m 0755 ${WORKDIR}/glance-registry.init.sh ${D}${sysconfdir}/init.d/glance-registry - fi -} - -pkg_postinst_${SRCNAME} () { - if [ "x$D" != "x" ]; then - exit 1 - fi - - # This is to make sure postgres is configured and running - if ! pidof postmaster > /dev/null; then - /etc/init.d/postgresql-init - /etc/init.d/postgresql start - sleep 5 - fi - - mkdir /var/log/glance - sudo -u postgres createdb glance - glance-manage db_sync -} - -PACKAGES += " ${SRCNAME} ${SRCNAME}-api ${SRCNAME}-registry" - -FILES_${PN} = "${libdir}/*" - -FILES_${SRCNAME} = "${bindir}/* \ - ${sysconfdir}/${SRCNAME}/* \ - ${localstatedir}/* \ - " - -FILES_${SRCNAME}-api = "${bindir}/glance-api \ - ${sysconfdir}/init.d/glance-api \ - " - -FILES_${SRCNAME}-registry = "${bindir}/glance-registry \ - ${sysconfdir}/init.d/glance-registry \ - " - -RDEPENDS_${PN} += "python-greenlet \ - python-sqlalchemy \ - python-anyjson \ - python-eventlet \ - python-pastedeploy \ - python-routes \ - python-webob \ - python-boto \ - python-sqlalchemy-migrate \ - python-httplib2 \ - python-kombu \ - python-iso8601 \ - python-oslo.config \ - python-lxml \ - python-paste \ - python-pycrypto \ - python-jsonschema \ - python-keystoneclient \ - python-swiftclient \ - " - -RDEPENDS_${SRCNAME} = "${PN} \ - postgresql postgresql-client python-psycopg2" -RDEPENDS_${SRCNAME}-api = "${SRCNAME}" -RDEPENDS_${SRCNAME}-registry = "${SRCNAME}" - -INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" -INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" -INITSCRIPT_NAME_${SRCNAME}-registry = "glance-registry" -- cgit v1.2.3-54-g00ecf