5088N/A#
5088N/A# CDDL HEADER START
5088N/A#
5088N/A# The contents of this file are subject to the terms of the
5088N/A# Common Development and Distribution License (the "License").
5088N/A# You may not use this file except in compliance with the License.
5088N/A#
5088N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5088N/A# or http://www.opensolaris.org/os/licensing.
5088N/A# See the License for the specific language governing permissions
5088N/A# and limitations under the License.
5088N/A#
5088N/A# When distributing Covered Code, include this CDDL HEADER in each
5088N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5088N/A# If applicable, add the following below this CDDL HEADER, with the
5088N/A# fields enclosed by brackets "[]" replaced with your own identifying
5088N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5088N/A#
5088N/A# CDDL HEADER END
5088N/A#
5088N/A#
5088N/A
5088N/A#
5680N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5088N/A#
5088N/A
5090N/A# parfait fails to compile us (22221056)
5090N/Aexport PARFAIT_BUILD=no
5090N/A
5680N/ABUILD_BITS= 64
5088N/Ainclude ../../make-rules/shared-macros.mk
5088N/A
5088N/ACOMPONENT_NAME= openvswitch
5728N/ACOMPONENT_VERSION= 2.3.2
5088N/ACOMPONENT_ARCHIVE_HASH= \
5728N/A sha256:386b11df94d06c68d391ee4091832360095bd3a14c72d454325fab284dad9887
5088N/ACOMPONENT_PROJECT_URL= http://openvswitch.org/
5088N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE)
5088N/ACOMPONENT_BUGDB= service/openvswitch
5088N/A
5728N/ATPNO= 26090
5088N/A
5171N/A# Depends on S12-only changes in ON to build.
5171N/Aifeq ($(BUILD_TYPE), evaluation)
5171N/ABUILD_64=
5171N/AINSTALL_64=
5171N/APUBLISH_STAMP=
5171N/Aendif
5171N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5088N/A
5088N/APKG_PROTO_DIRS += $(BUILD_DIR_64)
5088N/A
5088N/ACOMPONENT_PRE_CONFIGURE_ACTION += \
5088N/A ($(LN) -fs $(COMPONENT_DIR)/files/include/solaris $(SOURCE_DIR)/include/solaris; \
5088N/A $(LN) -fs $(COMPONENT_DIR)/files/lib/* $(SOURCE_DIR)/lib; \
5088N/A cd $(SOURCE_DIR); $(SOURCE_DIR)/boot.sh)
5088N/A
5088N/ACOMPILER = gcc
5088N/A
5680N/AUSRLIBOVSDIR= $(USRLIBDIR)/ovs
5680N/A
5680N/ACONFIGURE_PREFIX = $(USRLIBOVSDIR)
5680N/ACONFIGURE_BINDIR.64 = $(USRSBINDIR)
5680N/ACONFIGURE_SBINDIR.64 = $(USRLIBOVSDIR)
5088N/A
5680N/ACONFIGURE_OPTIONS += --mandir=$(USRSHAREMANDIR)
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/run/ovs
5680N/ACONFIGURE_OPTIONS += --with-logdir=$(VARDIR)/log/ovs
5680N/ACONFIGURE_OPTIONS += --with-rundir=$(VARDIR)/run/ovs/
5680N/ACONFIGURE_OPTIONS += --with-dbdir=$(VARDIR)/lib/ovs/etc
5680N/ACONFIGURE_OPTIONS += --datarootdir=$(USRLIBOVSDIR)/share
5088N/A
5088N/ACOMPONENT_PRE_BUILD_ACTION = \
5088N/A ($(LN) -fs $(COMPONENT_DIR)/files/include/solaris $(SOURCE_DIR)/include/solaris)
5088N/A
5088N/ACOMPONENT_TEST_TRANSFORMS += \
5088N/A '-e "s|^tests/pki/test-req.pem.*||g" ' \
5088N/A '-e "s|^tests/pki/test2-req.pem.*||g" ' \
5088N/A '-e "s|^.*fingerprint.*||g" '
5088N/A
5088N/ACOMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
5088N/A
5088N/AREQUIRED_PACKAGES += library/security/openssl
5088N/AREQUIRED_PACKAGES += runtime/python-27
5088N/AREQUIRED_PACKAGES += shell/ksh93
5088N/AREQUIRED_PACKAGES += system/core-os
5088N/AREQUIRED_PACKAGES += system/library/math
5088N/AREQUIRED_PACKAGES += system/management/rad
5088N/AREQUIRED_PACKAGES += system/management/rad/client/rad-c
5088N/AREQUIRED_PACKAGES += system/management/rad/client/rad-python
5088N/AREQUIRED_PACKAGES += system/network