[0590c1b6] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[0590c1b6] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY ed-download-http "http://ftp.gnu.org/pub/gnu/ed/ed-&ed-version;.tar.gz">
|
---|
| 8 | <!ENTITY ed-download-ftp "ftp://ftp.gnu.org/pub/gnu/ed/ed-&ed-version;.tar.gz">
|
---|
[d4afab2] | 9 | <!ENTITY ed-md5sum "ddd57463774cae9b50e70cd51221281b">
|
---|
[0590c1b6] | 10 | <!ENTITY ed-size "182 KB">
|
---|
[cf068ee1] | 11 | <!ENTITY ed-buildsize "2.9 MB">
|
---|
| 12 | <!ENTITY ed-time "0.02 SBU">
|
---|
[0590c1b6] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="ed" xreflabel="Ed-&ed-version;">
|
---|
[13c7e881] | 16 | <?dbhtml filename="ed.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[e19ad480] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">ed-&ed-version;.tar</keyword>
|
---|
[9084c2eb] | 23 | <keyword role="ftpdir">ed</keyword>
|
---|
[e19ad480] | 24 | </keywordset>
|
---|
[13c7e881] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Ed-&ed-version;</title>
|
---|
| 28 |
|
---|
[c0ed152] | 29 | <indexterm zone="ed">
|
---|
| 30 | <primary sortas="a-Ed">Ed</primary>
|
---|
[13c7e881] | 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="installation">
|
---|
| 34 | <title>Introduction to Ed</title>
|
---|
| 35 |
|
---|
| 36 | <para><application>Ed</application> is a line-oriented text editor. It
|
---|
| 37 | is used to create, display, modify and otherwise manipulate text files,
|
---|
| 38 | both interactively and via shell scripts. Ed isn't something which many
|
---|
| 39 | people use. It's described here because it can be used by the patch
|
---|
| 40 | program if you encounter an ed-based patch file. This happens rarely
|
---|
| 41 | because diff-based patches are preferred these days.</para>
|
---|
| 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&ed-download-http;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&ed-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &ed-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &ed-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &ed-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &ed-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
| 65 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 66 | <itemizedlist spacing="compact">
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Required Patch: <ulink
|
---|
| 69 | url="&patch-root;/ed-&ed-version;-mkstemp-1.patch"/></para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | </sect2>
|
---|
| 74 |
|
---|
| 75 | <sect2 role="installation">
|
---|
| 76 | <title>Installation of Ed</title>
|
---|
| 77 |
|
---|
| 78 | <para><application>Ed</application> normally uses the
|
---|
| 79 | <function>mktemp</function> function to create temporary files in
|
---|
| 80 | <filename class="directory">/tmp</filename>, but this function contains
|
---|
| 81 | a vulnerability (see the section on Temporary Files at
|
---|
| 82 | <ulink url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>).
|
---|
| 83 | Apply the following patch to make <application>Ed</application> use
|
---|
| 84 | <function>mkstemp</function> instead, a secure way to create temporary
|
---|
| 85 | files:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput>patch -Np1 -i ../ed-&ed-version;-mkstemp-1.patch</userinput></screen>
|
---|
| 88 |
|
---|
| 89 | <para>Install <application>Ed</application> by running the following
|
---|
| 90 | commands:</para>
|
---|
| 91 |
|
---|
| 92 | <screen><userinput>./configure --prefix=/usr --exec-prefix="" &&
|
---|
| 93 | make</userinput></screen>
|
---|
| 94 |
|
---|
[c0ed152] | 95 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 96 |
|
---|
[13c7e881] | 97 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 98 |
|
---|
| 99 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 100 |
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="commands">
|
---|
| 104 | <title>Command Explanations</title>
|
---|
| 105 |
|
---|
| 106 | <para><parameter>--exec-prefix=""</parameter>: This forces the programs
|
---|
| 107 | to be installed into the <filename class="directory">/bin</filename>
|
---|
| 108 | directory. Having the programs available there is useful in the event of
|
---|
| 109 | the <filename class="directory">/usr</filename> partition being
|
---|
| 110 | unavailable.</para>
|
---|
| 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="content">
|
---|
| 115 | <title>Contents</title>
|
---|
| 116 |
|
---|
| 117 | <segmentedlist>
|
---|
| 118 | <segtitle>Installed Programs</segtitle>
|
---|
| 119 | <segtitle>Installed Libraries</segtitle>
|
---|
| 120 | <segtitle>Installed Directories</segtitle>
|
---|
| 121 |
|
---|
| 122 | <seglistitem>
|
---|
| 123 | <seg>ed and red</seg>
|
---|
| 124 | <seg>None</seg>
|
---|
| 125 | <seg>None</seg>
|
---|
| 126 | </seglistitem>
|
---|
| 127 | </segmentedlist>
|
---|
| 128 |
|
---|
| 129 | <variablelist>
|
---|
| 130 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 131 | <?dbfo list-presentation="list"?>
|
---|
| 132 | <?dbhtml list-presentation="table"?>
|
---|
| 133 |
|
---|
| 134 | <varlistentry id="ed-prog">
|
---|
| 135 | <term><command>ed</command></term>
|
---|
| 136 | <listitem>
|
---|
| 137 | <para>is a line-oriented text editor.</para>
|
---|
| 138 | <indexterm zone="ed ed-prog">
|
---|
| 139 | <primary sortas="b-ed">ed</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
| 144 | <varlistentry id="red">
|
---|
| 145 | <term><command>red</command></term>
|
---|
| 146 | <listitem>
|
---|
[13679edb] | 147 | <para>is a restricted <command>ed</command>—it can only edit
|
---|
| 148 | files in the current directory and cannot execute shell
|
---|
| 149 | commands.</para>
|
---|
[13c7e881] | 150 | <indexterm zone="ed red">
|
---|
| 151 | <primary sortas="b-red">red</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | </variablelist>
|
---|
| 157 |
|
---|
| 158 | </sect2>
|
---|
[0590c1b6] | 159 |
|
---|
| 160 | </sect1>
|
---|