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