Obsolete golang-120
[oi-userland.git] / components / sysutils / tcpdump / Makefile
blob5a13c347f25f589cfee297e29f089a6cc710a8fe
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2022 Niklas Poslovski
24 include ../../../make-rules/shared-macros.mk
26 COMPONENT_NAME= tcpdump
27 COMPONENT_VERSION= 4.99.5
28 COMPONENT_SUMMARY= A tool for network monitoring and data acquisition
29 COMPONENT_PROJECT_URL= https://www.tcpdump.org/
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
32 COMPONENT_ARCHIVE_HASH= sha256:8c75856e00addeeadf70dad67c9ff3dd368536b2b8563abf6854d7c764cd3adb
33 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
34 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).sig
35 COMPONENT_FMRI= diagnostic/tcpdump
36 COMPONENT_CLASSIFICATION= Applications/Internet
37 COMPONENT_LICENSE= BSD
38 COMPONENT_LICENSE_FILE= LICENSE
40 # Prevent macro redefinition error
41 CFLAGS += -D _NETINET_IP_H
43 include $(WS_MAKE_RULES)/common.mk
45 # fix my alignment issues instead of falling over on sparc
46 studio_ALIGN.sparc.64=-xmemalign=16i
47 CONFIGURE_OPTIONS.sparc += ac_cv___attribute__=no
48 CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH))
50 # lazyloading (indirectly enabled by -Bdirect) seems to cause problems with
51 # libpcap device enumeration.
52 LD_B_DIRECT=
54 CONFIGURE_OPTIONS += --enable-smb=yes
55 CONFIGURE_OPTIONS += --enable-ipv6=yes
56 CONFIGURE_OPTIONS += --with-user=nobody
57 CONFIGURE_OPTIONS += --without-crypto
59 # Fixes tests
60 COMPONENT_TEST_ENV += PATH=$(PATH.gnu)
62 ASLR_MODE = $(ASLR_ENABLE)
64 COMPONENT_PRE_TEST_ACTION = \
65 ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
67 # Auto-generated dependencies
68 REQUIRED_PACKAGES += system/library
69 REQUIRED_PACKAGES += system/library/libpcap