components/openstack/glance/Makefile
branchs11u2-sru
changeset 4156 4b1def16fe9b
parent 3178 77584387a894
equal deleted inserted replaced
4146:097063f324c0 4156:4b1def16fe9b
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
       
    25 
    25 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    26 
    27 
    27 COMPONENT_NAME=		glance
    28 COMPONENT_NAME=		glance
    28 COMPONENT_CODENAME=	havana
    29 COMPONENT_CODENAME=	juno
    29 COMPONENT_VERSION=	2013.2.3
    30 COMPONENT_VERSION=	2014.2.2
       
    31 COMPONENT_BE_VERSION=	2014.2
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    33 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    32 COMPONENT_ARCHIVE_HASH=	\
    34 COMPONENT_ARCHIVE_HASH=	\
    33     sha256:8766f8d198ec513c46519f1c44f99a4845ba3c04e7b7c41893cb3d5a7c2a9a28
    35     sha256:bf7273ff9e89e9a7edda76e7a2235989a25109fb728edc4afa956e74ef54a08c
    34 COMPONENT_ARCHIVE_URL=	http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
    36 COMPONENT_ARCHIVE_URL=	http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
    35 COMPONENT_PROJECT_URL=	http://www.openstack.org/
    37 COMPONENT_PROJECT_URL=	http://www.openstack.org/
    36 COMPONENT_BUGDB=	service/glance
    38 COMPONENT_BUGDB=	service/glance
    37 IPS_COMPONENT_VERSION=	0.$(COMPONENT_VERSION) 
    39 IPS_COMPONENT_VERSION=	0.$(COMPONENT_VERSION)
    38 
    40 
    39 include $(WS_TOP)/make-rules/prep.mk
    41 TPNO=			21820
    40 include $(WS_TOP)/make-rules/setup.py.mk
    42 
    41 include $(WS_TOP)/make-rules/ips.mk
    43 include $(WS_MAKE_RULES)/prep.mk
       
    44 include $(WS_MAKE_RULES)/setup.py.mk
       
    45 include $(WS_MAKE_RULES)/ips.mk
    42 
    46 
    43 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    47 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    44 
    48 
    45 # Since this is an app, and doesn't provide any public library interfaces, we
    49 # Since this is an app, and doesn't provide any public library interfaces, we
    46 # only need to deliver one version.  The manifest is parameterized, though.
    50 # only need to deliver one version.  The manifest is parameterized, though.
    47 PYTHON_VERSIONS=	2.6
    51 PYTHON_VERSIONS=	2.6
    48 
    52 
       
    53 PKG_MACROS +=		COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
    49 PKG_MACROS +=		PYVER=$(PYTHON_VERSIONS)
    54 PKG_MACROS +=		PYVER=$(PYTHON_VERSIONS)
       
    55 PKG_MACROS +=		PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
    50 
    56 
    51 # glance-api and glance-registry depend on the glance-db svc so copy
    57 #
    52 # the manifests into the proto directory for pkgdepend to find
    58 # glance-api, glance-registry, and glance-scrubber depend on glance-db
       
    59 # and glance-upgrade so copy all of the service manifests into the
       
    60 # proto directory for pkgdepend(1) to find.
       
    61 #
    53 COMPONENT_POST_INSTALL_ACTION += \
    62 COMPONENT_POST_INSTALL_ACTION += \
    54 	($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
    63 	($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
    55  	 $(CP) files/glance-db.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
    64 	 $(CP) \
    56  	 $(CP) files/glance-api.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
    65 	     files/glance-db.xml \
    57  	 $(CP) files/glance-registry.xml $(PROTO_DIR)/lib/svc/manifest/application/openstack)
    66 	     files/glance-api.xml \
       
    67 	     files/glance-registry.xml \
       
    68 	     files/glance-scrubber.xml \
       
    69 	     files/glance-upgrade.xml \
       
    70 	     $(PROTO_DIR)/lib/svc/manifest/application/openstack)
    58 
    71 
    59 # common targets
    72 # common targets
    60 build:		$(BUILD_NO_ARCH)
    73 build:		$(BUILD_NO_ARCH)
    61 
    74 
    62 install:	$(INSTALL_NO_ARCH)
    75 install:	$(INSTALL_NO_ARCH)