Makefile revision 4312
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Common Development and Distribution License (the "License").
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You may not use this file except in compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# or http://www.opensolaris.org/os/licensing.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER END
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
12b65585e720714b31036daaa2b30eb76014048eGordon Ross
12b65585e720714b31036daaa2b30eb76014048eGordon Rossinclude ../../../make-rules/shared-macros.mk
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCOMPONENT_NAME= glance
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCOMPONENT_CODENAME= juno
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCOMPONENT_VERSION= 2014.2.2
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCOMPONENT_BE_VERSION= 2014.2
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_ARCHIVE_HASH= \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow sha256:bf7273ff9e89e9a7edda76e7a2235989a25109fb728edc4afa956e74ef54a08c
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_PROJECT_URL= http://www.openstack.org/
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_BUGDB= service/glance
12b65585e720714b31036daaa2b30eb76014048eGordon RossIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
TPNO= 21820
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/setup.py.mk
include $(WS_MAKE_RULES)/ips.mk
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
# Since this is an app, and doesn't provide any public library interfaces, we
# only need to deliver one version. The manifest is parameterized, though.
PYTHON_VERSIONS= 2.6
PKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
PKG_MACROS += PYVER=$(PYTHON_VERSIONS)
PKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
#
# glance-api, glance-registry, and glance-scrubber depend on glance-db
# and glance-upgrade so copy all of the service manifests into the
# proto directory for pkgdepend(1) to find.
#
COMPONENT_POST_INSTALL_ACTION += \
($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
$(CP) \
files/glance-db.xml \
files/glance-api.xml \
files/glance-registry.xml \
files/glance-scrubber.xml \
files/glance-upgrade.xml \
$(PROTO_DIR)/lib/svc/manifest/application/openstack)
# common targets
build: $(BUILD_NO_ARCH)
install: $(INSTALL_NO_ARCH)
test: $(NO_TESTS)
REQUIRED_PACKAGES += cloud/openstack/openstack-common
REQUIRED_PACKAGES += library/python/eventlet-26
REQUIRED_PACKAGES += library/python/iniparse-26
REQUIRED_PACKAGES += library/python/m2crypto-26
REQUIRED_PACKAGES += library/python/oslo.config-26
REQUIRED_PACKAGES += library/python/python-mysql-26
REQUIRED_PACKAGES += library/python/sqlalchemy-26
REQUIRED_PACKAGES += library/python/sqlalchemy-migrate-26
REQUIRED_PACKAGES += system/core-os