source: chapter06/mktemp.xml@ 6a0e6f3

Last change on this file since 6a0e6f3 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-mktemp" xreflabel="Mktemp" role="wrap">
8<title>Mktemp-&mktemp-version;</title>
9<?dbhtml filename="mktemp.html"?>
10
11<indexterm zone="ch-system-mktemp"><primary sortas="a-Mktemp">Mktemp</primary></indexterm>
12
13<section role="package"><title/>
14<para>The Mktemp package contains programs used to create secure temporary
15files in shell scripts.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.1 SBU</seg><seg>317 KB</seg></seglistitem>
21</segmentedlist>
22
23<para>The installation dependencies for Mktemp haven't been checked yet.</para>
24
25</section>
26
27<section role="installation">
28<title>Installation of Mktemp</title>
29
30<para>Many scripts still use the deprecated <command>tempfile</command>
31program, which has functionality much the same as <command>mktemp</command>.
32Patch Mktemp to include a <command>tempfile</command> wrapper:</para>
33
34<screen><userinput>patch -Np1 -i ../mktemp-&mktemp-version;-add_tempfile-1.patch</userinput></screen>
35
36<para>Now prepare Mktemp for compilation:</para>
37
38<screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
39
40<para>The meaning of the configure option:</para>
41
42<variablelist>
43<varlistentry>
44<term><parameter>--with-libc</parameter></term>
45<listitem><para>This causes the <command>mktemp</command> program to
46use the <emphasis>mkstemp</emphasis> and <emphasis>mkdtemp</emphasis>
47functions from the system C library.</para></listitem>
48</varlistentry>
49</variablelist>
50
51<para>Compile the package:</para>
52
53<screen><userinput>make</userinput></screen>
54
55<para>Now install it:</para>
56
57<screen><userinput>make install
58make install-tempfile</userinput></screen>
59
60</section>
61
62
63<section xml:id="contents-mktemp" role="content"><title>Contents of Mktemp</title>
64
65<segmentedlist>
66<segtitle>Installed programs</segtitle>
67<seglistitem><seg>mktemp, tempfile</seg></seglistitem>
68</segmentedlist>
69
70<variablelist><title>Short descriptions</title>
71
72<varlistentry xml:id="mktemp">
73<term><command>mktemp</command></term>
74<listitem>
75<indexterm zone="ch-system-mktemp mktemp"><primary sortas="b-mktemp">mktemp</primary></indexterm>
76<para>creates temporary files in a secure manner. It is used in scripts.</para>
77</listitem>
78</varlistentry>
79
80<varlistentry xml:id="tempfile">
81<term><command>tempfile</command></term>
82<listitem>
83<indexterm zone="ch-system-mktemp tempfile"><primary sortas="b-tempfile">tempfile</primary></indexterm>
84<para>creates temporary files in a less secure manner than
85<command>mktemp</command>. It is installed for backwards-compatibility.</para>
86</listitem>
87</varlistentry>
88</variablelist>
89
90</section>
91
92</section>
Note: See TracBrowser for help on using the repository browser.