90N/A#
90N/A# CDDL HEADER START
90N/A#
90N/A# The contents of this file are subject to the terms of the
90N/A# Common Development and Distribution License (the "License").
90N/A# You may not use this file except in compliance with the License.
90N/A#
90N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90N/A# or http://www.opensolaris.org/os/licensing.
90N/A# See the License for the specific language governing permissions
90N/A# and limitations under the License.
90N/A#
90N/A# When distributing Covered Code, include this CDDL HEADER in each
90N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
90N/A# If applicable, add the following below this CDDL HEADER, with the
90N/A# fields enclosed by brackets "[]" replaced with your own identifying
90N/A# information: Portions Copyright [yyyy] [name of copyright owner]
90N/A#
90N/A# CDDL HEADER END
90N/A#
5680N/A
90N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64
90N/Ainclude ../../make-rules/shared-macros.mk
90N/A
90N/ACOMPONENT_NAME= tcpdump
4466N/ACOMPONENT_VERSION= 4.7.4
618N/ACOMPONENT_PROJECT_URL= http://www.tcpdump.org/
844N/ACOMPONENT_ARCHIVE_HASH= \
4466N/A sha256:5a321f0fb959b928f26112c9f49f81d754c23c1d8ffb0feb69304fee06b77e0a
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
90N/A
4466N/ATPNO= 22949
4466N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
7381N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
90N/A
6251N/Aifeq ($(OS_VERSION),5.11)
6251N/A# Prevent macro redefinition error
6251N/ACFLAGS += -D _NETINET_IP_H
6251N/Aendif
6251N/A
5824N/A# Rebuild the configure script so the man pages are normalized.
5824N/ACOMPONENT_PREP_ACTION = (cd $(@D); autoconf);
5824N/A
1530N/A# fix my alignment issues instead of falling over on sparc
1530N/Astudio_ALIGN.sparc.64=-xmemalign=16i
2626N/ACONFIGURE_OPTIONS.sparc += ac_cv___attribute__=no
422N/A
2294N/A# lazyloading (indirectly enabled by -Bdirect) seems to cause problems with
2294N/A# libpcap device enumeration.
2294N/ALD_B_DIRECT=
2294N/A
90N/ACONFIGURE_OPTIONS += --enable-ipv6=yes
90N/ACONFIGURE_OPTIONS += --with-user=nobody
90N/ACONFIGURE_OPTIONS += --without-crypto
90N/A
7381N/ACOMPONENT_TEST_TRANSFORMS += \
7381N/A '-e "/Entering directory/d" ' \
7381N/A '-e "/Leaving directory/d" ' \
7381N/A '-e "/cd tests/d" '
7381N/A
1136N/ACOMPONENT_PRE_TEST_ACTION = \
1136N/A ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
1136N/A
7381N/A# We don't want to build tcpdump, so override the equivalent of "gmake check"
7381N/A# in the main Makefile.
7381N/ACOMPONENT_SYSTEM_TEST_CMD = ./TESTrun.sh
7381N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
7381N/ACOMPONENT_SYSTEM_TEST_ENV += TCPDUMP_BIN=$(USRSBINDIR)/tcpdump
7381N/ACOMPONENT_SYSTEM_TEST_TARGETS =
7381N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION = \
7381N/A ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
7381N/A
3817N/AREQUIRED_PACKAGES += system/library/libpcap