[bf8c11f] | 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 | <!ENTITY % patches-entities SYSTEM "../../patches.ent">
|
---|
| 6 | %general-entities;
|
---|
| 7 | %patches-entities;
|
---|
| 8 | ]>
|
---|
| 9 |
|
---|
| 10 | <sect1 id="ch-system-mktemp" role="wrap">
|
---|
| 11 | <?dbhtml filename="mktemp.html"?>
|
---|
| 12 |
|
---|
| 13 | <title>Mktemp-&mktemp-version;</title>
|
---|
| 14 |
|
---|
| 15 | <indexterm zone="ch-system-mktemp">
|
---|
| 16 | <primary sortas="a-Mktemp">Mktemp</primary>
|
---|
| 17 | </indexterm>
|
---|
| 18 |
|
---|
| 19 | <sect2 role="package">
|
---|
| 20 | <title/>
|
---|
| 21 |
|
---|
| 22 | <para>The Mktemp package contains programs used to create secure
|
---|
| 23 | temporary files in shell scripts.</para>
|
---|
| 24 |
|
---|
| 25 | <segmentedlist>
|
---|
| 26 | <segtitle>&buildtime;</segtitle>
|
---|
| 27 | <segtitle>&diskspace;</segtitle>
|
---|
| 28 |
|
---|
| 29 | <seglistitem>
|
---|
| 30 | <seg>Not checked yet</seg>
|
---|
| 31 | <seg>Not checked yet</seg>
|
---|
| 32 | </seglistitem>
|
---|
| 33 | </segmentedlist>
|
---|
| 34 |
|
---|
| 35 | <segmentedlist>
|
---|
| 36 | <segtitle>&dependencies;</segtitle>
|
---|
| 37 |
|
---|
| 38 | <seglistitem>
|
---|
| 39 | <seg>Coreutils, Make, and Patch</seg>
|
---|
| 40 | </seglistitem>
|
---|
| 41 | </segmentedlist>
|
---|
| 42 |
|
---|
| 43 | </sect2>
|
---|
| 44 |
|
---|
| 45 | <sect2 role="installation">
|
---|
| 46 | <title>Installation of Mktemp</title>
|
---|
| 47 |
|
---|
| 48 | <para os="a">Many scripts still use the deprecated <command>tempfile</command>
|
---|
| 49 | program, which has functionality similar to <command>mktemp</command>.
|
---|
| 50 | Patch Mktemp to include a <command>tempfile</command> wrapper:</para>
|
---|
| 51 |
|
---|
| 52 | <screen os="b"><userinput>patch -Np1 -i ../&mktemp-tempfile-patch;</userinput></screen>
|
---|
| 53 |
|
---|
| 54 | <para os="c">Prepare Mktemp for compilation:</para>
|
---|
| 55 |
|
---|
| 56 | <screen os="c1"><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
|
---|
| 57 |
|
---|
| 58 | <variablelist os="d">
|
---|
| 59 | <title>The meaning of the configure option:</title>
|
---|
| 60 |
|
---|
| 61 | <varlistentry>
|
---|
| 62 | <term><parameter>--with-libc</parameter></term>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>This causes the <command>mktemp</command> program to use the
|
---|
| 65 | <emphasis>mkstemp</emphasis> and <emphasis>mkdtemp</emphasis>
|
---|
| 66 | functions from the system C library.</para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </varlistentry>
|
---|
| 69 | </variablelist>
|
---|
| 70 |
|
---|
| 71 | <para os="e">Compile the package:</para>
|
---|
| 72 |
|
---|
| 73 | <screen os="f"><userinput>make</userinput></screen>
|
---|
| 74 |
|
---|
| 75 | <para os="g">Install the package:</para>
|
---|
| 76 |
|
---|
| 77 | <screen os="h"><userinput>make install
|
---|
| 78 | make install-tempfile</userinput></screen>
|
---|
| 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 id="contents-mktemp" role="content">
|
---|
| 83 | <title>Contents of Mktemp</title>
|
---|
| 84 |
|
---|
| 85 | <segmentedlist>
|
---|
| 86 | <segtitle>Installed programs</segtitle>
|
---|
| 87 |
|
---|
| 88 | <seglistitem>
|
---|
| 89 | <seg>mktemp and tempfile</seg>
|
---|
| 90 | </seglistitem>
|
---|
| 91 | </segmentedlist>
|
---|
| 92 |
|
---|
| 93 | <variablelist>
|
---|
| 94 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 95 | <?dbfo list-presentation="list"?>
|
---|
| 96 | <?dbhtml list-presentation="table"?>
|
---|
| 97 |
|
---|
| 98 | <varlistentry id="mktemp">
|
---|
| 99 | <term><command>mktemp</command></term>
|
---|
| 100 | <listitem>
|
---|
| 101 | <para>Creates temporary files in a secure manner; it is used in
|
---|
| 102 | scripts</para>
|
---|
| 103 | <indexterm zone="ch-system-mktemp mktemp">
|
---|
| 104 | <primary sortas="b-mktemp">mktemp</primary>
|
---|
| 105 | </indexterm>
|
---|
| 106 | </listitem>
|
---|
| 107 | </varlistentry>
|
---|
| 108 |
|
---|
| 109 | <varlistentry id="tempfile">
|
---|
| 110 | <term><command>tempfile</command></term>
|
---|
| 111 | <listitem>
|
---|
| 112 | <para>Creates temporary files in a less secure manner than
|
---|
| 113 | <command>mktemp</command>; it is installed for
|
---|
| 114 | backwards-compatibility</para>
|
---|
| 115 | <indexterm zone="ch-system-mktemp tempfile">
|
---|
| 116 | <primary sortas="b-tempfile">tempfile</primary>
|
---|
| 117 | </indexterm>
|
---|
| 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
| 120 |
|
---|
| 121 | </variablelist>
|
---|
| 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | </sect1>
|
---|