cvs commit: LFS/BOOK/entities ed.ent

timothy at linuxfromscratch.org timothy at linuxfromscratch.org
Thu Jan 16 19:29:35 PST 2003


timothy     03/01/16 22:29:35

  Modified:    BOOK/appendixa ed-dep.xml ed-desc.xml ed.xml
               BOOK/chapter06 ed-inst.xml ed.xml
               BOOK/entities ed.ent
  Added:       BOOK/appendixa ed-shortdesc.xml
  Log:
  Billy's ed conversion.
  
  Revision  Changes    Path
  1.7       +2 -0      LFS/BOOK/appendixa/ed-dep.xml
  
  Index: ed-dep.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/appendixa/ed-dep.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ed-dep.xml	12 Sep 2002 16:44:20 -0000	1.6
  +++ ed-dep.xml	17 Jan 2003 03:29:35 -0000	1.7
  @@ -1,3 +1,5 @@
  +<sect2><title> </title><para> </para></sect2>
  +
   <sect2>
   <title>Ed Installation Dependencies</title>
   
  
  
  
  1.8       +4 -5      LFS/BOOK/appendixa/ed-desc.xml
  
  Index: ed-desc.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/appendixa/ed-desc.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ed-desc.xml	28 Sep 2002 21:08:27 -0000	1.7
  +++ ed-desc.xml	17 Jan 2003 03:29:35 -0000	1.8
  @@ -1,11 +1,10 @@
  -<sect2><title>Contents of Ed</title>
  +<sect2><title> </title><para> </para></sect2>
   
  -<para>Last checked against version &ed-contversion;.</para>
  +<sect2><title>Descriptions</title>
   
  -<sect3><title>Program Files</title>
  -<para>ed and red (link to ed)</para></sect3>
  +<para>Last checked against version &ed-contversion;.</para>
   
  -<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,
  
  
  
  1.5       +1 -0      LFS/BOOK/appendixa/ed.xml
  
  Index: ed.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/appendixa/ed.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ed.xml	15 Dec 2001 14:28:34 -0000	1.4
  +++ ed.xml	17 Jan 2003 03:29:35 -0000	1.5
  @@ -3,6 +3,7 @@
   <?dbhtml filename="ed.html" dir="appendixa"?>
   
   &aa-ed-down;
  +&aa-ed-shortdesc;
   &aa-ed-desc;
   &aa-ed-dep;
   
  
  
  
  1.1                  LFS/BOOK/appendixa/ed-shortdesc.xml
  
  Index: ed-shortdesc.xml
  ===================================================================
  <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>
  
  
  
  
  1.19      +41 -10    LFS/BOOK/chapter06/ed-inst.xml
  
  Index: ed-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/ed-inst.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ed-inst.xml	17 Dec 2002 13:26:15 -0000	1.18
  +++ ed-inst.xml	17 Jan 2003 03:29:35 -0000	1.19
  @@ -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>Prepare Ed to be compiled:</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>Install Ed by running the following commands:</para>
  +<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><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><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>
   
  
  
  
  1.10      +2 -3      LFS/BOOK/chapter06/ed.xml
  
  Index: ed.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/ed.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ed.xml	14 Dec 2001 23:04:46 -0000	1.9
  +++ ed.xml	17 Jan 2003 03:29:35 -0000	1.10
  @@ -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>
   
  
  
  
  1.10      +1 -1      LFS/BOOK/entities/ed.ent
  
  Index: ed.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/entities/ed.ent,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ed.ent	30 Dec 2002 04:32:04 -0000	1.9
  +++ ed.ent	17 Jan 2003 03:29:35 -0000	1.10
  @@ -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">
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list