18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
|
25 |
25 include ../../../make-rules/shared-macros.mk |
26 include ../../../make-rules/shared-macros.mk |
26 |
27 |
27 COMPONENT_NAME= cinder |
28 COMPONENT_NAME= cinder |
28 COMPONENT_CODENAME= havana |
29 COMPONENT_CODENAME= juno |
29 COMPONENT_VERSION= 2013.2.3 |
30 COMPONENT_VERSION= 2014.2.2 |
|
31 COMPONENT_BE_VERSION= 2014.2 |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
32 COMPONENT_ARCHIVE_HASH= \ |
34 COMPONENT_ARCHIVE_HASH= \ |
33 sha256:a2740f0a0481139ae21cdb0868bebcce01b9f19832439b7f3056435e75791194 |
35 sha256:2c779bf9d208163af6c425da9043bbdcb345cebc5c118198482b94062862a117 |
34 COMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE) |
36 COMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE) |
35 COMPONENT_PROJECT_URL= http://www.openstack.org/ |
37 COMPONENT_PROJECT_URL= http://www.openstack.org/ |
36 COMPONENT_BUGDB= service/cinder |
38 COMPONENT_BUGDB= service/cinder |
37 IPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION) |
39 IPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION) |
38 |
40 |
39 include $(WS_TOP)/make-rules/prep.mk |
41 TPNO= 21819 |
40 include $(WS_TOP)/make-rules/setup.py.mk |
42 |
41 include $(WS_TOP)/make-rules/ips.mk |
43 include $(WS_MAKE_RULES)/prep.mk |
|
44 include $(WS_MAKE_RULES)/setup.py.mk |
|
45 include $(WS_MAKE_RULES)/ips.mk |
42 |
46 |
43 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
47 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
44 |
48 |
45 # Since this is an app, and doesn't provide any public library interfaces, we |
49 # Since this is an app, and doesn't provide any public library interfaces, we |
46 # only need to deliver one version. The manifest is parameterized, though. |
50 # only need to deliver one version. The manifest is parameterized, though. |
47 PYTHON_VERSIONS= 2.6 |
51 PYTHON_VERSIONS= 2.6 |
48 |
52 |
|
53 PKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION) |
49 PKG_MACROS += PYVER=$(PYTHON_VERSIONS) |
54 PKG_MACROS += PYVER=$(PYTHON_VERSIONS) |
|
55 PKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .) |
50 |
56 |
51 # cinder-api, cinder-backup, cinder-scheduler, and cinder-volume |
57 # |
52 # depend on the cinder-db svc so copy the manifest into the proto |
58 # cinder-api, cinder-backup, cinder-scrubber, and cinder-volume depend |
53 # directory for pkgdepend to find |
59 # on cinder-db, and cinder-upgrade so copy all of the service |
|
60 # manifests into the proto directory for pkgdepend(1) to find. |
|
61 # |
54 COMPONENT_POST_INSTALL_ACTION += \ |
62 COMPONENT_POST_INSTALL_ACTION += \ |
55 ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \ |
63 ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \ |
56 $(CP) files/cinder-api.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \ |
64 $(CP) \ |
57 $(CP) files/cinder-backup.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \ |
65 files/cinder-api.xml \ |
58 $(CP) files/cinder-db.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \ |
66 files/cinder-backup.xml \ |
59 $(CP) files/cinder-scheduler.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \ |
67 files/cinder-db.xml \ |
60 $(CP) files/cinder-volume.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \ |
68 files/cinder-scheduler.xml \ |
61 $(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris; \ |
69 files/cinder-upgrade.xml \ |
|
70 files/cinder-volume.xml \ |
|
71 $(PROTO_DIR)/lib/svc/manifest/application/openstack; \ |
|
72 $(CP) \ |
|
73 files/solaris/solarisfc.py \ |
|
74 files/solaris/solarisiscsi.py \ |
|
75 $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/brick/initiator; \ |
|
76 $(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris; \ |
62 $(TOUCH) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris/__init__.py; \ |
77 $(TOUCH) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris/__init__.py; \ |
63 $(CP) files/solaris/zfs.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris; \ |
78 $(CP) files/solaris/zfs.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris; \ |
64 $(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \ |
79 $(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \ |
65 $(CP) files/zfssa/__init__.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \ |
80 $(CP) files/zfssa/cinder.akwf $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa); \ |
66 $(CP) files/zfssa/cinder.akwf $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \ |
|
67 $(CP) files/zfssa/restclient.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \ |
|
68 $(CP) files/zfssa/zfssaiscsi.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \ |
|
69 $(CP) files/zfssa/zfssarest.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa); \ |
|
70 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) |
81 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) |
71 |
82 |
72 # common targets |
83 # common targets |
73 build: $(BUILD_NO_ARCH) |
84 build: $(BUILD_NO_ARCH) |
74 |
85 |