#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
# parfait fails to compile us (22221056)
export PARFAIT_BUILD=no
BUILD_BITS= 64
include ../../make-rules/shared-macros.mk
COMPONENT_NAME= openvswitch
COMPONENT_VERSION= 2.3.2
COMPONENT_ARCHIVE_HASH= \
sha256:386b11df94d06c68d391ee4091832360095bd3a14c72d454325fab284dad9887
COMPONENT_PROJECT_URL= http://openvswitch.org/
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE)
COMPONENT_BUGDB= service/openvswitch
TPNO= 26090
# Depends on S12-only changes in ON to build.
ifeq ($(BUILD_TYPE), evaluation)
BUILD_64=
INSTALL_64=
PUBLISH_STAMP=
endif
include $(WS_MAKE_RULES)/common.mk
PKG_PROTO_DIRS += $(BUILD_DIR_64)
COMPONENT_PRE_CONFIGURE_ACTION += \
($(LN) -fs $(COMPONENT_DIR)/files/include/solaris $(SOURCE_DIR)/include/solaris; \
$(LN) -fs $(COMPONENT_DIR)/files/lib/* $(SOURCE_DIR)/lib; \
cd $(SOURCE_DIR); $(SOURCE_DIR)/boot.sh)
COMPILER = gcc
USRLIBOVSDIR= $(USRLIBDIR)/ovs
CONFIGURE_PREFIX = $(USRLIBOVSDIR)
CONFIGURE_BINDIR.64 = $(USRSBINDIR)
CONFIGURE_SBINDIR.64 = $(USRLIBOVSDIR)
CONFIGURE_OPTIONS += --mandir=$(USRSHAREMANDIR)
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/run/ovs
CONFIGURE_OPTIONS += --with-logdir=$(VARDIR)/log/ovs
CONFIGURE_OPTIONS += --with-rundir=$(VARDIR)/run/ovs/
CONFIGURE_OPTIONS += --with-dbdir=$(VARDIR)/lib/ovs/etc
CONFIGURE_OPTIONS += --datarootdir=$(USRLIBOVSDIR)/share
COMPONENT_PRE_BUILD_ACTION = \
($(LN) -fs $(COMPONENT_DIR)/files/include/solaris $(SOURCE_DIR)/include/solaris)
COMPONENT_TEST_TRANSFORMS += \
'-e "s|^tests/pki/test-req.pem.*||g" ' \
'-e "s|^tests/pki/test2-req.pem.*||g" ' \
'-e "s|^.*fingerprint.*||g" '
COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/management/rad
REQUIRED_PACKAGES += system/management/rad/client/rad-c
REQUIRED_PACKAGES += system/management/rad/client/rad-python
REQUIRED_PACKAGES += system/network