summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
diff options
context:
space:
mode:
authorMihai Prica <prica.mihai@gmail.com>2013-06-12 18:59:28 +0300
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-28 18:41:57 -0400
commita2fe94c45fee8227479f8e806307f841eb741ceb (patch)
treec5e18ac14c09d1636c9c67c04128b40eadb037c9 /meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
parentf4910048cad2cc96046084df34d645f81bd6dfcc (diff)
downloadmeta-cloud-services-a2fe94c45fee8227479f8e806307f841eb741ceb.tar.gz
python-quantum: Update to 2013.1.2
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb159
1 files changed, 159 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
new file mode 100644
index 0000000..d38df40
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb
@@ -0,0 +1,159 @@
1DESCRIPTION = "Quantum (virtual network service)"
2HOMEPAGE = "https://launchpad.net/quantum"
3SECTION = "devel/python"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
6
7PR = "r0"
8SRCNAME = "quantum"
9
10SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \
11 file://quantum.conf \
12 file://ovs_quantum_plugin.ini \
13 file://linuxbridge_conf.ini \
14 file://quantum-server.init \
15 file://quantum-agent.init \
16 "
17
18#SRC_URI[md5sum] = "1ad2338b25cfde582de479678533113e"
19#SRC_URI[sha256sum] = "edae19fe45849168bc9cace82b63a11a3b9d2292ba733d4c536657c1c722e61e"
20
21SRC_URI[md5sum] = "890ec5be7cede9cef6c8033412b74fe9"
22SRC_URI[sha256sum] = "08752d58fc010332c527974ddff0475378f6104e77de40b0a690580f672c7fd2"
23
24
25S = "${WORKDIR}/${SRCNAME}-${PV}"
26
27inherit setuptools update-rc.d
28
29do_install_append() {
30
31 QUANTUM_CONF_DIR=${D}${sysconfdir}/quantum
32
33 install -d ${QUANTUM_CONF_DIR}
34 install -d ${QUANTUM_CONF_DIR}/plugins/openvswitch
35 install -d ${QUANTUM_CONF_DIR}/plugins/linuxbridge
36
37 install -m 600 ${WORKDIR}/quantum.conf ${QUANTUM_CONF_DIR}/
38 install -m 600 ${WORKDIR}/ovs_quantum_plugin.ini ${QUANTUM_CONF_DIR}/plugins/openvswitch/
39 install -m 600 ${WORKDIR}/linuxbridge_conf.ini ${QUANTUM_CONF_DIR}/plugins/linuxbridge/
40 install -m 600 ${S}/etc/api-paste.ini ${QUANTUM_CONF_DIR}/
41 install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/
42
43 PLUGIN=openvswitch
44
45 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
46 install -d ${D}${sysconfdir}/init.d
47 sed "s:@plugin@:/etc/quantum/plugins/$PLUGIN/ovs_quantum_plugin.ini:" \
48 < ${WORKDIR}/quantum-server.init >${WORKDIR}/quantum-server.init.sh
49 install -m 0755 ${WORKDIR}/quantum-server.init.sh ${D}${sysconfdir}/init.d/quantum-server
50 sed "s:@suffix@:$PLUGIN:" < ${WORKDIR}/quantum-agent.init >${WORKDIR}/quantum-$PLUGIN.init.sh
51 install -m 0755 ${WORKDIR}/quantum-$PLUGIN.init.sh ${D}${sysconfdir}/init.d/quantum-$PLUGIN-agent
52 fi
53}
54
55pkg_postinst_${SRCNAME} () {
56 if [ "x$D" != "x" ]; then
57 exit 1
58 fi
59
60 # quick fix
61 #exit 1
62 sudo -u postgres createdb quantum
63}
64
65PACKAGES += " \
66 ${SRCNAME} \
67 ${SRCNAME}-doc \
68 ${SRCNAME}-server \
69 ${SRCNAME}-plugin-openvswitch \
70 ${SRCNAME}-plugin-linuxbridge \
71 ${SRCNAME}-dhcp-agent \
72 ${SRCNAME}-l3-agent \
73 ${SRCNAME}-metadata-agent \
74 ${SRCNAME}-extra-agents \
75 "
76
77FILES_${PN} = "${libdir}/*"
78
79FILES_${SRCNAME} = " \
80 ${bindir}/quantum-db-manage \
81 ${bindir}/quantum-rootwrap \
82 ${bindir}/quantum-debug \
83 ${bindir}/quantum-netns-cleanup \
84 ${bindir}/quantum-ovs-cleanup \
85 ${sysconfdir}/${SRCNAME}/* "
86
87FILES_${SRCNAME}-server = "${bindir}/quantum-server \
88 ${sysconfdir}/init.d/quantum-server \
89 "
90
91FILES_${SRCNAME}-plugin-openvswitch = " \
92 ${bindir}/quantum-openvswitch-agent \
93 ${sysconfdir}/${SRCNAME}/plugins/openvswitch/ovs_quantum_plugin.ini \
94 ${sysconfdir}/init.d/quantum-openvswitch-agent \
95 "
96
97FILES_${SRCNAME}-plugin-linuxbridge = " \
98 ${bindir}/quantum-linuxbridge-agent \
99 ${sysconfdir}/${SRCNAME}/plugins/linuxbridge/linuxbridge_conf.ini \
100 ${sysconfdir}/init.d/quantum-linuxbridge-agent \
101 "
102
103FILES_${SRCNAME}-dhcp-agent = "${bindir}/quantum-dhcp-agent \
104 ${sysconfdir}/${SRCNAME}/dhcp_agent.ini \
105 ${sysconfdir}/init.d/dhcp_agent \
106 "
107
108FILES_${SRCNAME}-l3-agent = "${bindir}/quantum-l3-agent \
109 ${sysconfdir}/${SRCNAME}/l3_agent.ini \
110 ${sysconfdir}/init.d/l3_agent \
111 "
112
113FILES_${SRCNAME}-metadata-agent = "${bindir}/quantum-metadata-agent \
114 ${sysconfdir}/${SRCNAME}/metadata_agent.ini \
115 ${sysconfdir}/init.d/metadata_agent \
116 "
117
118FILES_${SRCNAME}-extra-agents = "${bindir}/*"
119
120FILES_${SRCNAME}-doc = "${datadir}/*"
121
122RDEPENDS_${PN} += "python-paste \
123 python-pastedeploy \
124 python-routes \
125 python-amqplib \
126 python-anyjson \
127 python-alembic \
128 python-eventlet \
129 python-greenlet \
130 python-httplib2 \
131 python-iso8601 \
132 python-kombu \
133 python-netaddr \
134 python-quantumclient \
135 python-sqlalchemy \
136 python-webob \
137 python-keystoneclient \
138 python-oslo.config \
139 python-pyudev \
140 python-novaclient \
141 python-mako \
142 python-markupsafe \
143 "
144
145RDEPENDS_${SRCNAME} = "${PN} \
146 postgresql postgresql-client python-psycopg2"
147
148RDEPENDS_${SRCNAME}-server = "${SRCNAME}"
149RDEPENDS_${SRCNAME}-plugin-openvswitch = "${SRCNAME} openvswitch-switch "
150RDEPENDS_${SRCNAME}-plugin-linuxbridge = "${SRCNAME} bridge-utils"
151RDEPENDS_${SRCNAME}-dhcp-agent = "${SRCNAME} dnsmasq"
152RDEPENDS_${SRCNAME}-l3-agent = "${SRCNAME} ${SRCNAME}-metadata-agent iputils"
153
154RRECOMMENDS_${SRCNAME}-server = "${SRCNAME}-plugin-openvswitch"
155
156INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge"
157INITSCRIPT_NAME_${SRCNAME}-server = "quantum-server"
158INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "quantum-openvswitch-agent"
159INITSCRIPT_NAME_${SRCNAME}-plugin-linuxbridge = "quantum-linuxbridge-agent"