| 1 | NAME = wireshark |
|---|
| 2 | VERSION = 1.6.4 |
|---|
| 3 | CATEGORIES = apps |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = Wireshark (was Ethereal) is a free network protocol analyzer |
|---|
| 7 | define BLURB |
|---|
| 8 | Wireshark is the world's foremost network protocol analyzer, and is the |
|---|
| 9 | de facto (and often de jure) standard across many industries and |
|---|
| 10 | educational institutions. |
|---|
| 11 | endef |
|---|
| 12 | |
|---|
| 13 | MASTER_SITES = $(SF_MIRRORS) |
|---|
| 14 | DISTFILES = $(NAME)-$(VERSION).tar.bz2 |
|---|
| 15 | |
|---|
| 16 | PATCHFILES += 0001-Solaris-9-doesn-t-have-stdint.h.patch |
|---|
| 17 | |
|---|
| 18 | # Use patch until this is fixed: |
|---|
| 19 | # https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6615 |
|---|
| 20 | PATCHFILES += 0002-Don-t-return-value-in-void-functions.patch |
|---|
| 21 | |
|---|
| 22 | VENDOR_URL = http://www.wireshark.org/ |
|---|
| 23 | |
|---|
| 24 | BUILD_DEP_PKGS += CSWlibgcrypt-dev |
|---|
| 25 | BUILD_DEP_PKGS += CSWglib2devel |
|---|
| 26 | BUILD_DEP_PKGS += CSWlibgpg-error-dev |
|---|
| 27 | BUILD_DEP_PKGS += CSWgtk2devel |
|---|
| 28 | BUILD_DEP_PKGS += CSWpangodevel |
|---|
| 29 | BUILD_DEP_PKGS += CSWlibz-dev |
|---|
| 30 | BUILD_DEP_PKGS += CSWggettext-dev |
|---|
| 31 | BUILD_DEP_PKGS += CSWlibcares-dev |
|---|
| 32 | BUILD_DEP_PKGS += CSWlibpcap-dev |
|---|
| 33 | BUILD_DEP_PKGS += CSWlibsmi-dev |
|---|
| 34 | BUILD_DEP_PKGS += CSWlibkrb5-dev |
|---|
| 35 | BUILD_DEP_PKGS += CSWossldevel |
|---|
| 36 | BUILD_DEP_PKGS += CSWlibgnutls-dev |
|---|
| 37 | BUILD_DEP_PKGS += CSWlua |
|---|
| 38 | BUILD_DEP_PKGS += CSWgeoip-dev |
|---|
| 39 | |
|---|
| 40 | PACKAGES += CSWwireshark |
|---|
| 41 | SPKG_DESC_CSWwireshark = Wireshark (was Ethereal) is a free network protocol analyzer |
|---|
| 42 | # PKGFILES is catchall |
|---|
| 43 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibgcrypt11 |
|---|
| 44 | RUNTIME_DEP_PKGS_CSWwireshark += CSWglib2 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibgpg-error0 |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWwireshark += CSWgtk2 |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWwireshark += CSWpango |
|---|
| 48 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibz1 |
|---|
| 49 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibintl8 |
|---|
| 50 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibcares2 |
|---|
| 51 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibpcap1 |
|---|
| 52 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibsmi2 |
|---|
| 53 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibcom-err3 |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibkrb5-3 |
|---|
| 55 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibk5crypto3 |
|---|
| 56 | RUNTIME_DEP_PKGS_CSWwireshark += CSWosslrt |
|---|
| 57 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibgnutls26 |
|---|
| 58 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlua |
|---|
| 59 | RUNTIME_DEP_PKGS_CSWwireshark += CSWftype2 |
|---|
| 60 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibatk |
|---|
| 61 | RUNTIME_DEP_PKGS_CSWwireshark += CSWlibcairo2 |
|---|
| 62 | RUNTIME_DEP_PKGS_CSWwireshark += CSWgeoip |
|---|
| 63 | RUNTIME_DEP_PKGS_CSWwireshark += CSWfconfig |
|---|
| 64 | |
|---|
| 65 | # No more library splitting unless absolutely necessary |
|---|
| 66 | CHECKPKG_OVERRIDES_CSWwireshark += shared-lib-package-contains-so-symlink |
|---|
| 67 | CHECKPKG_OVERRIDES_CSWwireshark += non-uniform-lib-versions-in-package |
|---|
| 68 | |
|---|
| 69 | # example, \fI/usr/local/share/wireshark/preferences\fR) on UNIX-compatible |
|---|
| 70 | CHECKPKG_OVERRIDES_CSWwireshark += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/rawshark.1 |
|---|
| 71 | CHECKPKG_OVERRIDES_CSWwireshark += file-with-bad-content|/usr/local|root/opt/csw/share/wireshark/rawshark.html |
|---|
| 72 | |
|---|
| 73 | # \&\fI/usr/local/lib/wireshark/plugins/$VERSION\fR), and then |
|---|
| 74 | # example, \fI/usr/local/share/wireshark/preferences\fR) on UNIX-compatible |
|---|
| 75 | CHECKPKG_OVERRIDES_CSWwireshark += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/wireshark.1 |
|---|
| 76 | CHECKPKG_OVERRIDES_CSWwireshark += file-with-bad-content|/usr/local|root/opt/csw/share/wireshark/wireshark.html |
|---|
| 77 | |
|---|
| 78 | # example, \fI/usr/local/share/wireshark/preferences\fR) on UNIX-compatible |
|---|
| 79 | CHECKPKG_OVERRIDES_CSWwireshark += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/tshark.1 |
|---|
| 80 | CHECKPKG_OVERRIDES_CSWwireshark += file-with-bad-content|/usr/local|root/opt/csw/share/wireshark/tshark.html |
|---|
| 81 | |
|---|
| 82 | REINPLACEMENTS += mibs |
|---|
| 83 | REINPLACE_MATCH_mibs = /usr/share/snmp/mibs |
|---|
| 84 | REINPLACE_WITH_mibs = /opt/csw/share/mibs |
|---|
| 85 | REINPLACE_FILES_mibs += epan/oids.c |
|---|
| 86 | |
|---|
| 87 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 88 | CONFIGURE_ARGS += --enable-usr-local=no |
|---|
| 89 | CONFIGURE_ARGS += --with-ssl=/opt/csw |
|---|
| 90 | |
|---|
| 91 | include gar/category.mk |
|---|
| 92 | |
|---|
| 93 | PATH := /opt/csw/gnu:$(PATH) |
|---|