source: chapter06/mktemp.xml@ 1fe35e1

Last change on this file since 1fe35e1 was 1fe35e1, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter06/*.xml) RELAX NG validation fixes

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

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-mktemp" xreflabel="Mktemp" role="wrap">
8<info><title>Mktemp-&mktemp-version;</title></info>
[673b0d8]9<?dbhtml filename="mktemp.html"?>
10
11<indexterm zone="ch-system-mktemp"><primary sortas="a-Mktemp">Mktemp</primary></indexterm>
12
[1fe35e1]13<section role="package"><info><title/></info>
[673b0d8]14<para>The Mktemp package contains programs used to create secure temporary
15files in shell scripts.</para>
16
[a001133]17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.1 SBU</seg><seg>317 KB</seg></seglistitem>
21</segmentedlist>
[673b0d8]22
23<para>The installation dependencies for Mktemp haven't been checked yet.</para>
24
[1fe35e1]25</section>
[673b0d8]26
[1fe35e1]27<section role="installation">
28<info><title>Installation of Mktemp</title></info>
[673b0d8]29
30<para>Many scripts still use the deprecated <command>tempfile</command>
31program, which has functionality much the same as <command>mktemp</command>.
[ef57e3b]32Patch Mktemp to include a <command>tempfile</command> wrapper:</para>
[673b0d8]33
[71bbe67]34<screen><userinput>patch -Np1 -i ../mktemp-&mktemp-version;-add_tempfile-1.patch</userinput></screen>
[673b0d8]35
36<para>Now prepare Mktemp for compilation:</para>
37
38<screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
39
40<para>The meaning of the configure option:</para>
41
[df8334f]42<variablelist>
43<varlistentry>
[ef57e3b]44<term><parameter>--with-libc</parameter></term>
[df8334f]45<listitem><para>This causes the <command>mktemp</command> program to
46use the <emphasis>mkstemp</emphasis> and <emphasis>mkdtemp</emphasis>
47functions from the system C library.</para></listitem>
48</varlistentry>
49</variablelist>
[673b0d8]50
51<para>Compile the package:</para>
52
53<screen><userinput>make</userinput></screen>
54
55<para>Now install it:</para>
56
[ef57e3b]57<screen><userinput>make install
58make install-tempfile</userinput></screen>
[673b0d8]59
[1fe35e1]60</section>
[673b0d8]61
62
[1fe35e1]63<section xml:id="contents-mktemp" role="content"><info><title>Contents of Mktemp</title></info>
[673b0d8]64
[c6cb3aa]65<segmentedlist>
66<segtitle>Installed programs</segtitle>
67<seglistitem><seg>mktemp, tempfile</seg></seglistitem>
68</segmentedlist>
[673b0d8]69
[c6cb3aa]70<variablelist><title>Short descriptions</title>
[673b0d8]71
[1fe35e1]72<varlistentry xml:id="mktemp">
[b8a819f]73<term><command>mktemp</command></term>
[c6cb3aa]74<listitem>
[673b0d8]75<indexterm zone="ch-system-mktemp mktemp"><primary sortas="b-mktemp">mktemp</primary></indexterm>
[c6cb3aa]76<para>creates temporary files in a secure manner. It is used in scripts.</para>
77</listitem>
78</varlistentry>
[673b0d8]79
[1fe35e1]80<varlistentry xml:id="tempfile">
[b8a819f]81<term><command>tempfile</command></term>
[c6cb3aa]82<listitem>
[673b0d8]83<indexterm zone="ch-system-mktemp tempfile"><primary sortas="b-tempfile">tempfile</primary></indexterm>
[c6cb3aa]84<para>creates temporary files in a less secure manner than
85<command>mktemp</command>. It is installed for backwards-compatibility.</para>
86</listitem>
87</varlistentry>
88</variablelist>
[673b0d8]89
[1fe35e1]90</section>
[673b0d8]91
[1fe35e1]92</section>
Note: See TracBrowser for help on using the repository browser.