source: chapter06/mktemp.xml@ 46a2e9c

Last change on this file since 46a2e9c was 46a2e9c, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Merged recent changes from trunk to lfs-alpha. Fixed typo.

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

  • Property mode set to 100644
File size: 3.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-mktemp" role="wrap">
7<title>Mktemp-&mktemp-version;</title>
8<?dbhtml filename="mktemp.html"?>
9
10<indexterm zone="ch-system-mktemp"><primary sortas="a-Mktemp">Mktemp</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Mktemp package contains programs used to create secure temporary
14files in shell scripts.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>436 KB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Coreutils, Make, Patch, and Zlib</seg></seglistitem>
25</segmentedlist>
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Mktemp</title>
30
31<para>Many scripts still use the deprecated
32<command>tempfile</command> program, which has functionality similar
33to <command>mktemp</command>. Patch Mktemp to include a
34<command>tempfile</command> wrapper:</para>
35
36<screen><userinput>patch -Np1 -i ../&mktemp-tempfile-patch;</userinput></screen>
37
38<para>Prepare Mktemp for compilation:</para>
39
40<screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
41
42<para>The meaning of the configure options:</para>
43
44<variablelist>
45<varlistentry>
46<term><parameter>--with-libc</parameter></term>
47<listitem><para>This causes the <command>mktemp</command> program to
48use the <emphasis>mkstemp</emphasis> and <emphasis>mkdtemp</emphasis>
49functions from the system C library instead of its own implementation of them.
50</para></listitem>
51</varlistentry>
52</variablelist>
53
54<para>Compile the package:</para>
55
56<screen><userinput>make</userinput></screen>
57
58<para>This package does not come with a test suite.</para>
59
60<para>Install the package:</para>
61
62<screen><userinput>make install
63make install-tempfile</userinput></screen>
64
65</sect2>
66
67
68<sect2 id="contents-mktemp" role="content"><title>Contents of Mktemp</title>
69
70<segmentedlist>
71<segtitle>Installed programs</segtitle>
72<seglistitem><seg>mktemp and tempfile</seg></seglistitem>
73</segmentedlist>
74
75<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
76<?dbfo list-presentation="list"?>
77<?dbhtml list-presentation="table"?>
78
79<varlistentry id="mktemp">
80<term><command>mktemp</command></term>
81<listitem>
82<para>Creates temporary files in a secure manner; it is used in scripts</para>
83<indexterm zone="ch-system-mktemp mktemp"><primary sortas="b-mktemp">mktemp</primary></indexterm>
84</listitem>
85</varlistentry>
86
87<varlistentry id="tempfile">
88<term><command>tempfile</command></term>
89<listitem>
90<para>Creates temporary files in a less secure manner than
91<command>mktemp</command>; it is installed for backwards-compatibility</para>
92<indexterm zone="ch-system-mktemp tempfile"><primary sortas="b-tempfile">tempfile</primary></indexterm>
93</listitem>
94</varlistentry>
95</variablelist>
96
97</sect2>
98
99</sect1>
100
Note: See TracBrowser for help on using the repository browser.