Changeset 6a66d5e


Ignore:
Timestamp:
08/14/2014 02:57:37 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
Children:
75d7adf3
Parents:
5d5b26c5
Message:

Switch to qtchooser and hopefully simplify wireshark instructions.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13910 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
networking/netutils
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • networking/netutils/netutils.xml

    r5d5b26c5 r6a66d5e  
    3030  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="whois.xml"/>
    3131  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wicd-systemd.xml"/>
    32   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wireshark.xml"/>
     32  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wireshark-systemd.xml"/>
    3333
    3434</chapter>
  • networking/netutils/wireshark-systemd.xml

    r5d5b26c5 r6a66d5e  
    99  <!ENTITY wireshark-md5sum        "8dcfe451d8769901129809d2e19c1fb7">
    1010  <!ENTITY wireshark-size          "28 MB">
    11   <!ENTITY wireshark-buildsize     "875 MB">
     11  <!ENTITY wireshark-buildsize     "875 MB (up to 1.5 GB)">
    1212  <!ENTITY wireshark-time          "5.0 SBU">
    1313]>
     
    8282    </para>
    8383
    84     <para>Note that you need <application>Gtk+</application> or
    85     <application>Qt4</application> installed, otherwise, pass
     84    <para>Note that you need <application>GTK+</application> or
     85    <application>Qt</application> installed, otherwise, pass
    8686    <option>--disable-wireshark</option> to the
    87     <command>configure</command> command. SBU and disk space required are larger
    88     for the Qt GUI.</para>
     87    <command>configure</command> command.</para>
    8988
    9089    <bridgehead renderas="sect4">Recommended</bridgehead>
    9190    <para role="recommended">
    92       <xref linkend="gtk3"/> (to build the <application>Gtk+3</application>
     91      <xref linkend="gtk3"/> (to build the <application>GTK+3</application>
    9392      GUI) and
    9493      <xref linkend="libpcap"/> (required to capture data)
     
    107106    </para>
    108107
    109     <bridgehead renderas="sect4">Optional (to build the GUI front-end)</bridgehead>
     108    <bridgehead renderas="sect4">Optional (to build different GUI front-ends)</bridgehead>
    110109    <para role="optional">
    111       <xref linkend="gtk2"/>,
    112       <xref linkend="qt4"/>, or
     110      <xref linkend="gtk2"/> and
     111      <xref linkend="qt4"/> or
    113112      <xref linkend="qt5"/>
    114113    </para>
     
    171170<screen><userinput>usermod -a -G wireshark <replaceable>&lt;username&gt;</replaceable></userinput></screen>
    172171
    173     <para>If you have <application>GTK+2</application> and 3, and
    174     <application>Qt4</application> and 5, one GUI linked to
    175     <application>GTK+3</application> and another one linked to
    176     <application>Qt5</application> are built, by default. Instead, we chose to
    177     only build the <application>GTK+3</application> GUI, as the BLFS default.
    178     If you prefer otherwise, some modifications are mecessary. For
    179     modifications in the <command>configure</command> switches, see
    180     "Command Explanations".</para>
    181 
    182     <para>If you want to build a Qt GUI and have both
    183     <application>Qt4</application> and 5 installed, issue either:</para>
    184 
    185 <screen><userinput>source setqt5</userinput></screen>
    186 
    187     <para>if you want the <application>Qt5</application> GUI built, or:</para>
    188 
    189 <screen><userinput>source setqt4 &amp;&amp;
    190 sed -i 's/Qt5 Qt/Qt/' configure</userinput></screen>
    191 
    192     <para>if you want the <application>Qt4</application> GUI built.</para>
    193 
    194     <para>Continue to install <application>Wireshark</application> by running
    195     the following commands:</para>
     172    <para>
     173      If you have both <application>GTK+2</application> and
     174      <application>GTK+3</application>, and both <application>Qt4</application>
     175      and <application>Qt5</application> installed, the
     176      <application>GTK+</application> GUI will be linked against
     177      <application>GTK+3</application> and <application>Qt</application> GUI
     178      will be linked against <application>Qt5</application>. The instructions
     179      below only cover building of the <application>GTK+3</application> GUI.
     180      Additional modifications must be made to the commands below if building
     181      a GUI front-end against different supported toolkits. Examine "Command
     182      Explanations" section for information on necessary modifications to the
     183      <command>configure</command> command.
     184    </para>
     185
     186    <para>
     187      If you want to build the <application>Qt5</application> GUI and have both
     188      <application>Qt4</application> and <application>Qt5</application>
     189      installed, issue:
     190    </para>
     191
     192<screen><userinput>export QT_SELECT=qt5</userinput></screen>
     193
     194    <para>
     195      If you want to build the <application>Qt4</application> GUI and have both
     196      <application>Qt4</application> and <application>Qt5</application>
     197      installed, issue:
     198    </para>
     199
     200<screen><userinput>sed -i "s:Qt5 Qt:Qt:g" configure</userinput></screen>
     201
     202    <para>
     203      Install <application>Wireshark</application> by running the following
     204      commands:
     205    </para>
    196206
    197207<screen><userinput>./configure --prefix=/usr     \
    198             --with-gtk3=yes  \
    199             --with-qt=no      \
    200             --sysconfdir=/etc &amp;&amp;
     208            --sysconfdir=/etc \
     209            --with-gtk3       \
     210            --without-qt      &amp;&amp;
    201211make</userinput></screen>
    202212
     
    207217<screen role="root"><userinput>make install &amp;&amp;
    208218
    209 install -v -m755 -d /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
    210 install -v -m755 -d /usr/share/pixmaps/wireshark &amp;&amp;
    211 
    212 install -v -m644    README{,.linux} doc/README.* doc/*.{pod,txt} \
    213                     /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
     219install -v -dm755 /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
     220install -v -m644  README{,.linux} doc/README.* doc/*.{pod,txt} \
     221                  /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
    214222
    215223pushd /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
    216224   for FILENAME in ../../wireshark/*.html; do
    217       ln -s -v -f $FILENAME .
     225      ln -sfv $FILENAME
    218226   done &amp;&amp;
    219227popd &amp;&amp;
    220228
    221 install -v -m644 -D wireshark.desktop \
    222                     /usr/share/applications/wireshark.desktop &amp;&amp;
    223 
    224 install -v -m644 -D image/wsicon48.png \
    225                     /usr/share/pixmaps/wireshark.png &amp;&amp;
    226 
    227 install -v -m644    image/*.{png,ico,xpm,bmp} \
    228                     /usr/share/pixmaps/wireshark</userinput></screen>
     229if [ -e /usr/bin/wireshark ]; then
     230   install -v -Dm644 wireshark.desktop /usr/share/applications/wireshark.desktop
     231fi &amp;&amp;
     232
     233if [ -e /usr/bin/wireshark-qt ]; then
     234   install -v -Dm644 wireshark.desktop /usr/share/applications/wireshark-qt.desktop &amp;&amp;
     235   sed -i "/Exec/s:wireshark:&amp;-qt:g" /usr/share/applications/wireshark-qt.desktop
     236fi &amp;&amp;
     237
     238for size in 16 24 32 48 64 128 256 ; do
     239    install -v -Dm644 image/wsicon${size}.png \
     240                      /usr/share/icons/hicolor/${size}x${size}/apps/wireshark.png &amp;&amp;
     241    install -v -Dm644 image/WiresharkDoc-${size}.png \
     242                      /usr/share/icons/hicolor/${size}x${size}/mimetypes/application-vnd.tcpdump.pcap.png
     243done &amp;&amp;
     244
     245unset size &amp;&amp;
     246unset QT_SELECT</userinput></screen>
    229247
    230248    <para>If you downloaded any of the documentation files from the page
     
    250268    <title>Command Explanations</title>
    251269
    252     <para><command>sed -i 's/Qt5 Qt/Qt/' ...</command>: This command is required
    253     because, without it, libraries and includes from
    254     <application>Qt5</application> are found and used first, if both versions
    255     are installed, when trying to build with <application>Qt4</application>,
    256     and <command>make</command> does not complete.</para>
    257 
    258     <para><option>--disable-wireshark</option>: This option is required if you
    259     have <application>GTK+</application> installed but do not want to build
    260     the GTK+ and Qt GUIs.</para>
    261 
    262     <para><parameter>--with-gtk3=yes</parameter>: This switch is required
    263     to use <application>GTK+3</application> for the GUI, if you are using
    264     <parameter>--with-qt=no</parameter>. Change gtk3 by gtk2,to use
    265     <application>GTK+3</application> for the GUI.</para>
    266 
    267     <para><parameter>--with-qt=no</parameter>: This switch disables build of
    268     the Qt GUI. Replace "no" by "yes", if you want it to be built.</para>
    269 
    270     <para><option>--with-gtk2=yes</option>: This option is required if you want
    271     to use <application>GTK+</application>2, instead of 3, for the GUI. Notice
    272     that the GUI for only one GTK+ version (either 2 or 3) can be built.</para>
     270    <para>
     271      <parameter>--with-gtk3</parameter>: This switch enables building
     272      of the <application>GTK+3</application> GUI front-end. Replace it
     273      with <parameter>--with-gtk2</parameter> if you have both
     274      <application>GTK+2</application> and <application>GTK+3</application>
     275      installed but wish to use <application>GTK+2</application> to build
     276      the GUI front-end.
     277    </para>
     278
     279    <para>
     280      <parameter>--without-qt</parameter>: This switch disables building
     281      of the <application>Qt</application> GUI front-end. Replace it with
     282      <parameter>--with-qt</parameter> if you have installed either
     283      <application>Qt4</application> or <application>Qt5</application>
     284      and wish to build the <application>Qt</application> GUI front-end.
     285    </para>
     286
     287    <para>
     288      <option>--disable-wireshark</option>: Use this switch if you don't
     289      want to build the GUI front-end.
     290    </para>
    273291
    274292  </sect2>
     
    304322      graphical interfaces.</para>
    305323
    306     </sect3>
    307 
    308     <sect3>
    309       <title>Desktop file for the Qt GUI</title>
    310 
    311       <para>If Qt GUI was built and you wish an entry in the desktop menu,
    312       there are two possibilities (instructions must be run as root).</para>
    313 
    314       <para>If only the Qt GUI was built:</para>
    315 
    316 <screen role="root"><userinput>mv -v /usr/share/applications/wireshark.desktop \
    317       /usr/share/applications/wireshark-qt.desktop</userinput></screen>
    318 
    319       <para>If both, GTK+ and Qt GUIs were built:</para>
    320 
    321 <screen role="root"><userinput>cp -v /usr/share/applications/wireshark.desktop \
    322       /usr/share/applications/wireshark-qt.desktop</userinput></screen>
    323 
    324       <para>Now, fix it for <command>wireshark-qt</command>:</para>
    325 
    326 <screen role="root"><userinput>sed -e 's/ireshark/&amp;-qt/' \
    327     -e 's/^\(Icon=wireshark\)-qt/\1/' \
    328     -i /usr/share/applications/wireshark-qt.desktop</userinput></screen>
    329 
    330324      <note>
    331325        <para>If you want to look at packets, make sure you don't filter
     
    349343
    350344      <seglistitem>
    351         <seg>capinfos, captype, dftest, dumpcap, editcap, mergecap, randpkt,
    352         rawshark, reordercap, text2pcap, tshark,
    353         wireshark and wireshark-qt</seg>
    354         <seg>libfiletap.so, libwireshark.so, libwiretap.so, libwsutil.so, and
    355         numerous modules under /usr/lib/wireshark/plugins</seg>
    356         <seg>/usr/lib/wireshark, /usr/share/doc/wireshark-&wireshark-version;,
    357         /usr/share/pixmaps/wireshark, and /usr/share/wireshark</seg>
     345        <seg>
     346          capinfos, captype, dftest, dumpcap, editcap, mergecap,
     347          randpkt, rawshark, reordercap, text2pcap, tshark,
     348          wireshark and wireshark-qt
     349        </seg>
     350        <seg>
     351          libfiletap.so, libwireshark.so, libwiretap.so and libwsutil.so
     352        </seg>
     353        <seg>
     354          /usr/lib/wireshark,
     355          /usr/share/doc/wireshark-&wireshark-version; and
     356          /usr/share/wireshark
     357        </seg>
    358358      </seglistitem>
    359359    </segmentedlist>
     
    511511
    512512      <varlistentry id="libwireshark">
    513         <term><filename class='libraryfile'>libwireshark.so</filename></term>
     513        <term><filename class="libraryfile">libwireshark.so</filename></term>
    514514        <listitem>
    515515          <para>contains functions used by the
     
    523523
    524524      <varlistentry id="libwiretap">
    525         <term><filename class='libraryfile'>libwiretap.so</filename></term>
     525        <term><filename class="libraryfile">libwiretap.so</filename></term>
    526526        <listitem>
    527527          <para>is a library being developed as a future replacement for
    528           <filename class='libraryfile'>libpcap</filename>, the current
     528          <filename class="libraryfile">libpcap</filename>, the current
    529529          standard Unix library for packet capturing. For more information,
    530530          see the <filename>README</filename> file in the source
    531           <filename class='directory'>wiretap</filename> directory.</para>
     531          <filename class="directory">wiretap</filename> directory.</para>
    532532          <indexterm zone="wireshark libwiretap">
    533533            <primary sortas="c-libwiretap">libwiretap.so</primary>
Note: See TracChangeset for help on using the changeset viewer.