source: final-system/common/mktemp.xml@ 9cdfa49

Last change on this file since 9cdfa49 was e6423a01, checked in by Jim Gifford <clfs@…>, 19 years ago

r781@server (orig r779): jim | 2005-11-30 22:14:06 -0800

r836@server: jim | 2005-11-30 22:13:02 -0800
Text updates to final-system


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