components/tcpdump/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Fri, 07 Apr 2017 10:04:47 -0700
changeset 7848 75d3cd4c779b
parent 7829 2de4f4ace09c
permissions -rw-r--r--
25427170 event-config.h definitions are valid just for 64bit apps
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     1
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     3
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     7
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    12
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    18
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4474
diff changeset
    21
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    22
#
7674
e5be4a3b0c32 25466336 Update tcpdump to version 4.9.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7383
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4474
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4474
diff changeset
    25
BUILD_BITS= 64
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    27
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		tcpdump
7674
e5be4a3b0c32 25466336 Update tcpdump to version 4.9.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7383
diff changeset
    29
COMPONENT_VERSION=	4.9.0
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 422
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.tcpdump.org/
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
7674
e5be4a3b0c32 25466336 Update tcpdump to version 4.9.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7383
diff changeset
    32
    sha256:eae98121cbb1c9adbedd9a777bf2eae9fa1c1c676424a54740311c8abcee5a5e
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 422
diff changeset
    33
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7674
diff changeset
    34
COMPONENT_ANITYA_ID=	4947
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    35
7674
e5be4a3b0c32 25466336 Update tcpdump to version 4.9.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7383
diff changeset
    36
TPNO=			33618
4468
2f1bf786d396 20852967 update to tcpdump 4.7.4
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    37
7245
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6253
diff changeset
    38
# Enable adiheap and adistack security extensions
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6253
diff changeset
    39
ADIHEAP_MODE =	$(ADIHEAP_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6253
diff changeset
    40
ADISTACK_MODE =	$(ADISTACK_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6253
diff changeset
    41
7383
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    42
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4474
diff changeset
    43
include $(WS_MAKE_RULES)/common.mk
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
    45
ifeq ($(OS_VERSION),11.3)
6253
0fab514dc553 23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents: 6230
diff changeset
    46
# Prevent macro redefinition error
0fab514dc553 23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents: 6230
diff changeset
    47
CFLAGS += -D _NETINET_IP_H
0fab514dc553 23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents: 6230
diff changeset
    48
endif
0fab514dc553 23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents: 6230
diff changeset
    49
5826
9c90e4a8156c 23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    50
# Rebuild the configure script so the man pages are normalized.
9c90e4a8156c 23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    51
COMPONENT_PREP_ACTION = (cd $(@D); autoconf);
9c90e4a8156c 23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    52
1229
5da8394504c5 16524455 Userland needs more 64-bit elves: lftp, m4, ncurses & tcpdump
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    53
# fix my alignment issues instead of falling over on sparc
5da8394504c5 16524455 Userland needs more 64-bit elves: lftp, m4, ncurses & tcpdump
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    54
studio_ALIGN.sparc.64=-xmemalign=16i
1811
c7fbffc951e5 18402339 tcpdump Bus Error (core dumped)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1632
diff changeset
    55
CONFIGURE_OPTIONS.sparc += ac_cv___attribute__=no
422
38c9bd50af18 7066006 tcpdump, bus errors on sparc
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 181
diff changeset
    56
1630
4a2b407e8cf3 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1229
diff changeset
    57
# lazyloading (indirectly enabled by -Bdirect) seems to cause problems with
4a2b407e8cf3 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1229
diff changeset
    58
# libpcap device enumeration.
4a2b407e8cf3 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1229
diff changeset
    59
LD_B_DIRECT=
4a2b407e8cf3 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1229
diff changeset
    60
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    61
CONFIGURE_OPTIONS += --enable-ipv6=yes
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    62
CONFIGURE_OPTIONS += --with-user=nobody
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    63
CONFIGURE_OPTIONS += --without-crypto
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
7383
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    65
COMPONENT_TEST_TRANSFORMS += \
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    66
	'-e "/Entering directory/d" ' \
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    67
	'-e "/Leaving directory/d" ' \
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    68
	'-e "/cd tests/d" '
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    69
1001
cc349e8980c4 7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents: 800
diff changeset
    70
COMPONENT_PRE_TEST_ACTION = \
cc349e8980c4 7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents: 800
diff changeset
    71
        ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
cc349e8980c4 7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents: 800
diff changeset
    72
7383
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    73
# We don't want to build tcpdump, so override the equivalent of "gmake check"
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    74
# in the main Makefile.
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    75
COMPONENT_SYSTEM_TEST_CMD =	./TESTrun.sh
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    76
COMPONENT_SYSTEM_TEST_DIR =	$(@D)/tests
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    77
COMPONENT_SYSTEM_TEST_ENV +=	TCPDUMP_BIN=$(USRSBINDIR)/tcpdump
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    78
COMPONENT_SYSTEM_TEST_TARGETS =
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    79
COMPONENT_PRE_SYSTEM_TEST_ACTION = \
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    80
        ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
93f1d98a66f9 19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    81
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    82
REQUIRED_PACKAGES += system/library/libpcap