author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Fri, 16 Dec 2016 19:19:44 -0800 | |
changeset 7503 | 28ccedbcd04c |
parent 7383 | 93f1d98a66f9 |
child 7674 | e5be4a3b0c32 |
permissions | -rw-r--r-- |
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 |
|
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
|
37 |
# 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
|
38 |
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
|
39 |
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
|
40 |
|
7383
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
41 |
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
|
42 |
include $(WS_MAKE_RULES)/common.mk |
90
5483a3df388e
7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
43 |
|
6253
0fab514dc553
23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents:
6230
diff
changeset
|
44 |
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
|
45 |
# Prevent macro redefinition error |
0fab514dc553
23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents:
6230
diff
changeset
|
46 |
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
|
47 |
endif |
0fab514dc553
23607956 tcpdump fix for 22628422 needs tweaking for S11
John Beck <John.Beck@Oracle.COM>
parents:
6230
diff
changeset
|
48 |
|
5826
9c90e4a8156c
23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
49 |
# 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
|
50 |
COMPONENT_PREP_ACTION = (cd $(@D); autoconf); |
9c90e4a8156c
23137909 Userland man page normalization work
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
51 |
|
1229
5da8394504c5
16524455 Userland needs more 64-bit elves: lftp, m4, ncurses & tcpdump
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
1223
diff
changeset
|
52 |
# 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
|
53 |
studio_ALIGN.sparc.64=-xmemalign=16i |
1811
c7fbffc951e5
18402339 tcpdump Bus Error (core dumped)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
1632
diff
changeset
|
54 |
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
|
55 |
|
1630
4a2b407e8cf3
17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
1229
diff
changeset
|
56 |
# 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
|
57 |
# libpcap device enumeration. |
4a2b407e8cf3
17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
1229
diff
changeset
|
58 |
LD_B_DIRECT= |
4a2b407e8cf3
17075184 tcpdump does not work in non-global-zone
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
1229
diff
changeset
|
59 |
|
90
5483a3df388e
7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
60 |
CONFIGURE_OPTIONS += --enable-ipv6=yes |
5483a3df388e
7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
61 |
CONFIGURE_OPTIONS += --with-user=nobody |
5483a3df388e
7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --without-crypto |
5483a3df388e
7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
63 |
|
7383
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
64 |
COMPONENT_TEST_TRANSFORMS += \ |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
65 |
'-e "/Entering directory/d" ' \ |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
66 |
'-e "/Leaving directory/d" ' \ |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
67 |
'-e "/cd tests/d" ' |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
68 |
|
1001
cc349e8980c4
7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents:
800
diff
changeset
|
69 |
COMPONENT_PRE_TEST_ACTION = \ |
cc349e8980c4
7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents:
800
diff
changeset
|
70 |
($(CP) -r $(SOURCE_DIR)/tests $(@D)/.) |
cc349e8980c4
7196707 update tcpdump to 4.3.0
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents:
800
diff
changeset
|
71 |
|
7383
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
72 |
# 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
|
73 |
# in the main Makefile. |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
74 |
COMPONENT_SYSTEM_TEST_CMD = ./TESTrun.sh |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
75 |
COMPONENT_SYSTEM_TEST_DIR = $(@D)/tests |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
76 |
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
|
77 |
COMPONENT_SYSTEM_TEST_TARGETS = |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
78 |
COMPONENT_PRE_SYSTEM_TEST_ACTION = \ |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
79 |
($(CP) -r $(SOURCE_DIR)/tests $(@D)/.) |
93f1d98a66f9
19921541 "gmake test" failures for tcpdump
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
80 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
81 |
REQUIRED_PACKAGES += system/library/libpcap |