mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
+ca-certs
This commit is contained in:
parent
54097812f5
commit
cdcd5863c1
2 changed files with 25 additions and 7 deletions
22
projects/curl.se/ca-certs/package.yml
Normal file
22
projects/curl.se/ca-certs/package.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
distributable: ~
|
||||||
|
|
||||||
|
versions:
|
||||||
|
- 2022.07.19
|
||||||
|
|
||||||
|
runtime:
|
||||||
|
env:
|
||||||
|
SSL_CERT_FILE: ${{prefix}}/ssl/cert.pem
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
curl.se: '*'
|
||||||
|
script: |
|
||||||
|
cd "{{prefix}}"
|
||||||
|
mkdir -p ssl
|
||||||
|
URL_VER=$(echo {{version.raw}} | tr -- . -)
|
||||||
|
curl -k https://curl.se/ca/cacert-$URL_VER.pem -o ssl/cert.pem
|
||||||
|
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
curl.se: '*'
|
||||||
|
script: curl https://tea.xyz
|
|
@ -17,12 +17,14 @@ provides:
|
||||||
- bin/openssl
|
- bin/openssl
|
||||||
- bin/c_rehash
|
- bin/c_rehash
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
curl.se/ca-certs: '*'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
tea.xyz/gx/cc: c99
|
tea.xyz/gx/cc: c99
|
||||||
tea.xyz/gx/make: '*'
|
tea.xyz/gx/make: '*'
|
||||||
perl.org: 5
|
perl.org: 5
|
||||||
curl.se: '*' # to download ca-certs on linux
|
|
||||||
git-scm.org: 2 # to apply our patch
|
git-scm.org: 2 # to apply our patch
|
||||||
script: |
|
script: |
|
||||||
git apply props/x509_def.c.diff
|
git apply props/x509_def.c.diff
|
||||||
|
@ -31,12 +33,6 @@ build:
|
||||||
make --jobs {{ hw.concurrency }}
|
make --jobs {{ hw.concurrency }}
|
||||||
make install_sw # `_sw` avoids installing docs
|
make install_sw # `_sw` avoids installing docs
|
||||||
|
|
||||||
#FIXME needs to be a curl.se/ca-certs that gets updates
|
|
||||||
#FIXME on macOS use /etc/ssl/cert.pem (I couldn't make this work)
|
|
||||||
#FIXME or on macOS get certs from the keychain
|
|
||||||
cd "{{prefix}}"
|
|
||||||
mkdir -p ssl
|
|
||||||
curl -k https://curl.se/ca/cacert-2022-07-19.pem -o ssl/cert.pem
|
|
||||||
env:
|
env:
|
||||||
darwin/aarch64: {ARCH: 'darwin64-arm64-cc'}
|
darwin/aarch64: {ARCH: 'darwin64-arm64-cc'}
|
||||||
darwin/x86-64: {ARCH: 'darwin64-x86_64-cc'}
|
darwin/x86-64: {ARCH: 'darwin64-x86_64-cc'}
|
||||||
|
|
Loading…
Reference in a new issue