|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 include ../../../make-rules/shared-macros.mk |
|
26 |
|
27 COMPONENT_NAME= neutron |
|
28 COMPONENT_OLDNAME= quantum |
|
29 COMPONENT_CODENAME= grizzly |
|
30 COMPONENT_VERSION= 2013.1.4 |
|
31 COMPONENT_SRC= $(COMPONENT_OLDNAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
|
34 sha256:3bd26ae7dabe6093a3cbe701ac8d7022fbdbe1d8231ab1c6866de388684e272c |
|
35 COMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE) |
|
36 COMPONENT_PROJECT_URL= http://www.openstack.org/ |
|
37 COMPONENT_BUGDB= service/neutron |
|
38 IPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION) |
|
39 |
|
40 include $(WS_TOP)/make-rules/prep.mk |
|
41 include $(WS_TOP)/make-rules/setup.py.mk |
|
42 include $(WS_TOP)/make-rules/ips.mk |
|
43 |
|
44 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
|
45 |
|
46 # Since this is an app, and doesn't provide any public library interfaces, we |
|
47 # only need to deliver one version. The manifest is parameterized, though. |
|
48 PYTHON_VERSIONS= 2.6 |
|
49 |
|
50 PKG_MACROS += PYVER=$(PYTHON_VERSIONS) |
|
51 |
|
52 # move all the proper files into place and construct .pyc files for them |
|
53 COMPONENT_POST_BUILD_ACTION += \ |
|
54 ($(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent; \ |
|
55 $(CP) files/agent/evs_l3_agent.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent; \ |
|
56 $(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/linux; \ |
|
57 $(CP) files/agent/linux/device.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/linux; \ |
|
58 $(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \ |
|
59 $(CP) files/agent/solaris/__init__.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \ |
|
60 $(CP) files/agent/solaris/device.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \ |
|
61 $(CP) files/agent/solaris/dhcp.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \ |
|
62 $(CP) files/agent/solaris/interface.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \ |
|
63 $(CP) files/agent/solaris/ipfilters_manager.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \ |
|
64 $(CP) files/agent/solaris/net_lib.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \ |
|
65 $(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs; \ |
|
66 $(TOUCH) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/__init__.py; \ |
|
67 $(CP) files/evs/plugin.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs; \ |
|
68 $(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db; \ |
|
69 $(TOUCH) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db/__init__.py; \ |
|
70 $(CP) files/evs/db/api.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db; \ |
|
71 $(CP) files/evs/db/l3nat.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db; \ |
|
72 $(CP) files/evs/db/quotas_db.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db) |
|
73 |
|
74 |
|
75 COMPONENT_POST_INSTALL_ACTION += \ |
|
76 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) |
|
77 |
|
78 # common targets |
|
79 build: $(BUILD_NO_ARCH) |
|
80 |
|
81 install: $(INSTALL_NO_ARCH) |
|
82 |
|
83 test: $(NO_TESTS) |
|
84 |
|
85 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
86 |
|
87 include $(WS_TOP)/make-rules/depend.mk |