# localhost defines packages patch and files for mirror.
# Version: 1.08 1999/08/07
#
# Copyright (C) 1999 Ian Maclaine-cross (i.maclaine-cross@unsw.edu.au)
# 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 and a few also generate
# ls-lR.times and ls-lR.patch.gz files using scripts like my
# mkls-lR.  If you mirror a large directory tree daily, using:
#         mirror /etc/mirror/packages/<filename>
# can reduce FTP site load, download charges and mirror lag by
# efficiently using these files.  The file README.ls-lR 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 your
# hostname=localhost in mirror.defaults or the equivalent occurs in 
# other configuration files e.g., /etc/hosts.
#
# The command to make the ls-lR files used by mirror 
# with localhost is:  mkls-lR -d /home/ftp/pub 
# You need to be root to use this. "man mkls-lR" will tell you more. 
#
# To use ls-lR.times remove the comment "#" from the "skip=" and
# second "ls_lR_file=" lines below.  Otherwise avoid changes in
# the two patch packages and the bottom local_ls_lR_file line.

package=defaults
	site=localhost
	remote_dir=/pub/
	local_dir=/tmp/pub

package=patch
	# skip=true
	local_ignore=
	exclude_patt=
	do_deletes=false
	recursive=false
        name_mappings=s:ls-lR:remote_ls-lR:
	get_patt=^ls-lR.patch.gz

package=patch
	exclude_patt=.
	do_deletes=false
	local_ls_lR_file=remote_ls-lR
	ls_lR_file=ls-lR.patch.gz
	# ls_lR_file=ls-lR.times

package=files
	local_ls_lR_file=remote_ls-lR
	get_patt=^[^/]+$|(^|/)(README|mirror_.*\.deb$)
