2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-system-ed" xreflabel="Ed">
|
2001-07-23 19:23:43 +01:00
|
|
|
<title>Installing Ed-&ed-version;</title>
|
2001-09-26 01:24:04 +01:00
|
|
|
<?dbhtml filename="ed.html" dir="chapter06"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
<para>The Ed package contains a spartan line editor.</para>
|
|
|
|
|
2004-01-27 22:27:44 +00:00
|
|
|
<screen>&buildtime; &ed-time;
|
|
|
|
&diskspace; &ed-compsize;</screen>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
&aa-ed-down;
|
2003-11-15 16:07:18 +00:00
|
|
|
&aa-ed-dep;
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of Ed</title>
|
|
|
|
|
|
|
|
<note><para>Ed isn't something which many people use. It's installed here
|
|
|
|
because it can be used by the patch program if you encounter an ed-based patch
|
|
|
|
file. This happens rarely because diff-based patches are preferred these
|
|
|
|
days.</para></note>
|
|
|
|
|
2004-02-04 22:22:26 +00:00
|
|
|
<para>Ed normally uses the <emphasis>mktemp</emphasis> function to create
|
|
|
|
temporary files in <filename class="directory">/tmp</filename>, but this
|
|
|
|
function contains a vulnerability (see the section on Temporary Files in <ulink
|
2004-02-09 22:44:26 +00:00
|
|
|
url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>). Apply
|
|
|
|
the following patch to make Ed use <emphasis>mkstemp</emphasis> instead, a
|
|
|
|
secure way to create temporary files:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>patch -Np1 -i ../&ed-patch;</userinput></screen>
|
|
|
|
|
|
|
|
<para>Now prepare Ed for compilation:</para>
|
|
|
|
|
2003-11-14 03:02:50 +00:00
|
|
|
<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
|
|
|
|
|
|
|
<para>The meaning of the configure option:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para><userinput>--exec-prefix=""</userinput>: This forces the
|
|
|
|
programs to be installed into the <filename>/bin</filename> directory. Having
|
|
|
|
the programs available there is useful in the event of the
|
|
|
|
<filename>/usr</filename> partition being unavailable.</para></listitem>
|
|
|
|
</itemizedlist>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-02-07 10:48:55 +00:00
|
|
|
<para>To have the results tested, issue:
|
|
|
|
<userinput>make check</userinput>.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
&aa-ed-shortdesc;
|
|
|
|
&aa-ed-desc;
|
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
</sect1>
|
2001-01-24 00:31:17 +00:00
|
|
|
|