Makefile revision 5577
225N/A#
225N/A# CDDL HEADER START
225N/A#
225N/A# The contents of this file are subject to the terms of the
225N/A# Common Development and Distribution License (the "License").
225N/A# You may not use this file except in compliance with the License.
225N/A#
225N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
225N/A# or http://www.opensolaris.org/os/licensing.
225N/A# See the License for the specific language governing permissions
225N/A# and limitations under the License.
225N/A#
225N/A# When distributing Covered Code, include this CDDL HEADER in each
225N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
225N/A# If applicable, add the following below this CDDL HEADER, with the
225N/A# fields enclosed by brackets "[]" replaced with your own identifying
225N/A# information: Portions Copyright [yyyy] [name of copyright owner]
225N/A#
225N/A# CDDL HEADER END
225N/A#
225N/A
225N/A#
5680N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
225N/A#
5680N/A
225N/Ainclude ../../../make-rules/shared-macros.mk
225N/Ainclude ../../../make-rules/shared-targets.mk
225N/A
1176N/ACOMPONENT_NAME= neutron
618N/ACOMPONENT_CODENAME= kilo
225N/ACOMPONENT_VERSION= 2015.1.2
225N/ACOMPONENT_BE_VERSION= 2015.1
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1176N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
225N/ACOMPONENT_ARCHIVE_HASH= \
1258N/A sha256:3ff282d75e86ea25f64e97e24b2960e7ffaeef7cf4a69c16d20ffe18065d0ef0
225N/ACOMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
2899N/ACOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
2899N/ACOMPONENT_PROJECT_URL= http://www.openstack.org/
5680N/ACOMPONENT_BUGDB= service/neutron
225N/AIPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION)
225N/AIPS_PKG_NAME= cloud/openstack/neutron
5680N/A
225N/ATPNO= 25791
225N/ATPNO_VPNAAS= 27275
225N/A
225N/ANUM_EXTRA_ARCHIVES= 1
225N/A
225N/ACOMPONENT_NAME_1= neutron-vpnaas
5680N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION)
225N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
7168N/ACOMPONENT_ARCHIVE_HASH_1= \
7168N/A sha256:969d0d098db2d5df33d3008d3139821330bafcc7d7e684472db8b4c23b2126e6
5680N/ACOMPONENT_ARCHIVE_URL_1= http://launchpad.net/neutron/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE_1)
5680N/ACOMPONENT_SIG_URL_1= $(COMPONENT_ARCHIVE_URL_1).asc
5680N/ASOURCE_DIR_1= $(COMPONENT_DIR)/$(COMPONENT_SRC_1)
5680N/ADEVICE_DRIVERS= neutron_vpnaas/services/vpn/device_drivers
5680N/ADEVICE_TEMPLATE= $(DEVICE_DRIVERS)/template/solaris
5680N/A
225N/APKG_VARS += COMPONENT_BE_VERSION
225N/A
3846N/Ainclude $(WS_MAKE_RULES)/prep.mk
3846N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3846N/Ainclude $(WS_MAKE_RULES)/ips.mk
3846N/A
4765N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
7168N/A
7168N/A# Since this is an app, and doesn't provide any public library interfaces, we
7168N/A# only need to deliver one version. The manifest is parameterized, though.
7168N/APYTHON_VERSIONS= 2.7
3846N/A
3846N/APKG_MACROS += PYVER=$(PYTHON_VERSIONS)
3846N/APKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .)
225N/A
5680N/A# move all the proper files into place and construct .pyc files for them
5680N/ACOMPONENT_POST_BUILD_ACTION += \
5680N/A $(GPATCH) -d $(SOURCE_DIR_1) $(GPATCH_FLAGS) \
5680N/A < vpnaas_patches/01-vpn_db_add_solaris.patch; \
5680N/A (cd $(SOURCE_DIR_1) ; \
5680N/A $(ENV) PROTO_DIR=$(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%) \
5680N/A HOME=$(BUILD_DIR)/config-$* $(COMPONENT_BUILD_ENV) \
4337N/A $(PYTHON.$(BITS)) ./setup.py build \
225N/A --build-base $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%); \
225N/A $(ENV) PROTO_DIR=$(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%) \
225N/A HOME=$(BUILD_DIR)/config-$* $(COMPONENT_BUILD_ENV) \
225N/A $(PYTHON.$(BITS)) ./setup.py install_data \
897N/A --install-dir $(PROTO_DIR)); \
897N/A $(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \
225N/A $(CP) \
3817N/A files/neutron-dhcp-agent.xml \
3817N/A files/neutron-l3-agent.xml \
3817N/A files/neutron-metadata-agent.xml \
3817N/A files/neutron-server.xml \
3817N/A files/neutron-upgrade.xml \
$(PROTO_DIR)/lib/svc/manifest/application/openstack; \
$(MKDIR) $(PROTO_DIR)/usr/lib/neutron; \
$(CP) files/evs/migrate/evs-neutron-migration.py \
$(PROTO_DIR)/usr/lib/neutron/evs-neutron-migration; \
$(CP) files/evs/migrate/neutron-kilo-migration.py \
$(PROTO_DIR)/usr/lib/neutron/neutron-kilo-migration; \
$(MKDIR) $(PROTO_DIR)/$(PYTHON_LIB)/neutron/agent; \
$(CP) files/agent/evs_l3_agent.py \
$(PROTO_DIR)/$(PYTHON_LIB)/neutron/agent; \
$(MKDIR) $(PROTO_DIR)/$(PYTHON_LIB)/neutron/agent/solaris; \
$(CP) \
files/agent/solaris/__init__.py \
files/agent/solaris/dhcp.py \
files/agent/solaris/interface.py \
files/agent/solaris/net_lib.py \
files/agent/solaris/packetfilter.py \
files/agent/solaris/ra.py \
$(PROTO_DIR)/$(PYTHON_LIB)/neutron/agent/solaris; \
$(MKDIR) $(PROTO_DIR)/$(PYTHON_LIB)/neutron/plugins/evs; \
$(TOUCH) $(PROTO_DIR)/$(PYTHON_LIB)/neutron/plugins/evs/__init__.py; \
$(CP) files/evs/plugin.py $(PROTO_DIR)/$(PYTHON_LIB)/neutron/plugins/evs; \
$(MKDIR) $(PROTO_DIR)/$(PYTHON_LIB)/neutron/plugins/evs/migrate; \
$(CP) \
files/evs/migrate/__init__.py \
files/evs/migrate/havana_api.py \
$(PROTO_DIR)/$(PYTHON_LIB)/neutron/plugins/evs/migrate; \
$(MKDIR) $(PROTO_DIR)/$(PYTHON_LIB)/$(DEVICE_TEMPLATE); \
$(CP) files/services/vpn/device_drivers/solaris_ipsec.py \
$(PROTO_DIR)/$(PYTHON_LIB)/$(DEVICE_DRIVERS); \
$(CP) \
files/services/vpn/device_drivers/template/solaris/ikev2.secret.template \
files/services/vpn/device_drivers/template/solaris/ike.template \
files/services/vpn/device_drivers/template/solaris/ikev2.template \
files/services/vpn/device_drivers/template/solaris/ipsecinit.conf.template \
files/services/vpn/device_drivers/template/solaris/ike.secret.template \
$(PROTO_DIR)/$(PYTHON_LIB)/$(DEVICE_TEMPLATE)
COMPONENT_POST_INSTALL_ACTION += \
$(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
# common targets
build: $(BUILD_NO_ARCH)
install: $(INSTALL_NO_ARCH)
test: $(NO_TESTS)
system-test: $(NO_TESTS)
REQUIRED_PACKAGES += cloud/openstack/openstack-common
REQUIRED_PACKAGES += library/python/alembic-27
REQUIRED_PACKAGES += library/python/eventlet-27
REQUIRED_PACKAGES += library/python/iniparse-27
REQUIRED_PACKAGES += library/python/netaddr-27
REQUIRED_PACKAGES += library/python/oslo.config-27
REQUIRED_PACKAGES += library/python/oslo.db-27
REQUIRED_PACKAGES += library/python/simplejson-27
REQUIRED_PACKAGES += library/python/six-27
REQUIRED_PACKAGES += library/python/sqlalchemy-27
REQUIRED_PACKAGES += network/firewall
REQUIRED_PACKAGES += service/network/dnsmasq
REQUIRED_PACKAGES += service/network/evs
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/management/rad/client/rad-python
REQUIRED_PACKAGES += system/network