kilo release
authorMatt Thode <prometheanfire@gentoo.org>
Thu, 30 Apr 2015 17:23:37 +0000 (17:23 +0000)
committerMatt Thode <prometheanfire@gentoo.org>
Thu, 30 Apr 2015 17:23:37 +0000 (17:23 +0000)
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0x33ED3FD25AFC78BA

sys-auth/keystone/ChangeLog
sys-auth/keystone/Manifest
sys-auth/keystone/keystone-2015.1.0.ebuild [new file with mode: 0644]
sys-auth/keystone/keystone-2015.1.9999.ebuild [new file with mode: 0644]
sys-auth/keystone/metadata.xml

index 2300c033e710fa6167b06f69bd183c42c97b512e..8a503c10926c48d65c2f57e3d0544914eaa1a2df 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for sys-auth/keystone
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/ChangeLog,v 1.93 2015/04/14 16:10:06 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/ChangeLog,v 1.94 2015/04/30 17:23:27 prometheanfire Exp $
+
+*keystone-2015.1.0 (30 Apr 2015)
+*keystone-2015.1.9999 (30 Apr 2015)
+
+  30 Apr 2015; Matthew Thode <prometheanfire@gentoo.org>
+  +keystone-2015.1.0.ebuild, +keystone-2015.1.9999.ebuild, metadata.xml:
+  kilo release
 
   14 Apr 2015; Matthew Thode <prometheanfire@gentoo.org>
   keystone-2014.2.9999.ebuild:
index 3ea54b4eefaccf4047953a7c50553f5648b1cf36..8fbb68eb139cbd72e93bee1ec0ecc92ddaa2bb8e 100644 (file)
@@ -5,24 +5,27 @@ AUX keystone.confd 124 SHA256 50daa09c5922190a6663e36a32e9b6e5c512672e5be776fcc9
 AUX keystone.initd 674 SHA256 fc556365de7198de035ebf083b10f59043aa3266270d3ab708d613311f1a719a SHA512 10066c2197973aeee2444ae1bff0ffc3d2a7360a632b55b9c2f66bf064285491e698721ec1525a22b18c0b74a8a6c5c4b84d2cf73812a0f93b2dbfffba799718 WHIRLPOOL 7969003cec68ca8017de003e6a5cfb4bd239a149b06dd9304c9ba8200b4fedfe8ae7e8d3c443e741d1c19cedc5d67150f1d236eef565685a64aa4a998c1ec509
 AUX no_admin_token_auth-paste.ini 2646 SHA256 f98d9151f222d2143820bdc98727ce0cf3f4450a4dbdc54f1fb6e36bb63bf2df SHA512 c855dd2bb05e765c6594359f55b76f7f6e0649c8e8f4517b274c7432f136e51c408168ec24e0074f4ebc49eb641d658acfda205aef97fe68fe8fc016be4cb08d WHIRLPOOL faad0f98d0684cf206e2f2afb5fba6c6aab73f97bcf63e38038be49a2ae1303e8cb5434d8fab34492888c666462dcd751c678c04cd0039d9024fd42ddde30646
 DIST keystone-2014.2.3.tar.gz 940147 SHA256 55e1376508c341ba1e58f30f3538550048e924d9c20aa2cae746df14f4193ba0 SHA512 82dded8e9176651a0d71aa2db45c84ba31b43a0eb6d07c8983853546e15af9cd8a54d092f3a82507ccf4ba2c40f7671d1df4b0294fae05618b5695aad87503be WHIRLPOOL 7210728e844952ad0545573ee4a05208fe3aed674ab88155bce584c0f6cf0391a5b717bc0c4e359e008ccd5e711fa826bf23d8f83ac35d5afa22e23bb96085c8
+DIST keystone-2015.1.0.tar.gz 884362 SHA256 20ad170dcc727659f30003af16272d7685238d1ad069c91c542b6ac47d903d7a SHA512 d619a75a2f840fe49a66446c7b2436583a2ca6ea292252470b41817e7c7c34972ea7fbbb68a3b292699a4b2854a01db64be9f263b2dd56389cf6fd1e8d0f4f85 WHIRLPOOL 0f85ad09d13c32c591fa8ac5495de28234b79bb47f9b9f56409ed2f36adbcacbe2bd022fd568859ea82cfba735de96e1b6f32e07c78d5509507440ec52b1d534
 EBUILD keystone-2014.2.3-r1.ebuild 7206 SHA256 60c6e76f82ba181d5eccd80fdfbf8de4218212477bb038e7c84f566aef69b46f SHA512 d879adb516a0da0ac1dd53e7b994eb70d3ab7358a250aaf7032487305dc1c214821313541a34d0960c2ea96a5d6c5739fdab17cb0efbc4b5f4116f780bf0e981 WHIRLPOOL 82b94dbd83bcf26dde35ce682f25dbfee09aa44561cd44055c9b95e1795d928ba816df0c38e927b7a3e008f88daa5c9fd742709ed5d17238450edd8f054dcced
 EBUILD keystone-2014.2.9999.ebuild 7215 SHA256 55fe43bcf8b5d59a4ad48ae581cf43d71c32b934484b1807bba656a2aa838e32 SHA512 510b134fac94166ab903139b7a5845cb2dcc5e1ab911630e0f8f13bd478c8a807f474205f596101ce3866a89a050fe17f947abd0dad5299005c44a89b0763da0 WHIRLPOOL edccb61f3fafa612dfc3a9e4eee39099cdd46ce4e6cf15d1e624a9af89bc4eac73e6c4e9532e63fa99ddb89c34672f40565bef2271a19c35ccbd37f05fe7cb37
-MISC ChangeLog 19206 SHA256 ecd5af987738ff782ecb896339bfeffe126cc14e36943cf6448de0d1b4053f80 SHA512 5594d994e076b66d14234e38c42d0a934e2ce4adf6820737d12941f0eb66b553214114186e896ad47f2e83ff31d1d2074f17746ddf275f5c3379cbb074b3730c WHIRLPOOL 787a2a09efafb68514b63cd14e66e8c3524ef509a7162d3ee9831bbd6cce96c30dd0c681184a431c8a0f2c73f6fd2ef943c33b3f27bff96250fb750272fd9993
-MISC metadata.xml 424 SHA256 c89c0232e90df5d811d17941c1594e4c4c45db48c2b6240a3c62b232caad4e84 SHA512 9d7fcca89a6f35a93f1a57790103249cdc25424cbdb374bf26b691e81b27182dc3380a8ff67b77e7aabf4ce944e4a813d619838d4bc97086b4208e5312d76f11 WHIRLPOOL 4ec9d4c5ff5c484c341b06fe77fcac8e6fdd0e0b651dbd58b6f2d5aecd05db5bf70218b94733eb749ced7436f9df5ba5c93496bae06c0ff9a62b91ecb53ab77a
+EBUILD keystone-2015.1.0.ebuild 6559 SHA256 206610455cd70156cc7e4c8ffc6014462602189407d62d81f9e9ca497123d7bf SHA512 b6a96a87a85feff471001b47edfe3cc17664816a7a324549df028700912f2fb746eff9050c510cccb08d8a39123eac0bfc9b01be9ed0660b9b69efe7786c4b60 WHIRLPOOL 8a98912f34934134dff81b91d9417cd56b5826e04c685bb9c5cd9d25173f17c4bb307fd631f17ac4d358688ee69c6befd2050cca113d4429b4d18a774faa2148
+EBUILD keystone-2015.1.9999.ebuild 6576 SHA256 5fd29d87aa0996cd4c3d6537f6d512162efbf8d130a7926c28815e356210bf6c SHA512 ed1ec17fad8878ba059473e38f83545bf84082480197b5f12c16213d599248fb208467082755e615639c37024c1d072900a1f910c2523007b8b24f7be51979b1 WHIRLPOOL 779303a5eeb5e3aac6b224f16b778125a94f3fcc5e3b25ac001f22378c65afd99960abd4c559110adbe3757a38133ae9eeb8e540846196aaa4077fa531f5bbed
+MISC ChangeLog 19422 SHA256 de2dee754737f51038275e062f11eefe14aacf7983331ce594d9871f9d34a40f SHA512 a67ce3a3bd2bc820fd93de2b6f8ceb46f993812d35a116a9d50d92ec7043327358eb7c3c95203f093a1a186ae3156530e55eeffd5555bebd32350ac98e3128cd WHIRLPOOL 38f53f817d1c667631ced95bb67b0f0a7a80c56e1337a2458ede68416aa9988653b7fcd192002102b3e38556728b6dca2038e04538a6f0aa91c5b14803722d13
+MISC metadata.xml 625 SHA256 b2713ccbef1f75f62162ad08f2c53af6214a277dab3a8d03786905a051c550c7 SHA512 b3257648dd05ec88fe8135073c79f92822e1c8a08ce9641c90eaf8a35d373efa6a7d97af07a3ca1049cefdf1c94bd0b3ebed13dcb7c3ce04af08d0a80596dec9 WHIRLPOOL a34878a1948c7a176fedd3d77121b9660f11644d3266e2df9705f559550be9ff9fc465cce06e419ca97832033ab1ce0dcd241a5f70e6d96afa314e7e1a8f740e
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iQIcBAEBCAAGBQJVLTvpAAoJEGSje+quGaToglUP/0n7DCIXdPxWYQ033LR6O37n
-zCTJiesdb1dA2JoENwKwqgYO8mgc3W4tBbo5d0RyFE1WNQJ2NLPfGZovKs9c5tAk
-3j1+aRDGTNqvbgmh5XH87aNaYHUw4fC9EMFBDJoGvTY7UwDQs8eGTa9ELj2o09T+
-iC7tVrnNdR6k7tyOjqkI9Y+iAyWVfpBwTFZoO+OtQENNgPZD748MyX0bWpSJK52G
-e6DqomwvHRHPahjU1W1y6PhAPsWKDz0kc8Zo9gBz+SNC7IjmUQPAcwzHNNtMxLC1
-eE0j/ZNTCNRU+cyTz4wA9kFiN9w3jMiKSesQnFdgP1pGRDYXE57ZBeZNTXOOlxnh
-bH4vP1ww+6JuV+N4bXOHCAix/CTgWJ2ojSYJZ0LuZGK8uAJLmAMVfBj5OUkFeVP9
-Mh3B3ZW4nTGoAM+Rr4KNzKlkoGMr++qiSF6Rd6qKkThHKAvvya8phDz9zuZOLhn8
-Qo/4Ys8TKuWmcJcyqPj1cQPEpEnsaHONaAJhdMGYnpQpg2teT6vqom9vvVjCFLEA
-HFkNJN2XnoykPgxCBr+KGYmnJg1w71w8ZMXV01KuHv38ShNcJgvl14Q33NPaWA/7
-AjgUYqkDKWOnTdorikYyVDre+SqbLktwaVc9zCVRPCuUXpHzxRgXxSsicVNbslIg
-zjTp/BuGcVMkwd3EctTE
-=2pMF
+iQIcBAEBCAAGBQJVQmUnAAoJEGSje+quGaToGKQP/iODMRF8ZsR4VRNi8ODXi++F
+RwJaQXWBIAWMWTI2ioEL/jbCKm42Gi61G7uNpFk9jPse8GzOne6BwTnuTJG7JU0K
+mNuG9alBKP6HFd/DkugC7NO1hrrxR1qQ2HGBfT5ebCUOZukFZJzUzAw91i/z3cKd
+7EU3OIDNNWLpEFZtjslgfXxf6vmLIKbr1q2c5OBumb1h/5fheFO8PPTLxLmoAUO3
+d+ypeTT2tq+qn8dzmlsU1vaiOkfi+gJ17uknUL8ACSUK/ZVLBSqpyfgVEeU+V/pD
+VhvRAMnQDErQb+b0hpqIS81Ox8nkYxJs5r7Id+x8k9BSiYPb83T1/SsOCNYePh2l
+kkcSdQHROzrolIL7oYYyM/nlEtaXQcBBn+gqK31xkre5+wAv6/IYrODCL+0L91Bs
+cay+NTNJsxSTJb1DSLzuI9rsBM+3Ktlm2nx+Lds4leZONMCoXCFdiQxqP3SJKhdk
+rYD8nECHGl7gRtTLUNrrysfPqbsGL3xJHNDtmvSPiiJw+J7553AQ/ZQKzkX6O/XQ
+otaQX0jhvK6kxU4uCiOl5wCv1SPdmhnMRg7ZkYkqX77wnZtphZqULuwuO+GOmLDu
+roMq3ynpusXCpL0leNuGJQpqESFJl64CLevKfz/qdBqtzBei7O7/wcytae/KAyVt
+2D/FZANKmfbkuF1dJ12o
+=MFG+
 -----END PGP SIGNATURE-----
diff --git a/sys-auth/keystone/keystone-2015.1.0.ebuild b/sys-auth/keystone/keystone-2015.1.0.ebuild
new file mode 100644 (file)
index 0000000..ffaeb83
--- /dev/null
@@ -0,0 +1,180 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-2015.1.0.ebuild,v 1.1 2015/04/30 17:23:27 prometheanfire Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 git-2 user
+
+DESCRIPTION="The Openstack authentication, authorization, and service catalog"
+HOMEPAGE="https://launchpad.net/keystone"
+SRC_URI="http://launchpad.net/${PN}/kilo/${PV}/+download/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS=""
+IUSE="+sqlite memcached mongo mysql postgres ldap test"
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       >=dev-python/pbr-0.8[${PYTHON_USEDEP}]
+       <dev-python/pbr-1.0[${PYTHON_USEDEP}]
+       test? (
+               ${RDEPEND}
+               >=dev-python/hacking-0.10.0[${PYTHON_USEDEP}]
+               <dev-python/hacking-0.11[${PYTHON_USEDEP}]
+               >=dev-python/bashate-0.2[${PYTHON_USEDEP}]
+               dev-lang/python[sqlite]
+               memcached? (
+                       >=dev-python/python-memcached-1.48[${PYTHON_USEDEP}]
+               )
+               mongo? (
+                       >=dev-python/pymongo-2.5[${PYTHON_USEDEP}]
+                       <dev-python/pymongo-3.0[${PYTHON_USEDEP}]
+               )
+               ldap? (
+                       dev-python/python-ldap[${PYTHON_USEDEP}]
+                       >=dev-python/ldappool-1.0[${PYTHON_USEDEP}]
+               )
+               >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
+               >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
+               >=dev-python/lxml-2.3[${PYTHON_USEDEP}]
+               >=dev-python/mock-1.0[${PYTHON_USEDEP}]
+               >=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}]
+               <dev-python/oslotest-1.6.0[${PYTHON_USEDEP}]
+               >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
+               !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
+               <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
+               >=dev-python/webtest-2.0[${PYTHON_USEDEP}]
+               >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
+               >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
+               >=dev-python/testtools-0.9.36[${PYTHON_USEDEP}]
+               !~dev-python/testtools-1.2.0[${PYTHON_USEDEP}]
+               >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
+               <dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}]
+               >=dev-python/tempest-lib-0.4.0[${PYTHON_USEDEP}]
+       )"
+RDEPEND="
+       >=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}]
+       >=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}]
+       !~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}]
+       >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
+       >=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}]
+       >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
+       dev-python/paste[${PYTHON_USEDEP}]
+       >=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
+       !~dev-python/routes-2.0[${PYTHON_USEDEP}]
+       >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
+       sqlite? (
+               >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}]
+               <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}]
+       )
+       mysql? (
+               dev-python/mysql-python
+               >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
+               <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+       )
+       postgres? (
+               dev-python/psycopg:2
+               >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
+               <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+       )
+       >=dev-python/sqlalchemy-migrate-0.9.5[${PYTHON_USEDEP}]
+       dev-python/passlib[${PYTHON_USEDEP}]
+       >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
+       >=dev-python/python-keystoneclient-1.1.0[${PYTHON_USEDEP}]
+       <dev-python/python-keystoneclient-1.4.0[${PYTHON_USEDEP}]
+       >=dev-python/keystonemiddleware-1.5.0[${PYTHON_USEDEP}]
+       <dev-python/keystonemiddleware-1.6.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-concurrency-1.8.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-concurrency-1.9.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-config-1.9.3[${PYTHON_USEDEP}]
+       <dev-python/oslo-config-1.10.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-messaging-1.8.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-messaging-1.9.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-db-1.7.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-db-1.8.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-log-1.0.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-log-1.1.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-middleware-1.0.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-middleware-1.1.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-policy-0.3.1[${PYTHON_USEDEP}]
+       <dev-python/oslo-policy-0.4.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}]
+       >=dev-python/oauthlib-0.6.0[${PYTHON_USEDEP}]
+       dev-python/pysaml2[${PYTHON_USEDEP}]
+       >=dev-python/dogpile-cache-0.5.3[${PYTHON_USEDEP}]
+       >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
+       <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
+       >=dev-python/pycadf-0.8.0[${PYTHON_USEDEP}]
+       <dev-python/pycadf-0.9.0[${PYTHON_USEDEP}]
+       dev-python/posix_ipc[${PYTHON_USEDEP}]
+       >=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}]"
+
+PATCHES=(
+)
+
+pkg_setup() {
+       enewgroup keystone
+       enewuser keystone -1 -1 /var/lib/keystone keystone
+}
+
+python_prepare_all() {
+       # it's in git, but not in the tarball.....
+       mkdir -p ${PN}/tests/tmp/ || die
+       cp etc/keystone-paste.ini ${PN}/tests/tmp/ || die
+       distutils-r1_python_prepare_all
+}
+
+# Ignore (naughty) test_.py files & 1 test that connect to the network
+#-I 'test_keystoneclient*' \
+python_test() {
+       nosetests -I 'test_keystoneclient*' \
+               -e test_static_translated_string_is_Message \
+               -e test_get_token_id_error_handling \
+               -e test_provider_token_expiration_validation \
+               -e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7"
+}
+
+python_install() {
+       distutils-r1_python_install
+       newconfd "${FILESDIR}/keystone.confd" keystone
+       newinitd "${FILESDIR}/keystone.initd" keystone
+
+       diropts -m 0750
+       keepdir /etc/keystone /var/log/keystone
+       insinto /etc/keystone
+       doins etc/keystone.conf.sample etc/logging.conf.sample
+       doins etc/default_catalog.templates etc/policy.json
+       doins etc/policy.v3cloudsample.json etc/keystone-paste.ini
+
+       fowners keystone:keystone /etc/keystone /var/log/keystone
+}
+
+pkg_postinst() {
+       elog "You might want to run:"
+       elog "emerge --config =${CATEGORY}/${PF}"
+       elog "if this is a new install."
+       elog "If you have not already configured your openssl installation"
+       elog "please do it by modifying /etc/ssl/openssl.cnf"
+       elog "BEFORE issuing the configuration command."
+       elog "Otherwise default values will be used."
+}
+
+pkg_config() {
+       if [ ! -d "${ROOT}"/etc/keystone/ssl ] ; then
+               einfo "Press ENTER to configure the keystone PKI, or Control-C to abort now..."
+               read
+               "${ROOT}"/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
+       else
+               einfo "keystone PKI certificates directory already present, skipping configuration"
+       fi
+}
diff --git a/sys-auth/keystone/keystone-2015.1.9999.ebuild b/sys-auth/keystone/keystone-2015.1.9999.ebuild
new file mode 100644 (file)
index 0000000..fb6fe98
--- /dev/null
@@ -0,0 +1,181 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/keystone/keystone-2015.1.9999.ebuild,v 1.1 2015/04/30 17:23:27 prometheanfire Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 git-2 user
+
+DESCRIPTION="The Openstack authentication, authorization, and service catalog"
+HOMEPAGE="https://launchpad.net/keystone"
+EGIT_REPO_URI="https://github.com/openstack/keystone.git"
+EGIT_BRANCH="stable/kilo"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS=""
+IUSE="+sqlite memcached mongo mysql postgres ldap test"
+REQUIRED_USE="|| ( mysql postgres sqlite )"
+
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       >=dev-python/pbr-0.8[${PYTHON_USEDEP}]
+       <dev-python/pbr-1.0[${PYTHON_USEDEP}]
+       test? (
+               ${RDEPEND}
+               >=dev-python/hacking-0.10.0[${PYTHON_USEDEP}]
+               <dev-python/hacking-0.11[${PYTHON_USEDEP}]
+               >=dev-python/bashate-0.2[${PYTHON_USEDEP}]
+               dev-lang/python[sqlite]
+               memcached? (
+                       >=dev-python/python-memcached-1.48[${PYTHON_USEDEP}]
+               )
+               mongo? (
+                       >=dev-python/pymongo-2.5[${PYTHON_USEDEP}]
+                       <dev-python/pymongo-3.0[${PYTHON_USEDEP}]
+               )
+               ldap? (
+                       dev-python/python-ldap[${PYTHON_USEDEP}]
+                       >=dev-python/ldappool-1.0[${PYTHON_USEDEP}]
+               )
+               >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
+               >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
+               >=dev-python/lxml-2.3[${PYTHON_USEDEP}]
+               >=dev-python/mock-1.0[${PYTHON_USEDEP}]
+               >=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}]
+               <dev-python/oslotest-1.6.0[${PYTHON_USEDEP}]
+               >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
+               !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
+               <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
+               >=dev-python/webtest-2.0[${PYTHON_USEDEP}]
+               >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
+               >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
+               >=dev-python/testtools-0.9.36[${PYTHON_USEDEP}]
+               !~dev-python/testtools-1.2.0[${PYTHON_USEDEP}]
+               >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
+               <dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}]
+               >=dev-python/tempest-lib-0.4.0[${PYTHON_USEDEP}]
+       )"
+RDEPEND="
+       >=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}]
+       >=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}]
+       !~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}]
+       >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
+       >=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}]
+       >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
+       dev-python/paste[${PYTHON_USEDEP}]
+       >=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
+       !~dev-python/routes-2.0[${PYTHON_USEDEP}]
+       >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
+       sqlite? (
+               >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}]
+               <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}]
+       )
+       mysql? (
+               dev-python/mysql-python
+               >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
+               <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+       )
+       postgres? (
+               dev-python/psycopg:2
+               >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
+               <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+       )
+       >=dev-python/sqlalchemy-migrate-0.9.5[${PYTHON_USEDEP}]
+       dev-python/passlib[${PYTHON_USEDEP}]
+       >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
+       >=dev-python/python-keystoneclient-1.1.0[${PYTHON_USEDEP}]
+       <dev-python/python-keystoneclient-1.4.0[${PYTHON_USEDEP}]
+       >=dev-python/keystonemiddleware-1.5.0[${PYTHON_USEDEP}]
+       <dev-python/keystonemiddleware-1.6.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-concurrency-1.8.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-concurrency-1.9.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-config-1.9.3[${PYTHON_USEDEP}]
+       <dev-python/oslo-config-1.10.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-messaging-1.8.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-messaging-1.9.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-db-1.7.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-db-1.8.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-log-1.0.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-log-1.1.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-middleware-1.0.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-middleware-1.1.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-policy-0.3.1[${PYTHON_USEDEP}]
+       <dev-python/oslo-policy-0.4.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}]
+       >=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}]
+       <dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}]
+       >=dev-python/oauthlib-0.6.0[${PYTHON_USEDEP}]
+       dev-python/pysaml2[${PYTHON_USEDEP}]
+       >=dev-python/dogpile-cache-0.5.3[${PYTHON_USEDEP}]
+       >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
+       <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
+       >=dev-python/pycadf-0.8.0[${PYTHON_USEDEP}]
+       <dev-python/pycadf-0.9.0[${PYTHON_USEDEP}]
+       dev-python/posix_ipc[${PYTHON_USEDEP}]
+       >=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}]"
+
+PATCHES=(
+)
+
+pkg_setup() {
+       enewgroup keystone
+       enewuser keystone -1 -1 /var/lib/keystone keystone
+}
+
+python_prepare_all() {
+       # it's in git, but not in the tarball.....
+       mkdir -p ${PN}/tests/tmp/ || die
+       cp etc/keystone-paste.ini ${PN}/tests/tmp/ || die
+       distutils-r1_python_prepare_all
+}
+
+# Ignore (naughty) test_.py files & 1 test that connect to the network
+#-I 'test_keystoneclient*' \
+python_test() {
+       nosetests -I 'test_keystoneclient*' \
+               -e test_static_translated_string_is_Message \
+               -e test_get_token_id_error_handling \
+               -e test_provider_token_expiration_validation \
+               -e test_import --process-restartworker --process-timeout=60 || die "testsuite failed under python2.7"
+}
+
+python_install() {
+       distutils-r1_python_install
+       newconfd "${FILESDIR}/keystone.confd" keystone
+       newinitd "${FILESDIR}/keystone.initd" keystone
+
+       diropts -m 0750
+       keepdir /etc/keystone /var/log/keystone
+       insinto /etc/keystone
+       doins etc/keystone.conf.sample etc/logging.conf.sample
+       doins etc/default_catalog.templates etc/policy.json
+       doins etc/policy.v3cloudsample.json etc/keystone-paste.ini
+
+       fowners keystone:keystone /etc/keystone /var/log/keystone
+}
+
+pkg_postinst() {
+       elog "You might want to run:"
+       elog "emerge --config =${CATEGORY}/${PF}"
+       elog "if this is a new install."
+       elog "If you have not already configured your openssl installation"
+       elog "please do it by modifying /etc/ssl/openssl.cnf"
+       elog "BEFORE issuing the configuration command."
+       elog "Otherwise default values will be used."
+}
+
+pkg_config() {
+       if [ ! -d "${ROOT}"/etc/keystone/ssl ] ; then
+               einfo "Press ENTER to configure the keystone PKI, or Control-C to abort now..."
+               read
+               "${ROOT}"/usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
+       else
+               einfo "keystone PKI certificates directory already present, skipping configuration"
+       fi
+}
index d9eb7e29166753e7402c5c0469a745372ef1e972..e7dd8af0bf36362fb68a07c7580501d9db3eb23a 100644 (file)
@@ -1,6 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+  <use>
+    <flag name="memcached">Installs dependencies needed for using memcached as a backend</flag>
+    <flag name="mongo">Installs dependencies needed for using mongo as a backend</flag>
+  </use>
   <herd>openstack</herd>
   <maintainer>
     <email>prometheanfire@gentoo.org</email>