source: BOOK/final-system/common/mktemp.xml@ 89847a8

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 89847a8 was b76b419, checked in by Jim Gifford <clfs@…>, 19 years ago

r1119@server (orig r1117): chris | 2006-01-31 17:59:55 -0800
Updated package dependencies

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[3f8be484]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>
[b76b419]27 <seg>Bash, Coreutils, Make, Patch, and Zlib</seg>
[3f8be484]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
[e0e40d3]44<screen os="d"><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
[3f8be484]45
[e0e40d3]46 <variablelist os="e">
[3f8be484]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
[e0e40d3]59 <para os="f">Compile the package:</para>
[3f8be484]60
[e0e40d3]61<screen os="g"><userinput>make</userinput></screen>
[3f8be484]62
[e0e40d3]63 <para os="h">Install the package:</para>
[3f8be484]64
[e0e40d3]65<screen os="i"><userinput>make install
[3f8be484]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.