tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Adding SHA-512 to the list of digests
   Date: Thu, 15 Oct 2015 15:56:56 +0200
   From: Thomas Klausner <wiz%NetBSD.org@localhost>
   Here's a simple perl script that
   * parses a distinfo file
   * for every distfile, removes the SHA1 line and adds the SHA512 one
   * prints the new file to stdout
   It has a few assumptions:
   * distfiles location (variable at the top, change to your liking)
   * pkgsrc patches are in patches/ (to avoid running make(1))
   * all existing distfiles have correct checksum
Please check the last assumption!  Doing so is really easy, and if
anything goes wrong, checking it will avoid papering over a real
problem with a bad SHA-512 hash.
Any reason to omit the SHA1 line for now?
Home |
Main Index |
Thread Index |
Old Index