Package: apt-proxy Version: 1.9.33 Severity: wishlist
Says here:
% zgrep -n '^1. ' /usr/share/doc/apt-proxy/README.gz
16:1. Edit apt-proxy.conf to select the nearest backend servers for you.
See
That could be at least partly automated.
Here's a 'sed' one-liner that picks through '/etc/apt/sources.list',
deletes commented out and blank lines, cuts the leading and
trailing stuff that's not needed, and cuts off any trailing '/'.
The result is a list of debian servers ready for the backend
section of 'apt-proxy.conf':
% sed -e '/^#.*$/d' -e '/^ *$/d' -e 's/[^ ]* //' -e 's/ .*//' -e
's/\/$//' /etc/apt/sources.list ; echo
Attached is a tidier shell script version of the above, easier to read I
hope. It'd be run like so:
% apt2aptproxy.sh >> apt-proxy.conf
It's a start, maybe somebody can improve it.
Hope this helps...
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages apt-proxy depends on:
ii adduser 3.85 Add and remove users and groups
ii bzip2 1.0.3-2 high-quality block-sorting file co
ii debconf [debconf-2.0] 1.4.71 Debian configuration management sy
ii logrotate 3.7.1-2 Log rotation utility
ii python 2.3.5-5 An interactive high-level object-o
ii python-bsddb3 3.3.0-6 Python interface to libdb3
ii python-support 0.1.1 automated rebuilding support for p
ii python-twisted 2.2.0-1 Event-based framework for internet
ii python-twisted-web 0.5.0-4 An HTTP protocol implementation to
ii python2.3 2.3.5-9 An interactive high-level object-o
apt-proxy recommends no packages.
-- debconf information excluded
apt2aptproxy.sh
Description: application/shellscript

