[Macports-users] Proxy setting for darwin ports

Tharappel James jthrppel at tcd.ie
Wed Sep 6 03:47:43 PDT 2006


> I need to where to set proxy options in Darwinports? MY DP  
> installation does not work through proxy server. I know the direct  
> connections do work. Here is the output.
> *******************
> mbi067150:/DarwinPorts-1.3.2 jthrppel$ sudo port install wget
> --->  Fetching libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.gnu.org/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.uu.net/archive/systems/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.de.uu.net/pub/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.funet.fi/pub/gnu/prep/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.leo.org/pub/comp/os/unix/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.digex.net/pub/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.wustl.edu/mirrors/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.kddlabs.co.jp/pub/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.dti.ad.jp/pub/GNU/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.mirror.ac.uk/sites/ftp.gnu.org/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> sunsite.org.uk/Mirrors/ftp.gnu.org/pub/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.informatik.hu-berlin.de/pub/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.rediris.es/mirror/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.lip6.fr/pub/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from ftp:// 
> ftp.chg.ru/pub/gnu/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from http:// 
> distfiles-od.opendarwin.org/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from http:// 
> distfiles-msn.opendarwin.org/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from http:// 
> distfiles-bay13.opendarwin.org/libiconv
> --->  Attempting to fetch libiconv-1.10.tar.gz from http:// 
> distfiles-od.opendarwin.org/
> --->  Attempting to fetch libiconv-1.10.tar.gz from http:// 
> distfiles-msn.opendarwin.org/
> --->  Attempting to fetch libiconv-1.10.tar.gz from http:// 
> distfiles-bay13.opendarwin.org/
> Error: Target com.apple.fetch returned: fetch failed
> Error: The following dependencies failed to build: gettext libiconv  
> openssl zlib
> Error: Status 1 encountered during processing.
> ******************************
> I have 10.4.7 running DP 1.3.2 installed from source, selfupdate is  
> working through the rsync port. I have proxy variables set  
> in .profiles in my home directory.
> ********************************
> . /Users/jthrppel/.bash-profile
> #. /sw/bin/init.sh
> #QTDIR=/Developer/qt
> PATH=/usr/local/Trolltech/Qt-4.1.2/bin:$PATH
> export PATH
> #PATH=$QTDIR/bin:$PATH
> DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
> export QTDIR PATH DYLD_LIBRARY_PATH
> #test -r /sw/bin/init.sh && . /sw/bin/init.sh
> # Your previous .profile  (if any) is saved as .profile.dpsaved
> # Setting the path for DarwinPorts.
> export PATH=/opt/local/bin:/opt/local/sbin:$PATH
> http_proxy=http://myproxy.x.x:8001/; export http_proxy;
> ftp_proxy=http://myproxy.x.x:21/; export ftp_proxy;
> ***********************************
> I have also added a .bash-profile with a script found on one of the  
> posts
> function proxy()
> {
> echo -n jthrppel:
> read -e username
> echo -n xxxxxxx:
> read -es password
> export http_proxy=http://$username:$password@myproxy.x.x:8001/
> export ftp_proxy=http://$username:$password@myproxy.x.x:21/
> }
> **********************************
> They are also in .curlrc.
> -x myproxy.x.x:21
> -x myproxy.x.x:8001
> -U useruser:pwpwpw
> -A "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv: 
> 1.7.6) Gecko/20050225 Firefox/1.0.1"
> -e http://www.google.com/;auto
> -f
> -L
> --connect-timeout 120
> #We  want a 30 minute timeout:
> #        -m 1800
> #. .. and we use a proxy for all accesses:
> proxy = myproxy.x.x:8001 -u useruser:pwpwpw
> **********************************
> Curl works from command line.
> Is there a place to specify the proxy setting (such as in  
> ports.conf)? What is the format?
> Thank you all much in advance,
> James




More information about the macports-users mailing list