Changeset 7014c9d for networking


Ignore:
Timestamp:
03/23/2015 09:24:05 PM (9 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
cedda6d2
Parents:
9ea70da
Message:

Update to lipcap-1.7.2 and wireshark-1.12.4

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15694 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
networking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • networking/netlibs/libpcap.xml

    r9ea70da r7014c9d  
    77  <!ENTITY libpcap-download-http "http://www.tcpdump.org/release/libpcap-&libpcap-version;.tar.gz">
    88  <!ENTITY libpcap-download-ftp  " ">
    9   <!ENTITY libpcap-md5sum        "5f14191c1a684a75532c739c2c4059fa">
    10   <!ENTITY libpcap-size          "636 KB">
    11   <!ENTITY libpcap-buildsize     "7.1 MB">
    12   <!ENTITY libpcap-time          " less than 0.1 SBU">
     9  <!ENTITY libpcap-md5sum        "4747281d4e3ebdb78bc88cdccd3ca5f7">
     10  <!ENTITY libpcap-size          "647 KB">
     11  <!ENTITY libpcap-buildsize     "8.4 MB">
     12  <!ENTITY libpcap-time          "less than 0.1 SBU">
    1313]>
    1414
     
    154154        </seg>
    155155        <seg>
    156           libpcap.{a,so}
     156          libpcap.so, libpcap.a (optional)
    157157        </seg>
    158158        <seg>
  • networking/netutils/wireshark.xml

    r9ea70da r7014c9d  
    77  <!ENTITY wireshark-download-http "https://www.wireshark.org/download/src/all-versions/wireshark-&wireshark-version;.tar.bz2">
    88  <!ENTITY wireshark-download-ftp  "ftp://ftp.uni-kl.de/pub/wireshark/src/wireshark-&wireshark-version;.tar.bz2">
    9   <!ENTITY wireshark-md5sum        "e6318b8451d4e56d39bd911da296ef19">
     9  <!ENTITY wireshark-md5sum        "acfa156fd35cb66c867b1ace992e4b5b">
    1010  <!ENTITY wireshark-size          "28 MB">
    11   <!ENTITY wireshark-buildsize     "875 MB (1.1 GB, with the Qt GUI)">
    12   <!ENTITY wireshark-time          "5.5 SBU (7.3 SBU, with the Qt GUI)">
     11  <!ENTITY wireshark-buildsize     "1.2 GB (1.4 GB, with the Qt GUI)">
     12  <!ENTITY wireshark-time          "4.3 SBU (5.3 SBU, with the Qt GUI)">
    1313]>
    1414
     
    3030    <title>Introduction to Wireshark</title>
    3131
    32     <para>The <application>Wireshark</application> package contains a network
    33     protocol analyzer, also known as a <quote>sniffer</quote>. This is useful
    34     for analyzing data captured <quote>off the wire</quote> from a live network
    35     connection, or data read from a capture file.
    36     <application>Wireshark</application> provides both a graphical and a TTY-mode
    37     front-end for examining captured network packets from over 500 protocols,
    38     as well as the capability to read capture files from many other popular
    39     network analyzers.</para>
     32    <para>
     33      The <application>Wireshark</application> package contains a network
     34      protocol analyzer, also known as a <quote>sniffer</quote>. This is useful
     35      for analyzing data captured <quote>off the wire</quote> from a live
     36      network connection, or data read from a capture file.
     37    </para>
     38
     39    <para>
     40      <application>Wireshark</application> provides both a graphical and a
     41      TTY-mode front-end for examining captured network packets from over 500
     42      protocols, as well as the capability to read capture files from many
     43      other popular network analyzers.
     44    </para>
    4045
    4146    &lfs77_checked;
     
    6772      <listitem>
    6873        <para>
    69           Required patch:
    70           <ulink url="&patch-root;/wireshark-&wireshark-version;-lua_5_3_0-1.patch"/>
     74          Optional patch:
     75          <ulink url=
     76              "&patch-root;/wireshark-&wireshark-version;-lua_5_3_0-1.patch"/>
     77          (allows to build the LUA bindings if <xref linkend="lua"/> is
     78          installed and LUA is not disabled by passing <option>--without-lua
     79          </option> to <command>configure</command>)
    7180        </para>
    7281      </listitem>
    7382      <listitem>
    74         <para>Additional Documentation:
    75            <ulink url="https://www.wireshark.org/download/docs/"/>
     83        <para>
     84          Additional Documentation:
     85          <ulink url="https://www.wireshark.org/download/docs/"/>
     86          (contains links to several different docs in a variety of formats)
    7687         </para>
    7788      </listitem>
    7889    </itemizedlist>
    79 
    80     <para>From this page you can download many different docs in a variety
    81     of formats.</para>
    8290
    8391    <bridgehead renderas="sect3">Wireshark dependencies</bridgehead>
     
    8593    <bridgehead renderas="sect4">Required</bridgehead>
    8694    <para role="required">
    87       <xref linkend="glib2"/> (to build the TTY-mode front-end only)
    88     </para>
    89 
    90     <para>Note that you need <application>Gtk+</application> or
    91     <application>Qt4</application> installed, otherwise, pass
    92     <option>--disable-wireshark</option> to the
    93     <command>configure</command> command. SBU and disk space required are larger
    94     for the Qt GUI.</para>
     95      <xref linkend="glib2"/>
     96    </para>
    9597
    9698    <bridgehead renderas="sect4">Recommended</bridgehead>
     
    113115    </para>
    114116
    115     <bridgehead renderas="sect4">Optional (to build the GUI front-end)</bridgehead>
     117    <bridgehead renderas="sect4">Optional (to build more GUI front-ends)
     118    </bridgehead>
    116119    <para role="optional">
    117120      <xref linkend="gtk2"/>,
     
    120123    </para>
    121124
    122     <para condition="html" role="usernotes">User Notes:
    123     <ulink url="&blfs-wiki;/wireshark"/></para>
     125    <note>
     126      <para>
     127        The <application>GTK+</application> GUI needs one of <xref linkend=
     128        "gtk2"/> or <xref linkend="gtk3"/>. If both are installed, GTK+3
     129        is used by default.
     130      </para>
     131
     132      <para>
     133        The <application>Qt</application> GUI needs one of <xref linkend=
     134        "qt4"/> or <xref linkend="qt5"/>. If both are installed, Qt5
     135        is used by default.
     136      </para>
     137
     138      <para>
     139        Both GTK+ and Qt GUI can be built at the same time. If you want to
     140        override the defaults, some configure switches have to be set
     141        (see <quote>Command Explanations</quote>) or some special instructions
     142        have to be issued (see below) when both Qt4 and Qt5 are installed and
     143        you want to use Qt4.  SBU and disk space required are larger for the
     144        Qt GUI. The instructions below suppose you only want to build the
     145        GTK+3 GUI.
     146      </para>
     147    </note>
     148
     149    <para condition="html" role="usernotes">
     150      User Notes: <ulink url="&blfs-wiki;/wireshark"/>
     151    </para>
    124152
    125153  </sect2>
     
    128156    <title>Kernel Configuration</title>
    129157
    130       <para>The kernel must have the Packet protocol enabled for
    131       <application>Wireshark</application> to capture live packets from the
    132       network:</para>
     158    <para>
     159      The kernel must have the Packet protocol enabled for <application>
     160      Wireshark</application> to capture live packets from the network:
     161    </para>
    133162     
    134163<screen><literal>[*] Networking support ---&gt;          [CONFIG_NET]
     
    136165        &lt;*/M&gt; Packet socket          [CONFIG_PACKET]</literal></screen>
    137166
    138       <para>If built as a module, the name is
    139       <filename>af_packet.ko</filename>.</para>
    140 
    141       <indexterm zone="wireshark wireshark-kernel">
    142         <primary sortas="d-Capturing-network-packets">Capturing network
    143         packets</primary>
    144       </indexterm>
     167    <para>
     168      If built as a module, the name is <filename>af_packet.ko</filename>.
     169    </para>
     170
     171    <indexterm zone="wireshark wireshark-kernel">
     172      <primary sortas="d-Capturing-network-packets">
     173        Capturing network packets
     174      </primary>
     175    </indexterm>
    145176
    146177  </sect2>
     
    149180    <title>Installation of Wireshark</title>
    150181
    151     <para>Optionally, fix the description of the program in the title.
    152     The first change overwrites the default "SVN Unknown" in the title
    153     and the second overwrites a utility script that resets the version
    154     to "unknown".</para>
    155 
    156 <screen><userinput>cat > svnversion.h &lt;&lt; "EOF"
     182    <para>
     183      Optionally, fix the description of the program in the title.
     184      The first change overwrites the default <quote>SVN Unknown</quote> in
     185      the title and the second overwrites a utility script that resets the
     186      version to <quote>unknown</quote>.
     187    </para>
     188
     189<screen><userinput>cat > svnversion.h &lt;&lt; "EOF" &amp;&amp;
    157190#define SVNVERSION "BLFS"
    158191#define SVNPATH "source"
     
    160193
    161194cat > make-version.pl &lt;&lt; "EOF"
    162 #!/usr/bin/perl
     195<literal>#!/usr/bin/perl</literal>
    163196EOF</userinput></screen>
    164197
    165     <para><application>Wireshark</application> is a very large and complex
    166     application.  These instructions provide additional security measures to
    167     ensure that only trusted users are allowed to view network traffic.  First,
    168     set up a system group for wireshark.  As the <systemitem
    169     class="username">root</systemitem> user:</para>
     198    <para>
     199      <application>Wireshark</application> is a very large and complex
     200      application. These instructions provide additional security measures to
     201      ensure that only trusted users are allowed to view network traffic. First,
     202      set up a system group for wireshark.  As the <systemitem
     203      class="username">root</systemitem> user:
     204    </para>
    170205
    171206<screen role="root"><userinput>groupadd -g 62 wireshark</userinput></screen>
    172207
    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>
     208    <para>
     209      If you want to build a Qt GUI and have both <application>Qt4
     210      </application> and 5 installed, issue either:
     211    </para>
    184212
    185213<screen><userinput>source setqt5</userinput></screen>
    186214
    187     <para>if you want the <application>Qt5</application> GUI built, or:</para>
     215    <para>
     216      if you want the <application>Qt5</application> GUI built, or:
     217    </para>
    188218
    189219<screen><userinput>source setqt4 &amp;&amp;
    190220sed -i 's/Qt5 Qt/Qt/' configure</userinput></screen>
    191221
    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>
     222    <para>
     223      if you want the <application>Qt4</application> GUI built.
     224    </para>
     225
     226    <para>
     227      Continue to install <application>Wireshark</application> by running
     228      the following commands:
     229    </para>
    196230
    197231<screen><userinput>patch -Np1 -i ../wireshark-&wireshark-version;-lua_5_3_0-1.patch  &amp;&amp;
    198232
    199233./configure --prefix=/usr     \
    200             --with-gtk3=yes   \
    201             --with-qt=no      \
     234            --with-gtk3       \
     235            --without-qt      \
    202236            --sysconfdir=/etc &amp;&amp;
    203237make</userinput></screen>
    204238
    205     <para>This package does not come with a test suite.</para>
    206 
    207     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     239    <para>
     240      This package does not come with a test suite.
     241    </para>
     242
     243    <para>
     244      Now, as the <systemitem class="username">root</systemitem> user:
     245    </para>
    208246
    209247<screen role="root"><userinput>make install &amp;&amp;
     
    220258   done &amp;&amp;
    221259popd &amp;&amp;
     260unset FILENAME
    222261
    223262install -v -m644 -D wireshark.desktop \
     
    230269                    /usr/share/pixmaps/wireshark</userinput></screen>
    231270
    232     <para>If you downloaded any of the documentation files from the page
    233     listed in the 'Additional Downloads', install them by issuing the following
    234     commands as the <systemitem class="username">root</systemitem> user:</para>
     271    <para>
     272      If you downloaded any of the documentation files from the page
     273      listed in the 'Additional Downloads', install them by issuing the
     274      following commands as the <systemitem class="username">root</systemitem>
     275      user:
     276    </para>
    235277
    236278<screen role="root"><userinput>install -v -m644 <replaceable>&lt;Downloaded_Files&gt;</replaceable> /usr/share/doc/wireshark-&wireshark-version;</userinput></screen>
    237279
    238   <para>Now, set ownership and permissions of sensitive applications to
    239   only allow authorized users.  As the <systemitem
    240   class="username">root</systemitem> user:</para>
     280    <para>
     281      Now, set ownership and permissions of sensitive applications to only
     282      allow authorized users.  As the <systemitem class="username">root
     283      </systemitem> user:
     284    </para>
    241285
    242286<screen role="root"><userinput>chown -v root:wireshark /usr/bin/{tshark,dumpcap} &amp;&amp;
    243287chmod -v 6550 /usr/bin/{tshark,dumpcap}</userinput></screen>
    244288
    245   <para>Finally, add any users to the wireshark group (as root user):</para>
     289    <para>
     290      Finally, add any users to the wireshark group (as <systemitem class=
     291      "username">root</systemitem> user):
     292    </para>
    246293
    247294<screen role="root"><userinput>usermod -a -G wireshark &lt;username&gt;</userinput></screen>
     
    252299    <title>Command Explanations</title>
    253300
    254     <para><command>sed -i 's/Qt5 Qt/Qt/' ...</command>: This command is required
    255     because, without it, libraries and includes from
    256     <application>Qt5</application> are found and used first, if both versions
    257     are installed, when trying to build with <application>Qt4</application>,
    258     and <command>make</command> does not complete.</para>
    259 
    260     <para><option>--disable-wireshark</option>: This option is required if you
    261     have <application>GTK+</application> installed but do not want to build
    262     the GTK+ and Qt GUIs.</para>
    263 
    264     <para><parameter>--with-gtk3=yes</parameter>: This switch is required
    265     to use <application>GTK+3</application> for the GUI, if you are using
    266     <parameter>--with-qt=no</parameter>. Change gtk3 by gtk2,to use
    267     <application>GTK+3</application> for the GUI.</para>
    268 
    269     <para><parameter>--with-qt=no</parameter>: This switch disables build of
    270     the Qt GUI. Replace "no" by "yes", if you want it to be built.</para>
    271 
    272     <para><option>--with-gtk2=yes</option>: This option is required if you want
    273     to use <application>GTK+</application>2, instead of 3, for the GUI. Notice
    274     that the GUI for only one GTK+ version (either 2 or 3) can be built.</para>
     301    <para>
     302      <command>sed -i 's/Qt5 Qt/Qt/' ...</command>: This command is required
     303      because, without it, libraries and includes from
     304      <application>Qt5</application> are found and used first, if both versions
     305      are installed, when trying to build with <application>Qt4</application>,
     306      and <command>make</command> does not complete.
     307    </para>
     308
     309    <para>
     310      <parameter>--with-gtk3</parameter>: By default, the build machinery
     311      will build a GUI for both Qt and GTK+, if those libraries are found.
     312      If Qt is installed and you do not want the GUI for it to be built,
     313      you need to pass <parameter>--without-qt</parameter> to the configure
     314      script. That overrides the default, so that you must specify
     315      <parameter>--with-gtk3</parameter>  or <parameter>--with-gtk2</parameter>
     316      in order to have the GTK+ GUI built.
     317    </para>
     318
     319    <para>
     320      <parameter>--without-qt</parameter>: disables building of the Qt GUI.
     321    </para>
     322
     323    <para>
     324      <option>--disable-wireshark</option>: Use this switch if you
     325      have <application>GTK+</application> installed but do not want to build
     326      any of the GUIs.
     327    </para>
     328
     329    <para>
     330      <option>--with-gtk2</option>: Use this option if you want
     331      the <application>GTK+2</application> GUI.
     332      Notice that the GUI for only one GTK+ version (either 2 or 3) can be
     333      built.
     334    </para>
    275335
    276336  </sect2>
     
    353413        <seg>capinfos, captype, dftest, dumpcap, editcap, mergecap, randpkt,
    354414        rawshark, reordercap, text2pcap, tshark,
    355         wireshark and wireshark-qt</seg>
     415        wireshark, and optionally wireshark-qt</seg>
    356416        <seg>libfiletap.so, libwireshark.so, libwiretap.so, libwsutil.so, and
    357417        numerous modules under /usr/lib/wireshark/plugins</seg>
Note: See TracChangeset for help on using the changeset viewer.