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