Build openssl-1.1.1s

This commit is contained in:
Max Howell 2022-12-16 10:59:59 -05:00
parent 91b6040a88
commit ce35600221
2 changed files with 5 additions and 19 deletions

View file

@ -3,14 +3,15 @@
# on linux we grab the curl certs (usually these are package as ca-certificates)
distributable:
url: https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1q.tar.gz
url: https://www.openssl.org/source/openssl-{{version.raw}}.tar.gz
sha: ${{url}}.sha256
sig: ${{url}}.asc
strip-components: 1
versions:
- 1.1.118
# TODO
- 1.1.1s
# github: openssl/openssl
# parser: version-parser.ts
# transform: /^OpenSSL_(\d+)_(\d+)_(\d+\w)$/$1.$2.$3/
provides:
- bin/openssl

View file

@ -1,15 +0,0 @@
import SemVer, * as semver from "semver"
import { panic } from "utils"
export default function parse(input: string): SemVer {
if (input.startsWith('openssl-')) {
return semver.coerce(input) ?? panic()
} else {
const [major, minor, patch, letter] = /OpenSSL_(\d+)_(\d+)_(\d+)(\w)/.exec(input)!
const letter_number = letter.toLowerCase().charCodeAt(0) - 96
const revised_patch = 100 * parseInt(patch) + letter_number
if (Number.isNaN(revised_patch)) throw new Error()
const v = `${major}.${minor}.${revised_patch}`
return new SemVer(v)
}
}