components/wireshark/Makefile
author Petr Sumbera <petr.sumbera@oracle.com>
Tue, 26 Nov 2013 13:57:44 -0800
branchs11u1-sru
changeset 2833 7c462f1b96b8
parent 2794 a5bcbe239323
child 2917 b935e5ebd575
permissions -rw-r--r--
17827024 Upgrade Wireshark to version 1.8.11 (for 11.1SRU) 17731750 problem in UTILITY/WIRESHARK 17240842 tshark and wireshark-comon have optional depend on nonexistant pkg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     1
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     3
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     7
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    12
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    18
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    20
#
2547
63302ab98be7 16290695 Upgrade Wireshark to version 1.8.5
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2439
diff changeset
    21
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    22
#
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    24
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		wireshark
2833
7c462f1b96b8 17827024 Upgrade Wireshark to version 1.8.11 (for 11.1SRU)
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2794
diff changeset
    26
COMPONENT_VERSION=	1.8.11
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 566
diff changeset
    27
COMPONENT_PROJECT_URL=	http://www.wireshark.org/
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 735
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
2833
7c462f1b96b8 17827024 Upgrade Wireshark to version 1.8.11 (for 11.1SRU)
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2794
diff changeset
    31
    sha256:fcba2bd7ccd85d0d68cda18d0d6422be45a7f04dcd897b59a4aa859ff48f8fdb
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 566
diff changeset
    32
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    33
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    34
include ../../make-rules/prep.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    35
include ../../make-rules/configure.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/ips.mk
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    37
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    38
PATCH_LEVEL=0
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    39
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    40
CONFIGURE_OPTIONS +=	--bindir=/usr/sbin
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    41
CONFIGURE_OPTIONS +=	--disable-usr-local
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    42
CONFIGURE_OPTIONS +=	--disable-randpkt
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    43
CONFIGURE_OPTIONS +=	--disable-dftest
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    44
CONFIGURE_OPTIONS +=	--with-krb5
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)" 
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    47
735
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    48
# We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    49
# create successfully IPS package of different Wireshark branch than is
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    50
# installed on build system without dependency errors.
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    51
COMPONENT_POST_CONFIGURE_ACTION = \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    52
	(cd $(@D); \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    53
	sed -e 's,-L/usr/lib -R/usr/lib,,' -e 's,-R/usr/lib,,' \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    54
		config.status > config.status.new; \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    55
	mv config.status.new config.status; \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    56
	chmod 755 config.status; \
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    57
	./config.status)
5a99bd9fadaf 7108485 wireshark needs to be updated to version branch 1.6
Petr Sumbera <petr.sumbera@oracle.com>
parents: 656
diff changeset
    58
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    59
build:		$(BUILD_32)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    60
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    61
install:	$(INSTALL_32)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    62
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 124
diff changeset
    63
test:		$(NO_TESTS)
124
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    64
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    65
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    66
d2e8e5ad1feb 7026046 move wireshark to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
diff changeset
    67
include ../../make-rules/depend.mk