Ports: Add c-ares library
The asynchronous DNS requests library c-ares was ported to serenity
This commit is contained in:
parent
3aadc09c53
commit
852bf35c1e
Notes:
sideshowbarker
2024-07-17 14:33:07 +09:00
Author: https://github.com/autumn-traveller Commit: https://github.com/SerenityOS/serenity/commit/852bf35c1e Pull-request: https://github.com/SerenityOS/serenity/pull/18568 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/timschumi
2 changed files with 24 additions and 0 deletions
|
@ -26,6 +26,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
|
|||
| [`byacc`](byacc/) | Berkeley Yacc | 20220128 | https://invisible-island.net/byacc/byacc.html |
|
||||
| [`bzip2`](bzip2/) | bzip2 | 1.0.8 | https://sourceware.org/bzip2/ |
|
||||
| [`bzip3`](bzip3/) | bzip3 | 1.2.2 | https://github.com/kspalaiologos/bzip3 |
|
||||
| [`c-ares`](c-ares/) | c-ares | 1.19.0 | https://c-ares.org |
|
||||
| [`c-ray`](c-ray/) | C-Ray | 8f30eb9 | https://github.com/vkoskiv/c-ray |
|
||||
| [`ca-certificates`](ca-certificates/) | Mozilla CA certificate store | 2022-04-26 | https://curl.se/docs/caextract.html |
|
||||
| [`carl`](carl/) | Crypto Ancienne Resource Loader | 1.5 | https://github.com/classilla/cryanc |
|
||||
|
|
23
Ports/c-ares/package.sh
Executable file
23
Ports/c-ares/package.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='c-ares'
|
||||
version='1.19.0'
|
||||
files="https://c-ares.org/download/c-ares-${version}.tar.gz c-ares-${version}.tar.gz bfceba37e23fd531293829002cac0401ef49a6dc55923f7f92236585b7ad1dd3"
|
||||
auth_type='sha256'
|
||||
useconfigure=true
|
||||
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
||||
|
||||
configure() {
|
||||
mkdir -p c-ares-build
|
||||
cmake -G Ninja \
|
||||
"${configopts[@]}" \
|
||||
-S "$workdir" \
|
||||
-B c-ares-build
|
||||
}
|
||||
|
||||
build() {
|
||||
ninja -C c-ares-build "$makeopts"
|
||||
}
|
||||
|
||||
install() {
|
||||
ninja -C c-ares-build install
|
||||
}
|
Loading…
Add table
Reference in a new issue