Makefile revision 5403
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../../make-rules/shared-macros.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_NAME= cinder
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_CODENAME= kilo
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_VERSION= 2015.1.2
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_BE_VERSION= 2015.1
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_HASH= \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw sha256:8baa42a3008b0bb0870df678237c0d06ab8ee148b3bf5c00c6b95cfe05c52333
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_PROJECT_URL= http://www.openstack.org/
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_BUGDB= service/cinder
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwTPNO= 25784
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(WS_MAKE_RULES)/prep.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(WS_MAKE_RULES)/setup.py.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(WS_MAKE_RULES)/ips.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwASLR_MODE = $(ASLR_NOT_APPLICABLE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Since this is an app, and doesn't provide any public library interfaces, we
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# only need to deliver one version. The manifest is parameterized, though.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPYTHON_VERSIONS= 2.7
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPKG_MACROS += PYVER=$(PYTHON_VERSIONS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_POST_UNPACK_ACTION += \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(MKDIR) $(SOURCE_DIR)/cinder/volume/drivers/zfssa; \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(CP) files/zfssa/zfssaiscsi.py \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(SOURCE_DIR)/cinder/volume/drivers/zfssa
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# cinder-api, cinder-backup, cinder-scrubber, and cinder-volume depend
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# on cinder-db, and cinder-upgrade so copy all of the service
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# manifests into the proto directory for pkgdepend(1) to find.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_POST_INSTALL_ACTION += \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(CP) \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/cinder-api.xml \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/cinder-backup.xml \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/cinder-db.xml \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/cinder-scheduler.xml \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/cinder-upgrade.xml \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/cinder-volume.xml \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(CP) \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/solaris/solarisfc.py \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/solaris/solarisiscsi.py \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(PROTO_DIR)$(PYTHON_LIB)/cinder/brick/initiator; \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris; \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(TOUCH) \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris/__init__.py; \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(CP) \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/solaris/nfs.py \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw files/solaris/zfs.py \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris; \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(CP) files/zfssa/cinder.akwf \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/zfssa); \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# common targets
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwbuild: $(BUILD_NO_ARCH)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinstall: $(INSTALL_NO_ARCH)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwtest: $(NO_TESTS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwsystem-test: $(NO_TESTS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += cloud/openstack/openstack-common
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += file/gnu-coreutils
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += library/python/eventlet-27
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += library/python/iniparse-27
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += library/python/ipython-27
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += library/python/oslo.config-27
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += library/python/oslo.utils-27
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += library/python/sqlalchemy-27
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += library/python/sqlalchemy-migrate-27
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += system/core-os
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += system/file-system/zfs
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += system/storage/fc-utilities
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += system/storage/iscsi/iscsi-target
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwREQUIRED_PACKAGES += system/storage/scsi-target-mode-framework
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw