components/tcpdump/Makefile
author David Hollister <david.hollister@oracle.com>
Wed, 12 Oct 2016 14:01:13 -0600
changeset 7094 61352b4e5af5
parent 6253 0fab514dc553
child 7245 934578b959f0
permissions -rw-r--r--
24797203 OpenStack RBAC profiles allow reading too many files 24797238 keystone RBAC and SMF should point at Apache log files 24797256 cinder RBAC and SMF should point at Apache log files 24830959 horizon RBAC and SMF should point at Apache log files
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
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4474
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
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
4468
2f1bf786d396 20852967 update to tcpdump 4.7.4
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    29
COMPONENT_VERSION=	4.7.4
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=	\
4468
2f1bf786d396 20852967 update to tcpdump 4.7.4
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    32
    sha256:5a321f0fb959b928f26112c9f49f81d754c23c1d8ffb0feb69304fee06b77e0a
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)
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    34
4468
2f1bf786d396 20852967 update to tcpdump 4.7.4
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    35
TPNO=			22949
2f1bf786d396 20852967 update to tcpdump 4.7.4
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    36
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4474
diff changeset
    37
include $(WS_MAKE_RULES)/common.mk
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    38
6253
0fab514dc553 23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents: 6230
diff changeset
    39
ifeq ($(OS_VERSION),5.11)
0fab514dc553 23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents: 6230
diff changeset
    40
# Prevent macro redefinition error
0fab514dc553 23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents: 6230
diff changeset
    41
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
    42
endif
0fab514dc553 23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents: 6230
diff changeset
    43
5826
9c90e4a8156c 23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    44
# 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
    45
COMPONENT_PREP_ACTION = (cd $(@D); autoconf);
9c90e4a8156c 23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    46
1229
5da8394504c5 16524455 Userland needs more 64-bit elves: lftp, m4, ncurses & tcpdump
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1223
diff changeset
    47
# 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
    48
studio_ALIGN.sparc.64=-xmemalign=16i
1811
c7fbffc951e5 18402339 tcpdump Bus Error (core dumped)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1632
diff changeset
    49
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
    50
1630
4a2b407e8cf3 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1229
diff changeset
    51
# 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
    52
# libpcap device enumeration.
4a2b407e8cf3 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1229
diff changeset
    53
LD_B_DIRECT=
4a2b407e8cf3 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1229
diff changeset
    54
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS += --enable-ipv6=yes
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS += --with-user=nobody
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS += --without-crypto
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    58
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    59
# common targets
1001
cc349e8980c4 7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents: 800
diff changeset
    60
COMPONENT_PRE_TEST_ACTION = \
cc349e8980c4 7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents: 800
diff changeset
    61
        ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
cc349e8980c4 7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents: 800
diff changeset
    62
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    63
REQUIRED_PACKAGES += system/library/libpcap