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