Makefile revision 6849
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater# CDDL HEADER START
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater#
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# The contents of this file are subject to the terms of the
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Common Development and Distribution License (the "License").
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# You may not use this file except in compliance with the License.
555d01f4c02295e896a26c649d0ffc8808a0bbdcAutomatic Updater#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinclude ../../../make-rules/shared-macros.mk
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_NAME= keystone
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_CODENAME= mitaka
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_VERSION= 9.1.0
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_BE_VERSION= 2016.1
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterCOMPONENT_ARCHIVE_HASH= \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews sha256:3828f8907d07901a3f0516b9ee99fbd42bd9d293e4fa137d850a46487c76bad3
bac1bc98410bd876b8d38a6de6126709a7f8cc5aAutomatic UpdaterCOMPONENT_ARCHIVE_URL= https://tarballs.openstack.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_PROJECT_URL= http://www.openstack.org/
bbb069be941f649228760edcc241122933c066d2Automatic UpdaterCOMPONENT_BUGDB= service/keystone
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterTPNO= 30359
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsPKG_VARS += COMPONENT_BE_VERSION
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
3a6600c8d319275d73c36eb625f77103cd83e824Automatic Updaterinclude $(WS_MAKE_RULES)/setup.py.mk
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrewsinclude $(WS_MAKE_RULES)/ips.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsASLR_MODE = $(ASLR_NOT_APPLICABLE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Since this is an app, and doesn't provide any public library interfaces, we
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# only need to deliver one version. The manifest is parameterized, though.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsPYTHON_VERSIONS= 2.7
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonPKG_MACROS += PYVER=$(PYTHON_VERSIONS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsPKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# keystone depends on keystone-upgrade so copy all of the service
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# manifests into the proto directory for pkgdepend(1) to find.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_POST_INSTALL_ACTION += \
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews $(CP) \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews files/keystone.xml \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews files/keystone-upgrade.xml \
a8644ebab678a1de66cbfaabb513651a739958afAutomatic Updater $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/keystone/httpd; \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(CP) $(SOURCE_DIR)/httpd/keystone.py \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(PROTO_DIR)$(PYTHON_LIB)/keystone/httpd); \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# common targets
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsbuild: $(BUILD_NO_ARCH)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsinstall: $(INSTALL_NO_ARCH)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssontest: $(NO_TESTS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonsystem-test: $(NO_TESTS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
96ea71632887c58a9d00f47eb318bf76b35903c3Mark AndrewsREQUIRED_PACKAGES += cloud/openstack/openstack-common
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic UpdaterREQUIRED_PACKAGES += library/python/iniparse-27
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark AndrewsREQUIRED_PACKAGES += library/python/sqlalchemy-27
2831d2c54acc60414e9ffaf5c702ba475f06754bMark AndrewsREQUIRED_PACKAGES += library/python/sqlalchemy-migrate-27
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/security/openssl
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic UpdaterREQUIRED_PACKAGES += system/core-os
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic UpdaterREQUIRED_PACKAGES += web/server/apache-24
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterREQUIRED_PACKAGES += web/server/apache-24/module/apache-ssl
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic UpdaterREQUIRED_PACKAGES += web/server/apache-24/module/apache-wsgi-27
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater