summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-05-27 21:14:33 +0200
committerLinus Groh <mail@linusgroh.de>2021-05-30 14:56:50 +0100
commit040d2479bf62f6b0a1c6e0b201f799ab364519e3 (patch)
treece0bd664b7eeab20aebf7de35f91b4c829af96c6 /Ports
parentc2b47c0676073678e9921a7eb37616af179d25da (diff)
downloadserenity-040d2479bf62f6b0a1c6e0b201f799ab364519e3.zip
Ports: Add port for wget
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/wget/package.sh13
-rw-r--r--Ports/wget/patches/configure.patch12
3 files changed, 26 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index 4e5e7466da..50f1050317 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -126,6 +126,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`vim`](vim/) | Vim | 8.2.2772 | https://www.vim.org/ |
| [`vitetris`](vitetris/) | vitetris | 0.59.1 | https://github.com/vicgeralds/vitetris |
| [`vttest`](vttest/) | vttest | 20210210 | https://invisible-island.net/vttest/ |
+| [`wget`](wget/) | GNU Wget | 1.21.1 | https://www.gnu.org/software/wget/ |
| [`xz`](xz/) | xz | 5.2.5 | https://tukaani.org/xz/ |
| [`yasm`](yasm/) | Yasm Modular Assembler | 1.3.0 | https://yasm.tortall.net/ |
| [`zlib`](zlib/) | zlib | 1.2.11 | https://www.zlib.net/ |
diff --git a/Ports/wget/package.sh b/Ports/wget/package.sh
new file mode 100755
index 0000000000..6234966c3e
--- /dev/null
+++ b/Ports/wget/package.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=wget
+version=1.21.1
+useconfigure="true"
+depends="openssl"
+files="https://ftpmirror.gnu.org/gnu/wget/wget-${version}.tar.gz wget-${version}.tar.gz
+https://ftpmirror.gnu.org/gnu/wget/wget-${version}.tar.gz.sig wget-${version}.tar.gz.sig
+https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
+auth_type="sig"
+auth_opts="--keyring ./gnu-keyring.gpg wget-${version}.tar.gz.sig"
+configopts="--with-ssl=openssl --disable-ipv6"
+
+export OPENSSL_LIBS="-lssl -lcrypto -ldl"
diff --git a/Ports/wget/patches/configure.patch b/Ports/wget/patches/configure.patch
new file mode 100644
index 0000000000..c6fdffe2f7
--- /dev/null
+++ b/Ports/wget/patches/configure.patch
@@ -0,0 +1,12 @@
+diff -ur a/build-aux/config.sub b/build-aux/config.sub
+--- a/build-aux/config.sub 2021-01-09 10:57:19.000000000 +0100
++++ b/build-aux/config.sub 2021-04-19 14:45:56.132333538 +0200
+@@ -1691,7 +1691,7 @@
+ # Now accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST end in a * to match a version number.
+- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
++ gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | serenity* | irix* \
+ | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
+ | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
+ | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \