diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2013-01-20 06:39:20 +0000 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2013-01-20 06:39:20 +0000 |
commit | 61ab32d0eaa3c11d3fc1ba01e8b9dea1b1606022 (patch) | |
tree | 9caa934fce404b5417ca9976831a9e38a9f08599 /app-admin/glance | |
parent | warlock requires jsonpatch-0.10 specifically (diff) | |
download | gentoo-2-61ab32d0eaa3c11d3fc1ba01e8b9dea1b1606022.tar.gz gentoo-2-61ab32d0eaa3c11d3fc1ba01e8b9dea1b1606022.tar.bz2 gentoo-2-61ab32d0eaa3c11d3fc1ba01e8b9dea1b1606022.zip |
initial add of openstack glance as app-admin/glance
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
Diffstat (limited to 'app-admin/glance')
-rw-r--r-- | app-admin/glance/ChangeLog | 12 | ||||
-rw-r--r-- | app-admin/glance/files/glance.confd | 1 | ||||
-rw-r--r-- | app-admin/glance/files/glance.initd | 51 | ||||
-rw-r--r-- | app-admin/glance/glance-2012.2.1.ebuild | 63 | ||||
-rw-r--r-- | app-admin/glance/glance-9999.ebuild | 63 | ||||
-rw-r--r-- | app-admin/glance/metadata.xml | 16 |
6 files changed, 206 insertions, 0 deletions
diff --git a/app-admin/glance/ChangeLog b/app-admin/glance/ChangeLog new file mode 100644 index 000000000000..cd0ee1174384 --- /dev/null +++ b/app-admin/glance/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-admin/glance +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/ChangeLog,v 1.1 2013/01/20 06:39:20 prometheanfire Exp $ + +*glance-9999 (20 Jan 2013) +*glance-2012.2.1 (20 Jan 2013) + + 20 Jan 2013; Matthew Thode <prometheanfire@gentoo.org> + +glance-2012.2.1.ebuild, +glance-9999.ebuild, +files/glance.confd, + +files/glance.initd, +metadata.xml: + initial add of openstack glance as app-admin/glance + diff --git a/app-admin/glance/files/glance.confd b/app-admin/glance/files/glance.confd new file mode 100644 index 000000000000..4eb2893090a0 --- /dev/null +++ b/app-admin/glance/files/glance.confd @@ -0,0 +1 @@ +PID_PATH=/var/run/glance diff --git a/app-admin/glance/files/glance.initd b/app-admin/glance/files/glance.initd new file mode 100644 index 000000000000..342c0d6cfec9 --- /dev/null +++ b/app-admin/glance/files/glance.initd @@ -0,0 +1,51 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/files/glance.initd,v 1.1 2013/01/20 06:39:20 prometheanfire Exp $ + +depend() { + need net +} + +BASENAME=$(echo $SVCNAME | cut -d '-' -f 1) +SERVERNAME=$(echo $SVCNAME | cut -d '-' -f 2) + +checkconfig() { + if [ ! -r /etc/conf.d/$BASENAME ]; then + eerror "No glance conf.dfile found: /etc/conf.d/$BASENAME)" + return 1 + fi + if [ ! -r /etc/glance/${SVCNAME}.conf ]; then + eerror "No ${BASENAME} config file found: /etc/glance/${SVCNAME}.conf)" + return 1 + fi + return 0 +} + + +start() { + checkconfig || return $? + . /etc/conf.d/$BASENAME + + ebegin "Starting ${SVCNAME}" + + start-stop-daemon --start --quiet --pidfile "${PID_PATH}/${SVCENAME}.pid" \ + --exec /usr/bin/glance-control -- ${SERVERNAME} start + + eend $? "Failed to start ${SVCNAME}" +} + +stop() { + checkconfig || return $? + . /etc/conf.d/$BASENAME + + ebegin "Stopping ${SVCNAME}" + + start-stop-daemon --stop --quiet --pidfile "${PID_PATH}/${SVCNAME}.pid" \ + --exec /usr/bin/glance-control -- ${SERVERNAME} stop + eend $? "Failed to stop ${SVCNAME}" +} + +#restart() { +# +#} diff --git a/app-admin/glance/glance-2012.2.1.ebuild b/app-admin/glance/glance-2012.2.1.ebuild new file mode 100644 index 000000000000..4b28890edb6d --- /dev/null +++ b/app-admin/glance/glance-2012.2.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/glance-2012.2.1.ebuild,v 1.1 2013/01/20 06:39:20 prometheanfire Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Provides services for discovering, registering, and retrieving +virtual machine images with Openstack" +HOMEPAGE="https://launchpad.net/glance" +SRC_URI="http://launchpad.net/${PN}/folsom/${PV}/+download/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ldap mysql postgres +sqlite +swift" +REQUIRED_USE="|| ( ldap mysql postgres sqlite )" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + >=dev-python/boto-2.1.1 + dev-python/anyjson[${PYTHON_USEDEP}] + dev-python/eventlet + dev-python/greenlet + dev-python/httplib2[${PYTHON_USEDEP}] + dev-python/iso8601[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/kombu + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/passlib[${PYTHON_USEDEP}] + dev-python/paste + dev-python/pastedeploy + dev-python/pycrypto + dev-python/python-glanceclient[${PYTHON_USEDEP}] + dev-python/routes + >=dev-python/sqlalchemy-migrate-0.7 + >=dev-python/webob-1.0.8 + virtual/python-argparse[${PYTHON_USEDEP}] + swift? ( + >=dev-python/python-swiftclient-1.2[${PYTHON_USEDEP}] + <dev-python/python-swiftclient-2[${PYTHON_USEDEP}] + ) + sqlite? ( dev-python/sqlalchemy[sqlite] ) + mysql? ( dev-python/sqlalchemy[mysql] ) + postgres? ( dev-python/sqlalchemy[postgres] ) + ldap? ( dev-python/python-ldap )" + +python_install() { + distutils-r1_python_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 + #removed because it conflicts with glanceclient, which we install in rdepend + rm ${D}"/usr/bin/glance" ${D}"/usr/bin/glance-python2.7" +} diff --git a/app-admin/glance/glance-9999.ebuild b/app-admin/glance/glance-9999.ebuild new file mode 100644 index 000000000000..86e77ccb3392 --- /dev/null +++ b/app-admin/glance/glance-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/glance/glance-9999.ebuild,v 1.1 2013/01/20 06:39:20 prometheanfire Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit git-2 distutils-r1 + +DESCRIPTION="Provides services for discovering, registering, and retrieving +virtual machine images with Openstack" +HOMEPAGE="https://launchpad.net/glance" +EGIT_REPO_URI="https://github.com/openstack/glance.git" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="" +IUSE="ldap mysql postgres +sqlite +swift" +REQUIRED_USE="|| ( ldap mysql postgres sqlite )" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + >=dev-python/boto-2.1.1 + dev-python/anyjson[${PYTHON_USEDEP}] + dev-python/eventlet + dev-python/greenlet + dev-python/httplib2[${PYTHON_USEDEP}] + dev-python/iso8601[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/kombu + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/passlib[${PYTHON_USEDEP}] + dev-python/paste + dev-python/pastedeploy + dev-python/pycrypto + dev-python/python-glanceclient[${PYTHON_USEDEP}] + dev-python/routes + >=dev-python/sqlalchemy-migrate-0.7 + >=dev-python/webob-1.0.8 + virtual/python-argparse[${PYTHON_USEDEP}] + swift? ( + >=dev-python/python-swiftclient-1.2[${PYTHON_USEDEP}] + <dev-python/python-swiftclient-2[${PYTHON_USEDEP}] + ) + sqlite? ( dev-python/sqlalchemy[sqlite] ) + mysql? ( dev-python/sqlalchemy[mysql] ) + postgres? ( dev-python/sqlalchemy[postgres] ) + ldap? ( dev-python/python-ldap )" + +python_install() { + distutils-r1_python_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 + #removed because it conflicts with glanceclient, which we install in rdepend + rm ${D}"/usr/bin/glance" ${D}"/usr/bin/glance-python2.7" +} diff --git a/app-admin/glance/metadata.xml b/app-admin/glance/metadata.xml new file mode 100644 index 000000000000..abed32058d85 --- /dev/null +++ b/app-admin/glance/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>prometheanfire@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + 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. + </longdescription> + <use> + <flag name='swift'>Adds swift storage support</flag> + </use> +</pkgmetadata> + |