--- /http-replicator-2.0/http-replicator-2.0-orig/http-replicator.conf 2004-05-01 12:16:06.000000000 -0500 +++ /http-replicator-2.0/http-replicator.conf 2004-05-23 20:26:05.000000000 -0500 @@ -1,3 +1,40 @@ +# ************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 the alternate fetch commands, apply the changes +# to your section. Http-Replicator does not support "continued" downloads. +# +# Make the following changes: +# +# 1. Add http_proxy="http://YourProxyHere.com:8080" Line +# replacing YourProxyHere.com with your proxy hostname or IP address. +# 2. Uncomment (remove the leading '#') from RESUMECOMMAND +# 3. Remove the -c from the RESUMECOMMAND and replace -P \${DISTDIR} with -O \${DISTDIR}/\${FILE} +# +# It will look like this when complete: +# +# Default fetch command (5 tries, passive ftp for firewall compatibility) +# http_proxy="http://YourMirrorHere.com:8080" +# #FETCHCOMMAND="$PROXY /usr/bin/wget -t 5 --passive-ftp \${URI} -P \${DISTDIR}" +# RESUMECOMMAND="$PROXY /usr/bin/wget -t 5 --passive-ftp \${URI} -O \${DISTDIR}/\${FILE}" +# +# execute: +# /etc/init.d/http-replicator start +# to run http-replicator. +# execute: +# rc-update add http-replicator default +# to make http-replicator start at boot +# execute: +# /usr/bin/repcacheman +# frequently (/etc/cron.daily) to delete +# dup files and add new files to the cache +# +# ************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,32 +51,32 @@ # * 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 = '/var/cache/http-replicator' # 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. @@ -56,4 +93,5 @@ # 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