80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# The contents of this file are subject to the terms of the
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Common Development and Distribution License (the "License").
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# You may not use this file except in compliance with the License.
4da61833a1cbbca94094f9653fd970582b97a72etrawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4da61833a1cbbca94094f9653fd970582b97a72etrawick# See the License for the specific language governing permissions
4da61833a1cbbca94094f9653fd970582b97a72etrawick# and limitations under the License.
4789804be088bcd86ae637a29cdb7fda25169521jailletc# When distributing Covered Code, include this CDDL HEADER in each
4789804be088bcd86ae637a29cdb7fda25169521jailletc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4789804be088bcd86ae637a29cdb7fda25169521jailletc# If applicable, add the following below this CDDL HEADER, with the
4789804be088bcd86ae637a29cdb7fda25169521jailletc# fields enclosed by brackets "[]" replaced with your own identifying
e50c3026198fd496f183cda4c32a202925476778covener# information: Portions Copyright [yyyy] [name of copyright owner]
e50c3026198fd496f183cda4c32a202925476778covener# CDDL HEADER END
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
69301145375a889e7e37caf7cc7321ac0f91801erpluem sha256:900e22af04c8b35e0d02a25a360ab1fb7cfe5ac18fc48a9afd75a7103e569149
69301145375a889e7e37caf7cc7321ac0f91801erpluemCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sf# Micro version for easy libraries packaging
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sfMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic# Enable ASLR for this component
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic# We don't have automake 1.14 yet. Thus need to reconfigure with older one.
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavicCOMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh );
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic# Reported via bug 12923
44ff304057225e944e220e981d434a046d14cf06covenerCONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
44ff304057225e944e220e981d434a046d14cf06covener# Use the 64-bit versions of pkg-config files
5d1ba75b8794925e67591c209085a49279791de9covenerCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
5d1ba75b8794925e67591c209085a49279791de9covener# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrand# create successfully IPS package of different Wireshark branch than is
032982212dbcc7c3cce95bf89c503bb56e185ac7kbrand# installed on build system without dependency errors.
a34684a59b60a4173c25035d0c627ef17e6dc215rpluem# During install libtool will relink libwireshark library so that it
a34684a59b60a4173c25035d0c627ef17e6dc215rpluem# requires libwiretap version from system and not from proto area.
1e2d421a36999d292042a5539971070d54aa6c63ylavic# This workaround is only needed when CBE contains older libwiretap.
1e2d421a36999d292042a5539971070d54aa6c63ylavicLIBWIRESHARK=$(PROTOUSRLIBDIR64)/libwireshark.so.8.0.$(MICRO_VERSION)
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedooh (WTAP=`$(ELFEDIT) -e dyn:dump $(LIBWIRESHARK) | grep 'libwiretap' | awk '{print $$4}'` \
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedooh ; $(ELFEDIT) -e "dyn:value -s -with-valstr $$WTAP libwiretap.so.6" $(LIBWIRESHARK) )
c1a63b8fad09c419c1a64f75993feb8a343a6801ylavicREQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common