Skip to content

Commit f78bd5e

Browse files
authored
Helpers to use system openssl and curl (#2475)
1 parent 3407216 commit f78bd5e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

system-curl.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package: system-curl
2+
version: "1.0"
3+
system_requirement_missing: |
4+
curl and its development package are missing from your system.
5+
* RHEL-compatible systems: you will probably need "curl" and "curl-devel" packages.
6+
* Ubuntu-compatible systems: you will probably need "curl" and "libcurl4-openssl-dev" (or "libcurl4-gnutls-dev").
7+
system_requirement: ".*"
8+
system_requirement_check: |
9+
curl --version > /dev/null; if test $? = 127; then exit 1; else printf "#include <curl/curl.h>\nint main() {}\n" | cc -xc -lcurl - -o /dev/null || exit 2; fi; exit 0
10+
---

system-openssl.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package: system-openssl
2+
version: "1.0"
3+
system_requirement_missing: |
4+
Please make sure you install openssl:
5+
* RHEL-compatible systems: you will probably need "openssl" and "openssl-devel" packages.
6+
system_requirement: "slc8.*"
7+
system_requirement_check: |
8+
echo '#include <openssl/bio.h>' | c++ -x c++ - -c -o /dev/null
9+
---
10+

0 commit comments

Comments
 (0)