Changeset 13c7e881


Ignore:
Timestamp:
05/13/2005 05:13:20 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
15e7f44f
Parents:
f73a2232
Message:

Tagged ed.xml

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/editors/ed.xml

    rf73a2232 r13c7e881  
    1414
    1515<sect1 id="ed" xreflabel="Ed-&ed-version;">
    16 <sect1info>
    17 <othername>$LastChangedBy$</othername>
    18 <date>$Date$</date>
    19 </sect1info>
    20 <?dbhtml filename="ed.html"?>
    21 <title>Ed-&ed-version;</title>
    22 <indexterm zone="ed"><primary
    23 sortas="a-Ed">Ed</primary></indexterm>
     16  <?dbhtml filename="ed.html"?>
    2417
    25 <sect2>
    26 <title>Introduction to <application>Ed</application></title>
     18  <sect1info>
     19    <othername>$LastChangedBy$</othername>
     20    <date>$Date$</date>
     21  </sect1info>
    2722
    28 <para><application>Ed</application> is a line-oriented text editor. It
    29 is used to create, display, modify and otherwise manipulate text files,
    30 both interactively and via shell scripts. Ed isn't something which many
    31 people use. It's described here because it can be used by the patch
    32 program if you encounter an ed-based patch file. This happens rarely
    33 because diff-based patches are preferred these days.</para>
     23  <title>Ed-&ed-version;</title>
    3424
    35 <sect3><title>Package information</title>
    36 <itemizedlist spacing="compact">
    37 <listitem><para>Download (HTTP):
    38 <ulink url="&ed-download-http;"/></para></listitem>
    39 <listitem><para>Download (FTP):
    40 <ulink url="&ed-download-ftp;"/></para></listitem>
    41 <listitem><para>Download MD5 sum: &ed-md5sum;</para></listitem>
    42 <listitem><para>Download size: &ed-size;</para></listitem>
    43 <listitem><para>Estimated disk space required:
    44 &ed-buildsize;</para></listitem>
    45 <listitem><para>Estimated build time:
    46 &ed-time;</para></listitem></itemizedlist>
    47 </sect3>
     25  <indexterm zone="ed"><primary
     26    sortas="a-Ed">Ed</primary>
     27  </indexterm>
    4828
    49 <sect3><title>Additional downloads</title>
    50 <itemizedlist spacing="compact">
    51 <listitem><para>Required Patch: <ulink
    52 url="&patch-root;/ed-&ed-version;-mkstemp-1.patch"/></para></listitem>
    53 </itemizedlist></sect3>
     29  <sect2 role="installation">
     30    <title>Introduction to Ed</title>
    5431
    55 </sect2>
     32    <para><application>Ed</application> is a line-oriented text editor. It
     33    is used to create, display, modify and otherwise manipulate text files,
     34    both interactively and via shell scripts. Ed isn't something which many
     35    people use. It's described here because it can be used by the patch
     36    program if you encounter an ed-based patch file. This happens rarely
     37    because diff-based patches are preferred these days.</para>
    5638
    57 <sect2>
    58 <title>Installation of <application>Ed</application></title>
     39    <bridgehead renderas="sect3">Package Information</bridgehead>
     40    <itemizedlist spacing="compact">
     41      <listitem>
     42        <para>Download (HTTP): <ulink url="&ed-download-http;"/></para>
     43      </listitem>
     44      <listitem>
     45        <para>Download (FTP): <ulink url="&ed-download-ftp;"/></para>
     46      </listitem>
     47      <listitem>
     48        <para>Download MD5 sum: &ed-md5sum;</para>
     49      </listitem>
     50      <listitem>
     51        <para>Download size: &ed-size;</para>
     52      </listitem>
     53      <listitem>
     54        <para>Estimated disk space required: &ed-buildsize;</para>
     55      </listitem>
     56      <listitem>
     57        <para>Estimated build time: &ed-time;</para>
     58      </listitem>
     59    </itemizedlist>
    5960
    60 <para><application>Ed</application> normally uses the
    61 <emphasis>mktemp</emphasis> function to create temporary files in
    62 <filename class="directory">/tmp</filename>, but this function contains
    63 a vulnerability (see the section on Temporary Files at
    64 <ulink url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>).
    65 Apply the following patch to make <application>Ed</application> use
    66 <emphasis>mkstemp</emphasis> instead, a secure way to create temporary
    67 files:</para>
     61    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
     62    <itemizedlist spacing="compact">
     63      <listitem>
     64        <para>Required Patch: <ulink
     65        url="&patch-root;/ed-&ed-version;-mkstemp-1.patch"/></para>
     66      </listitem>
     67    </itemizedlist>
    6868
    69 <screen><userinput><command>patch -Np1 -i ../ed-&ed-version;-mkstemp-1.patch</command></userinput></screen>
     69  </sect2>
    7070
    71 <para>Install <application>Ed</application> by running the following
    72 commands:</para>
     71  <sect2 role="installation">
     72    <title>Installation of Ed</title>
    7373
    74 <screen><userinput><command>./configure --prefix=/usr --exec-prefix="" &amp;&amp;
    75 make</command></userinput></screen>
     74    <para><application>Ed</application> normally uses the
     75    <function>mktemp</function> function to create temporary files in
     76    <filename class="directory">/tmp</filename>, but this function contains
     77    a vulnerability (see the section on Temporary Files at
     78    <ulink url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>).
     79    Apply the following patch to make <application>Ed</application> use
     80    <function>mkstemp</function> instead, a secure way to create temporary
     81    files:</para>
    7682
    77 <para>Now, as the root user:</para>
     83<screen><userinput>patch -Np1 -i ../ed-&ed-version;-mkstemp-1.patch</userinput></screen>
    7884
    79 <screen><userinput role='root'><command>make install</command></userinput></screen>
     85    <para>Install <application>Ed</application> by running the following
     86    commands:</para>
    8087
    81 </sect2>
     88<screen><userinput>./configure --prefix=/usr --exec-prefix="" &amp;&amp;
     89make</userinput></screen>
    8290
    83 <sect2>
    84 <title>Command explanations</title>
     91    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    8592
    86 <para><parameter>--exec-prefix=""</parameter>: This forces the programs
    87 to be installed into the <filename class="directory">/bin</filename>
    88 directory. Having the programs available there is useful in the event of
    89 the <filename class="directory">/usr</filename> partition being
    90 unavailable.</para>
     93<screen role="root"><userinput>make install</userinput></screen>
    9194
    92 </sect2>
     95  </sect2>
    9396
    94 <sect2>
    95 <title>Contents</title>
     97  <sect2 role="commands">
     98    <title>Command Explanations</title>
    9699
    97 <segmentedlist>
    98 <segtitle>Installed Programs</segtitle>
    99 <segtitle>Installed Libraries</segtitle>
    100 <segtitle>Installed Directories</segtitle>
    101 <seglistitem>
    102 <seg>ed and red</seg>
    103 <seg>None</seg>
    104 <seg>None</seg>
    105 </seglistitem>
    106 </segmentedlist>
     100    <para><parameter>--exec-prefix=""</parameter>: This forces the programs
     101    to be installed into the <filename class="directory">/bin</filename>
     102    directory. Having the programs available there is useful in the event of
     103    the <filename class="directory">/usr</filename> partition being
     104    unavailable.</para>
    107105
    108 <variablelist>
    109 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
    110 <?dbfo list-presentation="list"?>
     106  </sect2>
    111107
    112 <varlistentry id="ed-prog">
    113 <term><filename>ed</filename></term>
    114 <listitem><para>is a line-oriented text editor.</para>
    115 <indexterm zone="ed ed-prog">
    116 <primary sortas="b-ed">ed</primary></indexterm>
    117 </listitem>
    118 </varlistentry>
     108  <sect2 role="content">
     109    <title>Contents</title>
    119110
    120 <varlistentry id="red">
    121 <term><filename>red</filename></term>
    122 <listitem><para>is a restricted ed&mdash;it can only edit files in the
    123 current directory and cannot execute shell commands.</para>
    124 <indexterm zone="ed red">
    125 <primary sortas="b-red">red</primary></indexterm>
    126 </listitem>
    127 </varlistentry>
     111    <segmentedlist>
     112      <segtitle>Installed Programs</segtitle>
     113      <segtitle>Installed Libraries</segtitle>
     114      <segtitle>Installed Directories</segtitle>
    128115
    129 </variablelist>
     116      <seglistitem>
     117        <seg>ed and red</seg>
     118        <seg>None</seg>
     119        <seg>None</seg>
     120      </seglistitem>
     121    </segmentedlist>
    130122
    131 </sect2>
     123    <variablelist>
     124      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
     125      <?dbfo list-presentation="list"?>
     126      <?dbhtml list-presentation="table"?>
     127
     128      <varlistentry id="ed-prog">
     129        <term><command>ed</command></term>
     130        <listitem>
     131          <para>is a line-oriented text editor.</para>
     132          <indexterm zone="ed ed-prog">
     133            <primary sortas="b-ed">ed</primary>
     134          </indexterm>
     135        </listitem>
     136      </varlistentry>
     137
     138      <varlistentry id="red">
     139        <term><command>red</command></term>
     140        <listitem>
     141          <para>is a restricted ed&mdash;it can only edit files in the
     142          current directory and cannot execute shell commands.</para>
     143          <indexterm zone="ed red">
     144            <primary sortas="b-red">red</primary>
     145          </indexterm>
     146        </listitem>
     147      </varlistentry>
     148
     149    </variablelist>
     150
     151  </sect2>
    132152
    133153</sect1>
Note: See TracChangeset for help on using the changeset viewer.