diff options
author | Matt Thode <prometheanfire@gentoo.org> | 2013-01-20 06:39:38 +0000 |
---|---|---|
committer | Matt Thode <prometheanfire@gentoo.org> | 2013-01-20 06:39:38 +0000 |
commit | 85205da9bcfadde40aaf584e836ad836982c1c89 (patch) | |
tree | 34a7802df17625e93c8b02fe0e49ebf0c344d2ed /app-admin/glance | |
parent | warlock requires jsonpatch-0.10 specifically (diff) | |
download | historical-85205da9bcfadde40aaf584e836ad836982c1c89.tar.gz historical-85205da9bcfadde40aaf584e836ad836982c1c89.tar.bz2 historical-85205da9bcfadde40aaf584e836ad836982c1c89.zip |
initial add of openstack glance as app-admin/glance
Package-Manager: portage-2.1.11.31/cvs/Linux x86_64
Manifest-Sign-Key: 0x2471EB3E40AC5AC3
Diffstat (limited to 'app-admin/glance')
-rw-r--r-- | app-admin/glance/ChangeLog | 12 | ||||
-rw-r--r-- | app-admin/glance/Manifest | 27 | ||||
-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 |
7 files changed, 233 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/Manifest b/app-admin/glance/Manifest new file mode 100644 index 000000000000..1866d623bb27 --- /dev/null +++ b/app-admin/glance/Manifest @@ -0,0 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX glance.confd 25 SHA256 5a53dcf1eece81a06a2dd0856b15f8abe20eb1072361b110f752e396e86a7843 SHA512 13e671d4544e58d7397c1a87eb1048ed4bb9561587fcd63783e377b2d25e810222ca3944e0c8cf13c524e64f94c435b456a0d6f7cacfb148e275377699a11ca9 WHIRLPOOL 862a310fbdd7b68f132c45797210011b607d9b5c8937d60c9f5933a4d625bc985ad0277fea26804681b7e0a674dc9da15fbef40502c4052d6742ef0a94e88f3d +AUX glance.initd 1206 SHA256 23c091ad32832b9a522518676427a2f98bc7dfa826c0bb67a0f9befaa615cafe SHA512 cd0a13ee2a7134cb2917cf2d5579f63c88a6d04769a1370ef5bdc1cfd8ebe7ad2986c501b976ae9752688c177c7a71457bae79cd3e89f84dbf9d5ac259f4099a WHIRLPOOL e59dd3a7a11b3bd74abfbc5e29bc84ce4ff3381ae411359d0d097e3123487d2eded8aefbc54f0a7feae06ecea0861e16a1cb0bd7fcb467a7c714e9c65afb7dd1 +DIST glance-2012.2.1.tar.gz 636828 SHA256 1c806f434e4f69bb7c5e30bbabb77df39849baffa310d03e7fd995ece681a2fc SHA512 d88b8108506dc71adc1acc614e036694768fc5564e756cfda8eff05b08e647b061d9b97d78a5561fad88f233fd35549a7728125df9132178b36698f37ebfc3fb WHIRLPOOL 0fb585b43360e875c32841e26711d1c336f7c2b0aee105152798fa0ff99b9066124bf145b3e1dea758ceab74bac0b9d83c2ebaf222960d13e13dabb11c99cdce +EBUILD glance-2012.2.1.ebuild 2022 SHA256 f2f46cd426f9ffbfeff0fd17f349793f2300603b4b9e4ce26976353f70902ca6 SHA512 f87276b72f9c08c549a3fc5e36a0c210f5a0ad290f43f376cc17c8af0eb6f2d6ae284d42ad02d54bb81fa0590d17067c5ccac79e8c0f1fdd9f0d442dc4438a68 WHIRLPOOL 46383ca8d90965aba0a5af552e80df0cc9da81b63bb7c68d73df617152cfee920b3fd7e5ffa7e6c74090d1a4cf833fe734c4e9cf2cf620f2e840fadeb6d9689e +EBUILD glance-9999.ebuild 1997 SHA256 9243fa490beb62d392ce9cf944906bce464ba1341ae6ce3e7c72a60270953f87 SHA512 af238e048510324f1d280173377cff0027930d52f01d787fab8bfc740cc1b6f8f18b6595b7de0b673220741ebca19dd4240e091ba18a6148541736fad2d7d23c WHIRLPOOL fef01436e3fad79c765e86db996d8200b29daf05d640edce5c54d5ca72b7ac5873c0cffa3337d78f90c23b4b797ae0344bfba5bf041829663fadff93f3ea473a +MISC ChangeLog 491 SHA256 d5b7a216721a928b9c8a0b5e599ca2d4c63caef47730b6d957fa1774c17ff3c3 SHA512 df30c58946f8ba363926e37e0b61e45308aceaa9bf17fc19bd590b1e1c27f9ee44adcddd2b737367e6312c7fa398db06f830cbe7cd45f23adb9472370e0864d6 WHIRLPOOL 8dfeb7abe620b46f57f15bc7bbd6d324f823bf22259a2cc01e1da09d0e730a8eaf39d3e4321f88e66c3faa56c94efba3296f050668a4234212c2bcc2fe284dad +MISC metadata.xml 551 SHA256 de9d9d349c334c740b04384a4f1288e7f2f8491751c38b5846fa5fdc801dd3c0 SHA512 0141af1612f84846713c8ffe8d0c4e653a77772d4e050deb5b9a47882aed9f803c7a0ebe7709f64279b04a19658f10da4aef962a70ecc7aebc2e7dce2ede4c68 WHIRLPOOL 4858e7841f26f04b1e35838cfb475cf34506fdb26e1a03f75c219d599dddac73fbc3429c80b5ac7c752fe2782445e2d492f58fc0b87da44ddc6d03b4710c8f13 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQIcBAEBCAAGBQJQ+5EqAAoJECRx6z5ArFrDJMEP+gMMmjhShpK/JiydxBlLzSoP +o3awhNJyujg30njiBci34FQYfHbIslf0osW75bg+xJIQv2PqTpqoOv/uLIHVMWMe +l9C4lh3+r3+Gpem7rR2UDIgpGsWeljQVGgjtb+epsMIhPpWu516kgx+EZW4t/55h +v/NiIMljDV2kvsdWr0Ozg2tY04qwRx2SEO15VlQS3SItdDtuDFVy3QBxbXrSdbYU +7qtpLy27FJVeJ/2yfs0fvqipui4ePdE9UYDtXY5cUz8NGEhtKCIDDqdy8mncnPDJ +G3bidCIstqt8lY898jWakmK5H0p36xuGyR5VYhPJG/iSpK/+Kt03Hst1o52SxCvM +T0G7X03J+XvoeTd1WJ+9nL2rcIcaa12IkUu+gEpf1AkVhlio27O4UMhLV0KTwlB7 +XTVmoh1CvdFLeoW1dv3WtFaizxIlnbEXSUXTCqJt4ej+cPzk6vs64eOWgoNfUlmr +cxTw2n1bagL8LcTwm9fFl2Uygkp0T/8iXkWFLN5rMtDqkLtdQQWTfc0AACLDcdTs +mElYnAkr3GEslPJ8TWttKMjIkmWr/fZX7Nneboac5JJwHzVfwiY3Pny5dN7D2PQT +glNoDAZ3Be1XGx74X9F/yMRMZPBbL1Y2VnwwtgNN75zDjy4XxnJkJnrT2hS4Prvu +5FJSZ5bJ6Ws4yotuSKMq +=51Ww +-----END PGP SIGNATURE----- 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> + |