Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > b363c351a7661e56dec68841381848f5 > files > 15

autorpm-1.9.9-1mdk.i586.rpm

##########################################################
# $Id: samples.conf,v 1.4 1998/03/20 00:35:59 kirk Exp $
##########################################################
# Created by Kirk Bauer <kirk@kaybee.org>
# http://www.kaybee.org/~kirk
##########################################################

##########################################################
# This will keep your computer current with Red Hat's
# updates for RHL5.0:

# You should change this to your local mirror...
ftp ("ftp.cc.gatech.edu:/pub/linux/distributions/redhat/redhat-5.0/updates/i386") {

   # If no 'Compare_To_Dir' commands are given,
   # autorpm will use the installed RPM database to compare.

   Report_To ("root");

   # Don't upgrade kernel packages...
   # Ignore anything that begins with 'kernel' (that's what the carrot means, begins with)
   Regex_Ignore ("^kernel-");

   action (updated) {
      # Automatically install these official updates
      Install (Auto);
      Report (Yes);
      # Uncomment the next line to keep local copies of the updates...
      # Store ("/redhat-5.0-updates/i386");
   }

   action (new) {
      # Interactively install these new updates
      Install (Interactive);
      Report (Yes);
      # Uncomment the next line to keep local copies of the updates...
      # Store ("/redhat-5.0-updates/i386");
   }
}

##########################################################
# This one will find new versions of 'autorpm' and notify
# root that it needs to be upgraded (then root can execute
# 'autorpm --apply' to update the RPMs).
ftp ("ftp.kaybee.org:/pub/redhat/RPMS/i386") {

   Report_To ("root");

   # We only care about the 'autorpm' file...
   Regex_Accept ("^autorpm"); # accept any files that begin
                             # with the string 'autorpm'

   # If no 'Compare_To_Dir' commands are given,
   # autorpm will use the installed RPM database to compare.

   action (updated) {
      Install (Interactive);
      Report (Yes);
   }
}


##########################################################
# This one will mirror the updates for all versions
# of Red Hat 5.0, but won't bother with the source RPMs.
# All the updates stored locally will be in architecture-
# specific directories just like on the original site.
ftp ("ftp.cc.gatech.edu:/pub/linux/distributions/redhat/redhat-5.0/updates") {

   # Recurse through the remote FTP site if necessary
   Recursive (Yes);

   # Compare, recursively, the remote files to this directory
   Recursive_Compare_To_Dir ("/home/ftp/pub/redhat/updates-5.0");

   # Ignore any directories named 'SRPMS' when recursing.
   Regex_Dir_Ignore ("SRPMS");

   # What to do if the remote RPM is a newer version
   # that the local copy
   action (updated) {

      # Delete whatever local file we had that was older
      # than the remote file.
      Delete_Old_Version (Yes);

      # Store the remote file in this local directory.
      # the 'Recursive' part means that if the remote
      # file was in the /i386/ subdirectory, it will be
      # stored in a /i386/ directory locally.
      Recursive_Store ("/home/ftp/pub/redhat/updates-5.0");
   }

   # What to do if the remote RPM has no corresponding
   # version locally (i.e. it is new)
   action (new) {
      Store_Recursive ("/home/ftp/pub/redhat/updates-5.0");
   }
}

##################################################################
##########################################################
# This one is what you might run on central server in
# a multi-host local network.  The server will connect
# to a ftp.redhat.com mirror to check for new updates,
# compare them to itself, and then store it in a local
# directory that the clients NFS mount.  The next section
# (after this one) is what the clients should run.  
ftp ("ftp.cc.gatech.edu:/pub/linux/distributions/redhat/redhat-5.0/updates") {

   Report_To ("root");

   Compare_To_Dir ("/updates");
   action (updated) {
      Store (/updates);
      Install (Interactive);
      Report (Yes);
   }

   action (new) {
      Store (/updates);
      Install (Interactive);
      Report (Yes);
   }
}

# This is what you would run on the client machines,
# assuming the server's /updates directory is mounted
# on /mnt/updates:
directory ("/mnt/updates") {

   # Since there is no Compare_To_Dir, the files
   # will be compared to the local RPM database.
   
   action (updated) {
      Install (Auto);
      Report (Yes);
   }

   action (new) {
      Install (Interactive);
      Report (Yes);
   }
}

##########################################################
# $Log: samples.conf,v $
# Revision 1.4  1998/03/20 00:35:59  kirk
# Prepping for Version 1.5.4
#
# Revision 1.3  1998/03/14 00:55:39  kirk
# Prepping for Version 1.4
#
# Revision 1.2  1998/03/11 17:32:50  kirk
# Version 1.21 ready...
#
# Revision 1.1  1998/03/11 10:23:53  kirk
# Now, Version 1.2 is ready!
#
##########################################################