Makefile revision 4337
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER START
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# The contents of this file are subject to the terms of the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Common Development and Distribution License (the "License").
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You may not use this file except in compliance with the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# or http://www.opensolaris.org/os/licensing.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# See the License for the specific language governing permissions
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# and limitations under the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# If applicable, add the following below this CDDL HEADER, with the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER END
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
4558d122136f151d62acbbc02ddb42df89a5ef66Viswanathan Kannappan#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../../../make-rules/shared-macros.mk
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_NAME= glance
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_CODENAME= juno
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_VERSION= 2014.2.2
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_BE_VERSION= 2014.2
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_ARCHIVE_HASH= \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte sha256:bf7273ff9e89e9a7edda76e7a2235989a25109fb728edc4afa956e74ef54a08c
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_PROJECT_URL= http://www.openstack.org/
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_BUGDB= service/glance
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteTPNO= 21820
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude $(WS_MAKE_RULES)/prep.mk
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude $(WS_MAKE_RULES)/setup.py.mk
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude $(WS_MAKE_RULES)/ips.mk
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteASLR_MODE = $(ASLR_NOT_APPLICABLE)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Since this is an app, and doesn't provide any public library interfaces, we
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# only need to deliver one version. The manifest is parameterized, though.
450396635f70344c58b6b1e4db38cf17ff34445cJohn FortePYTHON_VERSIONS= 2.7
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn FortePKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
450396635f70344c58b6b1e4db38cf17ff34445cJohn FortePKG_MACROS += PYVER=$(PYTHON_VERSIONS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn FortePKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# glance-api, glance-registry, and glance-scrubber depend on glance-db
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# and glance-upgrade so copy all of the service manifests into the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# proto directory for pkgdepend(1) to find.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_POST_INSTALL_ACTION += \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(CP) \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte files/glance-db.xml \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte files/glance-api.xml \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte files/glance-registry.xml \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte files/glance-scrubber.xml \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte files/glance-upgrade.xml \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte $(PROTO_DIR)/lib/svc/manifest/application/openstack)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# common targets
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortebuild: $(BUILD_NO_ARCH)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinstall: $(INSTALL_NO_ARCH)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortetest: $(NO_TESTS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortesystem-test: $(NO_TESTS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteREQUIRED_PACKAGES += cloud/openstack/openstack-common
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteREQUIRED_PACKAGES += library/python/eventlet-27
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteREQUIRED_PACKAGES += library/python/iniparse-27
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteREQUIRED_PACKAGES += library/python/m2crypto-27
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteREQUIRED_PACKAGES += library/python/oslo.config-27
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteREQUIRED_PACKAGES += library/python/python-mysql-27
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteREQUIRED_PACKAGES += library/python/sqlalchemy-27
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteREQUIRED_PACKAGES += library/python/sqlalchemy-migrate-27
REQUIRED_PACKAGES += system/core-os