mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 11:49:20 +01:00
Billy's ed conversion.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2366 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
d6871c7bcc
commit
c7d30405e2
@ -1,3 +1,5 @@
|
||||
<sect2><title> </title><para> </para></sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Ed Installation Dependencies</title>
|
||||
|
||||
|
@ -1,11 +1,10 @@
|
||||
<sect2><title>Contents of Ed</title>
|
||||
<sect2><title> </title><para> </para></sect2>
|
||||
|
||||
<sect2><title>Descriptions</title>
|
||||
|
||||
<para>Last checked against version &ed-contversion;.</para>
|
||||
|
||||
<sect3><title>Program Files</title>
|
||||
<para>ed and red (link to ed)</para></sect3>
|
||||
|
||||
<sect3><title>Description</title>
|
||||
<sect3><title>Program file description</title>
|
||||
|
||||
<sect4><title>ed</title>
|
||||
<para>ed is a line-oriented text editor. It is used to create, display,
|
||||
|
13
appendixa/ed-shortdesc.xml
Normal file
13
appendixa/ed-shortdesc.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<sect2><title>Contents of Ed</title>
|
||||
|
||||
<para>Last checked against version &ed-contversion;.</para>
|
||||
|
||||
<para>GNU ed is an 8-bit clean, POSIX-compliant line editor.</para>
|
||||
|
||||
<para>Ed installs the following:</para>
|
||||
|
||||
<sect3><title>Program Files</title>
|
||||
<para>ed and red (link to ed)</para></sect3>
|
||||
|
||||
</sect2>
|
||||
|
@ -3,6 +3,7 @@
|
||||
<?dbhtml filename="ed.html" dir="appendixa"?>
|
||||
|
||||
&aa-ed-down;
|
||||
&aa-ed-shortdesc;
|
||||
&aa-ed-desc;
|
||||
&aa-ed-dep;
|
||||
|
||||
|
@ -1,21 +1,52 @@
|
||||
<sect2><title> </title><para> </para></sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Installation of Ed</title>
|
||||
|
||||
<note><para>Ed isn't something you would personally 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>
|
||||
|
||||
<para>This package requires its patch to be applied before you can
|
||||
install it.</para>
|
||||
|
||||
<para>Ed isn't something you would personally 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>
|
||||
<para><screen><userinput>
|
||||
patch -Np1 -i ../ed-&ed-patch-version;.patch
|
||||
</userinput></screen></para>
|
||||
|
||||
<para>Install Ed by running the following commands:</para>
|
||||
<para>Prepare Ed to be compiled:</para>
|
||||
|
||||
<para><screen><userinput>patch -Np1 -i ../ed-&ed-patch-version;.patch &&
|
||||
./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install &&
|
||||
mv /usr/bin/{ed,red} /bin</userinput></screen></para>
|
||||
<para><screen><userinput>
|
||||
./configure --prefix=/usr</userinput></screen></para>
|
||||
|
||||
<para>Continue with compiling the package:</para>
|
||||
|
||||
<para><screen><userinput>make</userinput></screen></para>
|
||||
|
||||
<para>And finish off installing the package:</para>
|
||||
|
||||
<para><screen><userinput>make install</userinput></screen></para>
|
||||
|
||||
<para>Move the Ed binaries to the root partition.</para>
|
||||
|
||||
<para><screen><userinput>mv /usr/bin/{ed,red} /bin
|
||||
</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Command explanations</title>
|
||||
|
||||
<para><userinput>patch -Np1 -i ../ed-&ed-version;.patch:</userinput> This
|
||||
patch fixes a symlink vulnerability in ed. The ed executable creates files
|
||||
in /tmp with predictable names. By using various symlink attacks, it is
|
||||
possible to have ed write to files it should not, change the permissions
|
||||
of files, etc.</para>
|
||||
|
||||
<para><userinput>mv /usr/bin/{ed,red} /bin:</userinput>
|
||||
The Ed binaries are moved to the /bin directory so they may be used in
|
||||
the event that the /usr partition is unavailable.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -5,10 +5,9 @@
|
||||
<screen>Estimated build time: &ed-time;
|
||||
Estimated required disk space: &ed-compsize;</screen>
|
||||
|
||||
&c6-ed-inst;
|
||||
&c6-ed-exp;
|
||||
&aa-ed-desc;
|
||||
&aa-ed-shortdesc;
|
||||
&aa-ed-dep;
|
||||
&c6-ed-inst;
|
||||
|
||||
</sect1>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<!ENTITY c6-ed SYSTEM "../chapter06/ed.xml">
|
||||
<!ENTITY c6-ed-inst SYSTEM "../chapter06/ed-inst.xml">
|
||||
<!ENTITY c6-ed-exp SYSTEM "../chapter06/ed-exp.xml">
|
||||
|
||||
<!ENTITY aa-ed SYSTEM "../appendixa/ed.xml">
|
||||
<!ENTITY aa-ed-shortdesc SYSTEM "../appendixa/ed-shortdesc.xml">
|
||||
<!ENTITY aa-ed-desc SYSTEM "../appendixa/ed-desc.xml">
|
||||
<!ENTITY aa-ed-dep SYSTEM "../appendixa/ed-dep.xml">
|
||||
<!ENTITY aa-ed-down SYSTEM "../appendixa/ed-down.xml">
|
||||
|
Loading…
Reference in New Issue
Block a user