cvs commit: LFS/newxml/chapter06 iana-etc.xml mktemp.xml

matthew at linuxfromscratch.org matthew at linuxfromscratch.org
Mon Mar 22 12:56:12 PST 2004


matthew     04/03/22 13:56:12

  Added:       newxml/chapter06 iana-etc.xml mktemp.xml
  Log:
  * Added the 2 files that Zack's previous patch created and noted to self
    that CVS is a computer program and therefore has the right to treat me like
    the error-prone human I am.  It should note that there are files not under
    version control and prompt me for what to do with them  *before* making the
    commit.
  
  Revision  Changes    Path
  1.1                  LFS/newxml/chapter06/iana-etc.xml
  
  Index: iana-etc.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN" "http://www.docbook.org/xml/4.3CR3/docbookx.dtd" [
    <!ENTITY % general-entities SYSTEM "../general.ent">
    %general-entities;
  ]>
  <sect1 xmlns:xi="http://www.w3.org/2003/XInclude" id="ch-system-iana-etc" xreflabel="Iana-Etc">
  <title>Installing Iana-Etc-&iana-etc-version;</title>
  <?dbhtml filename="iana-etc.html"?>
  
  <para>The Iana-Etc package network services and protocols data.</para>
  
  <screen>&buildtime; 0.1 SBU
  &diskspace; 641 KB</screen>
  
  <literallayout>Official download location for Iana-Etc (&iana-etc-version;):
  <ulink url="http://www.sethwklein.net/projects/iana-etc/"/></literallayout>
  
  <para>The installation dependencies for Iana-Etc haven't been checked yet.</para>
  
  
  
  <sect2>
  <title>Installation of Iana-Etc</title>
  
  <para>Parse the data:</para>
  
  <screen><userinput>make</userinput></screen>
  
  <para>And install it:</para>
  
  <screen><userinput>make install</userinput></screen>
  
  </sect2>
  
  
  <sect2 id="contents-iana-etc"><title>Contents of Iana-Etc</title>
  
  <para><emphasis>Installed files</emphasis>: protocols, services</para>
  
  </sect2>
  
  
  </sect1>
  
  
  
  1.1                  LFS/newxml/chapter06/mktemp.xml
  
  Index: mktemp.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN" "http://www.docbook.org/xml/4.3CR3/docbookx.dtd" [
    <!ENTITY % general-entities SYSTEM "../general.ent">
    %general-entities;
  ]>
  <sect1 xmlns:xi="http://www.w3.org/2003/XInclude" id="ch-system-mktemp" xreflabel="Mktemp">
  <title>Installing Mktemp-&mktemp-version;</title>
  <?dbhtml filename="mktemp.html"?>
  
  <para>The Mktemp package contains programs used to create secure temporary
  files in shell scripts.</para>
  
  <screen>&buildtime; 0.1 SBU
  &diskspace; 317 KB</screen>
  
  <literallayout>Official download location for Mktemp (&mktemp-version;):
  <ulink url="ftp://ftp.mktemp.org/pub/mktemp/"/></literallayout>
  
  <para>The installation dependencies for Mktemp haven't been checked yet.</para>
  
  
  
  <sect2>
  <title>Installation of Mktemp</title>
  
  <para>Many scripts still use the deprecated <command>tempfile</command>
  program, which has functionality much the same as <command>mktemp</command>.
  Patch mktemp to include a <command>tempfile</command> wrapper:</para>
  
  <screen><userinput>patch -Np1 -i ../mktemp-&mktemp-version;-add-tempfile.patch</userinput></screen>
  
  <para>Now prepare Mktemp for compilation:</para>
  
  <screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
  
  <para>The meaning of the configure option:</para>
  
  <itemizedlist>
  <listitem><para><userinput>--with-libc</userinput>: This causes the
  <command>mktemp</command> program to use the <emphasis>mkstemp</emphasis>
  and <emphasis>mkdtemp</emphasis> functions from the system C
  library.</para></listitem>
  </itemizedlist>
  
  <para>Compile the package:</para>
  
  <screen><userinput>make</userinput></screen>
  
  <para>And install it:</para>
  
  <screen><userinput>make install</userinput></screen>
  
  </sect2>
  
  
  <sect2 id="contents-mktemp"><title>Contents of Mktemp</title>
  
  <para><emphasis>Installed programs</emphasis>: mktemp, tempfile</para>
  
  </sect2>
  
  <sect2><title>Short descriptions</title>
  
  <para><command>mktemp</command> creates temporary files in a secure manner.
  It is used in scripts.</para>
  
  <para><command>tempfile</command> creates temporary files in a less secure
  manner than <command>mktemp</command>. It is installed for
  backwards-compatibility.</para>
  
  </sect2>
  
  
  </sect1>
  
  
  



More information about the lfs-book mailing list