summaryrefslogtreecommitdiffstats
path: root/rules/wireshark.make
blob: fbf666fcf40145c93b390e95fa1e62733fa5c492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*-makefile-*-
#
# Copyright (C) 2006 by Juergen Beisert
#           (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_WIRESHARK) += wireshark

#
# Paths and names
#
WIRESHARK_VERSION	:= 1.2.5
WIRESHARK_MD5		:= fdc1bc9815ee7ba067094edf60f7b9ff
WIRESHARK		:= wireshark-$(WIRESHARK_VERSION)
WIRESHARK_SUFFIX	:= tar.gz
WIRESHARK_URL		:= http://www.wireshark.org/download/src/all-versions/$(WIRESHARK).$(WIRESHARK_SUFFIX)
WIRESHARK_SOURCE	:= $(SRCDIR)/$(WIRESHARK).$(WIRESHARK_SUFFIX)
WIRESHARK_DIR		:= $(BUILDDIR)/$(WIRESHARK)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

WIRESHARK_PATH	:= PATH=$(CROSS_PATH)
WIRESHARK_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
WIRESHARK_AUTOCONF = \
	$(CROSS_AUTOCONF_USR) \
	$(GLOBAL_IPV6_OPTION) \
	--disable-usr-local \
	--disable-threads \
	--disable-profile-build \
	--disable-glibtest \
	--disable-editcap \
	--disable-mergecap \
	--disable-text2pcap \
	--disable-dftest \
	--disable-randpkt \
	--with-pcap=$(LIBPCAP_DIR) \
	--with-pcre \
	--without-gcrypt \
	--without-libcap

ifdef PTXCONF_WIRESHARK_TSHARK
WIRESHARK_AUTOCONF	+= --enable-tshark
else
WIRESHARK_AUTOCONF	+= --disable-tshark
endif

ifdef PTXCONF_WIRESHARK_WIRESHARK
WIRESHARK_AUTOCONF	+= --enable-wireshark
else
WIRESHARK_AUTOCONF	+= --disable-wireshark
endif

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/wireshark.targetinstall:
	@$(call targetinfo)

	@$(call install_init, wireshark)
	@$(call install_fixup, wireshark,PRIORITY,optional)
	@$(call install_fixup, wireshark,SECTION,base)
	@$(call install_fixup, wireshark,AUTHOR,"Juergen Beisert <j.bisert@pengutronix.de>")
	@$(call install_fixup, wireshark,DESCRIPTION,missing)
#
# executables
#
	@$(call install_copy, wireshark, 0, 0, 0755, -, /usr/bin/capinfos)
	@$(call install_copy, wireshark, 0, 0, 0755, -, /usr/bin/dumpcap)
ifdef PTXCONF_WIRESHARK_TSHARK
	@$(call install_copy, wireshark, 0, 0, 0755, -, /usr/bin/tshark)
endif
#
# libraries used by some of the executables
#
	@$(call install_lib, wireshark, 0, 0, 0644, libwsutil)
	@$(call install_lib, wireshark, 0, 0, 0644, libwiretap)
	@$(call install_lib, wireshark, 0, 0, 0644, libwireshark)

	@$(call install_finish, wireshark)

	@$(call touch)

# vim: syntax=make