components/openstack/ironic/Makefile
changeset 4460 e5811789e2fb
child 5405 66fd59fecd68
equal deleted inserted replaced
4459:5a11150c7d2e 4460:e5811789e2fb
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		ironic
       
    29 COMPONENT_CODENAME=	juno
       
    30 COMPONENT_VERSION=	2014.2.1
       
    31 COMPONENT_BE_VERSION=	2014.2
       
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    33 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    34 COMPONENT_ARCHIVE_HASH=	\
       
    35     sha256:9dae1e5e030741382e75f6da9ec34af1b8e8d50940d158fb14f4d427a01c0bff
       
    36 COMPONENT_ARCHIVE_URL=	http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
       
    37 COMPONENT_PROJECT_URL=	http://www.openstack.org/
       
    38 COMPONENT_BUGDB=	service/ironic
       
    39 IPS_COMPONENT_VERSION=	0.$(COMPONENT_VERSION)
       
    40 
       
    41 TPNO=			22203
       
    42 
       
    43 include $(WS_MAKE_RULES)/prep.mk
       
    44 include $(WS_MAKE_RULES)/setup.py.mk
       
    45 include $(WS_MAKE_RULES)/ips.mk
       
    46 
       
    47 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
       
    48 
       
    49 # Since this is an app, and doesn't provide any public library interfaces, we
       
    50 # only need to deliver one version.  The manifest is parameterized, though.
       
    51 PYTHON_VERSIONS=	2.7
       
    52 
       
    53 PKG_MACROS +=		COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
       
    54 PKG_MACROS +=		PYVER=$(PYTHON_VERSIONS)
       
    55 PKG_MACROS +=		PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
       
    56 
       
    57 #
       
    58 # ironic-api and ironic-conductor depend on ironic-db so copy all of the
       
    59 # service manifests into the proto directory for pkgdepend(1) to find.
       
    60 #
       
    61 COMPONENT_POST_INSTALL_ACTION += \
       
    62 	($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
       
    63 	 $(CP) \
       
    64 	     files/ironic-api.xml \
       
    65 	     files/ironic-conductor.xml \
       
    66 	     files/ironic-db.xml \
       
    67 	     $(PROTO_DIR)/lib/svc/manifest/application/openstack/; \
       
    68 	 $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/modules; \
       
    69 	 $(CP) \
       
    70 	     files/drivers/solaris.py \
       
    71 	     $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/; \
       
    72 	 $(CP) \
       
    73 	     files/drivers/modules/solaris_ipmitool.py \
       
    74 	     $(PROTO_DIR)$(PYTHON_LIB)/ironic/drivers/modules/; \
       
    75 	 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES))
       
    76 
       
    77 # common targets
       
    78 build:		$(BUILD_NO_ARCH)
       
    79 
       
    80 install:	$(INSTALL_NO_ARCH)
       
    81 
       
    82 #
       
    83 # Tests require:
       
    84 # hacking, coverage>=3.6, disvover, fixtures, oslo.test, psycopg2,
       
    85 # python-ironicclient, python-subunit, testrepository, testtools,
       
    86 # sphinx, sphinxcontrib, oslo.sphinx
       
    87 # Which haven't been integrated yet
       
    88 #
       
    89 test:		$(NO_TESTS)
       
    90 
       
    91 
       
    92 REQUIRED_PACKAGES += install/installadm
       
    93 REQUIRED_PACKAGES += shell/ksh93
       
    94 REQUIRED_PACKAGES += system/core-os
       
    95 REQUIRED_PACKAGES += system/file-system/uafs
       
    96 REQUIRED_PACKAGES += system/file-system/uvfs
       
    97 REQUIRED_PACKAGES += system/management/ipmitool
       
    98 REQUIRED_PACKAGES += web/curl