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, 2016, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../make-rules/shared-macros.mk |
23 include ../../make-rules/shared-macros.mk |
24 |
24 |
25 COMPONENT_NAME= wireshark |
25 COMPONENT_NAME= wireshark |
26 COMPONENT_VERSION= 2.2.2 |
26 COMPONENT_VERSION= 2.2.4 |
27 COMPONENT_PROJECT_URL= http://www.wireshark.org/ |
27 COMPONENT_PROJECT_URL= http://www.wireshark.org/ |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
30 COMPONENT_ARCHIVE_HASH= \ |
30 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:f9acef5e9a9021a400b4244fafc06969f41ec594ec57fd7f0ff63bafca0055b3 |
31 sha256:42a7fb35eed5a32478153e24601a284bb50148b7ba919c3e8452652f4c2a3911 |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE) |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/src/all-versions/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= utility/wireshark |
33 COMPONENT_BUGDB= utility/wireshark |
34 |
34 |
35 TPNO= 32709 |
35 TPNO= 33580 |
36 |
36 |
37 include $(WS_MAKE_RULES)/prep.mk |
37 include $(WS_MAKE_RULES)/prep.mk |
38 include $(WS_MAKE_RULES)/configure.mk |
38 include $(WS_MAKE_RULES)/configure.mk |
39 include $(WS_MAKE_RULES)/ips.mk |
39 include $(WS_MAKE_RULES)/ips.mk |
40 |
40 |
48 PATCH_LEVEL=0 |
48 PATCH_LEVEL=0 |
49 |
49 |
50 # We don't have automake 1.14 yet. Thus need to reconfigure with older one. |
50 # We don't have automake 1.14 yet. Thus need to reconfigure with older one. |
51 COMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh ); |
51 COMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh ); |
52 |
52 |
|
53 # Look for gnutls-3 pkg-config & libraries before the defaults |
|
54 PKG_CONFIG_PATH.64 := $(PKG_CONFIG_PATH.64)/gnutls-3:$(PKG_CONFIG_PATH.64) |
|
55 LDFLAGS += -L$(USRLIBDIR64)/gnutls-3 |
|
56 |
53 # Reported via bug 12923 |
57 # Reported via bug 12923 |
54 CFLAGS += -I/usr/include/kerberosv5 |
58 CFLAGS += -I/usr/include/kerberosv5 |
55 |
59 |
56 CONFIGURE_OPTIONS += --bindir=/usr/sbin |
60 CONFIGURE_OPTIONS += --bindir=/usr/sbin |
57 CONFIGURE_OPTIONS += --disable-usr-local |
61 CONFIGURE_OPTIONS += --disable-usr-local |
64 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
68 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
65 CONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)" |
69 CONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)" |
66 |
70 |
67 # Use the 64-bit versions of pkg-config files |
71 # Use the 64-bit versions of pkg-config files |
68 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
72 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
|
73 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
69 |
74 |
70 # We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can |
75 # We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can |
71 # create successfully IPS package of different Wireshark branch than is |
76 # create successfully IPS package of different Wireshark branch than is |
72 # installed on build system without dependency errors. |
77 # installed on build system without dependency errors. |
73 COMPONENT_POST_CONFIGURE_ACTION = \ |
78 COMPONENT_POST_CONFIGURE_ACTION = \ |
81 ./config.status) |
86 ./config.status) |
82 |
87 |
83 # During install libtool will relink libwireshark library so that it |
88 # During install libtool will relink libwireshark library so that it |
84 # requires libwiretap version from system and not from proto area. |
89 # requires libwiretap version from system and not from proto area. |
85 # This workaround is only needed when CBE contains older libwiretap. |
90 # This workaround is only needed when CBE contains older libwiretap. |
86 LIBWIRESHARK=$(PROTOUSRLIBDIR64)/libwireshark.so.8.1.0 |
91 LIBWIRESHARK=$(PROTOUSRLIBDIR64)/libwireshark.so.8.1.$(MICRO_VERSION) |
87 COMPONENT_POST_INSTALL_ACTION = \ |
92 COMPONENT_POST_INSTALL_ACTION = \ |
88 (WTAP=`$(ELFEDIT) -e dyn:dump $(LIBWIRESHARK) | grep 'libwiretap' | awk '{print $$4}'` \ |
93 (WTAP=`$(ELFEDIT) -e dyn:dump $(LIBWIRESHARK) | grep 'libwiretap' | awk '{print $$4}'` \ |
89 ; $(ELFEDIT) -e "dyn:value -s -with-valstr $$WTAP libwiretap.so.6" $(LIBWIRESHARK) ) |
94 ; $(ELFEDIT) -e "dyn:value -s -with-valstr $$WTAP libwiretap.so.6" $(LIBWIRESHARK) ) |
90 |
95 |
91 configure: $(CONFIGURE_64) |
96 configure: $(CONFIGURE_64) |
101 REQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common |
106 REQUIRED_PACKAGES += diagnostic/wireshark/wireshark-common |
102 REQUIRED_PACKAGES += library/desktop/cairo |
107 REQUIRED_PACKAGES += library/desktop/cairo |
103 REQUIRED_PACKAGES += library/desktop/gtk2 |
108 REQUIRED_PACKAGES += library/desktop/gtk2 |
104 REQUIRED_PACKAGES += library/desktop/pango |
109 REQUIRED_PACKAGES += library/desktop/pango |
105 REQUIRED_PACKAGES += library/glib2 |
110 REQUIRED_PACKAGES += library/glib2 |
106 REQUIRED_PACKAGES += library/gnutls |
111 REQUIRED_PACKAGES += library/gnutls-3 |
107 REQUIRED_PACKAGES += library/security/libgpg-error |
112 REQUIRED_PACKAGES += library/security/libgpg-error |
108 REQUIRED_PACKAGES += library/zlib |
113 REQUIRED_PACKAGES += library/zlib |
109 REQUIRED_PACKAGES += runtime/lua |
114 REQUIRED_PACKAGES += runtime/lua |
110 REQUIRED_PACKAGES += service/security/kerberos-5 |
115 REQUIRED_PACKAGES += service/security/kerberos-5 |
111 REQUIRED_PACKAGES += system/library |
116 REQUIRED_PACKAGES += system/library |