diff options
author | EWouters <6179932+EWouters@users.noreply.github.com> | 2022-04-14 01:46:46 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-14 18:24:30 +0100 |
commit | 1712b6b3eda1faeca7abefcadf2ab8578dc54a70 (patch) | |
tree | 06b56927d53255f5855dc9b656fa7b05c34d22d1 | |
parent | ca0e32e59fcf67a662e5d3a994d44cd7c941624a (diff) | |
download | serenity-1712b6b3eda1faeca7abefcadf2ab8578dc54a70.zip |
Ports: Add port aria2 version 1.36.0
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/aria2/package.sh | 19 | ||||
-rw-r--r-- | Ports/aria2/patches/0001-Include-sys-select.h-in-src-SelectEventPoll.cc.patch | 21 | ||||
-rw-r--r-- | Ports/aria2/patches/ReadMe.md | 7 |
4 files changed, 48 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 7e66fd3302..a728481238 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -9,6 +9,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`acpica-tools`](acpica-tools/) | ACPI Component Architecture Project Userspace Utilities | 20220331 | https://acpica.org/downloads | | [`angband`](angband/) | Angband | 4.2.4 | https://rephial.org | | [`Another-World`](Another-World/) | Another World Bytecode Interpreter | | https://github.com/fabiensanglard/Another-World-Bytecode-Interpreter | +| [`aria2`](aria2/) | aria2 | 1.36.0 | https://aria2.github.io | | [`awk`](awk/) | The One True Awk | 20220122 | https://github.com/onetrueawk/awk | | [`bash`](bash/) | GNU Bash | 5.1.16 | https://www.gnu.org/software/bash/ | | [`bass`](bass/) | Beneath a Steel Sky | cd-1.2 | https://www.scummvm.org/games | diff --git a/Ports/aria2/package.sh b/Ports/aria2/package.sh new file mode 100755 index 0000000000..0dad6f49a7 --- /dev/null +++ b/Ports/aria2/package.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='aria2' +version='1.36.0' +files="https://github.com/aria2/aria2/releases/download/release-${version}/aria2-${version}.tar.xz ${port}-${version}.tar.xz 58d1e7608c12404f0229a3d9a4953d0d00c18040504498b483305bcb3de907a5" +auth_type='sha256' +depends=( + "libssh2" + "libxml2" + "openssl" + "zlib" + "libuv" +) +useconfigure='true' +use_fresh_config_sub='true' +config_sub_paths+=("deps/wslay/config.sub") +configopts+=( + "--with-libuv" + "--with-sysroot=${SERENITY_INSTALL_ROOT}" +) diff --git a/Ports/aria2/patches/0001-Include-sys-select.h-in-src-SelectEventPoll.cc.patch b/Ports/aria2/patches/0001-Include-sys-select.h-in-src-SelectEventPoll.cc.patch new file mode 100644 index 0000000000..0027399325 --- /dev/null +++ b/Ports/aria2/patches/0001-Include-sys-select.h-in-src-SelectEventPoll.cc.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: EWouters <6179932+EWouters@users.noreply.github.com> +Date: Thu, 14 Apr 2022 00:22:19 +0200 +Subject: [PATCH] Include sys/select.h in src/SelectEventPoll.cc + +--- + src/SelectEventPoll.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/SelectEventPoll.cc b/src/SelectEventPoll.cc +index d9397b2..49b1f03 100644 +--- a/src/SelectEventPoll.cc ++++ b/src/SelectEventPoll.cc +@@ -40,6 +40,7 @@ + #include <cstring> + #include <algorithm> + #include <numeric> ++#include <sys/select.h> + + #include "Command.h" + #include "LogFactory.h" diff --git a/Ports/aria2/patches/ReadMe.md b/Ports/aria2/patches/ReadMe.md new file mode 100644 index 0000000000..533ee9ada9 --- /dev/null +++ b/Ports/aria2/patches/ReadMe.md @@ -0,0 +1,7 @@ +# Patches for aria2 on SerenityOS + +## `0001-Include-sys-select.h-in-src-SelectEventPoll.cc.patch` + +Include sys/select.h in src/SelectEventPoll.cc + + |