mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
Build openssl-1.1.1s
This commit is contained in:
parent
91b6040a88
commit
ce35600221
2 changed files with 5 additions and 19 deletions
|
@ -3,14 +3,15 @@
|
||||||
# on linux we grab the curl certs (usually these are package as ca-certificates)
|
# on linux we grab the curl certs (usually these are package as ca-certificates)
|
||||||
|
|
||||||
distributable:
|
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
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
- 1.1.118
|
- 1.1.1s
|
||||||
# TODO
|
|
||||||
# github: openssl/openssl
|
# github: openssl/openssl
|
||||||
# parser: version-parser.ts
|
# transform: /^OpenSSL_(\d+)_(\d+)_(\d+\w)$/$1.$2.$3/
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/openssl
|
- bin/openssl
|
||||||
|
|
|
@ -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)
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue