<?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 dvd-rw-tools-download-http "http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-&dvd-rw-tools-version;.tar.gz">
  <!ENTITY dvd-rw-tools-download-ftp  " ">
  <!ENTITY dvd-rw-tools-md5sum        "8acb3c885c87f6838704a0025e435871">
  <!ENTITY dvd-rw-tools-size          "138 KB">
  <!ENTITY dvd-rw-tools-buildsize     "1.7 MB">
  <!ENTITY dvd-rw-tools-time          "less than 0.1 SBU">
]>

<sect1 id="dvd-rw-tools" xreflabel="dvd+rw-tools-&dvd-rw-tools-version;">
  <?dbhtml filename="dvd-rw-tools.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-27 19:21:33 -0500 (Fri, 27 Feb 2015) $</date>
  </sect1info>

  <title>dvd+rw-tools-&dvd-rw-tools-version;</title>

  <indexterm zone="dvd-rw-tools">
    <primary sortas="a-dvd-rw-tools">dvd+rw-tools</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to dvd+rw-tools</title>

    <para>
        The <application>dvd+rw-tools</application> package contains
    several utilities to master the DVD media, both +RW/+R and -R[W]. The
    principle tool is <command>growisofs</command> which provides a way to both
    lay down <emphasis role='strong'>and</emphasis> grow an ISO9660 file system
    on (as well as to burn an arbitrary pre-mastered image to) all supported
    DVD media. This is useful for creating a new DVD or adding to an existing
    image on a partially burned DVD.
        </para>

    &lfs77_checked;

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

    <bridgehead renderas="sect3">dvd+rw-tools Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para>
      Though not required during the build, you must have installed a package
      which provides the <command>xorrisofs</command> command, such as
      <xref linkend="libisoburn"/>, or the <command>growisofs</command> command
      will not function properly, rendering the entire package useless.
    </para>

    <para condition="html" role="usernotes">
      User Notes: <ulink url="&blfs-wiki;/dvd+rw-tools"/>
    </para>
  </sect2>

  <sect2 role="installation">
    <title>Installation of dvd+rw-tools</title>

    <para>
      Install <application>dvd+rw-tools</application> by running the following
      commands:
    </para>

<screen><userinput>sed -i '/stdlib/a #include &lt;limits.h&gt;' transport.hxx &amp;&amp;
sed -i 's#mkisofs"#xorrisofs"#' growisofs.c &amp;&amp;
sed -i 's#mkisofs#xorrisofs#;s#MKISOFS#XORRISOFS#' growisofs.1 &amp;&amp;

make all rpl8 btcflash</userinput></screen>

    <para>
      This package does not come with a test suite.
    </para>

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

<screen role="root"><userinput>make prefix=/usr install &amp;&amp;
install -v -m644 -D index.html \
    /usr/share/doc/dvd+rw-tools-&dvd-rw-tools-version;/index.html</userinput></screen>
  </sect2>

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

    <para>
      <command>sed -i '/stdlib/a #include &lt;limits.h&gt;' ...</command>: This
      sed includes <filename>limits.h</filename>, one of the kernel headers.
      This is needed due to a change in the 2.6.23 kernel headers.
    </para>

    <para>
      <command>sed -i 's#mkisofs"#xorrisofs"#' growisofs.c</command>: This sed
      changes the code to use <command>xorrisofs</command> from
      <xref linkend="xorriso"/>. The default was for it to use
      <command>mkisofs</command> from
      <ulink url="http://cdrecord.berlios.de/private/cdrecord.html">Cdrtools</ulink>.
    </para>

    <para>
      <command>sed -i 's#mkisofs#xorrisofs#;s#MKISOFS#XORRISOFS#'
      growisofs.1</command>: This sed fixes the man page to account for the
      above change.
    </para>

    <para>
      <command>make all rpl8 btcflash</command>: This command uses additional
      targets so that all the utilities are built.
    </para>
  </sect2>

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

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

      <seglistitem>
        <seg>btcflash, dvd+rw-booktype, dvd+rw-format, dvd+rw-mediainfo,
        dvd-ram-control, growisofs, and rpl8</seg>
        <seg>None</seg>
        <seg>/usr/share/doc/dvd+rw-tools-&dvd-rw-tools-version;</seg>
      </seglistitem>
    </segmentedlist>

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

      <varlistentry id="growisofs">
        <term><command>growisofs</command></term>
        <listitem>
          <para>
            is a combined <command>mkisofs</command> frontend/DVD recording
            program.
          </para>
          <indexterm zone="dvd-rw-tools growisofs">
            <primary sortas="b-growisofs">growisofs</primary>
          </indexterm>
        </listitem>
      </varlistentry>
    </variablelist>
  </sect2>
</sect1>
