[ac38e9dc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY w3m-download-http "&sourceforge-repo;/w3m/w3m-&w3m-version;.tar.gz">
|
---|
| 8 | <!ENTITY w3m-download-ftp " ">
|
---|
| 9 | <!ENTITY w3m-md5sum "1b845a983a50b8dec0169ac48479eacc">
|
---|
| 10 | <!ENTITY w3m-size "2.1 MB">
|
---|
| 11 | <!ENTITY w3m-buildsize "26 MB">
|
---|
| 12 | <!ENTITY w3m-time "0.3 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="w3m" xreflabel="w3m-&w3m-version;">
|
---|
| 16 | <?dbhtml filename="w3m.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy: krejzi $</othername>
|
---|
| 20 | <date>$Date: 2014-10-26 23:18:37 +0100 (Sun, 26 Oct 2014) $</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>W3m-&w3m-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="w3m">
|
---|
| 26 | <primary sortas="a-W3m">W3m</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to W3m</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>w3m</application> is primarily a pager but it can
|
---|
| 33 | also be used as a text-mode WWW browser.</para>
|
---|
| 34 |
|
---|
| 35 | &lfs77_checked;
|
---|
| 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&w3m-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&w3m-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &w3m-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &w3m-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &w3m-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &w3m-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 59 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 60 | <itemizedlist spacing="compact">
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Required patch:
|
---|
| 64 | <ulink url="&patch-root;/w3m-&w3m-version;-bdwgc72-1.patch"/>
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect3">W3m Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 72 | <para role="required"><xref linkend="gc"/></para>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 75 | <para role="recommended">
|
---|
| 76 | <xref linkend="imlib2"/>
|
---|
| 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 80 | <para role="optional">
|
---|
| 81 | <xref linkend="gpm"/>,
|
---|
| 82 | <xref linkend="openssl"/>,
|
---|
| 83 | <xref linkend="gdk-pixbuf"/>,
|
---|
| 84 | <xref linkend="compface"/>, and
|
---|
| 85 | <ulink url="http://packages.debian.org/unstable/text/nkf">nkf</ulink>,
|
---|
| 86 | a Mail User Agent, and
|
---|
| 87 | an External Browser
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <para condition="html" role="usernotes">User Notes:
|
---|
| 91 | <ulink url="&blfs-wiki;/W3M"/></para>
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of W3m</title>
|
---|
| 96 |
|
---|
| 97 | <para>Install <application>w3m</application> by running the following
|
---|
| 98 | commands:</para>
|
---|
| 99 |
|
---|
| 100 | <screen><userinput>patch -Np1 -i ../w3m-&w3m-version;-bdwgc72-1.patch &&
|
---|
| 101 | sed -i 's/file_handle/file_foo/' istream.{c,h} &&
|
---|
| 102 | sed -i 's#gdk-pixbuf-xlib-2.0#& x11#' configure &&
|
---|
| 103 |
|
---|
| 104 | ./configure --prefix=/usr --sysconfdir=/etc --with-imagelib=imlib2 &&
|
---|
| 105 | sed -i "s:lImlib2:& -lX11:" Makefile &&
|
---|
| 106 | make</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | <para>This package does not come with a test suite.</para>
|
---|
| 109 |
|
---|
| 110 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 111 |
|
---|
| 112 | <screen role="root"><userinput>make install &&
|
---|
| 113 | install -v -m644 -D doc/keymap.default /etc/w3m/keymap &&
|
---|
| 114 | install -v -m644 doc/menu.default /etc/w3m/menu &&
|
---|
| 115 | install -v -m755 -d /usr/share/doc/w3m-&w3m-version; &&
|
---|
| 116 | install -v -m644 doc/{HISTORY,READ*,keymap.*,menu.*,*.html} \
|
---|
| 117 | /usr/share/doc/w3m-&w3m-version;</userinput></screen>
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2 role="commands">
|
---|
| 121 | <title>Command Explanations</title>
|
---|
| 122 |
|
---|
| 123 | <para><command>sed -i 's/file_handle/file_foo/' istream.{c,h}</command>:
|
---|
| 124 | This sed renames the file_handle function to avoid a clash with a glibc
|
---|
| 125 | function that has the same name, defined in
|
---|
| 126 | /usr/include/bits/fcntl.h.</para>
|
---|
| 127 |
|
---|
| 128 | <para><command>sed -i 's#gdk-pixbuf-xlib-2.0#& x11#'
|
---|
| 129 | configure</command>: This sed fixes compiling <application>w3m</application>
|
---|
| 130 | using <xref linkend="gdk-pixbuf"/> as its image library. It has no impact if
|
---|
| 131 | <xref linkend="gdk-pixbuf"/> is not installed.</para>
|
---|
| 132 |
|
---|
| 133 | <para>
|
---|
| 134 | <parameter>--with-imagelib=imlib2</parameter>: This switch sets
|
---|
| 135 | <xref linkend="imlib2"/> as the default image loading library. Remove it
|
---|
| 136 | if you don't need image loading capabilities or you don't want to
|
---|
| 137 | install X11. Note that build will fail if Xorg Libraries are present
|
---|
| 138 | and this switch is not used.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <para>
|
---|
| 142 | <parameter>--with-imagelib=gdk-pixbuf</parameter>: Use this switch if you
|
---|
| 143 | want to use <xref linkend="gdk-pixbuf"/> as the image loading library.
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
| 146 | <para>
|
---|
| 147 | <command>sed -i "s:lImlib2:& -lX11:" Makefile</command>: This sed
|
---|
| 148 | fixes building when using <xref linkend="imlib2"/> as the image
|
---|
| 149 | loading library.
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2 role="configuration">
|
---|
| 155 | <title>Configuring W3m</title>
|
---|
| 156 |
|
---|
| 157 | <sect3 id="w3m-config">
|
---|
| 158 | <title>Config Files</title>
|
---|
| 159 |
|
---|
| 160 | <para><filename>/etc/w3m/*</filename> and
|
---|
| 161 | <filename>~/.w3m/*</filename></para>
|
---|
| 162 |
|
---|
| 163 | <indexterm zone="w3m w3m-config">
|
---|
| 164 | <primary sortas="e-etc-w3m/*">/etc/w3m/*</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 |
|
---|
| 167 | <indexterm zone="w3m w3m-config">
|
---|
| 168 | <primary sortas="e-AA.w3m/*">~/.w3m/*</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </sect3>
|
---|
| 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | <sect2 role="content">
|
---|
| 174 | <title>Contents</title>
|
---|
| 175 |
|
---|
| 176 | <segmentedlist>
|
---|
| 177 | <segtitle>Installed Programs</segtitle>
|
---|
| 178 | <segtitle>Installed Libraries</segtitle>
|
---|
| 179 | <segtitle>Installed Directories</segtitle>
|
---|
| 180 |
|
---|
| 181 | <seglistitem>
|
---|
| 182 | <seg>w3m and w3mman</seg>
|
---|
| 183 | <seg>None</seg>
|
---|
| 184 | <seg>/usr/libexec/w3m,
|
---|
| 185 | /usr/share/w3m, and
|
---|
| 186 | /usr/share/doc/w3m-&w3m-version;</seg>
|
---|
| 187 | </seglistitem>
|
---|
| 188 | </segmentedlist>
|
---|
| 189 |
|
---|
| 190 | <variablelist>
|
---|
| 191 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 192 | <?dbfo list-presentation="list"?>
|
---|
| 193 | <?dbhtml list-presentation="table"?>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="w3m-prog">
|
---|
| 196 | <term><command>w3m</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>is a text based web browser and pager.</para>
|
---|
| 199 | <indexterm zone="w3m w3m-prog">
|
---|
| 200 | <primary sortas="b-w3m">w3m</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="w3mman">
|
---|
| 206 | <!-- Don't remove the extra space, it prevent a FOP warning. -->
|
---|
| 207 | <term><command>w3mman</command> </term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>is an interface to the on-line reference manuals in
|
---|
| 210 | <command>w3m</command>.</para>
|
---|
| 211 | <indexterm zone="w3m w3mman">
|
---|
| 212 | <primary sortas="b-w3mman">w3mman</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 | </variablelist>
|
---|
| 217 | </sect2>
|
---|
| 218 | </sect1>
|
---|