# download defines packages files for mirror. # Version: 1.09 2001/08/06 # # Copyright (C) 1999-2001 Ian Maclaine-cross # You may use this only under the conditions of the General Public # License in file GPL. # # Most FTP sites generate a daily ls-lR.gz using a command like: # mkls-lR -d /home/ftp/pub "-Ils-lR.*" # "man mkls-lR" will explain how to run this on your machine. # # This package file keeps a local copy of ls-lR.gz for directory # information to speed downloading. # # If you download from a large remote host infrequently, copy this # file and edit the required site, remote and local directories # as instructed below. Then run: # mirror download # Check the downloaded directory remote_ls-lR.gz for the pathnames of # the files you want. Change get_patt= at the bottom of this file to # the files you want and repeat the procedure to get them. # # This method is faster than the -g flag in upgrading local directories # because only new files are downloaded not all files. # # For daily mirroring of sites with ls-lR.patch.gz see package files # localhost, ftp.tex.ac.uk and ftp.debian.org. The file ls-lR.html # explains why, when and how. # # localhost is your site's loopback interface. mirror talks to your # own FTP server without going out onto the network. You do not even # need a network card to use this. Use it for learning how to use # mirror and testing. `mirror' will reject localhost as a site if # hostname=localhost in mirror.defaults or the equivalent occurs in # other configuration files e.g., /etc/hosts. # package=defaults # Change this to the required remote hostname. site=localhost # Change to the remote subdirectory containing the ls-lR.gz file. remote_dir=/pub/ # Change this to the full pathname of the local directory where # you want to base the copy of the remote directory tree. # NEVER EVER use the shell wildcard tilde, ~, here. local_dir=/tmp/pub # mirror expects a perl regexp matching the pathnames required here. # Replacing "README" with "/subname/[^/]$" gets all files from # all subdirectories named "subname" non-recursively. get_patt=README # You should not need to change lines below here. package=files local_ignore= exclude_patt= do_deletes=false recursive=false name_mappings=s:ls-lR:remote_ls-lR: get_patt=^ls-lR.gz package=files local_ls_lR_file=remote_ls-lR.gz delete_get_patt=true