Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Sep 2005 14:45:24 +0200
From:      "Raphael H. Becker" <rabe@p-i-n.com>
To:        ports@freebsd.org
Subject:   distfiles / md5 / plain-text via FTP proxy
Message-ID:  <20050928144524.P33058@p-i-n.com>
In-Reply-To: <20050928142537.O33058@p-i-n.com>; from rabe@p-i-n.com on Wed, Sep 28, 2005 at 02:25:37PM %2B0200
References:  <20050928002013.11564.qmail@exxodus.fedaykin.here> <20050928053534.GB15395@local.net> <20050928100141.57485.qmail@exxodus.fedaykin.here> <20050928142537.O33058@p-i-n.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 28, 2005 at 02:25:37PM +0200, Raphael H. Becker wrote:
> Disadvantage would be a lack of security (same like WITHOUT_CHECKSUM on
> distfiles). But if you have the choice ... 
[...]
> Instead of downloading a new distfile the port might trigger a CVS 
> checkout to a predefined tag or date. Virtually the sources should be 
> the same every time (but not bit-identical like a tarball).

Apropos "md5-secured" distfiles:

If you use a proxy (e.g.squid) for ftp, it might use FTP-ASCII for
transfer, not BINARY, which might result in a inband conversation from
CRLF to LF in FTP for ASCII-files (.txt, .c, ... )

Some ports with distfile patches as textfiles or plain c-Sources 
(GhostScript, squid(?), ... ) complain about bad md5-sums.

Deleting this files and refetching without proxy 
(ftp_proxy="" portupgrade -rF foo/bar) is a manual workaround for this.

In some environments you don't have ftp without a (squid)proxy.

Any idea or better workaround?

Regards
Raphael Becker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050928144524.P33058>