Sfoglia il codice sorgente

Meta: Update hashes in Port's README

Only 'sha256' or 'sig' are allowed in the 'auth_type' field in order for
the linter to pass. Reflect that into the README and give a description
on what to do to create a hash.
Also expand the examples to include a SHA256 hash.
Tobias Christiansen 3 anni fa
parent
commit
edcec09aa4
1 ha cambiato i file con 12 aggiunte e 4 eliminazioni
  1. 12 4
      Ports/README.md

+ 12 - 4
Ports/README.md

@@ -153,13 +153,16 @@ auth_opts="foo-${version}.tar.xz.asc foo-${version}.tar.xz"
 
 
 The type of file validation to use, can be one of:
 The type of file validation to use, can be one of:
 
 
-- `md5`: Use MD5 hashes defined in [`files`](#files)
 - `sha256`: Use SHA256 hashes defined in [`files`](#files)
 - `sha256`: Use SHA256 hashes defined in [`files`](#files)
-- `sha1`: Use SHA1 hashes defined in [`files`](#files)
 - `sig`: Use PGP signatures (see [`auth_opts`](#auth_opts))
 - `sig`: Use PGP signatures (see [`auth_opts`](#auth_opts))
 
 
-Defaults to `md5`, most ports use `sig` though as `.asc` files are widely
-available.
+Most ports use `sig` as `.asc` files are widely available.
+
+This _has_ to be specified in order for `lint-ports` to pass.
+
+If no signature or hash is provided by the author of the files, just create the
+hash yourself by calling `sha256sum` on the downloaded file and specifying the
+hash along with the [`files`](#files).
 
 
 #### `configopts`
 #### `configopts`
 
 
@@ -213,10 +216,15 @@ MD5, SHA1, or SHA256 hash that will be used for verification when
 
 
 For example:
 For example:
 
 
+_With PGP signatures_
 ```bash
 ```bash
 files="https://example.com/foo-${version}.tar.xz foo-${version}.tar.xz
 files="https://example.com/foo-${version}.tar.xz foo-${version}.tar.xz
 https://example.com/foo-${version}.tar.xz.asc foo-${version}.tar.xz.asc"
 https://example.com/foo-${version}.tar.xz.asc foo-${version}.tar.xz.asc"
 ```
 ```
+_With a SHA256 hash_
+```bash
+files="https://example.com/foo-${version}.tar.xz foo-${version}.tar.xz 9acd50f9a2af37e471f761c3fe7b8dea5617e51dac802fe6c177b74abf0abb5a"
+```
 
 
 If a file is a compressed tar archive, a gzip compressed file or a zip
 If a file is a compressed tar archive, a gzip compressed file or a zip
 compressed file, it will be extracted.
 compressed file, it will be extracted.