Makefile revision 2521
6322N/A#
6322N/A# CDDL HEADER START
6322N/A#
6322N/A# The contents of this file are subject to the terms of the
6322N/A# Common Development and Distribution License (the "License").
6322N/A# You may not use this file except in compliance with the License.
6322N/A#
6322N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6322N/A# or http://www.opensolaris.org/os/licensing.
6322N/A# See the License for the specific language governing permissions
6322N/A# and limitations under the License.
6322N/A#
6322N/A# When distributing Covered Code, include this CDDL HEADER in each
6322N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6322N/A# If applicable, add the following below this CDDL HEADER, with the
6322N/A# fields enclosed by brackets "[]" replaced with your own identifying
6322N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6322N/A#
6322N/A# CDDL HEADER END
6322N/A#
6322N/A
6322N/A#
6322N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
6322N/A#
6322N/Ainclude ../../../make-rules/shared-macros.mk
6322N/A
6322N/ACOMPONENT_NAME= neutron
6322N/ACOMPONENT_OLDNAME= quantum
6322N/ACOMPONENT_CODENAME= grizzly
6322N/ACOMPONENT_VERSION= 2013.1.4
6322N/ACOMPONENT_SRC= $(COMPONENT_OLDNAME)-$(COMPONENT_VERSION)
6322N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6322N/ACOMPONENT_ARCHIVE_HASH= \
6322N/A sha256:3bd26ae7dabe6093a3cbe701ac8d7022fbdbe1d8231ab1c6866de388684e272c
6322N/ACOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
6322N/ACOMPONENT_PROJECT_URL= http://www.openstack.org/
6322N/ACOMPONENT_BUGDB= service/neutron
6322N/AIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
6322N/A
6322N/Ainclude $(WS_TOP)/make-rules/prep.mk
6322N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
6322N/Ainclude $(WS_TOP)/make-rules/ips.mk
6322N/A
6322N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
6322N/A
6322N/A# Since this is an app, and doesn't provide any public library interfaces, we
6322N/A# only need to deliver one version. The manifest is parameterized, though.
6322N/APYTHON_VERSIONS= 2.6
6322N/A
6322N/APKG_MACROS += PYVER=$(PYTHON_VERSIONS)
6322N/A
6322N/A# move all the proper files into place and construct .pyc files for them
6322N/ACOMPONENT_POST_BUILD_ACTION += \
6322N/A ($(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent; \
6322N/A $(CP) files/agent/evs_l3_agent.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent; \
6322N/A $(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/linux; \
6322N/A $(CP) files/agent/linux/device.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/linux; \
6322N/A $(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \
6322N/A $(CP) files/agent/solaris/__init__.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \
6322N/A $(CP) files/agent/solaris/device.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \
6322N/A $(CP) files/agent/solaris/dhcp.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \
6322N/A $(CP) files/agent/solaris/interface.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \
6322N/A $(CP) files/agent/solaris/ipfilters_manager.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \
6322N/A $(CP) files/agent/solaris/net_lib.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/agent/solaris; \
6322N/A $(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs; \
6322N/A $(TOUCH) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/__init__.py; \
6322N/A $(CP) files/evs/plugin.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs; \
6322N/A $(MKDIR) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db; \
6322N/A $(TOUCH) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db/__init__.py; \
6322N/A $(CP) files/evs/db/api.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db; \
6322N/A $(CP) files/evs/db/l3nat.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db; \
6322N/A $(CP) files/evs/db/quotas_db.py $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/quantum/plugins/evs/db)
6322N/A
6322N/A
6322N/ACOMPONENT_POST_INSTALL_ACTION += \
6322N/A $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
6322N/A
6322N/A# common targets
6322N/Abuild: $(BUILD_NO_ARCH)
6322N/A
install: $(INSTALL_NO_ARCH)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk