# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 PYTHON_DEPENDS="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.*" inherit distutils DESCRIPTION="Provides services for discovering, registering, and retrieving virtual machine images. Glance has a RESTful API that allows querying of VM image metadata as well as retrieval of the actual image." HOMEPAGE="https://launchpad.net/glance" SRC_URI="http://launchpad.net/glance/essex/essex-rc2/+download/${P/_*/}~rc2.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="dev-python/setuptools" RDEPEND="${DEPEND} dev-python/webob dev-python/httplib2 dev-python/routes dev-python/paste dev-python/pastedeploy dev-python/pyxattr dev-python/kombu" S=${WORKDIR}/${P/_*/} src_install() { distutils_src_install newconfd "${FILESDIR}/glance.confd" glance newinitd "${FILESDIR}/glance.initd" glance for function in api registry scrubber; do dosym /etc/init.d/glance /etc/init.d/glance-${function} done diropts -m 0750 dodir /var/run/glance /var/log/nova /var/lock/nova }