Changeset 81fd230 for chapter06/mktemp.xml
- Timestamp:
- 02/19/2005 10:16:42 PM (19 years ago)
- Branches:
- 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.1, 6.1.1, 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
- Children:
- 3d31fc4
- Parents:
- 2f9131f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/mktemp.xml
r2f9131f r81fd230 4 4 %general-entities; 5 5 ]> 6 <sect1 id="ch-system-mktemp" xreflabel="Mktemp"role="wrap">6 <sect1 id="ch-system-mktemp" role="wrap"> 7 7 <title>Mktemp-&mktemp-version;</title> 8 8 <?dbhtml filename="mktemp.html"?> … … 11 11 12 12 <sect2 role="package"><title/> 13 <para>The Mktemp package contains programs used to create secure temporary 14 files in shell scripts.</para> 13 15 14 16 <segmentedlist> … … 18 20 </segmentedlist> 19 21 22 <segmentedlist> 23 <segtitle>Mktemp installation depends on</segtitle> 24 <seglistitem><seg>Coreutils, Make, and Patch</seg></seglistitem> 25 </segmentedlist> 20 26 </sect2> 21 27 … … 23 29 <title>Installation of Mktemp</title> 24 30 25 <para>Apply a patch:</para> 31 <para>Many scripts still use the deprecated 32 <command>tempfile</command> program, which has functionality similar 33 to <command>mktemp</command>. Patch Mktemp to include a 34 <command>tempfile</command> wrapper:</para> 26 35 27 36 <screen><userinput>patch -Np1 -i ../mktemp-&mktemp-version;-add_tempfile-1.patch</userinput></screen> 28 37 29 <para> Now prepare Mktemp for compilation:</para>38 <para>Prepare Mktemp for compilation:</para> 30 39 31 40 <screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen> 41 42 <para>The meaning of the configure option:</para> 43 44 <variablelist> 45 <varlistentry> 46 <term><parameter>--with-libc</parameter></term> 47 <listitem><para>This causes the <command>mktemp</command> program to 48 use the <emphasis>mkstemp</emphasis> and <emphasis>mkdtemp</emphasis> 49 functions from the system C library.</para></listitem> 50 </varlistentry> 51 </variablelist> 32 52 33 53 <para>Compile the package:</para> … … 35 55 <screen><userinput>make</userinput></screen> 36 56 37 <para> Now install it:</para>57 <para>Install the package:</para> 38 58 39 59 <screen><userinput>make install … … 45 65 <sect2 id="contents-mktemp" role="content"><title>Contents of Mktemp</title> 46 66 47 <para>See testing</para> 67 <segmentedlist> 68 <segtitle>Installed programs</segtitle> 69 <seglistitem><seg>mktemp and tempfile</seg></seglistitem> 70 </segmentedlist> 71 72 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> 73 <?dbfo list-presentation="list"?> 74 75 <varlistentry id="mktemp"> 76 <term><command>mktemp</command></term> 77 <listitem> 78 <para>Creates temporary files in a secure manner; it is used in scripts</para> 79 <indexterm zone="ch-system-mktemp mktemp"><primary sortas="b-mktemp">mktemp</primary></indexterm> 80 </listitem> 81 </varlistentry> 82 83 <varlistentry id="tempfile"> 84 <term><command>tempfile</command></term> 85 <listitem> 86 <para>Creates temporary files in a less secure manner than 87 <command>mktemp</command>; it is installed for backwards-compatibility</para> 88 <indexterm zone="ch-system-mktemp tempfile"><primary sortas="b-tempfile">tempfile</primary></indexterm> 89 </listitem> 90 </varlistentry> 91 </variablelist> 48 92 49 93 </sect2> 50 94 51 95 </sect1> 96
Note:
See TracChangeset
for help on using the changeset viewer.