SHA256 checksums
Simon Barner
barner at FreeBSD.org
Thu Nov 10 10:08:50 PST 2005
Vasil Dimov wrote:
> http://vdev.datamax.bg/tmp/portsaddsha256.sh
[...]
> My thought is that this (or similar) script be run on a machine where
> all the distfiles are available, mine is about 5% of all :)
> Anyway if it does not happen in a week or so I will send-pr it.
Maybe directly on ftp-master in order to save bandwidth. Would that be
possible?
Three comments on the script:
- Will the backticks work on a fully ports tree, or will it run into
memory problems? Perhaps xargs is a better alternative, but I am not a
shell guru...
- The SHA256 should be added if and only if the file's MD5 sum matches
the one recorded in the ports tree (otherwise, the copy there is
stale, and the port's name should be recorded for later manual
investigation).
- There are ports that set the MD5_FILE variable, e.g. astro/setatihome,
so we cannot asume it's always ${PORTSDIR}/category/port/distinfo, but
${PORTSDIR}/category/port/distinfo* might be a good approximation.
After all, it does not harm if we miss some ports.
--
Best regards / Viele Grüße, barner at FreeBSD.org
Simon Barner barner at gmx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20051110/ce861180/attachment.bin
More information about the freebsd-ports
mailing list