summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb62
1 files changed, 62 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
new file mode 100644
index 0000000..d584adf
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb
@@ -0,0 +1,62 @@
1DESCRIPTION = "Authentication service for OpenStack"
2HOMEPAGE = "http://www.openstack.org"
3SECTION = "devel/python"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
6
7PR = "r0"
8SRCNAME = "keystone"
9
10SRC_URI = "https://launchpad.net/keystone/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \
11 file://keystone.conf \
12 "
13
14SRC_URI[md5sum] = "f82189cd7e3f0955e32c60e41f4120da"
15SRC_URI[sha256sum] = "34347a3242a40d93b98c3722e6f3fbc112bc1c9ef20c045c3d40637e459b4574"
16
17S = "${WORKDIR}/${SRCNAME}-${PV}"
18
19inherit setuptools
20
21do_install_append() {
22
23 KEYSTONE_CONF_DIR=${D}${sysconfdir}/keystone
24
25 install -d ${KEYSTONE_CONF_DIR}
26
27 install -m 600 ${WORKDIR}/keystone.conf ${KEYSTONE_CONF_DIR}/
28 install -m 600 ${S}/etc/logging.conf.sample ${KEYSTONE_CONF_DIR}/logging.conf
29 install -m 600 ${S}/etc/policy.json ${KEYSTONE_CONF_DIR}/policy.json
30
31 # Create the sqlite database
32 touch ${KEYSTONE_CONF_DIR}/keystone.db
33}
34
35pkg_postinst_${PN} () {
36 if [ "x$D" != "x" ]; then
37 exit 1
38 fi
39
40 # Needed when using a MySQL backend
41 # mysql -u root -e "CREATE DATABASE keystone CHARACTER SET utf8;"
42 keystone-manage db_sync
43 keystone-manage pki_setup
44}
45
46FILES_${PN} += "${sysconfdir}/${SRCNAME}/*"
47
48RDEPENDS_${PN} += "python-pam \
49 python-webob \
50 python-eventlet \
51 python-greenlet \
52 python-pastedeploy \
53 python-paste \
54 python-routes \
55 python-sqlalchemy \
56 python-sqlalchemy-migrate \
57 python-passlib \
58 python-lxml \
59 python-iso8601 \
60 python-keystoneclient \
61 python-oslo.config \
62 "