Makefile revision 3996
98N/A#
98N/A# CDDL HEADER START
606N/A#
753N/A# The contents of this file are subject to the terms of the
98N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A# or http://www.opensolaris.org/os/licensing.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A#
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A#
98N/A# CDDL HEADER END
98N/A#
98N/A
98N/A#
98N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
98N/A#
98N/Ainclude ../../../make-rules/shared-macros.mk
98N/A
98N/ACOMPONENT_NAME= cinder
98N/ACOMPONENT_CODENAME= havana
98N/ACOMPONENT_VERSION= 2013.2.3
98N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
760N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
98N/ACOMPONENT_ARCHIVE_HASH= \
98N/A sha256:a2740f0a0481139ae21cdb0868bebcce01b9f19832439b7f3056435e75791194
493N/ACOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
493N/ACOMPONENT_PROJECT_URL= http://www.openstack.org/
98N/ACOMPONENT_BUGDB= service/cinder
98N/AIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
753N/A
98N/ATPNO= 17714
98N/A
493N/Ainclude $(WS_MAKE_RULES)/prep.mk
493N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
98N/Ainclude $(WS_MAKE_RULES)/ips.mk
98N/A
156N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
156N/A
493N/A# Since this is an app, and doesn't provide any public library interfaces, we
493N/A# only need to deliver one version. The manifest is parameterized, though.
493N/APYTHON_VERSIONS= 2.6
493N/A
493N/APKG_MACROS += PYVER=$(PYTHON_VERSIONS)
493N/A
493N/A# cinder-api, cinder-backup, cinder-scheduler, and cinder-volume
98N/A# depend on the cinder-db svc so copy the manifest into the proto
98N/A# directory for pkgdepend to find
98N/ACOMPONENT_POST_INSTALL_ACTION += \
705N/A ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
705N/A $(CP) files/cinder-api.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
760N/A $(CP) files/cinder-backup.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
606N/A $(CP) files/cinder-db.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
606N/A $(CP) files/cinder-scheduler.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
606N/A $(CP) files/cinder-volume.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
606N/A $(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris; \
705N/A $(TOUCH) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris/__init__.py; \
606N/A $(CP) files/solaris/zfs.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/solaris; \
606N/A $(MKDIR) $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \
606N/A $(CP) files/zfssa/__init__.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \
606N/A $(CP) files/zfssa/cinder.akwf $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \
606N/A $(CP) files/zfssa/restclient.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \
606N/A $(CP) files/zfssa/zfssaiscsi.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa; \
606N/A $(CP) files/zfssa/zfssarest.py $(PROTO_DIR)/usr/lib/python2.6/vendor-packages/cinder/volume/drivers/zfssa); \
606N/A $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
606N/A
606N/A# common targets
606N/Abuild: $(BUILD_NO_ARCH)
606N/A
606N/Ainstall: $(INSTALL_NO_ARCH)
98N/A
493N/Atest: $(NO_TESTS)
493N/A
493N/A
98N/AREQUIRED_PACKAGES += library/python/eventlet-26
647N/AREQUIRED_PACKAGES += library/python/ipython-26
606N/AREQUIRED_PACKAGES += library/python/oslo.config-26
606N/AREQUIRED_PACKAGES += library/python/sqlalchemy-migrate-26
98N/AREQUIRED_PACKAGES += system/core-os
647N/AREQUIRED_PACKAGES += system/file-system/zfs
647N/AREQUIRED_PACKAGES += system/storage/fc-utilities
647N/AREQUIRED_PACKAGES += system/storage/iscsi/iscsi-target
647N/AREQUIRED_PACKAGES += system/storage/scsi-target-mode-framework
606N/A