source: postlfs/editors/ed.xml@ 5f2265c

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 5f2265c was 5f2265c, checked in by Bruce Dubbs <bdubbs@…>, 15 years ago

Update patch command in ed also

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

  • Property mode set to 100644
File size: 5.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
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">
9 <!ENTITY ed-md5sum "ddd57463774cae9b50e70cd51221281b">
10 <!ENTITY ed-size "182 KB">
11 <!ENTITY ed-buildsize "2.9 MB">
12 <!ENTITY ed-time "0.02 SBU">
13]>
14
15<sect1 id="ed" xreflabel="Ed-&ed-version;">
16 <?dbhtml filename="ed.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Ed-&ed-version;</title>
24
25 <indexterm zone="ed">
26 <primary sortas="a-Ed">Ed</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Ed</title>
31
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>
38
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>
60
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-2.patch"/></para>
66 </listitem>
67 </itemizedlist>
68
69 <para condition="html" role="usernotes">User Notes:
70 <ulink url="&blfs-wiki;/ed"/></para>
71
72 </sect2>
73
74 <sect2 role="installation">
75 <title>Installation of Ed</title>
76
77 <para><application>Ed</application> normally uses the
78 <function>mktemp</function> function to create temporary files in
79 <filename class="directory">/tmp</filename>, but this function contains
80 a vulnerability (see the section on Temporary Files at
81 <ulink url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>).
82 Apply the following patch to make <application>Ed</application> use
83 <function>mkstemp</function> instead, a secure way to create temporary
84 files:</para>
85
86<screen><userinput>patch -Np1 -i ../ed-&ed-version;-mkstemp-2.patch</userinput></screen>
87
88 <para>Install <application>Ed</application> by running the following
89 commands:</para>
90
91<screen><userinput>./configure --prefix=/usr --exec-prefix="" &amp;&amp;
92make</userinput></screen>
93
94 <para>To test the results, issue: <command>make check</command>.</para>
95
96 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
97
98<screen role="root"><userinput>make install</userinput></screen>
99
100 </sect2>
101
102 <sect2 role="commands">
103 <title>Command Explanations</title>
104
105 <para><parameter>--exec-prefix=""</parameter>: This forces the programs
106 to be installed into the <filename class="directory">/bin</filename>
107 directory. Having the programs available there is useful in the event of
108 the <filename class="directory">/usr</filename> partition being
109 unavailable.</para>
110
111 </sect2>
112
113 <sect2 role="content">
114 <title>Contents</title>
115
116 <segmentedlist>
117 <segtitle>Installed Programs</segtitle>
118 <segtitle>Installed Libraries</segtitle>
119 <segtitle>Installed Directories</segtitle>
120
121 <seglistitem>
122 <seg>ed and red</seg>
123 <seg>None</seg>
124 <seg>None</seg>
125 </seglistitem>
126 </segmentedlist>
127
128 <variablelist>
129 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
130 <?dbfo list-presentation="list"?>
131 <?dbhtml list-presentation="table"?>
132
133 <varlistentry id="ed-prog">
134 <term><command>ed</command></term>
135 <listitem>
136 <para>is a line-oriented text editor.</para>
137 <indexterm zone="ed ed-prog">
138 <primary sortas="b-ed">ed</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="red">
144 <term><command>red</command></term>
145 <listitem>
146 <para>is a restricted <command>ed</command>&mdash;it can only edit
147 files in the current directory and cannot execute shell
148 commands.</para>
149 <indexterm zone="ed red">
150 <primary sortas="b-red">red</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 </variablelist>
156
157 </sect2>
158
159</sect1>
Note: See TracBrowser for help on using the repository browser.