16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
|
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 BUILD_BITS= 64 |
23 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
24 |
27 |
25 COMPONENT_NAME= tcpdump |
28 COMPONENT_NAME= tcpdump |
26 COMPONENT_VERSION= 4.7.4 |
29 COMPONENT_VERSION= 4.7.4 |
27 COMPONENT_PROJECT_URL= http://www.tcpdump.org/ |
30 COMPONENT_PROJECT_URL= http://www.tcpdump.org/ |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:5a321f0fb959b928f26112c9f49f81d754c23c1d8ffb0feb69304fee06b77e0a |
32 sha256:5a321f0fb959b928f26112c9f49f81d754c23c1d8ffb0feb69304fee06b77e0a |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= utility/tcpdump |
|
34 |
34 |
35 TPNO= 22949 |
35 TPNO= 22949 |
36 |
36 |
37 # Prevent macro redefinition error |
37 # Prevent macro redefinition error |
38 CFLAGS += -D _NETINET_IP_H |
38 CFLAGS += -D _NETINET_IP_H |
39 |
39 |
40 include $(WS_MAKE_RULES)/prep.mk |
40 include $(WS_MAKE_RULES)/common.mk |
41 include $(WS_MAKE_RULES)/configure.mk |
|
42 include $(WS_MAKE_RULES)/ips.mk |
|
43 |
41 |
44 # fix my alignment issues instead of falling over on sparc |
42 # fix my alignment issues instead of falling over on sparc |
45 studio_ALIGN.sparc.64=-xmemalign=16i |
43 studio_ALIGN.sparc.64=-xmemalign=16i |
46 CONFIGURE_OPTIONS.sparc += ac_cv___attribute__=no |
44 CONFIGURE_OPTIONS.sparc += ac_cv___attribute__=no |
47 CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH)) |
|
48 |
45 |
49 # lazyloading (indirectly enabled by -Bdirect) seems to cause problems with |
46 # lazyloading (indirectly enabled by -Bdirect) seems to cause problems with |
50 # libpcap device enumeration. |
47 # libpcap device enumeration. |
51 LD_B_DIRECT= |
48 LD_B_DIRECT= |
52 |
49 |
53 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
54 CONFIGURE_OPTIONS += --enable-ipv6=yes |
50 CONFIGURE_OPTIONS += --enable-ipv6=yes |
55 CONFIGURE_OPTIONS += --with-user=nobody |
51 CONFIGURE_OPTIONS += --with-user=nobody |
56 CONFIGURE_OPTIONS += --without-crypto |
52 CONFIGURE_OPTIONS += --without-crypto |
57 |
53 |
58 ASLR_MODE = $(ASLR_ENABLE) |
|
59 |
|
60 # common targets |
54 # common targets |
61 configure: $(CONFIGURE_64) |
|
62 |
|
63 build: $(BUILD_64) |
|
64 |
|
65 install: $(INSTALL_64) |
|
66 |
|
67 COMPONENT_PRE_TEST_ACTION = \ |
55 COMPONENT_PRE_TEST_ACTION = \ |
68 ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.) |
56 ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.) |
69 |
57 |
70 test: $(TEST_64) |
|
71 |
|
72 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
73 |
|
74 |
|
75 |
|
76 REQUIRED_PACKAGES += system/library |
|
77 REQUIRED_PACKAGES += system/library/libpcap |
58 REQUIRED_PACKAGES += system/library/libpcap |