|
Lines 1-3
Link Here
|
|
|
1 |
# ************README-Gentoo Http-Replicator ******************* |
| 2 |
# The defaults in Http-Replicator have been changed to work with the |
| 3 |
# default Gentoo install and shouldn't have to be changed. The only |
| 4 |
# changes required to activate Http-Replicator are in /etc/make.conf |
| 5 |
# on the clients and the server itself. |
| 6 |
# |
| 7 |
# Find the Default fetch command section in /etc/make.conf. If you are |
| 8 |
# already using one of these alternate fetch commands apply the changes |
| 9 |
# to your section. Otherwise, make the following changes: |
| 10 |
# |
| 11 |
# 1. Add the PROXY="http_proxy=http://YourProxyHere.com:8080" Line |
| 12 |
# replacing YourProxyHere.com with your proxy hostname or IP address. |
| 13 |
# 2. Uncomment (remove the leading '#') from FETCHCOMMAND and RESUMCOMMAND |
| 14 |
# 3. Remove the -c from the RESUMECOMMAND |
| 15 |
# 4. Add $PROXY to the beginning of the lines. |
| 16 |
# 5. Change "YourMIrrorHere.com" to your proxy hostname or IP address. |
| 17 |
# It will look like this when complete: |
| 18 |
# |
| 19 |
# Default fetch command (5 tries, passive ftp for firewall compatibility) |
| 20 |
# PROXY="http_proxy=http://YourMirrorHere.com:8080" |
| 21 |
# FETCHCOMMAND="$PROXY /usr/bin/wget -t 5 \${URI} -P \${DISTDIR}" |
| 22 |
# RESUMECOMMAND="$PROXY /usr/bin/wget -t 5 \${URI} -P \${DISTDIR}" |
| 23 |
# |
| 24 |
# |
| 25 |
# ************END README-Gentoo Http-Replicator ******************* |
| 26 |
|
| 1 |
# This is the configuration file for the replicator proxy server. |
27 |
# This is the configuration file for the replicator proxy server. |
| 2 |
# Settings from this file will apply to the server in daemon mode and also to the cache cleaner script, if used. |
28 |
# Settings from this file will apply to the server in daemon mode and also to the cache cleaner script, if used. |
| 3 |
# |
29 |
# |
|
Lines 14-49
Link Here
|
| 14 |
# * flat: save files in a single directory |
40 |
# * flat: save files in a single directory |
| 15 |
# * debug: crash on exceptions |
41 |
# * debug: crash on exceptions |
| 16 |
|
42 |
|
| 17 |
FLAGS = [] |
43 |
FLAGS = ['static','flat'] |
| 18 |
|
44 |
|
| 19 |
# For security reasons the hosts for which access to the proxy is granted should be specified in the [IP] list. |
45 |
# For security reasons the hosts for which access to the proxy is granted should be specified in the [IP] list. |
| 20 |
# A '?' can be used as wildcard for a single digit and a '*' for a multiple digits. |
46 |
# A '?' can be used as wildcard for a single digit and a '*' for a multiple digits. |
| 21 |
# For example '10.0.?.*' grants access from 10.0.1.25 but not from 10.0.15.25. |
47 |
# For example '10.0.?.*' grants access from 10.0.1.25 but not from 10.0.15.25. |
| 22 |
|
48 |
|
| 23 |
IP = ['127.0.0.1'] |
49 |
IP = ['127.0.0.1','192.168.*.*','10.*.*.*'] |
| 24 |
|
50 |
|
| 25 |
# The proxy server can be monitored via telnet on port [TELNET]. |
51 |
# The proxy server can be monitored via telnet on port [TELNET]. |
| 26 |
# This is disabled by entering a zero value. |
52 |
# This is disabled by entering a zero value. |
| 27 |
# Otherwise make sure the port is available or replicator will not start. |
53 |
# Otherwise make sure the port is available or replicator will not start. |
| 28 |
|
54 |
|
| 29 |
TELNET = 8081 |
55 |
TELNET = 0 |
| 30 |
|
56 |
|
| 31 |
# The process user id is set to [USER]. |
57 |
# The process user id is set to [USER]. |
| 32 |
# The daemon must be started as root because no other user can change into another. |
58 |
# The daemon must be started as root because no other user can change into another. |
| 33 |
# Not even [USER] can change into itself! |
59 |
# Not even [USER] can change into itself! |
| 34 |
|
60 |
|
| 35 |
USER = 'proxy' |
61 |
USER = 'portage' |
| 36 |
|
62 |
|
| 37 |
# All cached files ar saved in directory [DIR]. |
63 |
# All cached files ar saved in directory [DIR]. |
| 38 |
# The [USER] should of course have write permission in this directory. |
64 |
# The [USER] should of course have write permission in this directory. |
| 39 |
# Where in this directory the files are actually put depends on if the server is in flat mode. |
65 |
# Where in this directory the files are actually put depends on if the server is in flat mode. |
| 40 |
# By default the entire directory structure is copied. |
66 |
# By default the entire directory structure is copied. |
| 41 |
|
67 |
|
| 42 |
DIR = '/home/cache' |
68 |
DIR = '/usr/portage/distfiles' |
| 43 |
|
69 |
|
| 44 |
# The process id of the running process is saved in [PID]. |
70 |
# The process id of the running process is saved in [PID]. |
| 45 |
# As this is done before changing into [USER], write permission for [USER] for this file is not needed. |
71 |
# As this is done before changing into [USER], write permission for [USER] for this file is not needed. |
| 46 |
|
72 |
# Changes here also have to be make in the init script. |
| 47 |
PID = '/var/run/http-replicator.pid' |
73 |
PID = '/var/run/http-replicator.pid' |
| 48 |
|
74 |
|
| 49 |
# All messages on stdout and stderr are in daemon mode written to the [LOG]. |
75 |
# All messages on stdout and stderr are in daemon mode written to the [LOG]. |
|
Lines 55-59
Link Here
|
| 55 |
# The value of [KEEP] sets the maximum number of versions of each package to be kept. |
81 |
# The value of [KEEP] sets the maximum number of versions of each package to be kept. |
| 56 |
# For example a value of one will delete all versions but the most recent. |
82 |
# For example a value of one will delete all versions but the most recent. |
| 57 |
# The script is disabled by setting this value to zero. |
83 |
# The script is disabled by setting this value to zero. |
| 58 |
|
84 |
# Not implemented in Gentoo yet! |
| 59 |
KEEP = 2 |
85 |
KEEP = 2 |