remove an old note for file
[linux_from_scratch.git] / editor-manual / chapter06 / updateftp.xml
blobf0338f4205a0973ae24faa488b39d6704ede1763
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE chapter 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   %general-entities;
5 ]>
7 <sect1 id="ch06-updateftp">
8   <title>Updating the LFS FTP Archive</title>
9   <?dbhtml filename="updateftp.html"?>
11   <para>Now that the book has been updated, it's time to update the LFS FTP
12     archive so people can download the new package.
13   </para>
15   <itemizedlist>
16     <listitem><para>Move the new package tarball from your home directory on
17       belgarath to the <filename
18       class="directory">/home/ftp/lfs-packages/conglomeration</filename>
19       directory.</para>
20     </listitem>
22     <listitem><para>Go to the <filename
23       class="directory">/home/ftp/lfs-packages/cvs</filename> directory.</para>
24     </listitem>
26     <listitem><para>Remove the symlink that points to the old package.</para>
27     </listitem>
29     <listitem><para>Create a new symlink that points to the new package by
30       running a command like
31       <userinput>ln -s ../conglomeration/package-newversion.tar.bz2</userinput>
32       </para>
33     </listitem>
35     <listitem><para>Remove the <filename>lfs-packages-cvs-*</filename> file.
36       </para>
37     </listitem>
39     <listitem><para>Recreate the <filename>00MD5SUMS</filename> file by running:
40       </para>
42       <para><screen><userinput>rm 00MD5SUMS &amp;&amp;
43 md5sum * > 00MD5SUMS</userinput></screen>
44       </para>
45     </listitem>
47     <listitem><para>Run <userinput>date</userinput> to get the current date and
48       time on the server.</para>
49     </listitem>
51     <listitem>
52       <para>Go to the <filename class="directory">/home/ftp/lfs-packages
53         </filename> directory and create a new lfs-packages tarball by running
54         the following commands:
55       </para>
57       <para>
58         <screen><userinput>cp -av cvs lfs-packages-cvs-yyyymmdd-hhmm &amp;&amp;
59 tar cvfh lfs-packages-cvs-yyyymmdd-hhmm.tar lfs-packages-cvs-yyyymmdd-hhmm &amp;&amp;
60 rm -r cvs &amp;&amp;
61 mv lfs-packages-yyyymmdd-hhmm cvs &amp;&amp;
62 mv lfs-packages-yyyymmdd-hhmm.tar cvs</userinput></screen>
63       </para>
64     </listitem>
66     <listitem>
67       <para>Add the new lfs-packages' MD5 hash to the 00MD5SUMS file:</para>
69       <para><screen><userinput>cd cvs &amp;&amp;
70 md5sum lfs-packages-yyyymmdd-hhmm.tar >> 00MD5SUMS</userinput></screen>
71       </para>
72     </listitem>
74     <listitem>
75       <para>Check the filesize of this new lfs-packages-cvs tarball and divide
76         it by <emphasis>1024</emphasis> to get the number of Kilobytes.  Round
77         it off to the nearest Kilobyte. Divide this number by
78         <emphasis>1024</emphasis> to get the number of Megabytes and round it
79         off to two digits after the decimal point.
80       </para>
81     </listitem>
83     <listitem>
84       <para>Go back to the LFS Book and edit the <filename>index.xml</filename>
85         file.
86       </para>
87     </listitem>
89     <listitem>
90       <para>Update the <emphasis>all-version</emphasis> entity and enter the new
91         version string in the <emphasis>cvs-yyyymmdd-hhmm</emphasis> format.
92       </para>
93     </listitem>
95     <listitem>
96       <para>Update the <emphasis>all-size-kb</emphasis> and
97         <emphasis>all-size-mb</emphasis> entities with the values you calculated
98         above.
99       </para>
100     </listitem>
101   </itemizedlist>
102 </sect1>