Rox Filer is a gtk2 file browser with few dependencies but it is not
a straightforward CMMI to install it. I think it would be appreciated
by the people who read the book so I've made the attached patch which
will add it to the book. Please apply.

Andy
diff -Naur BLFS/general/genutils/genutils.xml BLFS-rox/general/genutils/genutils.xml
--- BLFS/general/genutils/genutils.xml	2010-03-18 19:16:10.000000000 +0000
+++ BLFS-rox/general/genutils/genutils.xml	2010-03-30 14:50:49.000000000 +0100
@@ -44,5 +44,6 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="pinentry.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gperf.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="rarian.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="rox-filer.xml"/>
 
 </chapter>
diff -Naur BLFS/general/genutils/rox-filer.xml BLFS-rox/general/genutils/rox-filer.xml
--- BLFS/general/genutils/rox-filer.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS-rox/general/genutils/rox-filer.xml	2010-03-30 18:02:36.000000000 +0100
@@ -0,0 +1,163 @@
+<?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 rox-filer-download-http "http://sourceforge.net/projects/rox/files/rox/&rox-filer-version;/rox-filer-&rox-filer-version;.tar.bz2/download";>
+  <!ENTITY rox-filer-download-ftp  " ">
+  <!ENTITY rox-filer-md5sum        "d514b409e074ad77488aa7b44372aad1">
+  <!ENTITY rox-filer-size          "1.8 MB">
+  <!ENTITY rox-filer-buildsize     "3.7 MB">
+  <!ENTITY rox-filer-time          "0.3 SBU">
+]>
+
+<sect1 id="rox-filer" xreflabel="rox-filer-&rox-filer-version;">
+  <?dbhtml filename="rox-filer.html"?>
+
+  <sect1info>
+    <othername>$LastChangedBy: nobody $</othername>
+    <date> </date>
+  </sect1info>
+
+  <title>rox-filer-&rox-filer-version;</title>
+
+  <indexterm zone="rox-filer">
+    <primary sortas="a-rox-filer">rox-filer</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title>Introduction to rox-filer</title>
+
+    <para><application>Rox-filer</application> is a fast, lightweight, gtk2 file 
+    manager.</para>
+
+    <bridgehead renderas="sect3">Package Information</bridgehead>
+    <itemizedlist spacing="compact">
+      <listitem>
+        <para>Download (HTTP): <ulink url="&rox-filer-download-http;"/></para>
+      </listitem>
+      <listitem>
+        <para>Download (FTP): <ulink url="&rox-filer-download-ftp;"/></para>
+      </listitem>
+      <listitem>
+        <para>Download MD5 sum: &rox-filer-md5sum;</para>
+      </listitem>
+      <listitem>
+        <para>Download size: &rox-filer-size;</para>
+      </listitem>
+      <listitem>
+        <para>Estimated disk space required: &rox-filer-buildsize;</para>
+      </listitem>
+      <listitem>
+        <para>Estimated build time: &rox-filer-time;</para>
+      </listitem>
+    </itemizedlist>
+
+    <bridgehead renderas="sect3">rox-filer Dependencies</bridgehead>
+
+    <bridgehead renderas="sect4">Required</bridgehead>
+    <para role="required">
+    <xref linkend="libglade"/> and
+    <xref linkend="shared-mime-info"/></para>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of rox-filer</title>
+
+    <para>Compile <application>rox-filer</application> with the following
+    commands:</para>
+
+<screen><userinput>    cd ROX-Filer &amp;&amp;
+    sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":' src/main.c &amp;&amp;
+    mkdir build &amp;&amp;
+    cd build &amp;&amp;
+    ../src/configure &amp;&amp;
+    make</userinput></screen>
+
+    <para>Now install it as the <systemitem class="username">root</systemitem>
+    user:</para>
+
+<screen role="root"><userinput>    mkdir /usr/share/rox &amp;&amp;
+    mv ../{Help,images,Messages,Options.xml,ROX,style.css,.DirIcon} \
+    /usr/share/rox &amp;&amp;
+    install -m644 ../../rox.1 /usr/share/man/man1 &amp;&amp;
+    mv ../ROX-Filer /usr/bin/rox &amp;&amp;
+    chown -R root:root /usr/{bin,share}/rox &amp;&amp;
+    cd /usr/share/rox/ROX/MIME &amp;&amp;
+    ln -sv text-x-{diff,patch}.png &amp;&amp;
+    ln -sv application-x-font-{afm,type1}.png &amp;&amp;
+    ln -sv application-xml{,-dtd}.png &amp;&amp;
+    ln -sv application-xml{,-external-parsed-entity}.png &amp;&amp;
+    ln -sv application-{,rdf+}xml.png &amp;&amp;
+    ln -sv application-x{ml,-xbel}.png &amp;&amp;
+    ln -sv application-{x-shell,java}script.png &amp;&amp;
+    ln -sv application-x-{bzip,xz}-compressed-tar.png &amp;&amp;
+    ln -sv application-x-{bzip,lzma}-compressed-tar.png &amp;&amp;
+    ln -sv application-x-{bzip-compressed-tar,lzo}.png &amp;&amp;
+    ln -sv application-x-{bzip,xz}.png &amp;&amp;
+    ln -sv application-x-{gzip,lzma}.png &amp;&amp;
+    ln -sv application-{msword,rtf}.png</userinput></screen>
+
+  </sect2>
+
+  <sect2 role="commands">
+    <title>Command Explanations</title>
+
+    <para>
+    <command>sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":' src/main.c
+    </command>: This command hard codes /usr/share/rox as the directory for its 
+    private files. Without this sed rox needs the environment variable $APP_DIR 
+    to be set.</para>
+
+    <para><command>ln -sv application-...</command>: These commands duplicate 
+    the icons for some common mime types. Without these links 
+    <application>rox</application> would just display the default &quot;unkown 
+    binary blob&quot; icon.</para>
+
+  </sect2>
+  
+  <sect2 role="configuration">
+    <title>Configuring Rox Filer</title>
+      <para><application>Rox</application> itself doesn't need any configuration
+      but if you want it to be able to update its view of the contents of a 
+      directory when changes are made to files by other applications you will 
+      need to enable dnotify support (on the filesystems menu in make 
+      menuconfig) in your kernel.</para>
+  </sect2>
+
+  <sect2 role="content">
+    <title>Contents</title>
+
+    <segmentedlist>
+      <segtitle>Installed Programs</segtitle>
+      <segtitle>Installed Directories</segtitle>
+
+      <seglistitem>
+        <seg>rox</seg>
+        <seg>/usr/share/rox</seg>
+      </seglistitem>
+    </segmentedlist>
+
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
+
+      <varlistentry id="rox-filer-prog">
+        <term><command>rox</command></term>
+        <listitem>
+          <para>is the rox file manager.</para>
+          <indexterm zone="rox-filer rox-filer-prog">
+            <primary sortas="b-rox-filer">rox-filer</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+
+    </variablelist>
+
+  </sect2>
+
+</sect1>
diff -Naur BLFS/general.ent BLFS-rox/general.ent
--- BLFS/general.ent	2010-03-30 14:50:17.000000000 +0100
+++ BLFS-rox/general.ent	2010-03-30 14:50:49.000000000 +0100
@@ -235,6 +235,7 @@
 <!ENTITY pinentry-version             "0.7.6">
 <!ENTITY gperf-version                "3.0.4">
 <!ENTITY rarian-version               "0.8.1">
+<!ENTITY rox-filer-version            "2.9">
 
 <!-- Chapter 11 -->
 <!ENTITY gpm-version                  "1.20.6">
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to