Whamcloud - gitweb
78c4904c07e0ed98c552fe0b8eb0ad2d0ec7a29b
[fs/lustre-release.git] / lustre / contrib / wireshark / wsconfig.sh
1 # This file contain all configuration information to build
2 # `lustre-release/lustre/contrib/wireshark'
3
4 ###########################################################################
5 #                                                                         #
6 #    DOWNLOAD CONFIGURATION
7 #                                                                         #
8 ###########################################################################
9
10 ##   BEGIN: -can-edit   ##
11     # URL of directory containing all source tar balls
12 export WS_DOWNLOAD_BASE_URL='http://wiresharkdownloads.riverbed.com/wireshark/src/all-versions'
13
14     # wireshark verion to be used
15 export WS_VERSION='1.6.8'
16 ##   END  : -can-edit   ##
17
18     # URL of the wireshark source code tarball
19     # Implicit assumption: Wireshark release names follow the nameing
20     # convention coded in the content of the following varialble
21 export WS_SOURCE_URL="${WS_DOWNLOAD_BASE_URL}/wireshark-${WS_VERSION}.tar.bz2"
22
23
24 ###########################################################################
25 #                                                                         #
26 #                   BUILD ENVIRONMENT                                     #
27 #                                                                         #
28 ###########################################################################
29
30 ##   BEGIN: -can-edit   ##
31     # Space separate list of RPMs needed to be installed for 
32     # compilation of wireshark
33
34     # Package name(s) (can) vary between differnt distributions
35     # If distributions 'marked' by same release file, content has to
36     # parsed and variable PREREQUISITE_RPMS has to be set accoringly to
37     # package name(s) used for each distro.
38 if [ -r /etc/redhat-release ] ; then
39     export PREREQUISITE_RPMS='gtk2 gtk2-devel glib2 libpcap libpcap-devel perl'
40 elif [ -r /etc/SuSE-release ] ; then
41     export PREREQUISITE_RPMS='gtk2 gtk2-devel glib2 libpcap0 libpcap-devel perl'
42 fi
43
44     # Include and linker flags needed to Lustre/LNet
45     # Only version indepent information should be added here
46     # (Back ticked expression will be evaluated by make command)
47 export PLUGIN_COMPILE_FLAGS='`pkg-config --libs --cflags glib-2.0`'
48 ##   END  : -can-edit   ##
49
50     # Top-level directory to be used to unpack/compile/install wireshark/lustre-git-repo
51 export BUILD_DIR=`pwd`
52
53     # Directory location of wireshark source code
54 export WS_HOME="${BUILD_DIR}/wireshark-${WS_VERSION}"
55
56     # (Relative) path of the wireshark contribution directory
57 export LUSTRE_WS_DIR='lustre-release/lustre/contrib/wireshark'
58
59     # RPM internal name for the Lustre/LNet plugins
60 export PLUGIN_RPM_NAME='lustre-wireshark-plugins'
61
62     # TAR command + options to be used to create a bzip2 tarball
63 export TAR='/bin/tar jcpf '
64     # TAR command + options to be used to unpack a bzip2 tarball
65 export UNTAR='/bin/tar jxpf '