components/openstack/swift/Makefile
author Danek Duvall <danek.duvall@oracle.com>
Tue, 09 Dec 2014 11:43:38 -0800
changeset 3533 0b8107a40da7
parent 2167 c9ff638a3018
child 3817 30b42c38bbc4
permissions -rw-r--r--
20183619 userland should support PGP signatures
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1896
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
#
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
#
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
#
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
#
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18
#
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    20
#
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    21
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    22
#
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    24
#
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    25
include ../../../make-rules/shared-macros.mk
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    26
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		swift
1944
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1896
diff changeset
    28
COMPONENT_CODENAME=	havana
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1896
diff changeset
    29
COMPONENT_VERSION=	1.10.0
1896
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
1944
56ac2df1785b PSARC/2014/207 OpenStack Glance Update to Havana
Drew Fisher <drew.fisher@oracle.com>
parents: 1896
diff changeset
    33
    sha256:9a841225c3a00a93a15a160102d3f7116f2f1ba98ebffedfe641747844e14889
1896
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
3533
0b8107a40da7 20183619 userland should support PGP signatures
Danek Duvall <danek.duvall@oracle.com>
parents: 2167
diff changeset
    35
COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).asc
1896
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    36
COMPONENT_PROJECT_URL=	http://www.openstack.org/
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    37
COMPONENT_BUG_DB=	service/swift
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    38
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1944
diff changeset
    39
TPNO=			17868
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1944
diff changeset
    40
1896
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    41
include $(WS_TOP)/make-rules/prep.mk
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    42
include $(WS_TOP)/make-rules/setup.py.mk
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    43
include $(WS_TOP)/make-rules/ips.mk
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    44
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    45
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    46
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    47
# Since this is an app, and doesn't provide any public library interfaces, we
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    48
# only need to deliver one version.  The manifest is parameterized, though.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    49
PYTHON_VERSIONS=	2.6
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    50
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    51
PKG_MACROS +=		PYVER=$(PYTHON_VERSIONS)
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    52
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    53
COMPONENT_TEST_DIR =	$(SOURCE_DIR)
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    54
COMPONENT_TEST_CMD =	nosetests
2167
c9ff638a3018 19878891 problem in SERVICE/SWIFT
Danek Duvall <danek.duvall@oracle.com>
parents: 1948
diff changeset
    55
COMPONENT_TEST_ENV +=	SWIFT_TEST_CONFIG_FILE=$(SWIFT_TEST_CONFIG_FILE)
1896
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    56
COMPONENT_TEST_ARGS =	--with-xunit --xunit-file=$(BUILD_DIR)/nosetests-$(MACH).xml
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    57
COMPONENT_TEST_ARGS +=	test/unit
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    58
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    59
# common targets
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    60
build:		$(BUILD_NO_ARCH)
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    61
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    62
install:	$(INSTALL_NO_ARCH)
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    63
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    64
test:		$(TEST_NO_ARCH)
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    65
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    66
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    67
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    68
include $(WS_TOP)/make-rules/depend.mk