4458N/A#
4458N/A# CDDL HEADER START
4458N/A#
4458N/A# The contents of this file are subject to the terms of the
4458N/A# Common Development and Distribution License (the "License").
4458N/A# You may not use this file except in compliance with the License.
4458N/A#
4458N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4458N/A# or http://www.opensolaris.org/os/licensing.
4458N/A# See the License for the specific language governing permissions
4458N/A# and limitations under the License.
4458N/A#
4458N/A# When distributing Covered Code, include this CDDL HEADER in each
4458N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4458N/A# If applicable, add the following below this CDDL HEADER, with the
4458N/A# fields enclosed by brackets "[]" replaced with your own identifying
4458N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4458N/A#
4458N/A# CDDL HEADER END
4458N/A#
4458N/A
4458N/A#
5403N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
4458N/A#
4458N/A
4458N/Ainclude ../../../make-rules/shared-macros.mk
4458N/A
4458N/ACOMPONENT_NAME= ironic
6853N/ACOMPONENT_CODENAME= mitaka
6853N/ACOMPONENT_VERSION= 5.1.2
6853N/ACOMPONENT_BE_VERSION= 2016.1
4458N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4458N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4458N/ACOMPONENT_ARCHIVE_HASH= \
6853N/A sha256:d2f2dcc3ff21abc4c8d03f309dfe3f441e482c403f4991bef2f9236bf1f6188b
6853N/ACOMPONENT_ARCHIVE_URL= https://tarballs.openstack.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
6853N/ACOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
6853N/A
4458N/ACOMPONENT_PROJECT_URL= http://www.openstack.org/
4458N/ACOMPONENT_BUGDB= service/ironic
4458N/A
6853N/ATPNO= 30357
4458N/A
5425N/APKG_VARS += COMPONENT_BE_VERSION
5425N/A
4458N/Ainclude $(WS_MAKE_RULES)/prep.mk
4458N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
4458N/Ainclude $(WS_MAKE_RULES)/ips.mk
4458N/A
4458N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
4458N/A
4458N/A# Since this is an app, and doesn't provide any public library interfaces, we
4458N/A# only need to deliver one version. The manifest is parameterized, though.
4458N/APYTHON_VERSIONS= 2.7
4458N/A
4458N/APKG_MACROS += PYVER=$(PYTHON_VERSIONS)
4458N/APKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
4458N/A
4458N/A#
5403N/A# ironic-api and ironic-conductor depend on ironic-db and ironic-upgrade so
5403N/A# copy all of the service manifests into the proto directory for
5403N/A# pkgdepend(1) to find.
4458N/A#
4458N/ACOMPONENT_POST_INSTALL_ACTION += \
5445N/A ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
5445N/A $(CP) \
5445N/A files/ironic-api.xml \
5445N/A files/ironic-conductor.xml \
5445N/A files/ironic-db.xml \
5445N/A files/ironic-upgrade.xml \
5445N/A $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
5445N/A $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/modules; \
5445N/A $(CP) \
5445N/A files/drivers/solaris.py \
5445N/A $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/; \
5445N/A $(CP) \
5445N/A files/drivers/modules/solaris_ipmitool.py \
5445N/A $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/modules/; \
5445N/A $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES))
4458N/A
4458N/A# common targets
4458N/Abuild: $(BUILD_NO_ARCH)
4458N/A
4458N/Ainstall: $(INSTALL_NO_ARCH)
4458N/A
4458N/A#
4458N/A# Tests require:
4458N/A# hacking, coverage>=3.6, disvover, fixtures, oslo.test, psycopg2,
4458N/A# python-ironicclient, python-subunit, testrepository, testtools,
4458N/A# sphinx, sphinxcontrib, oslo.sphinx
4458N/A# Which haven't been integrated yet
4458N/A#
4458N/Atest: $(NO_TESTS)
4458N/A
5403N/AREQUIRED_PACKAGES += cloud/openstack/openstack-common
5445N/AREQUIRED_PACKAGES += install/installadm
5403N/AREQUIRED_PACKAGES += library/python/sqlalchemy-27
4458N/AREQUIRED_PACKAGES += shell/ksh93
4458N/AREQUIRED_PACKAGES += system/core-os
4458N/AREQUIRED_PACKAGES += system/file-system/uafs
4458N/AREQUIRED_PACKAGES += system/file-system/uvfs
5445N/AREQUIRED_PACKAGES += system/install/auto-install/auto-install-common
4458N/AREQUIRED_PACKAGES += system/management/ipmitool
4458N/AREQUIRED_PACKAGES += web/curl