source: chapter06/mktemp.xml@ 62c3dff

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 62c3dff was fc298480, checked in by Archaic <archaic@…>, 19 years ago

Minor wording change.

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