components/tcpdump/Makefile
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Tue, 21 Jan 2014 15:46:29 -0800
branchs11u1-sru
changeset 2907 b70f4f71f1b5
parent 800 2ad056ed89ec
child 2909 a4709a200379
permissions -rw-r--r--
17075184 tcpdump does not work in non-global-zone
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
#
2907
b70f4f71f1b5 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 800
diff changeset
    21
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    22
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    24
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		tcpdump
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	4.1.1
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
    27
COMPONENT_PROJECT_URL=	http://www.tcpdump.org/
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
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
    30
COMPONENT_ARCHIVE_HASH=	\
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
    sha256:e6cd4bbd61ec7adbb61ba8352c4b4734f67b8caaa845d88cb826bc0b9f1e7f0a
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
    32
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
    33
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    34
include ../../make-rules/prep.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    35
include ../../make-rules/configure.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/ips.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    37
422
38c9bd50af18 7066006 tcpdump, bus errors on sparc
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 181
diff changeset
    38
# the default setting of 8s makes us core dump
38c9bd50af18 7066006 tcpdump, bus errors on sparc
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 181
diff changeset
    39
studio_ALIGN.sparc.32=
38c9bd50af18 7066006 tcpdump, bus errors on sparc
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 181
diff changeset
    40
2907
b70f4f71f1b5 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 800
diff changeset
    41
# lazyloading (indirectly enabled by -Bdirect) seems to cause problems with
b70f4f71f1b5 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 800
diff changeset
    42
# libpcap device enumeration.
b70f4f71f1b5 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 800
diff changeset
    43
LD_B_DIRECT=
b70f4f71f1b5 17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 800
diff changeset
    44
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS += --enable-ipv6=yes
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS += --with-user=nobody
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    48
CONFIGURE_OPTIONS += --without-crypto
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    50
# common targets
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    51
build:          $(BUILD_32)
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    52
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    53
install:        $(INSTALL_32) 
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    54
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 91
diff changeset
    55
test:		$(NO_TESTS)
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    56
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    57
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
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
include ../../make-rules/depend.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    60