tsocks works perfectly! Thanks a ton! (was a little bit of a chicken and egg problem since I need tsocks to use port install, but managed to get it done.)
Lee --- On Tue, 12/22/09, Randal L. Schwartz <[email protected]> wrote: > From: Randal L. Schwartz <[email protected]> > Subject: Re: socks proxy > To: "leelavati narlikar" <[email protected]> > Cc: "Joshua Root" <[email protected]>, "nox" <[email protected]>, > [email protected] > Date: Tuesday, December 22, 2009, 6:48 PM > >>>>> "leelavati" == > leelavati narlikar <[email protected]> > writes: > > leelavati> Thanks, Josh and Nox, for your replies. The > problem is I have to > leelavati> use socks and I don't think there's an env > variable that MacPorts > leelavati> honors for that. macports.conf has all other > proxy settings, but > leelavati> not socks.. > > Cocoa applications use the System Preferences proxy > settings. > > For command-line applications, you have to patch the > connect() call in the > libc.so, which is conveniently done by preceding your > actual command with > "tsocks". (If you don't have tsocks, "sudo port > install tsocks"). > > After that, you should be able to say "sudo tsocks port > install ..." > to cause port and all of its children to use your socks > proxy. > > You might have to configure /opt/local/etc/tsocks.conf to > match > your System Preferences settings. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - > +1 503 777 0095 > <[email protected]> > <URL:http://www.stonehenge.com/merlyn/> > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, > etc. etc. > See http://methodsandmessages.vox.com/ for > Smalltalk and Seaside discussion > _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
