aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/mktemp.xml
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2004-05-03 10:59:46 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2004-05-03 10:59:46 +0000
commit673b0d84ba9591e07c0bdf0ee49d92eba10f502c (patch)
tree129e27a1450727b440da4378e0117a468eb9c25e /chapter06/mktemp.xml
parent287ea55da70ceb1f0990554b7db921d525fef816 (diff)
* Merged newxml into HEAD
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3435 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/mktemp.xml')
-rw-r--r--chapter06/mktemp.xml75
1 files changed, 75 insertions, 0 deletions
diff --git a/chapter06/mktemp.xml b/chapter06/mktemp.xml
new file mode 100644
index 000000000..90087d771
--- /dev/null
+++ b/chapter06/mktemp.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+<sect1 id="ch-system-mktemp" xreflabel="Mktemp">
+<title>Mktemp-&mktemp-version;</title>
+<?dbhtml filename="mktemp.html"?>
+
+<indexterm zone="ch-system-mktemp"><primary sortas="a-Mktemp">Mktemp</primary></indexterm>
+
+<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>
+
+<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>Now 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>
+
+<indexterm zone="ch-system-mktemp mktemp"><primary sortas="b-mktemp">mktemp</primary></indexterm>
+<para id="mktemp"><command>mktemp</command> creates temporary files in a secure manner.
+It is used in scripts.</para>
+
+<indexterm zone="ch-system-mktemp tempfile"><primary sortas="b-tempfile">tempfile</primary></indexterm>
+<para id="tempfile"><command>tempfile</command> creates temporary files in a less secure
+manner than <command>mktemp</command>. It is installed for
+backwards-compatibility.</para>
+
+</sect2>
+
+
+</sect1>