Re: [arch-general] Fwd: AIF through proxy

2010-05-24 Thread Andre Osku Schmidt
i now tested this many times on VM (vbox)
http://wiki.archlinux.org/index.php/Package_Proxy_Cache

everything seems to work ok.

but i found some other issues with custom AIF profiles (in automatic mode)

# aif -d ...
gives me the aif usage info
# aif ... -d
runs aif but doesn't do any /var/log/aif/debug.log

but whats more annoying, the base packages get downloaded in 5
seconds, but adding like xorg to TARGET_GROUPS or TARGET_PACKAGES,
those packages take like 15 minutes to download, even when all come
from the proxy cache...
(would be nice to know if this is like that on other systems, or is it
just so in my setup)

and i also wonder whats the difference between TARGET_GROUPS and
TARGET_PACKAGES ?

but other than that, i'm really happy to got this far :)

cheers
.andre

ps. please do video record this ;) http://www.archlinux.ca/archcon2010/?p=67


Re: [arch-general] Fwd: AIF through proxy

2010-05-22 Thread Dieter Plaetinck
On Sat, 22 May 2010 12:51:39 +0200
Andre \Osku\ Schmidt andre.osku.schm...@googlemail.com wrote:

 now i only wonder what would be the best way and place to save these
 variables in the installed system ?

are you saying the target system should always use the proxies, for all
users?
maybe write the variables into /etc/profile then. don't know if there
is a better way.

 in worker_configure_system() in
 the users aif profile ?

yes...

 and can i restrict it only to pacman ? (for general proxy
 like squid. pacproxy.py would be only used by pacman, hence my main
 interest on it)

I don't know... my attempt would be setting this into the pacman.conf:
XferCommand = http_proxy=.. ftp_proxy= .. /usr/bin/wget --passive-ftp -c -O %o 
%u

but i don't think that will work. maybe a pacman dev knows.

a bit more dirtier, but should definitely work:
XferCommand = /bin/sh -c 'http_proxy=.. ftp_proxy= .. /usr/bin/wget 
--passive-ftp -c -O %o %u'

or write this to /etc/profile:
alias pacman='http_proxy=.. ftp_proxy=.. pacman'

Dieter



Re: [arch-general] Fwd: AIF through proxy

2010-05-22 Thread Xavier Chantry
On Sat, May 22, 2010 at 7:19 PM, Dieter Plaetinck die...@plaetinck.be wrote:

 or write this to /etc/profile:
 alias pacman='http_proxy=.. ftp_proxy=.. pacman'


I would suggest that last way, either an alias or shell function or
shell wrapper.


Re: [arch-general] Fwd: AIF through proxy

2010-05-22 Thread Andre Osku Schmidt
thanks for the tips, ill do more testing. i just posted my first
findings as a quick howto on the forums
http://bbs.archlinux.org/viewtopic.php?pid=762793 if anyone wants
start playing with it too.