--- http-replicator-2.0/http-replicator.orig/http-replicator.conf 2004-05-01 12:16:06.000000000 -0500 +++ http-replicator-2.0/http-replicator.conf 2004-05-07 14:56:52.000000000 -0500 @@ -1,3 +1,29 @@ +# ************README-Gentoo Http-Replicator ******************* +# The defaults in Http-Replicator have been changed to work with the +# default Gentoo install and shouldn't have to be changed. The only +# changes required to activate Http-Replicator are in /etc/make.conf +# on the clients and the server itself. +# +# Find the Default fetch command section in /etc/make.conf. If you are +# already using one of these alternate fetch commands apply the changes +# to your section. Otherwise, make the following changes: +# +# 1. Add the PROXY="http_proxy=http://YourProxyHere.com:8080" Line +# replacing YourProxyHere.com with your proxy hostname or IP address. +# 2. Uncomment (remove the leading '#') from FETCHCOMMAND and RESUMECOMMAND +# 3. Remove the -c from the RESUMECOMMAND +# 4. Add $PROXY to the beginning of the lines. +# +# It will look like this when complete: +# +# Default fetch command (5 tries, passive ftp for firewall compatibility) +# PROXY="http_proxy=http://YourMirrorHere.com:8080" +# FETCHCOMMAND="$PROXY /usr/bin/wget -t 5 \${URI} -P \${DISTDIR}" +# RESUMECOMMAND="$PROXY /usr/bin/wget -t 5 \${URI} -P \${DISTDIR}" +# +# +# ************END README-Gentoo Http-Replicator ******************* + # This is the configuration file for the replicator proxy server. # Settings from this file will apply to the server in daemon mode and also to the cache cleaner script, if used. # @@ -14,36 +40,36 @@ # * flat: save files in a single directory # * debug: crash on exceptions -FLAGS = [] +FLAGS = ['static','flat'] # For security reasons the hosts for which access to the proxy is granted should be specified in the [IP] list. # A '?' can be used as wildcard for a single digit and a '*' for a multiple digits. # For example '10.0.?.*' grants access from 10.0.1.25 but not from 10.0.15.25. -IP = ['127.0.0.1'] +IP = ['127.0.0.1','192.168.*.*','10.*.*.*'] # The proxy server can be monitored via telnet on port [TELNET]. # This is disabled by entering a zero value. # Otherwise make sure the port is available or replicator will not start. -TELNET = 8081 +TELNET = 0 # The process user id is set to [USER]. # The daemon must be started as root because no other user can change into another. # Not even [USER] can change into itself! -USER = 'proxy' +USER = 'portage' # All cached files ar saved in directory [DIR]. # The [USER] should of course have write permission in this directory. # Where in this directory the files are actually put depends on if the server is in flat mode. # By default the entire directory structure is copied. -DIR = '/home/cache' +DIR = '/usr/portage/distfiles' # The process id of the running process is saved in [PID]. # As this is done before changing into [USER], write permission for [USER] for this file is not needed. - +# Changes here also have to be make in the init script. PID = '/var/run/http-replicator.pid' # All messages on stdout and stderr are in daemon mode written to the [LOG]. @@ -55,5 +81,5 @@ # The value of [KEEP] sets the maximum number of versions of each package to be kept. # For example a value of one will delete all versions but the most recent. # The script is disabled by setting this value to zero. - +# Not implemented in Gentoo yet! KEEP = 2