Diff for /rpm2html/mirror.html between versions 1.1 and 1.2

version 1.1, 1998/05/11 18:41:02 version 1.2, 1998/05/12 00:54:29
Line 1 Line 1
 <HTML>  <HTML>
 <HEAD>  <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">     <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; Linux 2.1.101 i686) [Netscape]">     <META NAME="GENERATOR" CONTENT="Mozilla/4.03 [en] (X11; I; Linux 2.1.101 i586) [Netscape]">
    <TITLE>Setting up a mirror of Rufus.W3.Org RPM database</TITLE>     <TITLE>Setting up a mirror of Rufus.W3.Org RPM database</TITLE>
 </HEAD>  </HEAD>
 <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EF" VLINK="#51188E" ALINK="#FF0000">  <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EF" VLINK="#51188E" ALINK="#FF0000">
Line 18  Prerequisites</H3> Line 18  Prerequisites</H3>
   
 <OL>  <OL>
 <LI>  <LI>
 You must of course have a Web server running, <A HREF="http://rufus.w3.org/linux/rpm/apache.html">I  You must of course have a Web server running, <A HREF="../rpm/apache.html">I
 suggest Apache </A>the obvious choice for a Linux machine, it's probably  suggest Apache </A>the obvious choice for a Linux machine, it's probably
 installed by default anyway.</LI>  installed by default anyway.</LI>
   
Line 28  You should run a mirror of the RDF datab Line 28  You should run a mirror of the RDF datab
 to fetch first a <A HREF="ftp://ftp.rpm.org/pub/RDF.tar.gz">compressed  to fetch first a <A HREF="ftp://ftp.rpm.org/pub/RDF.tar.gz">compressed
 archive of the whole RDF tree </A>and expand it. Note that you don't need  archive of the whole RDF tree </A>and expand it. Note that you don't need
 to mirror the full tree, you can select to prune some of the subtrees (but  to mirror the full tree, you can select to prune some of the subtrees (but
 do not break the overall structure !). I suggest using <A HREF="http://rufus.w3.org/linux/RPM/mirror.html">mirror-2.8  do not break the overall structure !). I suggest using <A HREF="../RPM/mirror.html">mirror-2.8
 perl script</A> to do the mirroring.</LI>  perl script</A> to do the mirroring. [<B>NOTE</B>: until the FTP server
   is available on ftp.rpm.org, use the <A HREF="ftp://rufus.w3.org/linux/RDF/">RDF
   database on rufus</A> and the <A HREF="ftp://rufus.w3.org/linux/RDF.tar.gz">RDF.tar.gz
   </A>here]</LI>
   
 <LI>  <LI>
 You should get a recent copy of rpm2html, you can <A HREF="ftp://rufus.w3.org/pub/rpm2html/">grab  You should get a recent copy of rpm2html, you can <A HREF="ftp://rufus.w3.org/pub/rpm2html/">grab
Line 37  an rpm</A> for example :-) (the version Line 40  an rpm</A> for example :-) (the version
 a good idea to follow closely the releases), install it.</LI>  a good idea to follow closely the releases), install it.</LI>
   
 <LI>  <LI>
   Of course, you need disk space, currently the RDF tree requires 60 MBytes
   while the full HTML tree built consumes nearly 300 MBytes (which is still
   small compared to the initial 8 GBytes needed for the RPM initial mirroring
   !).</LI>
   
   <LI>
 Subscribe to the rpm2html mailing-list, send a mail to <A HREF="mailto:majordomo@rufus.w3.org">majordomo@rufus.w3.org</A>  Subscribe to the rpm2html mailing-list, send a mail to <A HREF="mailto:majordomo@rufus.w3.org">majordomo@rufus.w3.org</A>
 with the line<BR>  with the line</LI>
 <TT>subscribe rpm2html<BR>  
 </TT>in the body of the message. The list <A HREF="http://rufus.w3.org/linux/rpm2html/messages/">archive  <BR><TT>subscribe rpm2html</TT>
 are on-line.</A></LI>  <BR>in the body of the message. The list <A HREF="messages/">archive are
 </OL>  on-line.</A></OL>
   
   <H3>
   </H3>
   
 <H3>  <H3>
 Setting up the rpm2html config file</H3>  Setting up the rpm2html config file</H3>
Line 68  space !</LI> Line 80  space !</LI>
 Change <B>url</B> to the prefix to access teh pages on your HTTP server.  Change <B>url</B> to the prefix to access teh pages on your HTTP server.
 For example if you are serving them from <B>/home/httpd/html/RPM</B>, the  For example if you are serving them from <B>/home/httpd/html/RPM</B>, the
 full URL to access them is <B>http://my.server.org/RPM</B> and the correct  full URL to access them is <B>http://my.server.org/RPM</B> and the correct
 value would be : <B>url=/RPM</B>&nbsp;.</LI>  value would be : <B>url=/RPM</B> .</LI>
   
 <LI>  <LI>
 Remove any <B>rdf=true</B> or <B>rdf_dir=/linux/RDF</B> if present, those  Remove any <B>rdf=true</B> or <B>rdf_dir=/linux/RDF</B> if present, those
Line 88  distribution. Let's examine one entry: Line 100  distribution. Let's examine one entry:
 <OL>  <OL>
 <LI>  <LI>
 <TT>[/linux/RDF/redhat/5.0/i386]</TT> :&nbsp; <B>change /linux</B><TT>  <TT>[/linux/RDF/redhat/5.0/i386]</TT> :&nbsp; <B>change /linux</B><TT>
 </TT>to the actual location on your disk for the mirror, e.g.:<BR>  </TT>to the actual location on your disk for the mirror, e.g.:</LI>
 <TT>[/home/ftp/pub/mirror/redhat/5.0/i386]</TT></LI>  
   
   <BR><TT>[/home/ftp/pub/mirror/redhat/5.0/i386]</TT>
 <LI>  <LI>
 <TT>name=RedHat-5.0 for i386</TT> :&nbsp;You probably don't have to change  <TT>name=RedHat-5.0 for i386</TT> : You probably don't have to change the
 the name of the distribution, unless you want to translate it.</LI>  name of the distribution, unless you want to translate it.</LI>
   
 <LI>  <LI>
 <TT>subdir=redhat/5.0/i386</TT> : local path, don't change it !</LI>  <TT>subdir=redhat/5.0/i386</TT> : local path, don't change it !</LI>
   
 <LI>  <LI>
 <TT>ftp=ftp://ftp.redhat.com/pub/redhat/redhat-5.0/alpha/RedHat/RPMS</TT>  <TT>ftp=ftp://ftp.redhat.com/pub/redhat/redhat-5.0/alpha/RedHat/RPMS</TT>
 :&nbsp;The origin server for the packages, don't change it !</LI>  : The origin server for the packages, don't change it !</LI>
   
 <LI>  <LI>
 <TT>ftpsrc=ftp://ftp.redhat.com/pub/redhat/redhat-5.0/SRPMS</TT> :&nbsp;The  <TT>ftpsrc=ftp://ftp.redhat.com/pub/redhat/redhat-5.0/SRPMS</TT> : The
 origin server for the sources, you may want to point to a near server providing  origin server for the sources, you may want to point to a near server providing
 the sources RPMs.</LI>  the sources RPMs.</LI>
   
 <LI>  <LI>
 <TT>color=#ffe0ff </TT>:&nbsp;Color code for this distribution, you can  <TT>color=#ffe0ff </TT>: Color code for this distribution, you can change
 change that but avoid giving nearly the same color for two different distribution.</LI>  that but avoid giving nearly the same color for two different distribution.</LI>
   
 <LI>  <LI>
 <TT>mirror=ftp://rufus.w3.org/linux/redhat/redhat-5.0/alpha/RedHat/RPMS</TT>  <TT>mirror=ftp://rufus.w3.org/linux/redhat/redhat-5.0/alpha/RedHat/RPMS</TT>
Line 137  RPM mirrors. Line 149  RPM mirrors.
 <BR>&nbsp;  <BR>&nbsp;
 <H3>  <H3>
 Automate the process</H3>  Automate the process</H3>
   Add the mirror command to update the RDF directory and the call to rpm2html
   
 <P>Add the mirror command to update the RDF directory and the call to rpm2html  
 to your crontab. <B>Note </B>that rpm2html never clean up old pages generated  to your crontab. <B>Note </B>that rpm2html never clean up old pages generated
 but no more accurate, you need to add this to your cron job <B>before</B>  but no more accurate, you need to add this to your cron job <B>before</B>
 running rpm2html:  running rpm2html:

Removed from v.1.1  
changed lines
  Added in v.1.2


Webmaster