FTP Proxy for distfile mirror (was Re: [84270] trunk/dports/devel/byacc/Portfile)

Joshua Root jmr at macports.org
Thu Sep 22 08:08:14 PDT 2011


On 2011-9-23 00:47 , Daniel J. Luke wrote:
> On Sep 22, 2011, at 10:32 AM, Joshua Root wrote:
>> On 2011-9-23 00:05 , Daniel J. Luke wrote:
>>> I can look at it when I get some spare time if no one else has done it before ;-)
>>
>> It should be quite straightforward with squid. It would be pretty much
>> just a default config plus a single entry ACL to deny access to hosts
>> other than the mirror. (And set the storage size to zero if you don't
>> want to cache anything.)
> 
> Oh cool, I didn't realize squid did ftp proxy.
> 
> building it now...
> 
> Just need to allow distfiles.macports.org / 17.254.20.244, right?

IIRC the distfiles are on a SAN, so I'm not sure if it's the same
machine that runs port mirror. Another one for Bill. :-)

Unfortunately though, I just remembered that the libcurl in Snow Leopard
has broken FTP_PROXY handling. It should be possible to work around by
setting CURLOPT_PROXY instead, but this is considerably more hassle than
it looked like initially.

- Josh


More information about the macports-dev mailing list