From: mi <ww...@gm...> - 2004-09-25 18:45:50
|
Debian Sarge runs an a.p. of nearly version 2 (more exact, 1.9x), with a new config syntax, where the old file 'apt-proxy.conf' is used by version 1 only. Both files are present in /etc/apt-proxy/ so that you can up/downgrade without editing the config files. You have to keep the correct one (or both) up to date. Attached below is my apt-proxy-v2.conf. It runs on y dialup box and is designed for only occasionally serving other boxes on small a home LAN. ';' leads comment lines in this version-2-type config. Note the 'http' debian package server URLs. Also, as far as i know, there's no 'security' service for testing (but will be for sarge when it's getting released). I also attach an example sources.list. hth -- Michel... [DEFAULT] ;; All times are in seconds, but you can add a suffix ;; for minutes(m), hours(h) or days(d) ;; Server IP to listen on ;address = 192.168.0.254 ;; Server port to listen on port = 9999 ;; Control files (Packages/Sources/Contents) refresh rate ;; ;; Minimum time between attempts to refresh a file ;; Should be: 10h min_refresh_delay = 36000 ;; Minimum age of a file before attempting an update (NOT YET IMPLEMENTED) ;min_age = 23h ;; Uncomment to make apt-proxy continue downloading even if all ;; clients disconnect. This is probably not a good idea on a ;; dial up line. ;; complete_clientless_downloads = 1 ;; Debugging settings. ;; for all debug information use this: ;; debug = all:9 debug = all db:6 ;; Debugging remote python console ;; Do not enable in an untrusted environment ;telnet_port = 9998 ;telnet_user = apt-proxy ;telnet_password = secret ;; Network timeout when retrieving from backend servers timeout = 300 ;; Cache directory for apt-proxy cache_dir = /var/cache/apt-proxy ;; Use passive FTP? (default=on) ;passive_ftp = on ;; Use HTTP proxy? ;http_proxy = host:port ;; Disable HTTP pipelining within apt-proxy (for test purposes) ;disable_pipelining=1 ;;-------------------------------------------------------------- ;; Cache housekeeping ;;--------------------------------------------------------------- ;; Time to perform periodic housekeeping: ;; - delete files that have not been accessed in max_age ;; - scan cache directories and update internal tables cleanup_freq = 7d ;; Maximum age of files before deletion from the cache (seconds) max_age = off ;; Maximum number of versions of a .deb to keep per distribution max_versions = 3 ;; Add HTTP backends dynamicaly if not already defined? (default=on) ;dynamic_backends = on ;; =================== Backend Servers ================== ;; ;; Place each server in its own [section] [debian] ;; Debian archive ;timeout will be the global value backends = http://ftp.de.debian.org/debian ; ftp://ftp.de.debian.org/debian [non-US] ;; Debian non-US archive ;timeout will be the global value backends = http://ftp.de.debian.org/debian-non-US ; ftp://ftp.de.debian.org/debian-non-US ; http://ftp.non-us.debian.org/debian-non-US ;[security] ;; Debian security archive ; backends = ; http://security.debian.org/debian-security ; http://ftp2.de.debian.org/debian-security Here's an example /etc/apt/sources.list: # __________ TESTING: # deb http://chewbacca:9999/debian testing main contrib non-free deb http://chewbacca:9999/non-US testing/non-US main contrib non-free |