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

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

r3371@server (orig r1554): chris | 2006-05-10 14:03:44 -0700
Removed dependency info from individual package instructions

  • Property mode set to 100644
File size: 3.1 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 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Mktemp</title>
27
28 <para os="a">Many scripts still use the deprecated <command>tempfile</command>
29 program, which has functionality similar to <command>mktemp</command>.
30 Patch Mktemp to include a <command>tempfile</command> wrapper:</para>
31
32<screen os="b"><userinput>patch -Np1 -i ../&mktemp-tempfile-patch;</userinput></screen>
33
34 <para os="c">Prepare Mktemp for compilation:</para>
35
36<screen os="d"><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
37
38 <variablelist os="e">
39 <title>The meaning of the configure option:</title>
40
41 <varlistentry>
42 <term><parameter>--with-libc</parameter></term>
43 <listitem>
44 <para>This causes the <command>mktemp</command> program to use the
45 <emphasis>mkstemp</emphasis> and <emphasis>mkdtemp</emphasis>
46 functions from the system C library.</para>
47 </listitem>
48 </varlistentry>
49 </variablelist>
50
51 <para os="f">Compile the package:</para>
52
53<screen os="g"><userinput>make</userinput></screen>
54
55 <para os="h">This package does not come with a test suite.</para>
56
57 <para os="i">Install the package:</para>
58
59<screen os="j"><userinput>make install
60make install-tempfile</userinput></screen>
61
62 </sect2>
63
64 <sect2 id="contents-mktemp" role="content">
65 <title>Contents of Mktemp</title>
66
67 <segmentedlist>
68 <segtitle>Installed programs</segtitle>
69
70 <seglistitem>
71 <seg>mktemp and tempfile</seg>
72 </seglistitem>
73 </segmentedlist>
74
75 <variablelist>
76 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77 <?dbfo list-presentation="list"?>
78 <?dbhtml list-presentation="table"?>
79
80 <varlistentry id="mktemp">
81 <term><command>mktemp</command></term>
82 <listitem>
83 <para>Creates temporary files in a secure manner; it is used in
84 scripts</para>
85 <indexterm zone="ch-system-mktemp mktemp">
86 <primary sortas="b-mktemp">mktemp</primary>
87 </indexterm>
88 </listitem>
89 </varlistentry>
90
91 <varlistentry id="tempfile">
92 <term><command>tempfile</command></term>
93 <listitem>
94 <para>Creates temporary files in a less secure manner than
95 <command>mktemp</command>; it is installed for
96 backwards-compatibility</para>
97 <indexterm zone="ch-system-mktemp tempfile">
98 <primary sortas="b-tempfile">tempfile</primary>
99 </indexterm>
100 </listitem>
101 </varlistentry>
102
103 </variablelist>
104
105 </sect2>
106
107</sect1>
Note: See TracBrowser for help on using the repository browser.