<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY nmap-download-http "http://nmap.org/dist/nmap-&nmap-version;.tar.bz2">
<!--  <!ENTITY nmap-download-ftp  "&gentoo-ftp-repo;/nmap-&nmap-version;.tar.bz2">-->
  <!ENTITY nmap-download-ftp  " ">
  <!ENTITY nmap-md5sum        "edfe81f6763223c0a29bfa15a8526e2a">
  <!ENTITY nmap-size          "7.5 MB">
  <!ENTITY nmap-buildsize     "133 MB (additional 1 MB for the tests)">
  <!ENTITY nmap-time          "1.3 SBU (additional 0.1 SBU for the tests)">
]>

<sect1 id="nmap" xreflabel="Nmap-&nmap-version;">
  <?dbhtml filename="nmap.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-26 20:29:00 -0500 (Thu, 26 Feb 2015) $</date>
  </sect1info>

  <title>Nmap-&nmap-version;</title>

  <indexterm zone="nmap">
    <primary sortas="a-Nmap">Nmap</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to Nmap</title>

    <para><application>Nmap</application> is a utility for network exploration
    and security auditing. It supports ping scanning, port scanning and
    TCP/IP fingerprinting.</para>

    &lfs77_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Download (HTTP): <ulink url="&nmap-download-http;"/></para>
      </listitem>
      <listitem>
        <para>Download (FTP): <ulink url="&nmap-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>Download MD5 sum: &nmap-md5sum;</para>
      </listitem>
      <listitem>
        <para>Download size: &nmap-size;</para>
      </listitem>
      <listitem>
        <para>Estimated disk space required: &nmap-buildsize;</para>
      </listitem>
      <listitem>
        <para>Estimated build time: &nmap-time;</para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">Nmap Dependencies</bridgehead>

    <bridgehead renderas="sect4">Recommended</bridgehead>
    <note>
      <para>
        These packages are recommended because if they're not installed, the
        build process will compile and link against its own (often older)
        version.
      </para>
    </note>

    <para role="recommended">
      <xref linkend="libpcap"/>,
<!--  <xref linkend="lua"/>, broken with lua-5.3.0-->
      <xref linkend="pcre"/> and
      <xref linkend="liblinear"/>
<!-- This is not recommended, see: http://nmap.org/svn/libdnet-stripped/NMAP_MODIFICATIONS
      <ulink url="http://code.google.com/p/libdnet/">libdnet</ulink>
-->
    </para>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional">
      <xref linkend="openssl"/>,
      <xref linkend="pygtk"/> (required for <command>zenmap</command>),
      <xref linkend="python2"/> (required for <command>ndiff</command>) and
      <xref linkend="subversion"/> (required for <command>nmap-update</command>)
    </para>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/nmap"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of Nmap</title>

    <note>
      <para>
        This package does not support parallel build.
      </para>
    </note>

    <para>Install <application>Nmap</application> by running the following
    commands:</para>

<screen><userinput>./configure --prefix=/usr --with-liblua=included &amp;&amp;
make -j1</userinput></screen>

    <para>If you wish to run the test suite, run the following command:</para>

<screen><userinput>sed -i 's/lib./lib/' zenmap/test/run_tests.py</userinput></screen>

    <para>To test the results, issue: <command>make check</command> as the
    <systemitem class="username">root</systemitem> user. Tests need a
    graphical session.</para>

    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para><parameter>--with-liblua=included</parameter>: This switch is
    required to fix compilation with <application>lua</application> 5.3.</para>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>
          ncat, ndiff, nmap, nmapfe, nmap-update, nping, uninstall_zenmap,
          xnmap and zenmap
        </seg>
<!--    <seg>/usr/lib/python&python2-version;/site-packages/</seg>-->
        <seg>
          None
        </seg>
        <seg>
          /usr/lib/python&python2-majorver;/site-packages/{radialnet,zenmapCore,zenmapGUI},
          /usr/share/ncat, /usr/share/nmap and /usr/share/zenmap
        </seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="ncat">
        <term><command>ncat</command></term>
        <listitem>
          <para>is a utility for reading and writing data across networks from
          the command line.</para>
          <indexterm zone="nmap ncat">
            <primary sortas="b-ncat">ncat</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="ndiff">
        <term><command>ndiff</command></term>
        <listitem>
          <para>is a tool to aid in the comparison of Nmap scans.</para>
          <indexterm zone="nmap ndiff">
            <primary sortas="b-ndiff">ndiff</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="nmap-prog">
        <term><command>nmap</command></term>
        <listitem>
          <para>is a utility for network exploration and security auditing. It
          supports ping scanning, port scanning and TCP/IP
          fingerprinting.</para>
          <indexterm zone="nmap nmap-prog">
            <primary sortas="b-nmap">nmap</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="nmapfe">
        <term><command>nmapfe</command></term>
        <listitem>
          <para>is a symbolic link to <command>zenmap</command>.</para>
          <indexterm zone="nmap nmapfe">
            <primary sortas="b-nmapfe">nmapfe</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="nmap-update">
        <term><command>nmap-update</command></term>
        <listitem>
          <para>is an updater for Nmap architecture-independent files.</para>
          <indexterm zone="nmap nmap-update">
            <primary sortas="b-nmap-update">nmap-update</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="xnmap">
        <term><command>xnmap</command></term>
        <listitem>
          <para>is a symbolic link to <command>zenmap</command>.</para>
          <indexterm zone="nmap xnmap">
            <primary sortas="f-xnmap">xnmap</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="zenmap">
        <term><command>zenmap</command></term>
        <listitem>
          <para>is a Python based graphical nmap frontend viewer.</para>
          <indexterm zone="nmap zenmap">
            <primary sortas="f-zenmap">zenmap</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
