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">
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.
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>
22 <listitem><para>Go to the <filename
23 class="directory">/home/ftp/lfs-packages/cvs</filename> directory.</para>
26 <listitem><para>Remove the symlink that points to the old package.</para>
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>
35 <listitem><para>Remove the <filename>lfs-packages-cvs-*</filename> file.
39 <listitem><para>Recreate the <filename>00MD5SUMS</filename> file by running:
42 <para><screen><userinput>rm 00MD5SUMS &&
43 md5sum * > 00MD5SUMS</userinput></screen>
47 <listitem><para>Run <userinput>date</userinput> to get the current date and
48 time on the server.</para>
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:
58 <screen><userinput>cp -av cvs lfs-packages-cvs-yyyymmdd-hhmm &&
59 tar cvfh lfs-packages-cvs-yyyymmdd-hhmm.tar lfs-packages-cvs-yyyymmdd-hhmm &&
61 mv lfs-packages-yyyymmdd-hhmm cvs &&
62 mv lfs-packages-yyyymmdd-hhmm.tar cvs</userinput></screen>
67 <para>Add the new lfs-packages' MD5 hash to the 00MD5SUMS file:</para>
69 <para><screen><userinput>cd cvs &&
70 md5sum lfs-packages-yyyymmdd-hhmm.tar >> 00MD5SUMS</userinput></screen>
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.
84 <para>Go back to the LFS Book and edit the <filename>index.xml</filename>
90 <para>Update the <emphasis>all-version</emphasis> entity and enter the new
91 version string in the <emphasis>cvs-yyyymmdd-hhmm</emphasis> format.
96 <para>Update the <emphasis>all-size-kb</emphasis> and
97 <emphasis>all-size-mb</emphasis> entities with the values you calculated