Makefile revision 4337
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# CDDL HEADER START
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# The contents of this file are subject to the terms of the
2cacab200fb387e290386593d9b2fca2e7beef33csovant# Common Development and Distribution License (the "License").
2cacab200fb387e290386593d9b2fca2e7beef33csovant# You may not use this file except in compliance with the License.
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2cacab200fb387e290386593d9b2fca2e7beef33csovant# or http://www.opensolaris.org/os/licensing.
2cacab200fb387e290386593d9b2fca2e7beef33csovant# See the License for the specific language governing permissions
2cacab200fb387e290386593d9b2fca2e7beef33csovant# and limitations under the License.
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# When distributing Covered Code, include this CDDL HEADER in each
2cacab200fb387e290386593d9b2fca2e7beef33csovant# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2cacab200fb387e290386593d9b2fca2e7beef33csovant# If applicable, add the following below this CDDL HEADER, with the
2cacab200fb387e290386593d9b2fca2e7beef33csovant# fields enclosed by brackets "[]" replaced with your own identifying
2cacab200fb387e290386593d9b2fca2e7beef33csovant# information: Portions Copyright [yyyy] [name of copyright owner]
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# CDDL HEADER END
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
2cacab200fb387e290386593d9b2fca2e7beef33csovant# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
2cacab200fb387e290386593d9b2fca2e7beef33csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovantinclude ../../../make-rules/shared-macros.mk
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_NAME= glance
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_CODENAME= juno
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_VERSION= 2014.2.2
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_BE_VERSION= 2014.2
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_ARCHIVE_HASH= \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant sha256:bf7273ff9e89e9a7edda76e7a2235989a25109fb728edc4afa956e74ef54a08c
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
2cacab200fb387e290386593d9b2fca2e7beef33csovantCOMPONENT_PROJECT_URL= http://www.openstack.org/
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantCOMPONENT_BUGDB= service/glance
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantTPNO= 21820
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantinclude $(WS_MAKE_RULES)/prep.mk
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantinclude $(WS_MAKE_RULES)/setup.py.mk
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantinclude $(WS_MAKE_RULES)/ips.mk
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantASLR_MODE = $(ASLR_NOT_APPLICABLE)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# Since this is an app, and doesn't provide any public library interfaces, we
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# only need to deliver one version. The manifest is parameterized, though.
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantPYTHON_VERSIONS= 2.7
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantPKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantPKG_MACROS += PYVER=$(PYTHON_VERSIONS)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantPKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# glance-api, glance-registry, and glance-scrubber depend on glance-db
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# and glance-upgrade so copy all of the service manifests into the
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# proto directory for pkgdepend(1) to find.
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant#
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantCOMPONENT_POST_INSTALL_ACTION += \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(CP) \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant files/glance-db.xml \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant files/glance-api.xml \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant files/glance-registry.xml \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant files/glance-scrubber.xml \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant files/glance-upgrade.xml \
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant $(PROTO_DIR)/lib/svc/manifest/application/openstack)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant# common targets
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantbuild: $(BUILD_NO_ARCH)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantinstall: $(INSTALL_NO_ARCH)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovanttest: $(NO_TESTS)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantsystem-test: $(NO_TESTS)
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovant
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += cloud/openstack/openstack-common
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += library/python/eventlet-27
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += library/python/iniparse-27
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += library/python/m2crypto-27
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += library/python/oslo.config-27
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += library/python/python-mysql-27
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += library/python/sqlalchemy-27
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += library/python/sqlalchemy-migrate-27
23f633e1b8cc53fdac740eca4ab7e0341890bba2csovantREQUIRED_PACKAGES += system/core-os
2cacab200fb387e290386593d9b2fca2e7beef33csovant