[3be4d97] | 1 | <sect1 id="ch-system-ed" xreflabel="Ed">
|
---|
[793c2f7] | 2 | <title>Installing Ed-&ed-version;</title>
|
---|
[576e206] | 3 | <?dbhtml filename="ed.html" dir="chapter06"?>
|
---|
[6370fa6] | 4 |
|
---|
[5888299] | 5 | <para>The Ed package contains a spartan line editor.</para>
|
---|
| 6 |
|
---|
[69276a94] | 7 | <screen>&buildtime; &ed-time;
|
---|
| 8 | &diskspace; &ed-compsize;</screen>
|
---|
[3554fa3a] | 9 |
|
---|
[5888299] | 10 | &aa-ed-down;
|
---|
[d0dfce4] | 11 | &aa-ed-dep;
|
---|
[6370fa6] | 12 |
|
---|
[73aedd1d] | 13 | <sect2><title> </title><para> </para></sect2>
|
---|
| 14 |
|
---|
| 15 | <sect2>
|
---|
| 16 | <title>Installation of Ed</title>
|
---|
| 17 |
|
---|
| 18 | <note><para>Ed isn't something which many people use. It's installed here
|
---|
| 19 | because it can be used by the patch program if you encounter an ed-based patch
|
---|
| 20 | file. This happens rarely because diff-based patches are preferred these
|
---|
| 21 | days.</para></note>
|
---|
| 22 |
|
---|
[4248b0e] | 23 | <para>Ed normally uses the <emphasis>mktemp</emphasis> function to create
|
---|
| 24 | temporary files in <filename class="directory">/tmp</filename>, but this
|
---|
| 25 | function contains a vulnerability (see the section on Temporary Files in <ulink
|
---|
[c76accc] | 26 | url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>). Apply
|
---|
| 27 | the following patch to make Ed use <emphasis>mkstemp</emphasis> instead, a
|
---|
| 28 | secure way to create temporary files:</para>
|
---|
[73aedd1d] | 29 |
|
---|
| 30 | <screen><userinput>patch -Np1 -i ../&ed-patch;</userinput></screen>
|
---|
| 31 |
|
---|
| 32 | <para>Now prepare Ed for compilation:</para>
|
---|
| 33 |
|
---|
[8ffb41ed] | 34 | <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
---|
| 35 |
|
---|
| 36 | <para>The meaning of the configure option:</para>
|
---|
| 37 |
|
---|
| 38 | <itemizedlist>
|
---|
| 39 | <listitem><para><userinput>--exec-prefix=""</userinput>: This forces the
|
---|
| 40 | programs to be installed into the <filename>/bin</filename> directory. Having
|
---|
| 41 | the programs available there is useful in the event of the
|
---|
| 42 | <filename>/usr</filename> partition being unavailable.</para></listitem>
|
---|
| 43 | </itemizedlist>
|
---|
[73aedd1d] | 44 |
|
---|
| 45 | <para>Compile the package:</para>
|
---|
[6370fa6] | 46 |
|
---|
[73aedd1d] | 47 | <screen><userinput>make</userinput></screen>
|
---|
| 48 |
|
---|
[8a5f906] | 49 | <para>To have the results tested, issue:
|
---|
| 50 | <userinput>make check</userinput>.</para>
|
---|
[73aedd1d] | 51 |
|
---|
| 52 | <para>Install the package:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput>make install</userinput></screen>
|
---|
| 55 |
|
---|
| 56 | </sect2>
|
---|
| 57 |
|
---|
[5888299] | 58 | &aa-ed-shortdesc;
|
---|
| 59 | &aa-ed-desc;
|
---|
| 60 |
|
---|
[73aedd1d] | 61 | </sect1>
|
---|
[6370fa6] | 62 |
|
---|