21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2015, 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= 1.10.12 |
26 COMPONENT_VERSION= 1.12.3 |
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:e8fe3993b60a93106fad3b186ab8adb7a88ef06549a4b2bc2755db84725720ae |
31 sha256:69950b9dcb1a630982b5f680554d73d27ee0dc856fc6aeef88c8d04eb5ac33ea |
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= 21136 |
35 TPNO= 21482 |
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 |
53 CONFIGURE_OPTIONS += --bindir=/usr/sbin |
53 CONFIGURE_OPTIONS += --bindir=/usr/sbin |
54 CONFIGURE_OPTIONS += --disable-usr-local |
54 CONFIGURE_OPTIONS += --disable-usr-local |
55 CONFIGURE_OPTIONS += --disable-randpkt |
55 CONFIGURE_OPTIONS += --disable-randpkt |
56 CONFIGURE_OPTIONS += --disable-dftest |
56 CONFIGURE_OPTIONS += --disable-dftest |
57 CONFIGURE_OPTIONS += --with-krb5 |
57 CONFIGURE_OPTIONS += --with-krb5 |
|
58 CONFIGURE_OPTIONS += --with-qt=no |
|
59 CONFIGURE_OPTIONS += --with-gtk2=yes |
58 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
60 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
59 CONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)" |
61 CONFIGURE_OPTIONS += PATH="/usr/perl5/bin:/usr/gnu/bin:$(PATH)" |
60 |
62 |
61 # Use the 64-bit versions of pkg-config files |
63 # Use the 64-bit versions of pkg-config files |
62 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
64 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
63 |
65 |
64 # Version 1.10 (libwireshark.so) doesn't play nicely with -Bdirect. |
66 # Workaround for Bug 19143303 |
65 LD_B_DIRECT= |
67 studio_OPT = -xO3 |
66 |
68 |
67 # We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can |
69 # We need to avoid RPATH=/usr/lib in Wireshark libraries so that we can |
68 # create successfully IPS package of different Wireshark branch than is |
70 # create successfully IPS package of different Wireshark branch than is |
69 # installed on build system without dependency errors. |
71 # installed on build system without dependency errors. |
70 COMPONENT_POST_CONFIGURE_ACTION = \ |
72 COMPONENT_POST_CONFIGURE_ACTION = \ |
74 -e 's,-R\$$libdir,,' \ |
76 -e 's,-R\$$libdir,,' \ |
75 config.status > config.status.new; \ |
77 config.status > config.status.new; \ |
76 mv config.status.new config.status; \ |
78 mv config.status.new config.status; \ |
77 chmod 755 config.status; \ |
79 chmod 755 config.status; \ |
78 ./config.status) |
80 ./config.status) |
|
81 |
|
82 # During install libtool will relink libwireshark library so that it |
|
83 # requires libwiretap version from system and not from proto area. |
|
84 # This shall be removed once CBE is updated to contain Wireshark 1.12 |
|
85 # (see Bug 20627618). |
|
86 COMPONENT_POST_INSTALL_ACTION = \ |
|
87 (/usr/bin/elfdump -d $(PROTO_DIR)/usr/lib/$(MACH64)/libwireshark.so.5.0.3 | \ |
|
88 grep 'libwiretap.so.3' && /usr/bin/elfedit \ |
|
89 -e 'dyn:value -s -with-valstr libwiretap.so.3 libwiretap.so.4' \ |
|
90 $(PROTO_DIR)/usr/lib/$(MACH64)/libwireshark.so.5.0.3) |
79 |
91 |
80 configure: $(CONFIGURE_64) |
92 configure: $(CONFIGURE_64) |
81 |
93 |
82 build: $(BUILD_64) |
94 build: $(BUILD_64) |
83 |
95 |