source: postlfs/editors/ed.xml@ bd3510d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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
Last change on this file since bd3510d was 3597eb6, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #7

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

  • Property mode set to 100644
File size: 5.3 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 <keywordset>
22 <keyword role="package">ed-&ed-version;.tar</keyword>
23 <keyword role="ftpdir">ed</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Ed-&ed-version;</title>
28
29 <indexterm zone="ed">
30 <primary sortas="a-Ed">Ed</primary>
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 <para condition="html" role="usernotes">User Notes:
74 <ulink url="&blfs-wiki;/ed"/></para>
75
76 </sect2>
77
78 <sect2 role="installation">
79 <title>Installation of Ed</title>
80
81 <para><application>Ed</application> normally uses the
82 <function>mktemp</function> function to create temporary files in
83 <filename class="directory">/tmp</filename>, but this function contains
84 a vulnerability (see the section on Temporary Files at
85 <ulink url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>).
86 Apply the following patch to make <application>Ed</application> use
87 <function>mkstemp</function> instead, a secure way to create temporary
88 files:</para>
89
90<screen><userinput>patch -Np1 -i ../ed-&ed-version;-mkstemp-1.patch</userinput></screen>
91
92 <para>Install <application>Ed</application> by running the following
93 commands:</para>
94
95<screen><userinput>./configure --prefix=/usr --exec-prefix="" &amp;&amp;
96make</userinput></screen>
97
98 <para>To test the results, issue: <command>make check</command>.</para>
99
100 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
101
102<screen role="root"><userinput>make install</userinput></screen>
103
104 </sect2>
105
106 <sect2 role="commands">
107 <title>Command Explanations</title>
108
109 <para><parameter>--exec-prefix=""</parameter>: This forces the programs
110 to be installed into the <filename class="directory">/bin</filename>
111 directory. Having the programs available there is useful in the event of
112 the <filename class="directory">/usr</filename> partition being
113 unavailable.</para>
114
115 </sect2>
116
117 <sect2 role="content">
118 <title>Contents</title>
119
120 <segmentedlist>
121 <segtitle>Installed Programs</segtitle>
122 <segtitle>Installed Libraries</segtitle>
123 <segtitle>Installed Directories</segtitle>
124
125 <seglistitem>
126 <seg>ed and red</seg>
127 <seg>None</seg>
128 <seg>None</seg>
129 </seglistitem>
130 </segmentedlist>
131
132 <variablelist>
133 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
134 <?dbfo list-presentation="list"?>
135 <?dbhtml list-presentation="table"?>
136
137 <varlistentry id="ed-prog">
138 <term><command>ed</command></term>
139 <listitem>
140 <para>is a line-oriented text editor.</para>
141 <indexterm zone="ed ed-prog">
142 <primary sortas="b-ed">ed</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="red">
148 <term><command>red</command></term>
149 <listitem>
150 <para>is a restricted <command>ed</command>&mdash;it can only edit
151 files in the current directory and cannot execute shell
152 commands.</para>
153 <indexterm zone="ed red">
154 <primary sortas="b-red">red</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 </variablelist>
160
161 </sect2>
162
163</sect1>
Note: See TracBrowser for help on using the repository browser.