6584N/A#
6584N/A# CDDL HEADER START
6584N/A#
6584N/A# The contents of this file are subject to the terms of the
6584N/A# Common Development and Distribution License (the "License").
6584N/A# You may not use this file except in compliance with the License.
6584N/A#
6584N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6584N/A# or http://www.opensolaris.org/os/licensing.
6584N/A# See the License for the specific language governing permissions
6584N/A# and limitations under the License.
6584N/A#
6584N/A# When distributing Covered Code, include this CDDL HEADER in each
6584N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6584N/A# If applicable, add the following below this CDDL HEADER, with the
6584N/A# fields enclosed by brackets "[]" replaced with your own identifying
6584N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6584N/A#
6584N/A# CDDL HEADER END
6584N/A#
6584N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
6584N/A#
6584N/Ainclude ../../make-rules/shared-macros.mk
6584N/A
6584N/ACOMPONENT_NAME= tcpdump
6584N/ACOMPONENT_VERSION= 4.7.4
6584N/ACOMPONENT_PROJECT_URL= http://www.tcpdump.org/
6584N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6584N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6584N/ACOMPONENT_ARCHIVE_HASH= \
6584N/A sha256:5a321f0fb959b928f26112c9f49f81d754c23c1d8ffb0feb69304fee06b77e0a
6584N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
6584N/ACOMPONENT_BUGDB= utility/tcpdump
6584N/A
6584N/ATPNO= 22949
6584N/A
6584N/A# Prevent macro redefinition error
6584N/ACFLAGS += -D _NETINET_IP_H
6584N/A
6584N/Ainclude $(WS_MAKE_RULES)/prep.mk
6584N/Ainclude $(WS_MAKE_RULES)/configure.mk
6584N/Ainclude $(WS_MAKE_RULES)/ips.mk
6584N/A
6584N/A# fix my alignment issues instead of falling over on sparc
6584N/Astudio_ALIGN.sparc.64=-xmemalign=16i
6584N/ACONFIGURE_OPTIONS.sparc += ac_cv___attribute__=no
6584N/ACONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH))
6584N/A
6584N/A# lazyloading (indirectly enabled by -Bdirect) seems to cause problems with
6584N/A# libpcap device enumeration.
6584N/ALD_B_DIRECT=
6584N/A
6584N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
6584N/ACONFIGURE_OPTIONS += --enable-ipv6=yes
6584N/ACONFIGURE_OPTIONS += --with-user=nobody
6584N/ACONFIGURE_OPTIONS += --without-crypto
6584N/A
6584N/AASLR_MODE = $(ASLR_ENABLE)
6584N/A
6584N/A# common targets
6584N/Abuild: $(BUILD_64)
6584N/A
6584N/Ainstall: $(INSTALL_64)
6584N/A
6584N/ACOMPONENT_PRE_TEST_ACTION = \
6584N/A ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
6584N/A
6584N/Atest: $(TEST_64)
6584N/A
6584N/A
6584N/A
6584N/AREQUIRED_PACKAGES += system/library
6584N/AREQUIRED_PACKAGES += system/library/libpcap
6584N/A