Makefile revision 6033
0N/A#
1879N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A
0N/A#
0N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
1879N/A
1879N/Ainclude ../../../make-rules/shared-macros.mk
1879N/A
1879N/ACOMPONENT_NAME= swift
1879N/ACOMPONENT_CODENAME= kilo
1879N/ACOMPONENT_VERSION= 2.3.0
1879N/ACOMPONENT_BE_VERSION= 2015.1
1879N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1879N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1879N/ACOMPONENT_ARCHIVE_HASH= \
1879N/A sha256:7225061f92597e7eaf6196c9336c5e590c7626b7e84126c51e8ca5bf5b7bdae1
1879N/ACOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
1879N/ACOMPONENT_PROJECT_URL= http://www.openstack.org/
1879N/ACOMPONENT_BUGDB= service/swift
1879N/A
1879N/ATPNO= 25793
1879N/A
1879N/Ainclude $(WS_MAKE_RULES)/prep.mk
1879N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
1879N/Ainclude $(WS_MAKE_RULES)/ips.mk
1879N/A
0N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
0N/A
0N/A# Since this is an app, and doesn't provide any public library interfaces, we
0N/A# only need to deliver one version. The manifest is parameterized, though.
0N/APYTHON_VERSIONS= 2.7
0N/A
0N/APKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION)
0N/APKG_MACROS += PYVER=$(PYTHON_VERSIONS)
0N/APKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
0N/A
0N/A#
0N/A# All of the swift SMF manifests depend on swift-upgrade so copy them
0N/A# into the proto directory for pkgdepend(1) to find.
0N/A#
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
0N/A $(CP) \
0N/A files/swift-*.xml \
0N/A $(PROTO_DIR)/lib/svc/manifest/application/openstack)
0N/A
0N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)
0N/ACOMPONENT_TEST_CMD = nosetests
0N/ACOMPONENT_TEST_ENV += SWIFT_TEST_CONFIG_FILE=$(SWIFT_TEST_CONFIG_FILE)
0N/ACOMPONENT_TEST_ARGS = \
0N/A --with-xunit \
0N/A --xunit-file=$(BUILD_DIR)/nosetests-$(MACH).xml \
0N/A test/unit
0N/A
100N/A# common targets
100N/Abuild: $(BUILD_NO_ARCH)
100N/A
0N/Ainstall: $(INSTALL_NO_ARCH)
0N/A
0N/Atest: $(TEST_NO_ARCH)
0N/A
0N/A
0N/AREQUIRED_PACKAGES += cloud/openstack/openstack-common
0N/AREQUIRED_PACKAGES += library/python/eventlet-27
0N/AREQUIRED_PACKAGES += library/python/simplejson-27
0N/AREQUIRED_PACKAGES += library/python/swiftclient-27
0N/AREQUIRED_PACKAGES += network/rsync
0N/AREQUIRED_PACKAGES += service/memcached
0N/AREQUIRED_PACKAGES += system/core-os
0N/A